|
|
|
@ -431,14 +431,14 @@ |
|
|
|
|
<view v-else class="tiptext"> |
|
|
|
|
培训班代号由校企合作老师统一发送,请联系培训老师 |
|
|
|
|
</view> |
|
|
|
|
<u-form-item prop="homeCollege"> |
|
|
|
|
<!-- <u-form-item prop="homeCollege"> |
|
|
|
|
<view class="rowitem"> |
|
|
|
|
<view class="rowitemxing"> |
|
|
|
|
* |
|
|
|
|
</view> |
|
|
|
|
<u-input v-model="form.homeCollege" placeholder="请输入您的学院名称"></u-input> |
|
|
|
|
</view> |
|
|
|
|
</u-form-item> |
|
|
|
|
</u-form-item> --> |
|
|
|
|
<u-form-item prop="majorName"> |
|
|
|
|
<view class="rowitem"> |
|
|
|
|
<view class="rowitemxing"> |
|
|
|
@ -458,11 +458,27 @@ |
|
|
|
|
<u-form-item prop="studentCode"> |
|
|
|
|
<view class="rowitem"> |
|
|
|
|
<view class="rowitemxing"> |
|
|
|
|
|
|
|
|
|
* |
|
|
|
|
</view> |
|
|
|
|
<u-input v-model="form.studentCode" placeholder="请输入您的学号"></u-input> |
|
|
|
|
</view> |
|
|
|
|
</u-form-item> |
|
|
|
|
<u-form-item prop="counsellor"> |
|
|
|
|
<view class="rowitem"> |
|
|
|
|
<view class="rowitemxing"> |
|
|
|
|
* |
|
|
|
|
</view> |
|
|
|
|
<u-input v-model="form.counsellor" placeholder="请输入辅导员姓名"></u-input> |
|
|
|
|
</view> |
|
|
|
|
</u-form-item> |
|
|
|
|
<u-form-item prop="counsellorTel"> |
|
|
|
|
<view class="rowitem"> |
|
|
|
|
<view class="rowitemxing"> |
|
|
|
|
* |
|
|
|
|
</view> |
|
|
|
|
<u-input v-model="form.counsellorTel" placeholder="请输入辅导员联系方式"></u-input> |
|
|
|
|
</view> |
|
|
|
|
</u-form-item> |
|
|
|
|
</u-form> |
|
|
|
|
</view> |
|
|
|
|
<!-- 按钮 --> |
|
|
|
@ -558,6 +574,13 @@ |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
const phoneCheck = (rule, value, callback) => { |
|
|
|
|
if (!/^1[34578]\d{9}$/.test(value)) { |
|
|
|
|
callback(new Error('请输入正确的手机号码!')) |
|
|
|
|
} else { |
|
|
|
|
callback() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return { |
|
|
|
|
flag: true, |
|
|
|
|
accessToken: null, |
|
|
|
@ -779,9 +802,9 @@ |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
homeCollege: [{ |
|
|
|
|
studentCode: [{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请输入您的学院名称', |
|
|
|
|
message: '请输入您的学号', |
|
|
|
|
trigger: ['blur'], |
|
|
|
|
}], |
|
|
|
|
majorName: [{ |
|
|
|
@ -793,7 +816,21 @@ |
|
|
|
|
required: true, |
|
|
|
|
message: '请输入您的姓名', |
|
|
|
|
trigger: ['blur'], |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
counsellor: [{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请输入辅导员姓名', |
|
|
|
|
trigger: ['blur'], |
|
|
|
|
}], |
|
|
|
|
counsellorTel: [{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请输入辅导员手机号', |
|
|
|
|
trigger: ['blur'], |
|
|
|
|
},{ |
|
|
|
|
message: '请输入正确的手机号码', |
|
|
|
|
validator: phoneCheck, |
|
|
|
|
trigger: ['blur'], |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
// 评测班弹窗 |
|
|
|
|
tips: '', |
|
|
|
@ -975,7 +1012,7 @@ |
|
|
|
|
// 在线报名 |
|
|
|
|
gobaomingFn() { |
|
|
|
|
uni.pageScrollTo({ |
|
|
|
|
scrollTop: '590' |
|
|
|
|
scrollTop: '2000' |
|
|
|
|
// selector:'.titletopt' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
@ -1199,11 +1236,13 @@ |
|
|
|
|
let data = { |
|
|
|
|
trainClassCode: this.form.trainClassCode, |
|
|
|
|
mobile: this.wxUserInfo.phonenumber, |
|
|
|
|
homeCollege: this.form.homeCollege, |
|
|
|
|
// homeCollege: this.form.homeCollege, |
|
|
|
|
majorName: this.form.majorName, |
|
|
|
|
studentName: this.form.studentName, |
|
|
|
|
studentCode: this.form.studentCode, |
|
|
|
|
trainClassId, |
|
|
|
|
counsellor: this.form.counsellor, |
|
|
|
|
counsellorTel: this.form.counsellorTel, |
|
|
|
|
} |
|
|
|
|
this.http.quickPost(`/train/training/apply`, data, true).then(res => { |
|
|
|
|
if (res.data.data.code == 200) { |
|
|
|
|