diff --git a/App.vue b/App.vue index c1f3c5b..b485264 100644 --- a/App.vue +++ b/App.vue @@ -5,15 +5,15 @@ // brestUrl: 'http://192.168.3.4:9302/brest', // imgUrl: 'https://192.168.3.4:9301/filesystem/', //正式 - // url: 'https://hsg.dctpay.com/brest', - // imgUrl: 'https://hsg.dctpay.com/filesystem/', - // imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', - // wsssocket:'wss://hsg.dctpay.com/msg/WebSocket/', + url: 'https://hsg.dctpay.com/brest', + imgUrl: 'https://hsg.dctpay.com/filesystem/', + imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', + wsssocket:'wss://hsg.dctpay.com/msg/WebSocket/', //测试 - url: 'https://hsgcs.dctpay.com/brest', - imgUrl: 'https://hsgcs.dctpay.com/filesystem/', - imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/', - wsssocket: 'wss://hsgcs.dctpay.com/msg/WebSocket/', + // url: 'https://hsgcs.dctpay.com/brest', + // imgUrl: 'https://hsgcs.dctpay.com/filesystem/', + // imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/', + // wsssocket: 'wss://hsgcs.dctpay.com/msg/WebSocket/', userInfo: "", openId: '', code: '', diff --git a/Utils/Api.js b/Utils/Api.js index 95c654c..afc93de 100644 --- a/Utils/Api.js +++ b/Utils/Api.js @@ -54,12 +54,17 @@ export const getGasStatistical = params => { //订单列表 export const getGasOrderList = params => { return POST('GET', `${base}/highGas/getGasOrderList`, params).then(res => res.data); -} +} +//订单统计 +export const countGasOrder = params => { + return POST('GET', `${base}/highGas/countGasOrder`, params).then(res => res.data); +} + //订单详情 export const getGasOrderDetail = params => { return POST('GET', `${base}/highGas/getGasOrderDetail`, params).then(res => res.data); -} - +} + //交接班班组功能 //班组列表 export const getClassGroupList = params => { diff --git a/pages.json b/pages.json index 93e28dc..a738834 100644 --- a/pages.json +++ b/pages.json @@ -1,6 +1,6 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { + { "path": "pages/login/login/login", "style": { "navigationBarTitleText": "登录", @@ -11,6 +11,13 @@ } }, { + "path": "pages/user/orderStatistics/orderStatistics", + "style": { + "navigationBarTitleText": "统计", + "enablePullDownRefresh": false + } + + },{ "path": "pages/user/shift-management/shift-management", "style": { "navigationBarTitleText": "班次管理", @@ -127,6 +134,7 @@ "enablePullDownRefresh": false } } + ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index 56707b1..c307629 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -13,7 +13,7 @@ 已退款 - + @@ -174,9 +174,11 @@ uni.showLoading({ title: '加载中' }) + let daydate = new Date(new Date().toLocaleDateString()).getTime(); let datas = { orderNo: this.orderNo, status: status, + createTimeS: daydate, pageNum: this.pageNum, pageSize: this.pagesize, } @@ -190,6 +192,7 @@ this.isLoadMore = false } } else { + this.orderList = []; this.isLoadMore = true } }); diff --git a/pages/tabBar/user/user.vue b/pages/tabBar/user/user.vue index 1a4fe03..6aaaf1c 100644 --- a/pages/tabBar/user/user.vue +++ b/pages/tabBar/user/user.vue @@ -6,7 +6,7 @@ 暂无信息 - 今日总收入 + 今日加油总额 ¥{{oilInfo.today.incomePrice}} diff --git a/pages/user/orderStatistics/orderStatistics.vue b/pages/user/orderStatistics/orderStatistics.vue new file mode 100644 index 0000000..9be09e0 --- /dev/null +++ b/pages/user/orderStatistics/orderStatistics.vue @@ -0,0 +1,364 @@ + + + + + diff --git a/pages/user/shift-management/shift-management.vue b/pages/user/shift-management/shift-management.vue index 52d9934..feef2b1 100644 --- a/pages/user/shift-management/shift-management.vue +++ b/pages/user/shift-management/shift-management.vue @@ -83,7 +83,7 @@ + style="width: 60px;" v-if="item.status == 2" @click="jumpSummary(item.id)"> 班次汇总 diff --git a/static/img/11.png b/static/img/11.png new file mode 100644 index 0000000..a0e9559 Binary files /dev/null and b/static/img/11.png differ diff --git a/static/img/noorder1.png b/static/img/noorder1.png new file mode 100644 index 0000000..0369e60 Binary files /dev/null and b/static/img/noorder1.png differ