提交 475352a1 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

添加页面在微信中打开唤起app的路径

上级 0fd245fd
......@@ -39,7 +39,7 @@
<no-ssr v-if="isWeb">
<pica-call-app
:text="'高效学习 轻松行医'"
path="https://test1-m-ws.yunqueyi.com/search"
:path="appCallUrl"
/>
</no-ssr>
</section>
......@@ -69,7 +69,8 @@
0: require('../../assets/img/stage3/rank-icon1.png'),
1: require('../../assets/img/stage3/rank-icon2.png'),
2: require('../../assets/img/stage3/rank-icon3.png'),
}
},
appCallUrl: ''
}
},
async asyncData( { query } ) {
......@@ -83,8 +84,9 @@
},
mounted() {
this.$rocNative.appInit();
//this.isWeb = this.$rocNative.isWeb;
this.isWeb = this.$rocNative.isWeb;
this.shareObj.shareUrl = location.href; //微信分享链接
this.appCallUrl = location.href; //唤起app页面
//微信分享初始化--start
this.$picaWxShare({
type: (process.env.NUXT_ENV_APP != 'prod') ? 15 : '',
......
......@@ -110,7 +110,7 @@
<no-ssr v-if="isWeb">
<pica-call-app
:text="'高效学习 轻松行医'"
path="https://test1-m-ws.yunqueyi.com/search"
:path="appCallUrl"
/>
</no-ssr>
</section>
......@@ -146,7 +146,8 @@
'1': require('../../assets/img/stage3/hospital-rank2.png'),
'2': require('../../assets/img/stage3/hospital-rank3.png'),
'3': require('../../assets/img/stage3/hospital-rank4.png')
}
},
appCallUrl: ''
}
},
async asyncData() {
......@@ -170,6 +171,7 @@
this.getMainInfo();
}*/
this.shareObj.shareUrl = location.href; //微信分享链接
this.appCallUrl = location.href; //唤起app页面
//微信分享初始化--start
this.$picaWxShare({
type: (process.env.NUXT_ENV_APP != 'prod') ? 15 : '',
......
......@@ -75,7 +75,7 @@
<no-ssr v-if="isWeb">
<pica-call-app
:text="'高效学习 轻松行医'"
path="https://test1-m-ws.yunqueyi.com/search"
:path="appCallUrl"
/>
</no-ssr>
</div>
......@@ -96,7 +96,8 @@
rightText1: '',//右侧文案
rightText2: '',//右侧文案
shareObj: wxShare,
isWeb: false
isWeb: false,
appCallUrl: ''
}
},
async asyncData({query}) {
......@@ -111,6 +112,7 @@
mounted() {
this.isWeb = this.$rocNative.isWeb;
this.shareObj.shareUrl = location.href; //微信分享链接
this.appCallUrl = location.href; //唤起app页面
//微信分享初始化--start
this.$picaWxShare({
type: (process.env.NUXT_ENV_APP != 'prod') ? 15 : '',
......
......@@ -40,7 +40,7 @@
<no-ssr v-if="isWeb">
<pica-call-app
:text="'高效学习 轻松行医'"
path="https://test1-m-ws.yunqueyi.com/search"
:path="appCallUrl"
/>
</no-ssr>
</section>
......@@ -64,13 +64,15 @@
0: require('../../assets/img/stage3/rank-icon1.png'),
1: require('../../assets/img/stage3/rank-icon2.png'),
2: require('../../assets/img/stage3/rank-icon3.png'),
}
},
appCallUrl: ''
}
},
async asyncData( {query} ) {
const { data } = await getPersonList();
return {
personList: data
personList: data,
appCallUrl: ''
}
},
created() {
......@@ -79,6 +81,7 @@
this.$rocNative.appInit();
this.isWeb = this.$rocNative.isWeb;
this.shareObj.shareUrl = location.href; //微信分享链接
this.appCallUrl = location.href; //唤起app页面
//微信分享初始化--start
this.$picaWxShare({
type: (process.env.NUXT_ENV_APP != 'prod') ? 15 : '',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册