From 1e0059dbd54aa4a55a087cb15a9ebc71851408c7 Mon Sep 17 00:00:00 2001 From: "3321822538@qq.com" <3321822538@qq.com> Date: Thu, 2 Jan 2025 14:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8C=B6=E5=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.interceptor.js | 4 +- page_moban/orderlist.vue | 99 +++++++++++++++++++++++++++++++++++--- pages.json | 28 +++++++++++ pages/index/index.vue | 9 +++- 4 files changed, 129 insertions(+), 11 deletions(-) diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 5cbc2d2..5c0bfe5 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -20,8 +20,8 @@ const install = (Vue, vm) => { // }, // https://yxd.ccttiot.com/prod-api}); Vue.prototype.$u.http.setConfig({ - baseUrl: 'http://192.168.2.116:8089', - // baseUrl: 'https://testcha.chuangtewl.com/prod-api', + // baseUrl: 'http://192.168.2.116:8089', + baseUrl: 'https://testcha.chuangtewl.com/prod-api', loadingText: '努力加载中~', loadingTime: 800, // 设置自定义头部content-type diff --git a/page_moban/orderlist.vue b/page_moban/orderlist.vue index 690d4f4..ccb2096 100644 --- a/page_moban/orderlist.vue +++ b/page_moban/orderlist.vue @@ -4,16 +4,19 @@ title-size='36' height='50' id="navbar"> - - 订单状态 + + {{zttxt}} - + - 时间筛选 + + {{kstime}}--{{jstime}} + + @@ -59,6 +62,54 @@ bgc: { backgroundColor: "#fff", }, + zttxt:'订单状态', + zttxtid:'', + kstime:'', + jstime:'', + num:'', + params: { + year: true, + month: true, + day: true, + hour: false, + minute: false, + second: false + }, + showtime: false, + show: false, + list: [ + { + value: '', + label: '全部' + },{ + value: '0', + label: '待支付' + },{ + value: '1', + label: '支付中' + },{ + value: '2', + label: '待使用' + },{ + value: '3', + label: '使用中' + },{ + value: '4', + label: '已完成' + },{ + value: '5', + label: '超时自动取消' + },{ + value: '6', + label: '用户取消订单' + },{ + value: '7', + label: '退款中' + },{ + value: '8', + label: '已退款' + }], + } }, onLoad() { @@ -68,8 +119,27 @@ this.getlist() }, methods: { + // 点击选择时间 + btntime(num){ + this.showtime = true + this.num = num + }, + // 筛选开始时间 + confirmkstime(e){ + if(this.num == 1){ + this.kstime = e.year + '-' + e.month + '-' + e.day + }else{ + this.jstime = e.year + '-' + e.month + '-' + e.day + } + }, + // 点击状态筛选 + confirm(e) { + this.zttxt = e[0].label + this.zttxtid = e[0].value + }, + // 请求订单列表 getlist(){ - this.$u.get(`/app/order/orderList?statusList=1,2`).then(res =>{ + this.$u.get(`/app/order/orderList`).then(res =>{ if(res.code == 200){ } @@ -86,7 +156,7 @@