cxmo 11 mēneši atpakaļ
vecāks
revīzija
118e43c3c2
2 mainītis faili ar 36 papildinājumiem un 0 dzēšanām
  1. 6 0
      pages.json
  2. 30 0
      pages/forexCalendar/index.vue

+ 6 - 0
pages.json

@@ -109,6 +109,12 @@
 		},
 		{
 			"path":"pages/transitionPage"
+		},
+		{
+			"path":"pages/forexCalendar/index",
+			"style":{
+				"navigationBarTitleText":"外汇日历表"
+			}
 		}
 	],
 	"subPackages":[

+ 30 - 0
pages/forexCalendar/index.vue

@@ -0,0 +1,30 @@
+<template>
+    <div class="forex-calendar-wrap">
+        <web-view :src="url" @message="handleGetMessage"></web-view>
+    </div>
+</template>
+
+<script>
+export default {
+    data() {
+        return {
+            url:''
+        };
+    },
+    onLoad(options){
+        const token=this.$store.state.user.token
+        this.url = `${h5BaseUrl}/hzyb/forex/transindex?token=${token}#wechat_redirect`
+    },
+    methods: {
+        handleGetMessage(e){
+            console.log('test,test')
+            const data=e.detail.data[e.detail.data.length-1]
+            console.log('h5传来的数据',data);
+        }
+    },
+};
+</script>
+
+<style scoped lang="scss">
+
+</style>