From 4ac3c2382e0733685f7612f8e9ca4e85d15c1411 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期日, 25 六月 2023 08:55:00 +0800 Subject: [PATCH] Merge branch 'hotfix/苹果审核修改' --- uniapp/pages/rankinglist/xianbao.vue | 43 ++++++++++++++++++++++++++++++++----------- 1 files changed, 32 insertions(+), 11 deletions(-) diff --git a/uniapp/pages/rankinglist/xianbao.vue b/uniapp/pages/rankinglist/xianbao.vue index 18dbfc6..eace27c 100644 --- a/uniapp/pages/rankinglist/xianbao.vue +++ b/uniapp/pages/rankinglist/xianbao.vue @@ -1,15 +1,23 @@ <template> - <view> + <view v-if="isshowtype"> + <findPage></findPage> + </view> + <view v-else> <web-view :webview-styles="webviewStyles" :src="webviewUrl" @message='received'></web-view> </view> </template> <script> + import findPage from '@/components/sh_page/findPage.vue'; //var wv export default { + components:{ + findPage + }, data() { return { webviewUrl: '', + isshowtype:false, webviewStyles: { progress: { color: '#EE1B14' @@ -17,17 +25,30 @@ }, } }, - onLoad(options) { - if(!this.hasLogin){ - uni.reLaunch({ - url:"/pages/login/wxlogin" - }) - } - else{ - const value = uni.getStorageSync('userInfo'); - this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/xianbao.html?token='+value.token); - } + 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; + } + else + { + if(!this.hasLogin){ + uni.reLaunch({ + url:"/pages/login/wxlogin" + }) + } + } + // #endif + }, + onLoad(options) { + const value = uni.getStorageSync('userInfo'); + this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/xianbao.html?token='+value.token); }, onReady() { this.clearMuiBack(); -- Gitblit v1.9.3