Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f5e6d4e8
authored
Jan 19, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
逻辑修改
1 parent
8c74f56b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
28 deletions
packageEquity/pages/collegeScene/collegeScene.js
packageEquity/pages/collegeScene/collegeScene.wxml
packageEquity/pages/collegeScene/collegeScene.js
View file @
f5e6d4e
...
...
@@ -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
()
{
}
})
packageEquity/pages/collegeScene/collegeScene.wxml
View file @
f5e6d4e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment