提交更新

parent db16e365
......@@ -440,7 +440,7 @@
isAbnormal: false,
lineDatas: [],
// 会员信息
isOpen: true,
isOpen: false,
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
})
}
},
// 查询会员消费金额
......
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