refactor(payment): 优化支付结果页面并添加回到首页功能

- 在支付结果页面添加回到首页按钮
- 更新国际化文件,增加回到首页翻译
- 优化签名功能相关页面代码
This commit is contained in:
xingyy 2025-02-27 09:46:51 +08:00
parent df597c0328
commit ee2c01fece
4 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@ const confirm=async ()=>{
const res=await signOffline({
userInfo:formData.value,
signOrder:Number(number.value),
signImgFileData:imgUrl.value
signImgFileData:imgUrl.value,
})
if (res.status===0){
router.push('/collectCode/signature/result')

View File

@ -72,7 +72,6 @@ const initData= async ()=>{
}
}
const nextClick=async ()=>{
console.log('number.value',number.value)
//
if (number.value==1){
if (!isFormComplete(formData.value)){
@ -91,6 +90,8 @@ const nextClick=async ()=>{
const res1=await signOffline({
userInfo:formData.value,
signOrder:Number(number.value),
testReturnHost:window.location.origin,
testReturnEndPoint:'/collectCode/signature/protocol',
})
if (res1.status===0){
window.location.href=res1.data.fddVerifyUrl

View File

@ -33,7 +33,7 @@ const goHome=()=>{
</div>
<div class="w-full mt-auto mb-40px">
<van-button type="primary" block @click="goHome">
{{ t('payment.backToHome') }}
{{ t('payment.result.backToHome') }}
</van-button>
</div>
</div>

View File

@ -236,7 +236,8 @@
"fail": "支付失败",
"unpaid": "未支付",
"expired": "支付已过期",
"partial": "部分支付"
"partial": "部分支付",
"backToHome": "回到首页"
},
"text1": "支付结果",
"text2": "支付成功",