|
@@ -10,8 +10,7 @@ Page({
|
|
|
|
|
|
infoHeight: '',
|
|
|
frameStyle: { useTop: true, name: '修改密码', leftArrow: true, useBar: false },
|
|
|
- form: {
|
|
|
- }
|
|
|
+ form: {}
|
|
|
},
|
|
|
back: function () {
|
|
|
wx.navigateBack({ url: '/pages/me/index' })
|
|
@@ -25,7 +24,7 @@ Page({
|
|
|
return false
|
|
|
} else {
|
|
|
wx.request({
|
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/user/updatePwd/${res.data.id}`,
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/user/updatePwd/${res.data.id}`,
|
|
|
method: "post",
|
|
|
data: value,
|
|
|
header: {},
|
|
@@ -34,7 +33,7 @@ Page({
|
|
|
wx.showToast({
|
|
|
title: '保存成功',
|
|
|
icon: 'success',
|
|
|
- duration: 2000
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
} else {
|
|
|
wx.showToast({
|
|
@@ -72,11 +71,10 @@ Page({
|
|
|
wx.getStorage({
|
|
|
key: 'token',
|
|
|
success: res => {
|
|
|
-
|
|
|
wx.request({
|
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/user/${res.data.id}`,
|
|
|
- method: "get",
|
|
|
- data: {},
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/user/${res.data.id}`,
|
|
|
+ method: "get",
|
|
|
+ data: {},
|
|
|
header: {},
|
|
|
success: res => {
|
|
|
that.setData({ form: res.data.data })
|
|
@@ -90,17 +88,17 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- searchHeight: function () {
|
|
|
- let frameStyle = this.data.frameStyle;
|
|
|
- let client = app.globalData.client;
|
|
|
- let infoHeight = client.windowHeight;
|
|
|
-
|
|
|
- if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
|
|
|
-
|
|
|
- if (frameStyle.useBar) infoHeight = infoHeight - 50;
|
|
|
- if (infoHeight) this.setData({ infoHeight: infoHeight })
|
|
|
-},
|
|
|
+
|
|
|
+ searchHeight: function () {
|
|
|
+ let frameStyle = this.data.frameStyle;
|
|
|
+ let client = app.globalData.client;
|
|
|
+ let infoHeight = client.windowHeight;
|
|
|
+
|
|
|
+ if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
|
|
|
+
|
|
|
+ if (frameStyle.useBar) infoHeight = infoHeight - 50;
|
|
|
+ if (infoHeight) this.setData({ infoHeight: infoHeight })
|
|
|
+ },
|
|
|
|
|
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|