Commit a0d02b4c by 杨北旺

开通页跳过加上app跳转方法

1 parent 049ebc8b
...@@ -161,7 +161,6 @@ export default { ...@@ -161,7 +161,6 @@ export default {
}, },
getCardInfo() { getCardInfo() {
this.openingStatus = true; this.openingStatus = true;
let temp = this.getLocalStorage('whereInOpen')
equity.getCardInfo().then(res => { equity.getCardInfo().then(res => {
this.hideLoading() this.hideLoading()
let { code ,data} = res; let { code ,data} = res;
...@@ -169,6 +168,7 @@ export default { ...@@ -169,6 +168,7 @@ export default {
this.openingStatus = false; this.openingStatus = false;
this.isOpen = 1 this.isOpen = 1
clearInterval(this.timer); clearInterval(this.timer);
let temp = this.getLocalStorage('whereInOpen')
if(temp=='goods'){ if(temp=='goods'){
window.vm.$router.go(-1) window.vm.$router.go(-1)
}else{ }else{
...@@ -184,8 +184,26 @@ export default { ...@@ -184,8 +184,26 @@ export default {
}) })
}, },
jumpPast() { jumpPast() {
const ua = navigator.userAgent.toLowerCase()
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
window.vm.$router.replace({ name: 'equity.index' }); window.vm.$router.replace({ name: 'equity.index' });
this.openingStatus = false; this.openingStatus = false;
}else{//app端
let temp = this.getLocalStorage('whereInOpen')
if(temp=='goods'){//商品页
if (this.checkPhoneType() == 'ios') {
window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({ type: 7, homePage: 'equity' }))
} else {
window.myjs.jumpNativeApp(JSON.stringify({ type: 7, homePage: 'equity' }))
}
}else{//开通页
if (this.checkPhoneType() == 'ios') {
window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({ type: 1, reloadView: 'equity' }))
} else {
window.myjs.jumpNativeApp(JSON.stringify({ type: 1, reloadView: 'equity' }))
}
}
}
}, },
jumpAgree() { jumpAgree() {
let { sessionId } = this.$store.state; let { sessionId } = this.$store.state;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!