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); savephoto(filePath, 0);
} else if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.back) { } 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; 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 == "女"){ if(father.validPeriod == "女"){
uni.showToast({ uni.showToast({
title: '识别失败', title: '识别失败',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
uping.value = false;
return return
} }
textArray[6] = father.issueAuthority; textArray[6] = father.issueAuthority;
textArray[7] = father.validPeriod; textArray[7] = father.validPeriod;
backImge.value = filePath; backImge.value = filePath;

View File

@ -97,7 +97,8 @@
} from 'vue' } from 'vue'
import { import {
onLoad, onLoad,
onShow onShow,
onHide
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
getOrgNuId, getOrgNuId,
@ -117,6 +118,25 @@
}) })
// console.log("?????",item.value) // 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 // async
const initiatePayment = async () => { const initiatePayment = async () => {
try { try {