|
@@ -260,7 +260,7 @@
|
|
txt: val
|
|
txt: val
|
|
}
|
|
}
|
|
this.$request('/selectLikeMajors', "get", data).then(res => {
|
|
this.$request('/selectLikeMajors', "get", data).then(res => {
|
|
- console.log('模糊搜索专业', res);
|
|
|
|
|
|
+ // console.log('模糊搜索专业', res);
|
|
this.majorList = res[0]
|
|
this.majorList = res[0]
|
|
})
|
|
})
|
|
// this.selectMajor(val)
|
|
// this.selectMajor(val)
|
|
@@ -272,7 +272,7 @@
|
|
this.$request('/selectLikeColleges', "get", {
|
|
this.$request('/selectLikeColleges', "get", {
|
|
txt: val
|
|
txt: val
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
this.colleges = res[0]
|
|
this.colleges = res[0]
|
|
})
|
|
})
|
|
// this.selectMajor(val)
|
|
// this.selectMajor(val)
|
|
@@ -280,7 +280,7 @@
|
|
},
|
|
},
|
|
inpTxt: {
|
|
inpTxt: {
|
|
handler(val) {
|
|
handler(val) {
|
|
- console.log('val', val);
|
|
|
|
|
|
+ // console.log('val', val);
|
|
this.selectMajor(val)
|
|
this.selectMajor(val)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -403,12 +403,12 @@
|
|
},
|
|
},
|
|
// 根据选择的学校来进行显示专业
|
|
// 根据选择的学校来进行显示专业
|
|
selectMajor(e) {
|
|
selectMajor(e) {
|
|
- console.log('根据选择的学院来进行显示专业', e);
|
|
|
|
|
|
+ // console.log('根据选择的学院来进行显示专业', e);
|
|
let data = {
|
|
let data = {
|
|
mid: e
|
|
mid: e
|
|
}
|
|
}
|
|
this.$request('/selectMajors', "get", data).then(res => {
|
|
this.$request('/selectMajors', "get", data).then(res => {
|
|
- console.log('显示专业列表', res);
|
|
|
|
|
|
+ // console.log('显示专业列表', res);
|
|
// if (res[0].length === 0) {
|
|
// if (res[0].length === 0) {
|
|
// this.majorList[0] = {
|
|
// this.majorList[0] = {
|
|
// name: '此学校没有专业分类哦'
|
|
// name: '此学校没有专业分类哦'
|
|
@@ -427,7 +427,7 @@
|
|
} = e.target
|
|
} = e.target
|
|
// console.log(value);
|
|
// console.log(value);
|
|
const newValue = value.replace(/\s*/g, '') // 只允许输入数字
|
|
const newValue = value.replace(/\s*/g, '') // 只允许输入数字
|
|
- console.log(newValue);
|
|
|
|
|
|
+ // console.log(newValue);
|
|
|
|
|
|
// if (newValue.length <= 11) {
|
|
// if (newValue.length <= 11) {
|
|
this.userData.tel = newValue
|
|
this.userData.tel = newValue
|
|
@@ -442,7 +442,7 @@
|
|
txt: this.judgeNumber
|
|
txt: this.judgeNumber
|
|
}
|
|
}
|
|
this.$request('/selectStudentNumber', "Get", data).then(res => {
|
|
this.$request('/selectStudentNumber', "Get", data).then(res => {
|
|
- console.log('失去焦点查询学号工号', res);
|
|
|
|
|
|
+ // console.log('失去焦点查询学号工号', res);
|
|
if (res[0].length) {
|
|
if (res[0].length) {
|
|
let aaa = res[0][0]
|
|
let aaa = res[0][0]
|
|
if (aaa.cid !== null) {
|
|
if (aaa.cid !== null) {
|
|
@@ -613,14 +613,24 @@
|
|
// title: '请选择专业',
|
|
// title: '请选择专业',
|
|
// icon: 'none'
|
|
// icon: 'none'
|
|
// });
|
|
// });
|
|
|
|
+ // var reg = /^1[3|4|5|6|7|8|9][0-9]{9}$/;
|
|
|
|
+ // if(!reg.test(this.userData.tel)){
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: '请输入正确的手机号格式',
|
|
|
|
+ // icon: 'none'
|
|
|
|
+ // });
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // return
|
|
if (this.userData.tel.length != 11) return uni.showToast({
|
|
if (this.userData.tel.length != 11) return uni.showToast({
|
|
title: '号码不足11位,请检查',
|
|
title: '号码不足11位,请检查',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
});
|
|
});
|
|
this.userData.inpTxt = this.inpTxt
|
|
this.userData.inpTxt = this.inpTxt
|
|
this.userData.majorInpTxt = this.majorInpTxt
|
|
this.userData.majorInpTxt = this.majorInpTxt
|
|
- this.userData.schName = this.stuName
|
|
|
|
- this.userData.jorName = this.majorName
|
|
|
|
|
|
+ this.userData.username=encodeURIComponent(this.userData.username)
|
|
|
|
+ this.userData.schName = encodeURIComponent(this.stuName)
|
|
|
|
+ this.userData.jorName = encodeURIComponent(this.majorName)
|
|
|
|
|
|
// return console.log(this.userData);
|
|
// return console.log(this.userData);
|
|
let oId = uni.getStorageSync('oId')
|
|
let oId = uni.getStorageSync('oId')
|
|
@@ -667,7 +677,7 @@
|
|
uni.getUserProfile({
|
|
uni.getUserProfile({
|
|
desc: "获取你的昵称、头像、地区及性别",
|
|
desc: "获取你的昵称、头像、地区及性别",
|
|
success: (res) => {
|
|
success: (res) => {
|
|
- console.log("所有", res);
|
|
|
|
|
|
+ // console.log("所有", res);
|
|
this.avatarUrl = res.userInfo.avatarUrl; //获取微信头像
|
|
this.avatarUrl = res.userInfo.avatarUrl; //获取微信头像
|
|
|
|
|
|
},
|
|
},
|
|
@@ -678,9 +688,9 @@
|
|
this.$request('/selectUserInfo', "POST", {
|
|
this.$request('/selectUserInfo', "POST", {
|
|
openid: uni.getStorageSync('oId')
|
|
openid: uni.getStorageSync('oId')
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log('获取渲染数据', res[0][0]);
|
|
|
|
|
|
+ // console.log('获取渲染数据', res[0][0]);
|
|
let data = res[0][0]
|
|
let data = res[0][0]
|
|
- console.log(data);
|
|
|
|
|
|
+ // console.log(data);
|
|
if (!data) {
|
|
if (!data) {
|
|
return
|
|
return
|
|
} else {
|
|
} else {
|
|
@@ -692,7 +702,7 @@
|
|
|
|
|
|
// 获取学院
|
|
// 获取学院
|
|
this.$request('/selectColleges', "get", {}).then(res => {
|
|
this.$request('/selectColleges', "get", {}).then(res => {
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
this.colleges = res[0]
|
|
this.colleges = res[0]
|
|
})
|
|
})
|
|
}
|
|
}
|