Commit c653188d authored by 袁玲利's avatar 袁玲利

消费报告

parent 33fefed3
...@@ -406,7 +406,7 @@ export default { ...@@ -406,7 +406,7 @@ export default {
}, },
params params
); );
if (data.code != 200) { if (data.code != 10000) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: data.message || "发生异常!", title: data.message || "发生异常!",
......
...@@ -3191,11 +3191,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3191,11 +3191,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
sortCalculateType: function (a, b) { sortCalculateType: function (a, b) {
...@@ -3253,6 +3253,16 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3253,6 +3253,16 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} }
if (data.code == 200) { if (data.code == 200) {
this.campusConsumerDetailObj = {}
this.campusConsumerDetailObj.campusConsumerDetailList = []
this.trendColorList = []
this.consumerDetailCalculateObj.canteenData = 0
this.consumerDetailCalculateObj.totalData = 0
this.consumerDetailCalculateObj.cateringNumber = 0
this.consumerDetailCalculateObj.notCateringNumber = 0
if(!data.obj){
return;
}
if ( if (
data.obj && data.obj &&
data.obj.campusConsumerDetailList && data.obj.campusConsumerDetailList &&
...@@ -3394,11 +3404,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3394,11 +3404,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 查询就餐情况 // 查询就餐情况
...@@ -3453,11 +3463,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3453,11 +3463,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 三对象排序 // 三对象排序
...@@ -3620,11 +3630,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3620,11 +3630,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
livingCostType: function (a, b) { livingCostType: function (a, b) {
...@@ -3817,11 +3827,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3817,11 +3827,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 日消费趋势 // 日消费趋势
...@@ -3921,11 +3931,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3921,11 +3931,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 饭友分析 // 饭友分析
...@@ -3945,11 +3955,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3945,11 +3955,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} }
); );
if (data.code != 200) { if (data.code != 200) {
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: data.message, // title: data.message,
}); // });
return; return;
} }
this.mealPalData = data.obj || []; this.mealPalData = data.obj || [];
...@@ -3962,11 +3972,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3962,11 +3972,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 异常就餐日期 // 异常就餐日期
...@@ -4016,11 +4026,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4016,11 +4026,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} }
); );
if (data.code != 200) { if (data.code != 200) {
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: data.message, // title: data.message,
}); // });
return; return;
} }
if (data.obj) { if (data.obj) {
...@@ -4050,11 +4060,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4050,11 +4060,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 获取公话报告 // 获取公话报告
...@@ -4074,11 +4084,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4074,11 +4084,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} }
); );
if (data.code != 0) { if (data.code != 0) {
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: data.message, // title: data.message,
}); // });
return; return;
} }
this.pubTalkReport = data.data || {}; this.pubTalkReport = data.data || {};
...@@ -4095,11 +4105,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4095,11 +4105,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 出入校报告 // 出入校报告
...@@ -4120,22 +4130,22 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4120,22 +4130,22 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} }
); );
if (data.code != 200) { if (data.code != 200) {
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: data.message, // title: data.message,
}); // });
return; return;
} }
this.attendanceReport = data.data || {}; this.attendanceReport = data.data || {};
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 出入情况明细 // 出入情况明细
...@@ -4154,11 +4164,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4154,11 +4164,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} }
); );
if (data.code != 200) { if (data.code != 200) {
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: data.message, // title: data.message,
}); // });
return; return;
} }
var tempList = data.data; var tempList = data.data;
...@@ -4183,11 +4193,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4183,11 +4193,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 是否开通会员功能 // 是否开通会员功能
...@@ -4277,11 +4287,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4277,11 +4287,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 查询是否开通服务项(入口展示服务项) // 查询是否开通服务项(入口展示服务项)
...@@ -4297,11 +4307,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4297,11 +4307,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} }
); );
if (data.code != 200) { if (data.code != 200) {
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: data.msg, // title: data.msg,
}); // });
return; return;
} }
const tempList = data.obj || []; const tempList = data.obj || [];
...@@ -4313,11 +4323,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4313,11 +4323,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 查询会员消费金额 // 查询会员消费金额
...@@ -4345,11 +4355,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4345,11 +4355,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
// 查询消费会员权益项 // 查询消费会员权益项
...@@ -4421,11 +4431,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -4421,11 +4431,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
uni.showToast({ // uni.showToast({
icon: "none", // icon: "none",
mask: true, // mask: true,
title: e.message, // title: e.message,
}); // });
} }
}, },
equityPay: function () { equityPay: function () {
......
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