Commit 96feb027 by 吴娟华

'提交'

1 parent c66d28d3
......@@ -36,6 +36,8 @@ export default {
created() {},
mounted() {
// window.vConsole = new VConsole()
//解决ios下history.back后不刷新
var isPageHide = false;
window.addEventListener("pageshow", function() {
if (isPageHide) {
......
......@@ -19,7 +19,7 @@ export default {
let route = state.lastPath.replace('.', '/')
if (route == 'common/marketing') {
route = ''
history.back()
history.back()//去掉历史记录,重复页面
//router.replace({ name: 'common.marketing' })
//window.location.replace(`${window.location.href.split('?')[0]}#/${route}`)
return
......
......@@ -207,19 +207,22 @@ export default {
const urlObj = JSON.parse(sessionStorage.getItem('URL_PARAM'))
let URLParams = {}
if(urlObj && urlObj.merchantId) {
equity.getFissionInfo({merchantId: urlObj.merchantId}).then(res => {
let { code, data, message } = res
this.hideLoading()
if (code == 0) {
this.inviteUrl = data.posterUrl
this.jiangliUrl = data.commissionUrl
} else {
this.showToast(message)
}
})
URLParams.merchantId = urlObj.merchantId
}
equity.getFissionInfo(URLParams).then(res => {
let { code, data, message } = res
this.hideLoading()
if (code == 0) {
this.inviteUrl = data.posterUrl
this.jiangliUrl = data.commissionUrl
} else {
this.showToast(message)
}
})
equity.getOrderCount().then(res => {
let { code, data, message } = res
if (code == 0) {
......@@ -251,10 +254,18 @@ export default {
this.openWindows('https://www.wjx.cn/m/89882107.aspx')
},
jumpJiangli() {
this.jiangliUrl && this.openWindows(this.jiangliUrl)
if(this.jiangliUrl) {
this.openWindows(this.jiangliUrl)
}else {
this.showToast('尚未配置活动参数')
}
},
jumpInvite() {
this.inviteUrl && this.openWindows(this.jiangliUrl)
if(this.inviteUrl) {
this.openWindows(this.inviteUrl)
}else {
this.showToast('尚未配置活动参数')
}
},
willComeDialog() {
this.showToast('即将上线,敬请期待')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!