提交更新

parent db16e365
...@@ -440,7 +440,7 @@ ...@@ -440,7 +440,7 @@
isAbnormal: false, isAbnormal: false,
lineDatas: [], lineDatas: [],
// 会员信息 // 会员信息
isOpen: true, isOpen: false,
memberInfo: { memberInfo: {
leastAmount: '', leastAmount: '',
invalidDateStr: '', invalidDateStr: '',
...@@ -450,7 +450,7 @@ ...@@ -450,7 +450,7 @@
} }
}, },
mounted() { mounted() {
this.onOpen(); this.queryIsDredgeMember();
let tmpArr = [] let tmpArr = []
// 获取时间 // 获取时间
for (let i = 0; i <= 11; i++) { for (let i = 0; i <= 11; i++) {
...@@ -986,14 +986,39 @@ ...@@ -986,14 +986,39 @@
} }
}, },
// 是否开通消费报告 // 是否开通消费报告
onOpen() { async queryIsDredgeMember(){
// 接口获取 try {
if (this.isOpen) { let data = await this.$http.get({
this.queryMemberValidTime(); url: gHost + '/report-push/member-info/queryIsDredgeMember'
this.containerHeight = 4200; }, {
} else { schoolId: getQueryParams('schoolId'),
this.queryMemberConsumerAmount(); userId: getQueryParams('userId'),
this.containerHeight = 2340; 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
})
} }
}, },
// 查询会员消费金额 // 查询会员消费金额
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment