|
|
@@ -46,45 +46,45 @@ Page({
|
|
|
consultingTeacher: "",
|
|
|
inviteTeacher: "",
|
|
|
},
|
|
|
- facultyInput(e) {
|
|
|
+ facultyInput (e) {
|
|
|
this.setData({
|
|
|
facultyName: e.detail.value,
|
|
|
});
|
|
|
},
|
|
|
- proInput(e) {
|
|
|
+ proInput (e) {
|
|
|
this.setData({
|
|
|
professionalTitle: e.detail.value,
|
|
|
});
|
|
|
},
|
|
|
- messageInput(e) {
|
|
|
+ messageInput (e) {
|
|
|
this.setData({
|
|
|
consultingTeacher: e.detail.value,
|
|
|
});
|
|
|
},
|
|
|
- guidanceInput(e) {
|
|
|
+ guidanceInput (e) {
|
|
|
this.setData({
|
|
|
inviteTeacher: e.detail.value,
|
|
|
});
|
|
|
},
|
|
|
- schoolInput(e) {
|
|
|
+ schoolInput (e) {
|
|
|
this.setData({
|
|
|
searchName: e.detail.value,
|
|
|
});
|
|
|
this.searchSchool();
|
|
|
console.log(e.detail.value);
|
|
|
},
|
|
|
- userNameInput(e) {
|
|
|
+ userNameInput (e) {
|
|
|
this.setData({
|
|
|
userName: e.detail.value,
|
|
|
});
|
|
|
},
|
|
|
- idInput(e) {
|
|
|
+ idInput (e) {
|
|
|
this.setData({
|
|
|
identityNumber: e.detail.value,
|
|
|
});
|
|
|
},
|
|
|
//搜索学校
|
|
|
- searchSchool() {
|
|
|
+ searchSchool () {
|
|
|
App._get(
|
|
|
"areainfo/selectSchoolInfoByParams/",
|
|
|
{
|
|
|
@@ -114,7 +114,7 @@ Page({
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
- submit() {
|
|
|
+ submit () {
|
|
|
// return this.popup2.showPopup()
|
|
|
if (!this.data.allData.region) {
|
|
|
return App.showError("请选择地址!");
|
|
|
@@ -203,11 +203,11 @@ Page({
|
|
|
that.popup2.showPopup();
|
|
|
}
|
|
|
},
|
|
|
- function (res) {}
|
|
|
+ function (res) { }
|
|
|
);
|
|
|
}
|
|
|
},
|
|
|
- getInfo() {
|
|
|
+ getInfo () {
|
|
|
let that = this;
|
|
|
App._get(`studentstatus/info/${util.getUserId()}`, {}, (res) => {
|
|
|
if (res.code === 0) {
|
|
|
@@ -286,7 +286,7 @@ Page({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- _error() {
|
|
|
+ _error () {
|
|
|
console.log("返回");
|
|
|
this.popup2.hidePopup();
|
|
|
wx.navigateBack({
|
|
|
@@ -294,7 +294,7 @@ Page({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- _success() {
|
|
|
+ _success () {
|
|
|
console.log("查看");
|
|
|
this.popup2.hidePopup();
|
|
|
this.getInfo();
|
|
|
@@ -303,16 +303,17 @@ Page({
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
- onLoad(options) {
|
|
|
+ onLoad (options) {
|
|
|
// this.getSchool()
|
|
|
-
|
|
|
+ console.log("options", App.sexList)
|
|
|
+ this.data.sexArray = App.sexList
|
|
|
this.setData({
|
|
|
- sexArray: App.sexList,
|
|
|
+ sexArray: this.data.sexArray,
|
|
|
});
|
|
|
this.getInfo();
|
|
|
},
|
|
|
// 上传学籍
|
|
|
- upImg() {
|
|
|
+ upImg () {
|
|
|
if (this.data.disabled) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -320,13 +321,13 @@ Page({
|
|
|
var tempFile;
|
|
|
wx.showActionSheet({
|
|
|
itemList: ["拍照上传", "从相册中选择"],
|
|
|
- success(res) {
|
|
|
+ success (res) {
|
|
|
if (res.tapIndex === 0) {
|
|
|
wx.chooseImage({
|
|
|
count: 1,
|
|
|
sizeType: ["original", "compressed"],
|
|
|
sourceType: ["camera"],
|
|
|
- success(res) {
|
|
|
+ success (res) {
|
|
|
const tempFilePaths = res.tempFilePaths;
|
|
|
wx.uploadFile({
|
|
|
url: App.apiRoot + "file/upload",
|
|
|
@@ -346,7 +347,7 @@ Page({
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
wx.showToast({
|
|
|
title: "上传失败",
|
|
|
icon: "none",
|
|
|
@@ -363,7 +364,7 @@ Page({
|
|
|
count: 1,
|
|
|
sizeType: ["original", "compressed"],
|
|
|
sourceType: ["album"],
|
|
|
- success(res) {
|
|
|
+ success (res) {
|
|
|
const tempFilePaths = res.tempFilePaths;
|
|
|
wx.uploadFile({
|
|
|
url: App.apiRoot + "file/upload",
|
|
|
@@ -383,16 +384,16 @@ Page({
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- function() {
|
|
|
+ function () {
|
|
|
wx.showToast({
|
|
|
title: "上传失败",
|
|
|
icon: "none",
|
|
|
image: "",
|
|
|
duration: 1500,
|
|
|
mask: false,
|
|
|
- success: (result) => {},
|
|
|
- fail: () => {},
|
|
|
- complete: () => {},
|
|
|
+ success: (result) => { },
|
|
|
+ fail: () => { },
|
|
|
+ complete: () => { },
|
|
|
});
|
|
|
},
|
|
|
});
|
|
|
@@ -400,13 +401,13 @@ Page({
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- fail(res) {},
|
|
|
+ fail (res) { },
|
|
|
});
|
|
|
},
|
|
|
/**
|
|
|
* 加载省份
|
|
|
*/
|
|
|
- searchProvince() {
|
|
|
+ searchProvince () {
|
|
|
let _this = this;
|
|
|
let proId = "";
|
|
|
let prov = "";
|
|
|
@@ -446,7 +447,7 @@ Page({
|
|
|
},
|
|
|
|
|
|
//获取市级
|
|
|
- loadCity(cid) {
|
|
|
+ loadCity (cid) {
|
|
|
let _this = this;
|
|
|
App._post_form("areainfo/city/" + cid, "", null, function (res) {
|
|
|
if (res.code === 0) {
|
|
|
@@ -484,16 +485,16 @@ Page({
|
|
|
/**
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
*/
|
|
|
- onReady() {
|
|
|
+ onReady () {
|
|
|
this.popup2 = this.selectComponent("#popup2");
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
- onShow() {},
|
|
|
+ onShow () { },
|
|
|
// 获取学校列表
|
|
|
- getSchool(id) {
|
|
|
+ getSchool (id) {
|
|
|
App._get("areainfo/Schoolinfo/" + id, {}, (res) => {
|
|
|
if (res.code === 0) {
|
|
|
this.setData({
|
|
|
@@ -503,7 +504,7 @@ Page({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- schoolChange(e) {
|
|
|
+ schoolChange (e) {
|
|
|
let that = this;
|
|
|
this.setData({
|
|
|
schoolIndex: e.detail.value,
|
|
|
@@ -512,7 +513,7 @@ Page({
|
|
|
console.log(this.data.college);
|
|
|
},
|
|
|
//学校change
|
|
|
- bindChangeSchool(e) {
|
|
|
+ bindChangeSchool (e) {
|
|
|
console.log(e);
|
|
|
this.setData({
|
|
|
schoolIndex: e.detail.value,
|
|
|
@@ -520,17 +521,17 @@ Page({
|
|
|
});
|
|
|
console.log(this.data.schoolIndex, "mmmmm");
|
|
|
},
|
|
|
- pickstart() {
|
|
|
+ pickstart () {
|
|
|
this.setData({
|
|
|
pickMove: true,
|
|
|
});
|
|
|
},
|
|
|
- pickend() {
|
|
|
+ pickend () {
|
|
|
this.setData({
|
|
|
pickMove: false,
|
|
|
});
|
|
|
},
|
|
|
- confirmSchool() {
|
|
|
+ confirmSchool () {
|
|
|
if (this.data.pickMove) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -551,7 +552,7 @@ Page({
|
|
|
console.log(this.data.college, "college");
|
|
|
},
|
|
|
// 性别change
|
|
|
- sexChange(e) {
|
|
|
+ sexChange (e) {
|
|
|
let that = this;
|
|
|
this.setData({
|
|
|
sexIndex: e.detail.value,
|
|
|
@@ -559,7 +560,7 @@ Page({
|
|
|
});
|
|
|
},
|
|
|
// 地区change
|
|
|
- areaChange(e) {
|
|
|
+ areaChange (e) {
|
|
|
this.data.load = false;
|
|
|
let _this = this;
|
|
|
_this.data.multiIndex[0] = e.detail.value[0];
|
|
|
@@ -598,7 +599,7 @@ Page({
|
|
|
console.log(1111111111111);
|
|
|
console.log(e);
|
|
|
},
|
|
|
- schoolName() {
|
|
|
+ schoolName () {
|
|
|
if (this.data.disabled) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -617,7 +618,7 @@ Page({
|
|
|
console.log(this.data.allData.region, "0000000");
|
|
|
console.log(this.data.schoolIndex, "ffff");
|
|
|
},
|
|
|
- hiddenAddress() {
|
|
|
+ hiddenAddress () {
|
|
|
this.setData({
|
|
|
schoolPopup: false,
|
|
|
});
|
|
|
@@ -626,25 +627,25 @@ Page({
|
|
|
/**
|
|
|
* 生命周期函数--监听页面隐藏
|
|
|
*/
|
|
|
- onHide() {},
|
|
|
+ onHide () { },
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面卸载
|
|
|
*/
|
|
|
- onUnload() {},
|
|
|
+ onUnload () { },
|
|
|
|
|
|
/**
|
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
|
*/
|
|
|
- onPullDownRefresh() {},
|
|
|
+ onPullDownRefresh () { },
|
|
|
|
|
|
/**
|
|
|
* 页面上拉触底事件的处理函数
|
|
|
*/
|
|
|
- onReachBottom() {},
|
|
|
+ onReachBottom () { },
|
|
|
|
|
|
/**
|
|
|
* 用户点击右上角分享
|
|
|
*/
|
|
|
- onShareAppMessage() {},
|
|
|
+ onShareAppMessage () { },
|
|
|
});
|