|
|
|
@ -15,7 +15,6 @@ Page({
|
|
|
|
// user:app.globalData.user,
|
|
|
|
// user:app.globalData.user,
|
|
|
|
serviceInfo: {},
|
|
|
|
serviceInfo: {},
|
|
|
|
map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", billStatus10Salary: "0", billStatus30Salary: "0" },
|
|
|
|
map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", billStatus10Salary: "0", billStatus30Salary: "0" },
|
|
|
|
townsMnaNum:{}, // 老乡数量
|
|
|
|
|
|
|
|
motto: "Hello World",
|
|
|
|
motto: "Hello World",
|
|
|
|
userInfo: {},
|
|
|
|
userInfo: {},
|
|
|
|
hasUserInfo: false,
|
|
|
|
hasUserInfo: false,
|
|
|
|
@ -88,18 +87,20 @@ Page({
|
|
|
|
onShow: function () {
|
|
|
|
onShow: function () {
|
|
|
|
console.log("isshow");
|
|
|
|
console.log("isshow");
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
wx.setStorageSync("comeFromPage", "me");
|
|
|
|
|
|
|
|
if (wx.getStorageSync("configInfo")) {
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
|
|
|
configInfo: { ...wx.getStorageSync("configInfo"), biao: false },
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (typeof this.getTabBar === "function" && this.getTabBar()) {
|
|
|
|
if (typeof this.getTabBar === "function" && this.getTabBar()) {
|
|
|
|
this.getTabBar().setData({
|
|
|
|
this.getTabBar().setData({
|
|
|
|
selected: 3,
|
|
|
|
selected: 3,
|
|
|
|
isShow: true
|
|
|
|
isShow: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wx.setStorageSync("comeFromPage", "me");
|
|
|
|
|
|
|
|
if (wx.getStorageSync("configInfo")) {
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
|
|
|
configInfo: { ...wx.getStorageSync("configInfo"), biao: false },
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log('configInfo',this.data.configInfo);
|
|
|
|
|
|
|
|
}
|
|
|
|
wx.setStorageSync('BILLFROM', 'mine')
|
|
|
|
wx.setStorageSync('BILLFROM', 'mine')
|
|
|
|
|
|
|
|
|
|
|
|
// wx.showTabBar({
|
|
|
|
// wx.showTabBar({
|
|
|
|
@ -128,7 +129,6 @@ Page({
|
|
|
|
corpUserFlag: app.globalData.loginUserInfo.corpUserFlag,
|
|
|
|
corpUserFlag: app.globalData.loginUserInfo.corpUserFlag,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
that.getDataNum();
|
|
|
|
that.getDataNum();
|
|
|
|
that.getTownsmanDataNum();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回
|
|
|
|
// 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回
|
|
|
|
// 所以此处加入 callback 以防止这种情况
|
|
|
|
// 所以此处加入 callback 以防止这种情况
|
|
|
|
@ -388,22 +388,6 @@ Page({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 获取老乡状态数量
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
getTownsmanDataNum () {
|
|
|
|
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
customRequest("/yishoudan/agency/user/listStatistics", { header: 'headers', method: 'GET', data: {} }).then((res) => {
|
|
|
|
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
|
|
|
townsMnaNum: res.data.data,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log('getDataNum',res.data.data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取各个数量
|
|
|
|
* 获取各个数量
|
|
|
|
*
|
|
|
|
*
|
|
|
|
|