仓库地址修改

This commit is contained in:
mindskip
2020-09-01 22:58:28 +08:00
parent a8d9b11da0
commit c5a5a1f039
294 changed files with 75 additions and 5581 deletions

View File

@@ -1,68 +0,0 @@
// pages/user/info/index.js
const app = getApp()
Page({
data: {
userInfo: null,
spinShow: false,
levelIndex: 0
},
onLoad: function(options) {
this.loadUserInfo()
},
loadUserInfo() {
let _this = this
_this.setData({
spinShow: true
});
app.formPost('/api/wx/student/user/current', null).then(res => {
if (res.code == 1) {
_this.setData({
userInfo: res.response,
levelIndex: res.response.userLevel-1
});
}
_this.setData({
spinShow: false
});
}).catch(e => {
_this.setData({
spinShow: false
});
app.message(e, 'error')
})
},
bindLevelChange: function(e) {
this.setData({
levelIndex: e.detail.value
})
},
bindDateChange(e) {
let {
value
} = e.detail;
this.setData({
"userInfo.birthDay": value
})
},
formSubmit: function(e) {
let _this = this
wx.showLoading({
title: '提交中',
mask: true
})
app.formPost('/api/wx/student/user/update', e.detail.value)
.then(res => {
if (res.code == 1) {
wx.reLaunch({
url: '/pages/my/index/index',
});
} else {
app.message(res.message, 'error')
}
wx.hideLoading()
}).catch(e => {
app.message(e, 'error')
wx.hideLoading()
})
}
})