This commit is contained in:
wangweidong 2026-02-28 15:26:51 +08:00
parent 1e85449495
commit 3d63859b7a
2 changed files with 26 additions and 2 deletions

View File

@ -374,15 +374,19 @@
savephoto(filePath, 0);
} else if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.back) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data;
console.log(father.validPeriod)
let regex = /^\d{4}.\d{2}.\d{2}$/;
console.log(regex.test(father.validPeriod))
if(father.validPeriod == "女"){
uni.showToast({
title: '识别失败',
icon: 'none',
duration: 2000
})
uping.value = false;
return
}
textArray[6] = father.issueAuthority;
textArray[7] = father.validPeriod;
backImge.value = filePath;

View File

@ -97,7 +97,8 @@
} from 'vue'
import {
onLoad,
onShow
onShow,
onHide
} from '@dcloudio/uni-app';
import {
getOrgNuId,
@ -117,6 +118,25 @@
})
// console.log("?????",item.value)
})
const tother = ref(0)
onShow(()=>{
if(tother.value == 1){
uni.navigateBack({delta:2})
}
})
onHide(()=>{
tother.value = 1;
uni.request({
url: payurl.value+'/api/nuInfo/cancelBind',
method: 'POST',
header: {
'Content-Type': 'application/json'
},
data: {
nuId:item.value.nuId
}
});
})
// async
const initiatePayment = async () => {
try {