|
|
@ -43,7 +43,7 @@ |
|
|
<view class="inputView"> |
|
|
<view class="inputView"> |
|
|
<text class="colorBlack font24 verticalM">手机验证码</text> |
|
|
<text class="colorBlack font24 verticalM">手机验证码</text> |
|
|
<input placeholder="请输入验证码" class="colorBlack font24 inlineBlock verticalM p0p50" |
|
|
<input placeholder="请输入验证码" class="colorBlack font24 inlineBlock verticalM p0p50" |
|
|
v-model="studInfo.code" style="width:190upx;" /> |
|
|
v-model="studInfo.sms_code" style="width:190upx;" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="colorBlack font24 verticalM marginL10" |
|
|
<view class="colorBlack font24 verticalM marginL10" |
|
|
style="background: #fafafa;border-radius: 10rpx;line-height: 83rpx;padding: 0px 10px;flex-shrink: 0;" |
|
|
style="background: #fafafa;border-radius: 10rpx;line-height: 83rpx;padding: 0px 10px;flex-shrink: 0;" |
|
|
@ -58,13 +58,17 @@ |
|
|
<view class="p30"> |
|
|
<view class="p30"> |
|
|
<view> |
|
|
<view> |
|
|
<view class="line inlineBlock verticalM"></view> |
|
|
<view class="line inlineBlock verticalM"></view> |
|
|
<text class="colorBlack font28 verticalM marginL10">学生证件</text> |
|
|
<text style="color: #f00;font-size: 12px;vertical-align: bottom;margin-left: 15rpx;">*</text> |
|
|
|
|
|
<text class="colorBlack font28 verticalM marginL15">学生证件</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="marginT29 flex"> |
|
|
<view class="marginT29 flex"> |
|
|
<view class="uploadButton inlineBlock textC" @click="uploadFiles()" v-if="studInfo.certificate_img == '' || studInfo.certificate_img == undefined"> |
|
|
<view class="uploadButton inlineBlock textC" @click="uploadFiles()" v-if="studInfo.certificate_img == '' || studInfo.certificate_img == undefined"> |
|
|
<image :src="sfzZ" class="upLoadImg marginT30auto"></image> |
|
|
<image :src="imageRootNew+'mb-plus.png'" class="upLoadImg"></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="inlineBlock textC" v-else @click="uploadFiles(1)" style="position: relative;"> |
|
|
|
|
|
<image :src="studInfo.certificate_img" class="imageHave" mode="aspectFit"></image> |
|
|
|
|
|
<image :src="imgfixUrls + 'merchant/close.png'" class="close" @click.stop="closePreview()" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="uploadButton inlineBlock textC" v-else @click="uploadFiles(1)"><image :src="studInfo.certificate_img" class="imageHave"></image></view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -111,12 +115,17 @@ export default { |
|
|
buttonColor: 'rgba(255,68,68,1)', |
|
|
buttonColor: 'rgba(255,68,68,1)', |
|
|
userInfo: {}, |
|
|
userInfo: {}, |
|
|
studInfo: { |
|
|
studInfo: { |
|
|
|
|
|
name: '', |
|
|
|
|
|
school_name: '', |
|
|
|
|
|
department_name: '', |
|
|
|
|
|
code: '', |
|
|
start_date: '', |
|
|
start_date: '', |
|
|
mobile:'', |
|
|
mobile: '', |
|
|
code:'', |
|
|
sms_code: '', |
|
|
certificate_img: '', |
|
|
certificate_img: '', |
|
|
id: null |
|
|
id: '', |
|
|
}, |
|
|
}, |
|
|
|
|
|
certificate_img: '', |
|
|
id: null, |
|
|
id: null, |
|
|
codeBtnText: '获取验证码', |
|
|
codeBtnText: '获取验证码', |
|
|
}; |
|
|
}; |
|
|
@ -170,28 +179,26 @@ export default { |
|
|
_this.setData({ |
|
|
_this.setData({ |
|
|
studInfo: res.data |
|
|
studInfo: res.data |
|
|
}) |
|
|
}) |
|
|
|
|
|
_this.certificate_img = res.data.certificate_img; |
|
|
console.log(_this.studInfo) |
|
|
console.log(_this.studInfo) |
|
|
}, (err)=>{ |
|
|
}, (err)=>{ |
|
|
// console.log(err.data.message); |
|
|
// console.log(err.data.message); |
|
|
uni.navigateBack({ |
|
|
uni.navigateBack({ |
|
|
delta: 1 |
|
|
delta: 1 |
|
|
}) |
|
|
}) |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
setInfo() { |
|
|
setInfo() { |
|
|
let _this = this; |
|
|
let _this = this; |
|
|
let data = { |
|
|
let data = { |
|
|
// type: 1, |
|
|
|
|
|
// sid: _this.id, |
|
|
|
|
|
// operation: 'set', |
|
|
|
|
|
name: _this.studInfo.name, |
|
|
name: _this.studInfo.name, |
|
|
school_name: _this.studInfo.school_name, |
|
|
school_name: _this.studInfo.school_name, |
|
|
department_name: _this.studInfo.department_name, |
|
|
department_name: _this.studInfo.department_name, |
|
|
code: _this.studInfo.code, |
|
|
code: _this.studInfo.code, |
|
|
start_date: _this.studInfo.start_date, |
|
|
start_date: _this.studInfo.start_date, |
|
|
mobile: _this.studInfo.mobile, |
|
|
mobile: _this.studInfo.mobile, |
|
|
code: _this.studInfo.code, |
|
|
sms_code: _this.studInfo.sms_code, |
|
|
certificate_img: _this.studInfo.img, |
|
|
certificate_img: _this.certificate_img, |
|
|
id: _this.studInfo.id, |
|
|
id: _this.studInfo.id, |
|
|
}; |
|
|
}; |
|
|
if(_this.studInfo.name==''){ |
|
|
if(_this.studInfo.name==''){ |
|
|
@ -234,7 +241,25 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return ; |
|
|
return ; |
|
|
} |
|
|
} |
|
|
if(_this.studInfo.img==''){ |
|
|
if(_this.studInfo.mobile==''){ |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
icon:'none', |
|
|
|
|
|
title: '联系电话不能为空', |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}); |
|
|
|
|
|
return ; |
|
|
|
|
|
} |
|
|
|
|
|
if(_this.studInfo.sms_code==''){ |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
icon:'none', |
|
|
|
|
|
title: '验证码不能为空', |
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
}); |
|
|
|
|
|
return ; |
|
|
|
|
|
} |
|
|
|
|
|
// console.log('img完整路径:'+_this.studInfo.certificate_img, '----------') |
|
|
|
|
|
// console.log('image不完整路径:'+_this.certificate_img, '----------') |
|
|
|
|
|
if(data.certificate_img==''){ |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
icon:'none', |
|
|
icon:'none', |
|
|
title: '请上传证件', |
|
|
title: '请上传证件', |
|
|
@ -256,7 +281,8 @@ export default { |
|
|
} |
|
|
} |
|
|
}, (err)=>{ |
|
|
}, (err)=>{ |
|
|
// console.log(err.data.message); |
|
|
// console.log(err.data.message); |
|
|
if(err.data.message=='认证已成功,请勿重复申请认证'){ |
|
|
if(err.data.message=='认证已成功,请勿重复申请认证' |
|
|
|
|
|
|| err.data.message.indexOf('认证申请失败')!==-1){ |
|
|
uni.navigateBack({ |
|
|
uni.navigateBack({ |
|
|
delta: 1 |
|
|
delta: 1 |
|
|
}) |
|
|
}) |
|
|
@ -328,9 +354,8 @@ export default { |
|
|
let result = await App._MYupLoad(res.tempFilePaths[i]); |
|
|
let result = await App._MYupLoad(res.tempFilePaths[i]); |
|
|
console.log(result) |
|
|
console.log(result) |
|
|
_this.studInfo.certificate_img = result.data.img; |
|
|
_this.studInfo.certificate_img = result.data.img; |
|
|
_this.studInfo.img = result.data.image; |
|
|
_this.certificate_img = result.data.image; |
|
|
console.log(_this.studInfo.certificate_img, _this.studInfo.img, '1222') |
|
|
console.log('img完整路径:'+result.data.img, 'image不完整路径:'+result.data.image, '12233'); |
|
|
console.log(result.data.img, result.data.image, '12233'); |
|
|
|
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: result.message |
|
|
title: result.message |
|
|
}) |
|
|
}) |
|
|
@ -386,6 +411,10 @@ export default { |
|
|
}, 1000); |
|
|
}, 1000); |
|
|
// _this.getSmsCode = res.data.code; |
|
|
// _this.getSmsCode = res.data.code; |
|
|
}); |
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
closePreview(){ |
|
|
|
|
|
this.studInfo.certificate_img = ''; |
|
|
|
|
|
this.certificate_img = ''; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
@ -455,6 +484,9 @@ export default { |
|
|
.marginL10 { |
|
|
.marginL10 { |
|
|
margin-left: 10upx; |
|
|
margin-left: 10upx; |
|
|
} |
|
|
} |
|
|
|
|
|
.marginL15 { |
|
|
|
|
|
margin-left: 15upx; |
|
|
|
|
|
} |
|
|
.p30 { |
|
|
.p30 { |
|
|
padding: 30upx; |
|
|
padding: 30upx; |
|
|
} |
|
|
} |
|
|
@ -505,27 +537,28 @@ export default { |
|
|
} |
|
|
} |
|
|
.uploadView { |
|
|
.uploadView { |
|
|
width: 690upx; |
|
|
width: 690upx; |
|
|
height: 379upx; |
|
|
// height: 379upx; |
|
|
background: rgba(255, 255, 255, 1); |
|
|
background: rgba(255, 255, 255, 1); |
|
|
border-radius: 10upx; |
|
|
border-radius: 10upx; |
|
|
} |
|
|
} |
|
|
.uploadButton { |
|
|
.uploadButton { |
|
|
width: 290upx; |
|
|
width: 160upx; |
|
|
height: 200upx; |
|
|
height: 160upx; |
|
|
background: rgba(248, 248, 248, 1); |
|
|
background: rgba(248, 248, 248, 1); |
|
|
border-radius: 10upx; |
|
|
border-radius: 10upx; |
|
|
|
|
|
border: 1px solid #e0e0e0; |
|
|
} |
|
|
} |
|
|
.imageHave { |
|
|
.imageHave { |
|
|
width: 290upx; |
|
|
width:630upx; |
|
|
height: 263upx; |
|
|
|
|
|
} |
|
|
} |
|
|
.flex { |
|
|
.flex { |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
justify-content: space-between; |
|
|
} |
|
|
} |
|
|
.upLoadImg { |
|
|
.upLoadImg { |
|
|
width: 212upx; |
|
|
width: 48upx; |
|
|
height: 141upx; |
|
|
height: 48upx; |
|
|
|
|
|
margin: 56upx auto; |
|
|
} |
|
|
} |
|
|
.color999999 { |
|
|
.color999999 { |
|
|
color: rgba(153, 153, 153, 1); |
|
|
color: rgba(153, 153, 153, 1); |
|
|
@ -564,7 +597,22 @@ export default { |
|
|
/deep/ .uni-date__x-input{ |
|
|
/deep/ .uni-date__x-input{ |
|
|
line-height: 40px; |
|
|
line-height: 40px; |
|
|
} |
|
|
} |
|
|
.icon-calendar:before { |
|
|
.inputView /deep/ text.uni-icons{ |
|
|
|
|
|
// vertical-align: bottom; |
|
|
|
|
|
// vertical-align: -webkit-baseline-middle; |
|
|
|
|
|
} |
|
|
|
|
|
/deep/ .uni-date-x .icon-calendar { |
|
|
|
|
|
padding-top: 5px; |
|
|
|
|
|
} |
|
|
|
|
|
.inputView /deep/ .icon-calendar:before{ |
|
|
content: none; |
|
|
content: none; |
|
|
} |
|
|
} |
|
|
|
|
|
.close { |
|
|
|
|
|
width: 32upx !important; |
|
|
|
|
|
height: 32upx !important; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
right: 10px; |
|
|
|
|
|
top: 10px; |
|
|
|
|
|
z-index: 30; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|