From 4e5031eb9d34f2bb358889a58abb23f70416e407 Mon Sep 17 00:00:00 2001 From: cjb <646858191@qq.com> Date: Sat, 29 Mar 2025 17:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/homePages/reservation/index.vue | 40 +++-- src/minePages/account/index.vue | 10 +- src/minePages/order/index.vue | 81 +++++++--- src/minePages/order/item.vue | 224 ++++++++++++++++++++++++++++ src/minePages/order/parcont.vue | 32 ++++ src/minePages/payment/index.vue | 4 +- src/minePages/recharge/index.vue | 4 +- src/minePages/reserlist/index.vue | 9 +- src/minePages/userInfor/index.vue | 6 + src/mixin.d.ts | 4 + src/mixin.ts | 17 +++ src/pages/home/index.vue | 44 ++++-- src/pages/login/index.vue | 17 ++- src/pages/mine/index.vue | 12 +- src/pages/scanCode/index.vue | 2 +- src/static/img/share.png | Bin 0 -> 28391 bytes src/utils/request.ts | 2 +- src/utils/service.ts | 13 +- 18 files changed, 453 insertions(+), 68 deletions(-) create mode 100644 src/minePages/order/item.vue create mode 100644 src/minePages/order/parcont.vue create mode 100644 src/mixin.d.ts create mode 100644 src/mixin.ts create mode 100644 src/static/img/share.png diff --git a/src/homePages/reservation/index.vue b/src/homePages/reservation/index.vue index d3d7336..cb0ba4f 100644 --- a/src/homePages/reservation/index.vue +++ b/src/homePages/reservation/index.vue @@ -50,16 +50,30 @@ - 获取验证码 + - - - + + + { - hdzcode.value = opt.hdzcode + hdzcode.value = opt.hdzcode?opt.hdzcode:'' if(opt.phoneNumber){ formdata.phone = opt.phoneNumber nuindex.value = 1 @@ -332,7 +347,10 @@ '11:00 - 12:00', '12:00 - 13:00', '13:00 - 14:00', - '14:00 - 15:00' + '14:00 - 15:00', + '15:00 - 16:00', + '16:00 - 17:00', + '17:00 - 18:00' ] ]) function timeconfirm(v:any) { diff --git a/src/minePages/account/index.vue b/src/minePages/account/index.vue index 6a1647d..d428636 100644 --- a/src/minePages/account/index.vue +++ b/src/minePages/account/index.vue @@ -30,10 +30,11 @@ +{{n.tradeTotalAmount/100}} {{n.tradeTotalAmount/100}} -{{n.tradeTotalAmount/100}} - + - + + + + + + + - + + @@ -69,6 +80,9 @@ import { orderlist,dzbzxq } from '@/utils/service' import { onShow,onReachBottom } from '@dcloudio/uni-app' + import Parent from './parcont.vue' + import Item from './item.vue' + onShow(() => { pageNo.value = 1 list.value.splice(0) @@ -93,10 +107,11 @@ }else if(n == 8){ return '换电完成' } + return '' } - //订单状态 1-已创建,2-换电中,3-换电完成,4-充电中,5-充电完成,6-待结算,7-已完成,9-已取消 + //订单状态 1-已创建,2-换电中,3-换电完成,4-充电中,5-充电完成,6-待支付,7-已完成,9-已取消 const statelist = reactive([ { name: '全部'}, { name: '进行中', status:'1,2,3,4,5' }, @@ -106,14 +121,25 @@ let status = ref('nomore') //loadmore loading + // { + // orderNo:'123456789DV2', + // plateNum:'冀A12345D', + // stationName:'石家庄1号换电站', + // amount:'2000', + // status:'2' + + // } + let list = ref([]) let pageNo = ref(1) let stanum = ref('') + let isempty = ref(false) //点击tabs function tabshand(n:any){ pageNo.value = 1 list.value.splice(0) stanum.value = n.status + isempty.value = false getlist() } function getlist() { @@ -135,6 +161,8 @@ status.value = 'loadmore' pageNo.value++ } + }else{ + isempty.value = true } }) } @@ -143,8 +171,9 @@ let bzlist = ref([]) function getbz(orderNo:any) { bzlist.value.splice(0) - show.value = true + dzbzxq(orderNo).then((rps:any) => { + show.value = true bzlist.value = rps.data }) } @@ -153,18 +182,29 @@ show.value = false } - function dsta(n:any) { - if(n == 6){ - return '待支付' - } - if(n == 7){ - return '已完成' - } - if(n == 9){ - return '已取消' - } - return '进行中' - } + const statev =ref({ + 1:'已创建', + 2:'换电中', + 3:'换电完成', + 4:'充电中', + 5:'充电完成', + 6:'待支付', + 7:'已完成', + 9:'已取消' + }) + + // function dsta(n:any) { + // if(n == 6){ + // return '待支付' + // } + // if(n == 7){ + // return '已完成' + // } + // if(n == 9){ + // return '已取消' + // } + // return '进行中' + // } function topay(url:string) { uni.navigateTo({ @@ -187,13 +227,14 @@ background: #f4f4f4; } .content{ - padding-bottom: 30rpx; + padding-bottom: 20rpx; .tabct{ position: fixed; width: 100%; box-sizing: border-box; padding-bottom: 10rpx; background: #fff; + z-index: 99; } .lisct{ padding-top: 130rpx; diff --git a/src/minePages/order/item.vue b/src/minePages/order/item.vue new file mode 100644 index 0000000..879c21b --- /dev/null +++ b/src/minePages/order/item.vue @@ -0,0 +1,224 @@ + + + + + \ No newline at end of file diff --git a/src/minePages/order/parcont.vue b/src/minePages/order/parcont.vue new file mode 100644 index 0000000..91c9b8f --- /dev/null +++ b/src/minePages/order/parcont.vue @@ -0,0 +1,32 @@ + + + + \ No newline at end of file diff --git a/src/minePages/payment/index.vue b/src/minePages/payment/index.vue index 31d1fb8..e31948e 100644 --- a/src/minePages/payment/index.vue +++ b/src/minePages/payment/index.vue @@ -24,8 +24,8 @@ 余额 - - + + 暂未开通 diff --git a/src/minePages/recharge/index.vue b/src/minePages/recharge/index.vue index 94d30bb..d83a7af 100644 --- a/src/minePages/recharge/index.vue +++ b/src/minePages/recharge/index.vue @@ -51,14 +51,14 @@