Commit f5e6d4e8 by 张立顺

逻辑修改

1 parent 8c74f56b
......@@ -65,13 +65,6 @@ Page({
passwordPop: true,
isSetPassword: staffInfoObj.staffInfo.needSetPwd
})
// } else {
// this.setData({
// passwordPop: true,
// isSetPassword: false
// })
// }
},
refresh() {
// console.log('refresh', refresh)
......@@ -82,7 +75,7 @@ Page({
this.orderPerformanceDetail()
},
onBottomRefresh() {
console.log('onBottomRefresh')
// console.log('onBottomRefresh')
let { currentPage, monthArray } = this.data
if (currentPage < monthArray.length - 1) {
this.setData({
......@@ -92,16 +85,14 @@ Page({
} else {
wx.$util.showToast('没有更多了')
}
// console.log('test', test)
},
orderPerformanceDetail() {
let { currentPage, monthArray, orderList } = this.data
let performanceMonth = monthArray[currentPage]
console.log(performanceMonth, 'performanceMonth')
// console.log(performanceMonth, 'performanceMonth')
orderPerformanceDetail({ performanceMonth })
.then(res => {
console.log(res)
//
// console.log(res)
let { code, data } = res
if (code == 0 && data.performanceMonth) {
......@@ -117,7 +108,7 @@ Page({
})
// wx.$util.tsFormatTime(data.orderTime, 'Y年M月D日 h:m:s')
orderList.push({ ...data })
console.log(data, 'data')
// console.log(data, 'data')
this.setData({
orderList,
triggered: false
......@@ -132,7 +123,7 @@ Page({
wx.$util.showLoading('加载中...')
staffInfo({})
.then(res => {
console.log(res)
// console.log(res)
let { userInfo } = this.data
let { code, data } = res
if (code == 0) {
......@@ -172,7 +163,7 @@ Page({
// pageSize: monthArray.length,
currentPage: 0
})
console.log(monthArray, 'monthArray')
// console.log(monthArray, 'monthArray')
// 获取商学院员工信息及前3月绩效信息
this.businessSchoolStaffInfo()
//获取商学院员工订单绩效明细
......@@ -234,16 +225,12 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
// console.log(options);
const isStaff = app.globalData.isStaff
let { userInfo } = this.data
// if (userInfo?.isSuper) {
// this.setData({
// enableBusinessSchool: true
// })
// console.log(userInfo?.isSuper ? true : false, 'userInfo?.isSuper ? true : false');
this.setData({
isStaff,
hasStaffPassword: userInfo?.isSuper ? true : false
hasStaffPassword: !isStaff ? true : false
})
this.getDetailInfo()
......@@ -252,37 +239,36 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
onReady() { },
/**
* 生命周期函数--监听页面显示
*/
onShow(e) {
// console.log(e);
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
onHide() { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
onUnload() { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
onPullDownRefresh() { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
onReachBottom() { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
onShareAppMessage() { }
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!