mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 06:02:52 +08:00
增加跳转第三方链接类型菜单
This commit is contained in:
@@ -155,23 +155,28 @@ export default {
|
||||
const res = await getShopList(data)
|
||||
if (!res) return
|
||||
if (res.result == '0') {
|
||||
if (res.content.rightBtnShow && !this.isWeixin) {
|
||||
// eslint-disable-next-line no-undef
|
||||
window.EWebBridge.webCallAppInJs('webview_right_button', {
|
||||
btns: [
|
||||
{
|
||||
img: icon,
|
||||
route: { flag: '', extra: {} }
|
||||
}
|
||||
]
|
||||
})
|
||||
if (res.content.redirect) {
|
||||
console.log('redirect...')
|
||||
window.location.href = res.content.linkUrl
|
||||
} else {
|
||||
if (res.content.rightBtnShow && !this.isWeixin) {
|
||||
// eslint-disable-next-line no-undef
|
||||
window.EWebBridge.webCallAppInJs('webview_right_button', {
|
||||
btns: [
|
||||
{
|
||||
img: icon,
|
||||
route: { flag: '', extra: {} }
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
this.detailImg = res.content.detailImgUrl
|
||||
this.bottomBtnShow = res.content.bottomBtnShow
|
||||
this.detail = res.content
|
||||
this.pdfUrl = this.$assetsUrl + res.content.pdfUrl
|
||||
this.loaded = true
|
||||
this.isCanCheck2 = true
|
||||
}
|
||||
this.detailImg = res.content.detailImgUrl
|
||||
this.bottomBtnShow = res.content.bottomBtnShow
|
||||
this.detail = res.content
|
||||
this.pdfUrl = this.$assetsUrl + res.content.pdfUrl
|
||||
this.loaded = true
|
||||
this.isCanCheck2 = true
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user