zhaojs
2023-06-14 47171769ba8a7e953c870ac6b5bf24efb6a5e440
uniapp/pages/rankinglist/fengqiang.vue
@@ -1,15 +1,23 @@
<template>
   <view>
   <view v-if="isshowtype">
      <matherPage></matherPage>
   </view>
   <view v-else>
      <web-view :webview-styles="webviewStyles" :src="webviewUrl" @message='received'></web-view>
   </view>
</template>
<script>
      import matherPage from '@/components/sh_page/matherPage.vue';
   var wv
   export default {
      components:{
         matherPage
      },
      data() {
         return {
            webviewUrl: '',
            isshowtype:false,
            webviewStyles: {
               progress: {
                  color: '#EE1B14'
@@ -17,11 +25,32 @@
            },
         }
      },
      onShow()
      {
         // #ifdef APP-PLUS
         var showtar = getApp().globalData.ifwt == 1 ? false : true;
         var platform = plus.os.name;
         //showtar&&platform=='iOS'
         if(showtar&&platform=='iOS')
         {//跳转new
            this.isshowtype=true;
            return;
         }
         // #endif
      },
      onLoad(options) {
         //console.log(options);
         const value = uni.getStorageSync('userInfo');
         console.log(value.token);
         this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/fengqiangbang.html?token='+value.token);
         if(!this.hasLogin){
            uni.reLaunch({
               url:"/pages/login/wxlogin"
            })
         }
         else{
            const value = uni.getStorageSync('userInfo');
            console.log(value);
            this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/fengqiangbang.html?token='+value.token);
         }
      },
      onReady() {
        this.clearMuiBack();