|
@@ -14,7 +14,7 @@
|
|
|
<view>*</view>
|
|
|
<view>资格有效期:</view>
|
|
|
</view>
|
|
|
- <picker @change="buttonChange2"
|
|
|
+ <picker @change="buttonChange2"
|
|
|
:range-key="'name'" :value="id" :range="buttonArray2">
|
|
|
<view class="picker-min-box">
|
|
|
<view>{{buttonArray2[buttonArrayIndex2].name}}</view>
|
|
@@ -57,7 +57,7 @@
|
|
|
<view>申请人:</view>
|
|
|
<input v-model="sysUser.nickName" type="text" placeholder="学生姓名">
|
|
|
</view>
|
|
|
- <view class="user-info-box-min">
|
|
|
+ <view class="user-info-box-min">
|
|
|
<view>*</view>
|
|
|
<view>联系电话:</view>
|
|
|
<input v-model="sysUser.phonenumber" type="text" placeholder="联系电话">
|
|
@@ -83,7 +83,7 @@
|
|
|
<input v-model="sysUser.tutorUserName" @change="tutorUserNameClick()" type="text" placeholder="请输入姓名,最少两个字">
|
|
|
<uni-data-picker disabled=true @change="bindPickerChange" :localdata="tutorUserList" ref='picker'> </uni-data-picker>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
<!-- 老师 -->
|
|
|
<view v-if="subjectData.sysUser.userType == '11'" v-for="(item,index) in subjectData.listTeacher" :key="index">
|
|
@@ -219,9 +219,9 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
-
|
|
|
+
|
|
|
console.log(JSON.parse(decodeURIComponent(option.item)))
|
|
|
-
|
|
|
+
|
|
|
if(option.item){
|
|
|
let newItem = JSON.parse(decodeURIComponent(option.item));
|
|
|
let newObj = {
|
|
@@ -240,15 +240,15 @@
|
|
|
}
|
|
|
},
|
|
|
onShow(){
|
|
|
-
|
|
|
+
|
|
|
this.addTime();
|
|
|
this.clearData();
|
|
|
this.currentDate=this.getdate();
|
|
|
console.log('时间')
|
|
|
console.log(this.currentDate)
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
methods: {
|
|
|
getdate() {
|
|
|
var date = new Date();
|
|
@@ -256,7 +256,7 @@
|
|
|
var year = date.getFullYear();
|
|
|
var month = date.getMonth() + 1;
|
|
|
var strDate = date.getDate();
|
|
|
-
|
|
|
+
|
|
|
if (month >= 1 && month <= 9) {
|
|
|
month = "0" + month;
|
|
|
}
|
|
@@ -268,14 +268,14 @@
|
|
|
},
|
|
|
//清除
|
|
|
clearData(){
|
|
|
-
|
|
|
+
|
|
|
this.tutorUserList=[];
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//导师查询
|
|
|
async tutorUserNameClick(){
|
|
|
let _this=this
|
|
|
-
|
|
|
+
|
|
|
_this.tutorUserList=[]
|
|
|
let obj = {
|
|
|
nickName:this.sysUser.tutorUserName
|
|
@@ -283,16 +283,16 @@
|
|
|
const {data} = await teacherApply(obj)
|
|
|
if(data.code == 200){
|
|
|
console.log(data)
|
|
|
-
|
|
|
+
|
|
|
data.data.forEach(function(item){
|
|
|
_this.tutorUserList.push({text: item.nickName,value:item.userId,})
|
|
|
})
|
|
|
console.log(_this.tutorUserList)
|
|
|
_this.$refs.picker.show()
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
bindPickerChange: function(e) {
|
|
|
let _this=this;
|
|
|
console.log('picker发送选择改变,携带值为', e.detail.value)
|
|
@@ -300,13 +300,13 @@
|
|
|
data.forEach(function(item){
|
|
|
_this.sysUser.tutorUserName=item.text
|
|
|
_this.sysUser.tutorUserId=item.value
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
//时间选择触发-开始
|
|
|
beginDateChange(data){
|
|
|
this.validBeginTime = data.detail.value;
|
|
@@ -514,11 +514,11 @@
|
|
|
let fileTypeArr= item.fileType.split(',')
|
|
|
_this.strArr = [];
|
|
|
fileTypeArr.forEach(function (item){
|
|
|
-
|
|
|
+
|
|
|
if(item=='1'){
|
|
|
_this.strArr.push('pdf')
|
|
|
}else if(item=='2'){
|
|
|
- _this.strArr.push('doc','docx')
|
|
|
+ _this.strArr.push('doc','docx')
|
|
|
}else if(item=='3'){
|
|
|
_this.strArr.push('png','jpg','gif')
|
|
|
}
|
|
@@ -526,7 +526,7 @@
|
|
|
console.log(_this.strArr)
|
|
|
//数组去重
|
|
|
//strArr= [...new Set(strArr)]
|
|
|
-
|
|
|
+
|
|
|
let self = this;
|
|
|
uni.showActionSheet({
|
|
|
itemList: ['上传文件', '上传图片'],
|
|
@@ -546,7 +546,7 @@
|
|
|
});
|
|
|
},
|
|
|
upImg(item) {
|
|
|
-
|
|
|
+
|
|
|
let self = this;
|
|
|
wx.chooseImage({
|
|
|
count: 1,
|
|
@@ -554,7 +554,7 @@
|
|
|
sourceType: ["album", "camera"],
|
|
|
success: function(res) {
|
|
|
console.log(res)
|
|
|
- let text = res.tempFilePaths[0].split('.')
|
|
|
+ let text = res.tempFilePaths[0].split('.')
|
|
|
if(self.strArr.indexOf(text[1])==-1){ uni.showToast({
|
|
|
title: '请上传'+self.strArr.join(',')+'格式文件',
|
|
|
icon:"none",
|
|
@@ -572,7 +572,7 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
let upObj = {
|
|
|
name:self.uploadFileName+'.'+text[1],
|
|
|
path:res.tempFilePaths[0],
|
|
@@ -626,7 +626,7 @@
|
|
|
mask: true
|
|
|
});
|
|
|
uni.uploadFile({
|
|
|
- url: config.base_url+'/base/upload', //仅为示例,非真实的接口地址
|
|
|
+ url: config.base_url+'/base/file/upload', //仅为示例,非真实的接口地址
|
|
|
header:{'Authorization':uni.getStorageSync('token')},
|
|
|
filePath: upObj.path,
|
|
|
name: 'file',
|
|
@@ -738,8 +738,8 @@
|
|
|
this.sysUser.cardNum==null?'':this.sysUser.cardNum;
|
|
|
this.sysUser.grade==null?'':this.sysUser.grade;
|
|
|
this.sysUser.tutorUserName==null?'':this.sysUser.tutorUserName;
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
if(this.infoType){
|
|
|
this.validLength = this.infoData.labSecurityApply.validLength;
|
|
|
for(let i=0;i<self.infoData.listTemp.length;i++){
|
|
@@ -843,7 +843,7 @@
|
|
|
}
|
|
|
>input{
|
|
|
width 460rpx;
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
.picker-title-box{
|
|
|
padding:0 20rpx;
|
|
@@ -859,14 +859,14 @@
|
|
|
line-height:28rpx;
|
|
|
}
|
|
|
view:nth-child(2){
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
view:nth-child(3){
|
|
|
color:#999;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
.newApplication-page{
|
|
|
background #fff
|
|
@@ -918,10 +918,10 @@
|
|
|
}
|
|
|
view:nth-child(1){
|
|
|
color:red;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
view:nth-child(2){
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
view:nth-child(3){
|
|
|
color:#999;
|
|
@@ -968,7 +968,7 @@
|
|
|
font-size:28rpx;
|
|
|
line-height:40rpx;
|
|
|
padding:0 20rpx;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
.picker-up-img-box{
|
|
|
margin:40rpx auto;
|
|
@@ -1083,7 +1083,7 @@
|
|
|
text-align center;
|
|
|
line-height:100rpx;
|
|
|
color:#999;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
.for-box{
|
|
|
width:710rpx;
|