Commit 96feb027 by 吴娟华

'提交'

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