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

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

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