提交更新

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,8 +986,24 @@ ...@@ -986,8 +986,24 @@
} }
}, },
// 是否开通消费报告 // 是否开通消费报告
onOpen() { 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) { if (this.isOpen) {
this.queryMemberValidTime(); this.queryMemberValidTime();
this.containerHeight = 4200; this.containerHeight = 4200;
...@@ -995,6 +1011,15 @@ ...@@ -995,6 +1011,15 @@
this.queryMemberConsumerAmount(); this.queryMemberConsumerAmount();
this.containerHeight = 2340; this.containerHeight = 2340;
} }
} catch (e) {
//TODO handle the exception
console.log(e);
uni.showToast({
icon: "none",
mask: true,
title: e.message
})
}
}, },
// 查询会员消费金额 // 查询会员消费金额
async queryMemberConsumerAmount() { async queryMemberConsumerAmount() {
......
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