vip专区菜单修改

This commit is contained in:
mengxiaolong
2020-09-25 11:31:09 +08:00
parent 853c873986
commit e218ae19d3

View File

@@ -165,27 +165,18 @@ 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: `3秒后将跳转至${thirdName}` message: `即将为您跳转至${thirdName}`
}) })
setTimeout(() => {
let second = 3
const timer = setInterval(() => {
second--
if (second) {
toast.message = `${second}秒后将跳转至${thirdName}`
} else {
clearInterval(timer)
// 手动清除 Toast // 手动清除 Toast
Toast.clear() toast.clear()
if (res.content.redirect) {
this.redirectUrl = res.content.linkUrl this.redirectUrl = res.content.linkUrl
}
}, 1000)
} else { } else {
if (res.content.rightBtnShow && !this.isWeixin) { if (res.content.rightBtnShow && !this.isWeixin) {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
@@ -205,6 +196,7 @@ export default {
this.pdfUrl = this.$assetsUrl + res.content.pdfUrl this.pdfUrl = this.$assetsUrl + res.content.pdfUrl
this.isCanCheck2 = true this.isCanCheck2 = true
} }
}, 3000)
this.loaded = true this.loaded = true
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)