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