This commit is contained in:
parent
3d63859b7a
commit
49a0bd992b
|
|
@ -374,8 +374,8 @@
|
||||||
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;
|
||||||
let regex = /^\d{4}.\d{2}.\d{2}$/;
|
let regex = /[\u4E00-\u9FA5\uF900-\uFA2D]{1,}/;
|
||||||
console.log(regex.test(father.validPeriod))
|
console.log(regex.test(father.validPeriod),father.validPeriod)
|
||||||
|
|
||||||
if(father.validPeriod == "女"){
|
if(father.validPeriod == "女"){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -383,7 +383,7 @@
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
})
|
})
|
||||||
uping.value = false;
|
uping.value = true;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,11 +119,11 @@
|
||||||
// console.log("?????",item.value)
|
// console.log("?????",item.value)
|
||||||
})
|
})
|
||||||
const tother = ref(0)
|
const tother = ref(0)
|
||||||
onShow(()=>{
|
// onShow(()=>{
|
||||||
if(tother.value == 1){
|
// if(tother.value == 1){
|
||||||
uni.navigateBack({delta:2})
|
// uni.navigateBack({delta:2})
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
onHide(()=>{
|
onHide(()=>{
|
||||||
tother.value = 1;
|
tother.value = 1;
|
||||||
uni.request({
|
uni.request({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue