zhaojs
2023-06-25 afb7bcf6e31979be352bfcf14812d52339478cef
uniapp/pages/rankinglist/fengqiang.vue
@@ -1,21 +1,43 @@
<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'
               }
            },
         }
      },
      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) {
         if(!this.hasLogin){
@@ -25,6 +47,7 @@
         }
         else{
            const value = uni.getStorageSync('userInfo');
            console.log(value);
            this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/fengqiangbang.html?token='+value.token);
         }