修改错误提示信息;
This commit is contained in:
parent
887f6c9b4b
commit
189979a5b7
|
|
@ -35,15 +35,15 @@ router.beforeEach((to, from, next) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!config.cacheToken) {
|
if(!config.cacheToken) {
|
||||||
next({ name: config.errorPageRouteName, params: { errInfo: "token参数有误!" } })
|
next({ name: config.errorPageRouteName, params: { errInfo: "请通过二维码进入支付页面!" } })
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取不到支付类型, 需要跳转到错误页面
|
//获取不到支付类型, 需要跳转到错误页面
|
||||||
if( ! wayCode.getPayWay() ) {
|
if( ! wayCode.getPayWay() ) {
|
||||||
next({ name: config.errorPageRouteName, params: { errInfo: "不支持的支付方式!" } })
|
next({ name: config.errorPageRouteName, params: { errInfo: "不支持的支付方式! 请在微信/支付宝/银联应用内扫码进入!" } })
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
next()
|
next()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<img src="../assets/icon/error.svg" alt="">
|
<img src="../assets/icon/error.svg" alt="">
|
||||||
<p>支付失败,请重新扫码进入!</p>
|
<!-- <p>支付失败,请重新扫码进入!</p>-->
|
||||||
<p>错误: {{msg}}</p>
|
<p>错误: {{msg}}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -20,7 +20,7 @@ export default {
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.msg = this.$route.params.errInfo
|
this.msg = this.$route.params.errInfo || '请重新扫码进入!'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue