From 5b2b2e0c7847186274b748b6739a9032a340f702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87?= Date: Mon, 10 Mar 2025 13:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/order.js | 6 +-- pages/index/index.js | 18 ++------- pages/index/index.wxml | 61 ++++++++++++++++-------------- pages/index/index.wxss | 68 +++++++++++++++++++++++----------- pages/withdraw/index/index.js | 1 + pages/withdraw/list/index.wxml | 2 +- 6 files changed, 90 insertions(+), 66 deletions(-) diff --git a/api/order.js b/api/order.js index 7f757df..039462c 100644 --- a/api/order.js +++ b/api/order.js @@ -29,9 +29,9 @@ export default { check:()=>request.get('/api/order/deliveryman/check_new_order'), markUp:{ - status:{ - pending:"PENDING", - accepted:"ACCEPTED" + status:{pending:"PENDING",accepted:"ACCEPTED"}, + statusKV:{ + PENDING:'申请中',ACCEPTED:'已同意' }, add:(data)=>request.post('/api/order-additional-fee',data), get:(orderid)=>request.get(`/api/order-additional-fee/order/${orderid}`,{},{noTips:true}), diff --git a/pages/index/index.js b/pages/index/index.js index 4987586..56db330 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -63,7 +63,9 @@ Page({ }, unReadOrderCount:0, - selectedOrderId:'' + selectedOrderId:'', + + markupStatusKV:orderApi.markUp.statusKV }, onLoad(){ this.orderBackgroundNotice = this.selectComponent('#orderBackgroundNotice'); @@ -74,11 +76,6 @@ Page({ }); this.getUserInfo().then(()=>{ - app.getSummary().then((data)=>{ - this.setData({ - summary:data - }); - }); return this.loadStatusDetail(); }).then((data)=>{ return this.loadBuilding(); @@ -87,13 +84,6 @@ Page({ }); }, findNewOrder(){ - // app.forceGetUserInfo().then((data)=>{ - // if(data.nickname=='仙人模斗'){ - // this.haveNewOrder = true; - // this.orderBackgroundNotice.notice(); - // } - // }) - // return; orderApi.check().then((data)=>{ if(data.has_new_order){ this.orderBackgroundNotice.notice(); @@ -144,7 +134,7 @@ Page({ orderSummary:data }) }); - userApi.summary().then((data)=>{ + app.forceGetSummary().then((data)=>{ this.setData({ summary:data }) diff --git a/pages/index/index.wxml b/pages/index/index.wxml index a14fffb..ba8895e 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -37,37 +37,44 @@ bind:loadMore="loadList" refresher-triggered="{{pager.refreshTrigger}}" show-load-more="{{!(list.length==0&&pager.loadAll)}}" loading="{{pager.loading}}" load-all="{{pager.loadAll}}"> - - - 代取快递 - - 期望送达 - - - - - {{pItem.station_name}} {{pItem.pickup_codes.length}} 件 - - {{ - item.status==orderStatus.received?(pItem.receivedAll?'已取件':'待取件'): - item.status==orderStatus.delivering?'已取件':'' - }} + + + + 代取快递 + + 期望送达 - - 图片取件 {{item.pickup_images_count}} 件 + + + {{pItem.station_name}} {{pItem.pickup_codes.length}} 件 + + {{ + item.status==orderStatus.received?(pItem.receivedAll?'已取件':'待取件'): + item.status==orderStatus.delivering?'已取件':'' + }} + + + + 图片取件 {{item.pickup_images_count}} 件 + - - - - {{item.address.community_name}} - {{item.address.building_name}} - {{item.address.address_detail}} + + + {{item.address.community_name}} + {{item.address.building_name}} + {{item.address.address_detail}} + + + {{item.address.name}}{{genderKV[item.address.gender]}}:{{item.address.phone}}丨{{deliverStatusKV[item.delivery_method]}} + - - {{item.address.name}}{{genderKV[item.address.gender]}}:{{item.address.phone}}丨{{deliverStatusKV[item.delivery_method]}} + + + 【】加价金额: + diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 512c80d..3c0f64f 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -139,6 +139,7 @@ .package-list .item .item-head .time{ color:#ff0000; font-weight: 500; + margin-left:20rpx; } .package-list .item:first-child{ margin-top:8rpx; @@ -151,9 +152,15 @@ left:38.5rpx;top:160rpx; bottom:250rpx; } +.package-list .item.has-markup::before{ + bottom:200rpx; +} .package-list .item.no-btns::before{ bottom:100rpx; } +.package-list .item.no-btns.has-markup::before{ + bottom:50rpx; +} .package-list .item .name{ font-size: 40rpx; font-weight: 600; @@ -179,15 +186,6 @@ display: flex; align-items: center; } -.package-list .item .station-list .sl-item:first-child::before{ - content: '取'; - left:0;top:0; - width:40rpx;height:40rpx; - color:#fff; - font-size: 24rpx; - text-align: center; - line-height: 40rpx; -} .package-list .item .station-list .sl-item::before{ position: absolute; left:12rpx;top:12rpx; @@ -197,6 +195,46 @@ border-radius: 50%; display: inline-block; } + +.package-list .item .station-list .sl-item:first-child::before, +.package-list .item .address::before, +.package-list .item .markup .mu-item::before{ + position: absolute; + content: '取'; + left:0;top:0; + width:40rpx;height:40rpx; + color:#fff; + font-size: 24rpx; + text-align: center; + line-height: 40rpx; + border-radius: 50%; +} + +.package-list .item .address::before{ + content: '送'; + background-color: var(--main-color); +} +.package-list .item .markup{ + font-size: 34rpx; + line-height: 40rpx; + padding-bottom:20rpx; + color: var(--main-font-color); +} +.package-list .item .markup .bold{ + font-weight: 500; +} +.package-list .item .markup .mu-item{ + padding-left:48rpx; + position: relative; + display: flex; + align-items: center; + margin-top:30rpx; +} +.package-list .item .markup .mu-item::before{ + content: '加'; + background-color:#ff0000; +} + /* .package-list .item .package .value{ flex:1; display: flex; @@ -209,18 +247,6 @@ position: relative; padding-bottom:20rpx; } -.package-list .item .address::before{ - content: '送'; - position: absolute; - top:0;left:0; - width:40rpx;height:40rpx; - background-color: var(--main-color); - border-radius: 50%; - color:#fff; - line-height: 40rpx; - text-align: center; - font-size: 24rpx; -} .package-list .item .address .title{ color:var(--main-font-color); font-size: 40rpx; diff --git a/pages/withdraw/index/index.js b/pages/withdraw/index/index.js index 37932dd..79524c5 100644 --- a/pages/withdraw/index/index.js +++ b/pages/withdraw/index/index.js @@ -24,6 +24,7 @@ Page({ item.endNumber = item.card_number.substr(item.card_number.length-4,item.card_number.length); }); this.setData({ + bank:data.length>0?data[0].id:'', bankList:data }) }); diff --git a/pages/withdraw/list/index.wxml b/pages/withdraw/list/index.wxml index 0b4a3b7..f73df7f 100644 --- a/pages/withdraw/list/index.wxml +++ b/pages/withdraw/list/index.wxml @@ -13,7 +13,7 @@ {{statusKV[item.status]}} - + 暂无记录