mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-19 13:46:44 +08:00
vip专区菜单修改
This commit is contained in:
@@ -165,46 +165,38 @@ export default {
|
|||||||
const res = await getShopList(data)
|
const res = await getShopList(data)
|
||||||
if (!res) return
|
if (!res) return
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
let thirdName = res.content.name
|
let thirdName = res.content.tip
|
||||||
if (res.content.redirect) {
|
const toast = Toast.loading({
|
||||||
const toast = Toast.loading({
|
duration: 0, // 持续展示 toast
|
||||||
duration: 0, // 持续展示 toast
|
forbidClick: true,
|
||||||
forbidClick: true,
|
icon: 'info-o',
|
||||||
icon: 'info-o',
|
message: `即将为您跳转至${thirdName}`
|
||||||
message: `3秒后将跳转至${thirdName}`
|
})
|
||||||
})
|
setTimeout(() => {
|
||||||
|
// 手动清除 Toast
|
||||||
let second = 3
|
toast.clear()
|
||||||
const timer = setInterval(() => {
|
if (res.content.redirect) {
|
||||||
second--
|
this.redirectUrl = res.content.linkUrl
|
||||||
if (second) {
|
} else {
|
||||||
toast.message = `${second}秒后将跳转至${thirdName}`
|
if (res.content.rightBtnShow && !this.isWeixin) {
|
||||||
} else {
|
// eslint-disable-next-line no-undef
|
||||||
clearInterval(timer)
|
window.EWebBridge.webCallAppInJs('webview_right_button', {
|
||||||
// 手动清除 Toast
|
btns: [
|
||||||
Toast.clear()
|
{
|
||||||
this.redirectUrl = res.content.linkUrl
|
img: icon,
|
||||||
|
route: { flag: '', extra: {} }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
|
window['appCallBack'] = this.appCallBack
|
||||||
}
|
}
|
||||||
}, 1000)
|
this.detailImg = res.content.detailImgUrl
|
||||||
} else {
|
this.bottomBtnShow = res.content.bottomBtnShow
|
||||||
if (res.content.rightBtnShow && !this.isWeixin) {
|
this.detail = res.content
|
||||||
// eslint-disable-next-line no-undef
|
this.pdfUrl = this.$assetsUrl + res.content.pdfUrl
|
||||||
window.EWebBridge.webCallAppInJs('webview_right_button', {
|
this.isCanCheck2 = true
|
||||||
btns: [
|
|
||||||
{
|
|
||||||
img: icon,
|
|
||||||
route: { flag: '', extra: {} }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
|
||||||
window['appCallBack'] = this.appCallBack
|
|
||||||
}
|
}
|
||||||
this.detailImg = res.content.detailImgUrl
|
}, 3000)
|
||||||
this.bottomBtnShow = res.content.bottomBtnShow
|
|
||||||
this.detail = res.content
|
|
||||||
this.pdfUrl = this.$assetsUrl + res.content.pdfUrl
|
|
||||||
this.isCanCheck2 = true
|
|
||||||
}
|
|
||||||
this.loaded = true
|
this.loaded = true
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
|
|||||||
Reference in New Issue
Block a user