修改错误提示信息;

This commit is contained in:
terrfly 2021-07-27 17:12:42 +08:00
parent 887f6c9b4b
commit 189979a5b7
2 changed files with 8 additions and 8 deletions

View File

@ -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()
})

View File

@ -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>