refactor(payment): 优化支付结果页面并添加回到首页功能
- 在支付结果页面添加回到首页按钮 - 更新国际化文件,增加回到首页翻译 - 优化签名功能相关页面代码
This commit is contained in:
parent
df597c0328
commit
ee2c01fece
@ -34,7 +34,7 @@ const confirm=async ()=>{
|
|||||||
const res=await signOffline({
|
const res=await signOffline({
|
||||||
userInfo:formData.value,
|
userInfo:formData.value,
|
||||||
signOrder:Number(number.value),
|
signOrder:Number(number.value),
|
||||||
signImgFileData:imgUrl.value
|
signImgFileData:imgUrl.value,
|
||||||
})
|
})
|
||||||
if (res.status===0){
|
if (res.status===0){
|
||||||
router.push('/collectCode/signature/result')
|
router.push('/collectCode/signature/result')
|
||||||
|
@ -72,7 +72,6 @@ const initData= async ()=>{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const nextClick=async ()=>{
|
const nextClick=async ()=>{
|
||||||
console.log('number.value',number.value)
|
|
||||||
//扫号牌
|
//扫号牌
|
||||||
if (number.value==1){
|
if (number.value==1){
|
||||||
if (!isFormComplete(formData.value)){
|
if (!isFormComplete(formData.value)){
|
||||||
@ -91,6 +90,8 @@ const nextClick=async ()=>{
|
|||||||
const res1=await signOffline({
|
const res1=await signOffline({
|
||||||
userInfo:formData.value,
|
userInfo:formData.value,
|
||||||
signOrder:Number(number.value),
|
signOrder:Number(number.value),
|
||||||
|
testReturnHost:window.location.origin,
|
||||||
|
testReturnEndPoint:'/collectCode/signature/protocol',
|
||||||
})
|
})
|
||||||
if (res1.status===0){
|
if (res1.status===0){
|
||||||
window.location.href=res1.data.fddVerifyUrl
|
window.location.href=res1.data.fddVerifyUrl
|
||||||
|
@ -33,7 +33,7 @@ const goHome=()=>{
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-full mt-auto mb-40px">
|
<div class="w-full mt-auto mb-40px">
|
||||||
<van-button type="primary" block @click="goHome">
|
<van-button type="primary" block @click="goHome">
|
||||||
{{ t('payment.backToHome') }}
|
{{ t('payment.result.backToHome') }}
|
||||||
</van-button>
|
</van-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -236,7 +236,8 @@
|
|||||||
"fail": "支付失败",
|
"fail": "支付失败",
|
||||||
"unpaid": "未支付",
|
"unpaid": "未支付",
|
||||||
"expired": "支付已过期",
|
"expired": "支付已过期",
|
||||||
"partial": "部分支付"
|
"partial": "部分支付",
|
||||||
|
"backToHome": "回到首页"
|
||||||
},
|
},
|
||||||
"text1": "支付结果",
|
"text1": "支付结果",
|
||||||
"text2": "支付成功",
|
"text2": "支付成功",
|
||||||
|
Loading…
Reference in New Issue
Block a user