jiangping
2023-10-16 9ab4955166b7b1370fc2a49b152353241ca9e64a
minipro_standard/pages/index/index.vue
@@ -1,44 +0,0 @@
<template>
   <view class="index">
      <web-view v-if="show" @onPostMessage="onMessage" :src="'https://dmtest.ahapp.net/doumeeplant_h5/#/appletLogin?code=' + code"></web-view>
      <!-- <myTabbar :index="0" /> -->
   </view>
</template>
<script>
   // import myTabbar from "@/components/myTabber.vue"
   export default {
      // components: {
      //    myTabbar
      // },
      data() {
         return {
            code: '',
            show: false
         }
      },
      onLoad() {
         var that = this
         uni.login({
            provider: 'weixin',
            success: function (loginRes) {
               // console.log(loginRes);
               that.code = loginRes.code
               that.show = true
            }
         });
      },
      methods: {
         onMessage(e) {
            console.log('12345654321')
         }
      }
   }
</script>
<style lang="scss" scoped>
   .index {
      width: 100vw;
      height: 100vh;
   }
</style>