Commit e21474a7 authored by 李智书's avatar 李智书

1.班周消费报告页面修改

parent 24d28a68
faceico.ico

9.48 KB

......@@ -154,12 +154,28 @@
content: "统计周期为上周一至上周五",
})
},
bindPickerChange: function(e) {
async bindPickerChange(e) {
try {
uni.showLoading({
title: "加载中....."
})
console.log('picker发送选择改变,携带值为', e.target.value)
this.index = e.target.value
// 切换班级获取报告
this.QueryClsReport(this.array[e.target.value].DepId)
await this.QueryClsReport(this.array[e.target.value].DepId)
uni.setNavigationBarTitle({
title: (this.array[e.target.value].Name || "未知名班级") + "周消费报告"
})
uni.hideLoading()
} catch (e) {
//TODO handle the exception
uni.hideLoading()
uni.showModal({
title: "系统提示",
showCancel: false,
content: e.message,
})
}
},
// 切换班级选择汇总
......@@ -595,7 +611,6 @@
uni.showLoading({
title: "加载中....."
})
try {
await this.tokenqrcode2Token();
let AdminCls = await this.QueryAdminCls();
......@@ -613,6 +628,9 @@
// }]
}
await this.QueryClsReport(AdminCls.results[0].DepId);
uni.setNavigationBarTitle({
title: (this.array[0].Name || "未知名班级") + "周消费报告"
})
await this.CaptureEvent()
uni.hideLoading()
} catch (e) {
......
......@@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="./faceico.ico"/>
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
......
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