Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李智书
xzf_uniapp-wechat-web
Commits
510480fb
Commit
510480fb
authored
May 10, 2022
by
aifen@azjy1.onexmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
db16e365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
10 deletions
+35
-10
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+35
-10
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
510480fb
...
...
@@ -440,7 +440,7 @@
isAbnormal
:
false
,
lineDatas
:
[],
// 会员信息
isOpen
:
tru
e
,
isOpen
:
fals
e
,
memberInfo
:
{
leastAmount
:
''
,
invalidDateStr
:
''
,
...
...
@@ -450,7 +450,7 @@
}
},
mounted
()
{
this
.
onOpen
();
this
.
queryIsDredgeMember
();
let
tmpArr
=
[]
// 获取时间
for
(
let
i
=
0
;
i
<=
11
;
i
++
)
{
...
...
@@ -986,14 +986,39 @@
}
},
// 是否开通消费报告
onOpen
()
{
// 接口获取
if
(
this
.
isOpen
)
{
this
.
queryMemberValidTime
();
this
.
containerHeight
=
4200
;
}
else
{
this
.
queryMemberConsumerAmount
();
this
.
containerHeight
=
2340
;
async
queryIsDredgeMember
(){
try
{
let
data
=
await
this
.
$http
.
get
({
url
:
gHost
+
'
/report-push/member-info/queryIsDredgeMember
'
},
{
schoolId
:
getQueryParams
(
'
schoolId
'
),
userId
:
getQueryParams
(
'
userId
'
),
serviceItemCode
:
4001
})
if
(
data
.
code
!=
200
)
{
uni
.
showToast
({
icon
:
"
none
"
,
mask
:
true
,
title
:
data
.
msg
})
return
}
this
.
isOpen
=
data
.
obj
.
status
;
if
(
this
.
isOpen
)
{
this
.
queryMemberValidTime
();
this
.
containerHeight
=
4200
;
}
else
{
this
.
queryMemberConsumerAmount
();
this
.
containerHeight
=
2340
;
}
}
catch
(
e
)
{
//TODO handle the exception
console
.
log
(
e
);
uni
.
showToast
({
icon
:
"
none
"
,
mask
:
true
,
title
:
e
.
message
})
}
},
// 查询会员消费金额
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment