|
|
@@ -88,8 +88,7 @@
|
|
|
/> -->
|
|
|
<wd-input
|
|
|
v-model="formValue.mobile"
|
|
|
- v-if="cardType == '教师认证'"
|
|
|
- label="手机号"
|
|
|
+ label="手机号"
|
|
|
label-width="100px"
|
|
|
prop="mobile"
|
|
|
clearable
|
|
|
@@ -504,22 +503,22 @@ const submitAddReq = async () => {
|
|
|
const submitEditReq = async () => {
|
|
|
const leng=frontFileList.value.length-1
|
|
|
const leng2=frontFileList.value.length-1
|
|
|
- if (frontFileList.value.length > 0) {
|
|
|
+ // if (frontFileList.value.length > 0) {
|
|
|
|
|
|
- formValue.value.file1 = frontFileList.value[leng];
|
|
|
- } else {
|
|
|
- // 若列表为空,清空file2(可选)
|
|
|
- formValue.value.file1 = '';
|
|
|
- uni.showToast({ title: '请上传身份证正面照片', icon: 'none' });
|
|
|
- }
|
|
|
- if (backFileList.value.length > 0) {
|
|
|
+ // formValue.value.file1 = frontFileList.value[leng];
|
|
|
+ // } else {
|
|
|
+ // // 若列表为空,清空file2(可选)
|
|
|
+ // formValue.value.file1 = '';
|
|
|
+ // uni.showToast({ title: '请上传身份证正面照片', icon: 'none' });
|
|
|
+ // }
|
|
|
+ // if (backFileList.value.length > 0) {
|
|
|
|
|
|
- formValue.value.file2 = backFileList.value[leng2];
|
|
|
- } else {
|
|
|
- // 若列表为空,清空file2(可选)
|
|
|
- formValue.value.file2 = '';
|
|
|
- uni.showToast({ title: '请上传身份证反面照片', icon: 'none' });
|
|
|
- }
|
|
|
+ // formValue.value.file2 = backFileList.value[leng2];
|
|
|
+ // } else {
|
|
|
+ // // 若列表为空,清空file2(可选)
|
|
|
+ // formValue.value.file2 = '';
|
|
|
+ // uni.showToast({ title: '请上传身份证反面照片', icon: 'none' });
|
|
|
+ // }
|
|
|
|
|
|
// 基础数据(必传字段)
|
|
|
const requestData = {
|
|
|
@@ -551,6 +550,12 @@ const submitEditReq = async () => {
|
|
|
})
|
|
|
}, 1500)
|
|
|
}
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ title: res.message,
|
|
|
+ icon: 'err'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//暖心认证
|
|
|
@@ -558,22 +563,22 @@ const submitEditReq = async () => {
|
|
|
const submitAddReqStu = async () => {
|
|
|
const leng=frontFileList.value.length-1
|
|
|
const leng2=frontFileList.value.length-1
|
|
|
- if (frontFileList.value.length > 0) {
|
|
|
+ // if (frontFileList.value.length > 0) {
|
|
|
|
|
|
- formValue.value.file1 = frontFileList.value[leng];
|
|
|
- } else {
|
|
|
- // 若列表为空,清空file2(可选)
|
|
|
- formValue.value.file1 = '';
|
|
|
- uni.showToast({ title: '请上传身份证正面照片', icon: 'none' });
|
|
|
- }
|
|
|
- if (backFileList.value.length > 0) {
|
|
|
+ // formValue.value.file1 = frontFileList.value[leng];
|
|
|
+ // } else {
|
|
|
+ // // 若列表为空,清空file2(可选)
|
|
|
+ // formValue.value.file1 = '';
|
|
|
+ // uni.showToast({ title: '请上传身份证正面照片', icon: 'none' });
|
|
|
+ // }
|
|
|
+ // if (backFileList.value.length > 0) {
|
|
|
|
|
|
- formValue.value.file2 = backFileList.value[leng2];
|
|
|
- } else {
|
|
|
- // 若列表为空,清空file2(可选)
|
|
|
- formValue.value.file2 = '';
|
|
|
- uni.showToast({ title: '请上传身份证反面照片', icon: 'none' });
|
|
|
- }
|
|
|
+ // formValue.value.file2 = backFileList.value[leng2];
|
|
|
+ // } else {
|
|
|
+ // // 若列表为空,清空file2(可选)
|
|
|
+ // formValue.value.file2 = '';
|
|
|
+ // uni.showToast({ title: '请上传身份证反面照片', icon: 'none' });
|
|
|
+ // }
|
|
|
|
|
|
// 基础数据(必传字段)
|
|
|
const requestData = {
|
|
|
@@ -581,7 +586,7 @@ const submitAddReqStu = async () => {
|
|
|
cardNumber: formValue.value.cardNumber,
|
|
|
// college: formValue.value.college,
|
|
|
// instructor: formValue.value.instructor,
|
|
|
- // mobile: formValue.value.mobile,
|
|
|
+ mobile: formValue.value.mobile,
|
|
|
// file1: formValue.value.file1,
|
|
|
// file2: formValue.value.file2
|
|
|
// 先不包含 professor
|
|
|
@@ -592,7 +597,7 @@ const submitAddReqStu = async () => {
|
|
|
method: 'post',
|
|
|
data: formValue.value
|
|
|
})
|
|
|
- // console.log(res)
|
|
|
+ console.log(res,'lll',res.code == 200)
|
|
|
if (res.code == 200) {
|
|
|
uni.showToast({
|
|
|
title: res.message,
|
|
|
@@ -603,6 +608,12 @@ const submitAddReqStu = async () => {
|
|
|
url: '/pages/transportation/transportation'
|
|
|
})
|
|
|
}, 1500)
|
|
|
+ }else{
|
|
|
+ console.log(res,'lll')
|
|
|
+ uni.showToast({
|
|
|
+ title: res.message,
|
|
|
+ icon: 'err'
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -634,7 +645,7 @@ const submitEditReqStu = async () => {
|
|
|
cardNumber: formValue.value.cardNumber,
|
|
|
// college: formValue.value.college,
|
|
|
// instructor: formValue.value.instructor,
|
|
|
- // mobile: formValue.value.mobile,
|
|
|
+ mobile: formValue.value.mobile,
|
|
|
// file1: formValue.value.file1,
|
|
|
// file2: formValue.value.file2
|
|
|
// 先不包含 professor
|