mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 21:52:53 +08:00
Merge branch 'feature/商品商城优化' into dev
This commit is contained in:
@@ -155,23 +155,29 @@ 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: {} }
|
||||
}
|
||||
]
|
||||
})
|
||||
window['appCallBack'] = this.appCallBack
|
||||
}
|
||||
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