From c45dd38dd17ce2edf06e7aa8a95df005678c495a Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期一, 19 六月 2023 10:48:13 +0800 Subject: [PATCH] no message --- uniapp/.hbuilderx/launch.json | 2 +- uniapp/pages/rankinglist/fengqiang.vue | 24 +++++++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/uniapp/.hbuilderx/launch.json b/uniapp/.hbuilderx/launch.json index 9284d7d..4e0cff3 100644 --- a/uniapp/.hbuilderx/launch.json +++ b/uniapp/.hbuilderx/launch.json @@ -14,7 +14,7 @@ }, "h5" : { - "launchtype" : "local" + "launchtype" : "remote" }, "mp-weixin" : { diff --git a/uniapp/pages/rankinglist/fengqiang.vue b/uniapp/pages/rankinglist/fengqiang.vue index 2d53a0e..bfff77a 100644 --- a/uniapp/pages/rankinglist/fengqiang.vue +++ b/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,6 +25,20 @@ }, } }, + 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){ uni.reLaunch({ -- Gitblit v1.9.3