diff --git a/src/views/ebiz/product-store/StoreDetail.vue b/src/views/ebiz/product-store/StoreDetail.vue index 008da5961..56b8e7185 100644 --- a/src/views/ebiz/product-store/StoreDetail.vue +++ b/src/views/ebiz/product-store/StoreDetail.vue @@ -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) }