|
@@ -22,15 +22,14 @@ Page({
|
|
|
toView: function (e) {
|
|
|
const that = this;
|
|
|
let { id } = e.currentTarget.dataset;
|
|
|
- that.setData({ show: true })
|
|
|
|
|
|
wx.request({
|
|
|
- url: `${app.globalData.publicUrl}/courtAdmin/api/user/${id}`,
|
|
|
+ url: `${app.globalData.publicUrl}/courtAdmin/api/user/${id}`,
|
|
|
method: "get",
|
|
|
data: {},
|
|
|
header: {},
|
|
|
success: res => {
|
|
|
- that.setData({ details: res.data.data })
|
|
|
+ that.setData({ details: res.data.data, show: true })
|
|
|
},
|
|
|
error: err => {
|
|
|
}
|
|
@@ -88,12 +87,10 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
- let id = options.id;
|
|
|
- this.setData({ id: id })
|
|
|
|
|
|
this.searchHeight();
|
|
|
|
|
|
- this.watchLogin(id);
|
|
|
+ this.watchLogin();
|
|
|
},
|
|
|
|
|
|
watchLogin: function () {
|
|
@@ -108,7 +105,6 @@ Page({
|
|
|
header: {},
|
|
|
success: res => {
|
|
|
that.setData({ list: res.data.data })
|
|
|
- console.log(res.data.data);
|
|
|
},
|
|
|
error: err => {
|
|
|
}
|