|
|
|
@ -30,11 +30,25 @@ |
|
|
|
<view class="inputView marginT18"> |
|
|
|
<text class="colorBlack font24 verticalM">入学时间</text> |
|
|
|
<!-- <input placeholder="请选择入学时间" class="colorBlack font24 inlineBlock verticalM p0p50" type="number" v-model="studInfo.start_date" /> --> |
|
|
|
<view class="colorBlack font24 inlineBlock verticalM p0p50" style="height: 100%;width: 400upx;"> |
|
|
|
<view class="colorBlack font24 inlineBlock verticalM p0p50" style="height: 100%;width: 360upx;"> |
|
|
|
<uni-datetime-picker type="date" :clear-icon="false" v-model="studInfo.start_date" @maskClick="maskClick" |
|
|
|
@change="changeDate" placeholder="请选择" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="inputView marginT18"> |
|
|
|
<text class="colorBlack font24 verticalM">联系电话</text> |
|
|
|
<input placeholder="请输入您的联系电话" class="colorBlack font24 inlineBlock verticalM p0p50" v-model="studInfo.mobile" /> |
|
|
|
</view> |
|
|
|
<view class="inputView marginT18" style="display: flex;align-items: center;background: #fff;"> |
|
|
|
<view class="inputView"> |
|
|
|
<text class="colorBlack font24 verticalM">手机验证码</text> |
|
|
|
<input placeholder="请输入验证码" class="colorBlack font24 inlineBlock verticalM p0p50" |
|
|
|
v-model="studInfo.code" style="width:190upx;" /> |
|
|
|
</view> |
|
|
|
<view class="colorBlack font24 verticalM marginL10" |
|
|
|
style="background: #fafafa;border-radius: 10rpx;line-height: 83rpx;padding: 0px 10px;flex-shrink: 0;" |
|
|
|
@click="getCode" >{{codeBtnText}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -98,10 +112,13 @@ export default { |
|
|
|
userInfo: {}, |
|
|
|
studInfo: { |
|
|
|
start_date: '', |
|
|
|
mobile:'', |
|
|
|
code:'', |
|
|
|
certificate_img: '', |
|
|
|
id: null |
|
|
|
}, |
|
|
|
id: null |
|
|
|
id: null, |
|
|
|
codeBtnText: '获取验证码', |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -154,7 +171,12 @@ export default { |
|
|
|
studInfo: res.data |
|
|
|
}) |
|
|
|
console.log(_this.studInfo) |
|
|
|
}); |
|
|
|
}, (err)=>{ |
|
|
|
// console.log(err.data.message); |
|
|
|
uni.navigateBack({ |
|
|
|
delta: 1 |
|
|
|
}) |
|
|
|
}); |
|
|
|
}, |
|
|
|
setInfo() { |
|
|
|
let _this = this; |
|
|
|
@ -167,6 +189,8 @@ export default { |
|
|
|
department_name: _this.studInfo.department_name, |
|
|
|
code: _this.studInfo.code, |
|
|
|
start_date: _this.studInfo.start_date, |
|
|
|
mobile: _this.studInfo.mobile, |
|
|
|
code: _this.studInfo.code, |
|
|
|
certificate_img: _this.studInfo.img, |
|
|
|
id: _this.studInfo.id, |
|
|
|
}; |
|
|
|
@ -231,6 +255,7 @@ export default { |
|
|
|
}, 2000) |
|
|
|
} |
|
|
|
}, (err)=>{ |
|
|
|
// console.log(err.data.message); |
|
|
|
if(err.data.message=='认证已成功,请勿重复申请认证'){ |
|
|
|
uni.navigateBack({ |
|
|
|
delta: 1 |
|
|
|
@ -328,6 +353,39 @@ export default { |
|
|
|
}, |
|
|
|
maskClick(){ |
|
|
|
|
|
|
|
}, |
|
|
|
// 获取验证码 |
|
|
|
getCode(){ |
|
|
|
if(this.codeBtnText!='获取验证码'){ |
|
|
|
return; |
|
|
|
} |
|
|
|
let _this = this; |
|
|
|
if (_this.studInfo.mobile == '' || _this.studInfo.mobile.length !== 11) { |
|
|
|
uni.showToast({ |
|
|
|
icon: 'none', |
|
|
|
title: '请输入正确的手机号', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
let data = { |
|
|
|
phone: _this.studInfo.mobile, |
|
|
|
type: 4, |
|
|
|
is_verifycode: 1 |
|
|
|
}; |
|
|
|
App._post_form('&do=PIN', data, res => { |
|
|
|
let timer_num = 60; |
|
|
|
let timeClock = setInterval(function() { |
|
|
|
timer_num--; |
|
|
|
_this.codeBtnText = timer_num + 's后重试'; |
|
|
|
// _this.timeCount = timer_num; |
|
|
|
if (timer_num == 0) { |
|
|
|
clearInterval(timeClock); |
|
|
|
_this.codeBtnText='获取验证码'; |
|
|
|
} |
|
|
|
}, 1000); |
|
|
|
// _this.getSmsCode = res.data.code; |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
@ -360,7 +418,7 @@ export default { |
|
|
|
} |
|
|
|
.informationView { |
|
|
|
width: 690upx; |
|
|
|
height: 600upx; |
|
|
|
height: 790upx; |
|
|
|
background: rgba(255, 255, 255, 1); |
|
|
|
border-radius: 10upx; |
|
|
|
margin-top: 10px!important; |
|
|
|
@ -417,7 +475,7 @@ export default { |
|
|
|
> text { |
|
|
|
display: inline-block; |
|
|
|
line-height: 83upx; |
|
|
|
width: 126upx; |
|
|
|
width: 160upx; |
|
|
|
text-align: right; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
@ -430,7 +488,7 @@ export default { |
|
|
|
} |
|
|
|
> input { |
|
|
|
height: 100%; |
|
|
|
width: 400upx; |
|
|
|
width: 365upx; |
|
|
|
} |
|
|
|
} |
|
|
|
.marginT18 { |
|
|
|
|