From 0043888aeeb88d72d9e43cfaa85929118b38b92e Mon Sep 17 00:00:00 2001 From: zhrrobert Date: Sun, 29 Aug 2021 21:01:20 +0800 Subject: [PATCH] update modules --- .../moduleA/groupCenter/groupDetail.json | 3 +- .../moduleA/groupCenter/groupDetail.wxml | 24 ++++-- .../moduleA/groupCenter/groupList.wxml | 5 +- .../moduleA/groupCenter/index.wxml | 2 +- .../groupCenter/pendingDeliveryOrders.js | 6 +- .../groupCenter/pendingDeliveryOrders.json | 3 +- .../groupCenter/pendingDeliveryOrders.wxml | 10 ++- .../groupCenter/pendingDeliveryOrders.wxss | 6 +- eaterplanet_ecommerce/moduleA/menu/index.js | 2 +- eaterplanet_ecommerce/moduleA/menu/index.json | 2 +- eaterplanet_ecommerce/moduleA/menu/index.wxml | 8 +- eaterplanet_ecommerce/moduleA/menu/index.wxss | 23 ++--- .../moduleA/menu/subcate.wxml | 1 + .../moduleA/pin/goodsDetail.wxml | 45 ++++++++-- .../moduleA/pin/goodsDetail.wxss | 1 - eaterplanet_ecommerce/moduleA/pin/share.wxml | 84 +++++++++++++------ eaterplanet_ecommerce/moduleB/rider/grab.json | 3 +- eaterplanet_ecommerce/moduleB/rider/grab.wxml | 10 ++- eaterplanet_ecommerce/moduleB/rider/index.js | 26 +++--- .../moduleB/rider/order.json | 3 +- .../moduleB/rider/order.wxml | 20 ++++- .../moduleB/writeoff/details.json | 3 +- .../moduleB/writeoff/details.wxml | 15 +++- .../moduleB/writeoff/index.wxml | 8 +- 24 files changed, 218 insertions(+), 95 deletions(-) diff --git a/eaterplanet_ecommerce/moduleA/groupCenter/groupDetail.json b/eaterplanet_ecommerce/moduleA/groupCenter/groupDetail.json index 06355fc..4849e1e 100644 --- a/eaterplanet_ecommerce/moduleA/groupCenter/groupDetail.json +++ b/eaterplanet_ecommerce/moduleA/groupCenter/groupDetail.json @@ -10,6 +10,7 @@ "i-order-info-express": "../../components/order/orderInfoExpress", "i-orderComment": "../../components/orderComment/index", "i-order-info": "../../components/orderInfo/index", - "i-modal": "../../components/modal/index" + "i-modal": "../../components/modal/index", + "i-cashon_delivery": "../../components/cashon_delivery/index" } } \ No newline at end of file diff --git a/eaterplanet_ecommerce/moduleA/groupCenter/groupDetail.wxml b/eaterplanet_ecommerce/moduleA/groupCenter/groupDetail.wxml index cccc7f2..335f631 100644 --- a/eaterplanet_ecommerce/moduleA/groupCenter/groupDetail.wxml +++ b/eaterplanet_ecommerce/moduleA/groupCenter/groupDetail.wxml @@ -19,7 +19,10 @@ - {{goodsInfo.name}} + + {{goodsInfo.name}} + + 规格:{{goodsInfo.option_str}} 数量:{{goodsInfo.quantity}} @@ -48,14 +51,19 @@ - - - 团长配送费:¥{{head_shipping_fare}} (归团长收入) + + + 货到付款 - - 实际佣金:¥{{commision}} - - ({{is_statements_state==1?'已结算':'待结算'}} {{statements_end_date}}) + + + 团长配送费:¥{{head_shipping_fare}} (归团长收入) + + + 实际佣金:¥{{commision}} + + ({{is_statements_state==1?'已结算':'待结算'}} {{statements_end_date}}) + diff --git a/eaterplanet_ecommerce/moduleA/groupCenter/groupList.wxml b/eaterplanet_ecommerce/moduleA/groupCenter/groupList.wxml index 1f00dd2..e2f6678 100644 --- a/eaterplanet_ecommerce/moduleA/groupCenter/groupList.wxml +++ b/eaterplanet_ecommerce/moduleA/groupCenter/groupList.wxml @@ -37,8 +37,9 @@ - - {{goods.name}} + + {{goods.name}} + 货到付款 商品数量:{{goods.quantity}} diff --git a/eaterplanet_ecommerce/moduleA/groupCenter/index.wxml b/eaterplanet_ecommerce/moduleA/groupCenter/index.wxml index 6a0619c..2dc5bd1 100644 --- a/eaterplanet_ecommerce/moduleA/groupCenter/index.wxml +++ b/eaterplanet_ecommerce/moduleA/groupCenter/index.wxml @@ -42,7 +42,7 @@ {{total_order_count}} - 总订单 + 总订单 {{total_member_count}} diff --git a/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.js b/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.js index 04fc6d3..83c58c3 100644 --- a/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.js +++ b/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.js @@ -276,11 +276,15 @@ Page({ var n = this.data.order; var sub_order_arr = []; + let is_cashon_delivery = false; n.forEach(function(e) { if (e.checked) { sub_order_arr.push(e.order_id) } + if(e.payment_code=="cashon_delivery") { + is_cashon_delivery = true; + } }) if (sub_order_arr.length <= 0) { @@ -293,7 +297,7 @@ Page({ var token = wx.getStorageSync('token'); wx.showModal({ title: "订单提货确认", - content: "请确认买家已收选中的商品,再进行提货确认哦!", + content: is_cashon_delivery?"所选商品含货到付款,请再次确认是否已收款":"请确认买家已收选中的商品,再进行提货确认哦!", confirmText: "确定", confirmColor: "#FF673F", success: function(t) { diff --git a/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.json b/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.json index ab7b2a6..fba6c64 100644 --- a/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.json +++ b/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.json @@ -6,6 +6,7 @@ "navBar": "miniprograms-navigation-bar/index", "i-auth": "../../components/auth/index", "component-img": "../../components/image/index", - "i-aside-btn": "../../components/asideBtn/index" + "i-aside-btn": "../../components/asideBtn/index", + "i-cashon_delivery": "../../components/cashon_delivery/index" } } \ No newline at end of file diff --git a/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.wxml b/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.wxml index 2d16a27..1d839b5 100644 --- a/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.wxml +++ b/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.wxml @@ -14,10 +14,13 @@ - - 订单编号:{{item.order_num_alias}} + + + 订单编号:{{item.order_num_alias}} + 提货人:{{item.shipping_name}}手机号:{{item.shipping_tel}} - {{item.createTime}} + {{item.createTime}} + {{item.status_name}} @@ -34,6 +37,7 @@ {{skuItem.name}} + 货到付款 {{skuItem.option_str}}; 共{{skuItem.quantity}}件 diff --git a/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.wxss b/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.wxss index 51498ce..c7af764 100644 --- a/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.wxss +++ b/eaterplanet_ecommerce/moduleA/groupCenter/pendingDeliveryOrders.wxss @@ -50,12 +50,12 @@ align-items: center; background: #fff; margin-bottom: 2rpx; - height: 145rpx; + /* height: 145rpx; */ } .order-item .order-title .order-msg { width: 550rpx; - height: 145rpx; + /* height: 145rpx; */ display: flex; flex-direction: column; justify-content: center; @@ -119,7 +119,7 @@ text-overflow: initial; white-space: normal; font-size: 28rpx; - height: 80rpx; + /* height: 80rpx; */ margin-bottom: 12rpx; } diff --git a/eaterplanet_ecommerce/moduleA/menu/index.js b/eaterplanet_ecommerce/moduleA/menu/index.js index 349da56..7a6bae6 100644 --- a/eaterplanet_ecommerce/moduleA/menu/index.js +++ b/eaterplanet_ecommerce/moduleA/menu/index.js @@ -7,7 +7,7 @@ Page({ data: { loadMore: true, classification: { - tabs: [], + menutabs: [], activeIndex: 0 }, tabTop: 0, diff --git a/eaterplanet_ecommerce/moduleA/menu/index.json b/eaterplanet_ecommerce/moduleA/menu/index.json index fe3e63d..ec63702 100644 --- a/eaterplanet_ecommerce/moduleA/menu/index.json +++ b/eaterplanet_ecommerce/moduleA/menu/index.json @@ -8,7 +8,7 @@ "i-new-auth": "../../components/new-auth/index", "masonry": "../components/masonry/masonry", "i-img": "../../components/img/index", - "i-tabs": "../../components/tabs/index", + "i-menutabs": "../../components/menutabs/index", "img-box": "../components/img-box/img-box", "i-empty": "../../components/empty/index", "i-tabbar": "../../components/tabbar/index" diff --git a/eaterplanet_ecommerce/moduleA/menu/index.wxml b/eaterplanet_ecommerce/moduleA/menu/index.wxml index 90cfe7e..9459066 100644 --- a/eaterplanet_ecommerce/moduleA/menu/index.wxml +++ b/eaterplanet_ecommerce/moduleA/menu/index.wxml @@ -13,7 +13,7 @@ - + - + 今日推荐 - + + - diff --git a/eaterplanet_ecommerce/moduleA/menu/index.wxss b/eaterplanet_ecommerce/moduleA/menu/index.wxss index 8ff326a..67d2219 100644 --- a/eaterplanet_ecommerce/moduleA/menu/index.wxss +++ b/eaterplanet_ecommerce/moduleA/menu/index.wxss @@ -1,6 +1,6 @@ .search-box { position: fixed; - + background-color: #ff758c; left: 0; right: 0; padding: 20rpx; @@ -34,7 +34,7 @@ .search-fav { text-align: center; line-height: 1; - color: #a1a8ca; + color: #fff; } .search-fav .iconfont { @@ -43,13 +43,13 @@ /* 幻灯片 */ .swipe { - height: 320rpx; + height: 200rpx; } .swiper-content { width: 750rpx; - height: 320rpx; - border-radius: 12rpx; + height: 200rpx; + border-radius: 20rpx; } .swiper-content swiper-item { @@ -65,26 +65,27 @@ .swiper-content .banner { width: 710rpx; - height: 320rpx; + height: 200rpx; margin: 0 20rpx; display: block; - border-radius: 12rpx; + border-radius: 20rpx; position: relative; overflow: hidden; } .swiper-content .banner .banner-img { width: 710rpx; - height: 320rpx; - border-radius: 12rpx; + height: 200rpx; + border-radius: 20rpx; display: block; overflow: hidden; } .cate-title { position: relative; - padding: 30rpx 20rpx 20rpx 40rpx; + padding: 30rpx 20rpx 16rpx 40rpx; font-size: 34rpx; + color: #fff; } .cate-title::before { @@ -93,7 +94,7 @@ top: 35rpx; bottom: 20rpx; left: 20rpx; - border-left: 8rpx solid #ff758c; + border-left: 8rpx solid #fff; } ::-webkit-scrollbar { diff --git a/eaterplanet_ecommerce/moduleA/menu/subcate.wxml b/eaterplanet_ecommerce/moduleA/menu/subcate.wxml index b47f062..3cfb68d 100644 --- a/eaterplanet_ecommerce/moduleA/menu/subcate.wxml +++ b/eaterplanet_ecommerce/moduleA/menu/subcate.wxml @@ -1,4 +1,5 @@ + {{item.name}} diff --git a/eaterplanet_ecommerce/moduleA/pin/goodsDetail.wxml b/eaterplanet_ecommerce/moduleA/pin/goodsDetail.wxml index 75291f9..7cb7842 100644 --- a/eaterplanet_ecommerce/moduleA/pin/goodsDetail.wxml +++ b/eaterplanet_ecommerce/moduleA/pin/goodsDetail.wxml @@ -107,7 +107,39 @@ - + + + + + 拼团玩法 + 查看规则 + + + + 1 + 支付开团 + 参团 + + + 2 + 邀请用户 + 参团 + + + 3 + 拼团成功中 + 奖人员发货 + + + 4 + 未中奖人员退 + 款发放奖励 + + + + + + 拼团玩法 @@ -321,10 +353,11 @@ - - - 客服 - + + - + - - - 拼团玩法 - 查看规则 - - - - 1 - 支付开团 - 参团 - - - 2 - 邀请用户 - 参团 - - - 3 - 拼团成功 - 按时送达 + + + + + 拼团玩法 + 查看规则 + + + + 1 + 支付开团 + 参团 + + + 2 + 邀请用户 + 参团 + + + 3 + 拼团成功中 + 奖人员发货 + + + 4 + 未中奖人员退 + 款发放奖励 + + - - 4 - 逾期未成 - 团退款 + + + + + + 拼团玩法 + 查看规则 + + + + 1 + 支付开团 + 参团 + + + 2 + 邀请用户 + 参团 + + + 3 + 拼团成功 + 按时送达 + + + 4 + 逾期未成 + 团退款 + + - diff --git a/eaterplanet_ecommerce/moduleB/rider/grab.json b/eaterplanet_ecommerce/moduleB/rider/grab.json index 9d69ba1..c62e1fd 100644 --- a/eaterplanet_ecommerce/moduleB/rider/grab.json +++ b/eaterplanet_ecommerce/moduleB/rider/grab.json @@ -3,6 +3,7 @@ "usingComponents": { "navBar": "miniprograms-navigation-bar/index", "i-fixed-bottom": "../../components/fixed-bottom/index", - "i-empty": "../../components/empty/index" + "i-empty": "../../components/empty/index", + "i-cashon_delivery": "../../components/cashon_delivery/index" } } \ No newline at end of file diff --git a/eaterplanet_ecommerce/moduleB/rider/grab.wxml b/eaterplanet_ecommerce/moduleB/rider/grab.wxml index 22cea87..02a46f2 100644 --- a/eaterplanet_ecommerce/moduleB/rider/grab.wxml +++ b/eaterplanet_ecommerce/moduleB/rider/grab.wxml @@ -2,10 +2,14 @@ - 订单编号: {{item.order_num_alias}} - - {{item.shop_name}} + + 订单编号: {{item.order_num_alias}} + 货到付款 + + + {{item.shop_name}} + diff --git a/eaterplanet_ecommerce/moduleB/rider/index.js b/eaterplanet_ecommerce/moduleB/rider/index.js index 0954ba9..85ee805 100644 --- a/eaterplanet_ecommerce/moduleB/rider/index.js +++ b/eaterplanet_ecommerce/moduleB/rider/index.js @@ -44,16 +44,22 @@ Page({ getMyLocal: function() { let that = this; location.getGps().then(ret=>{ - wx.getLocation({ - type: 'wgs84', - success: (res) => { - that.setData({ - scale: 12, - longitude: res.longitude, - latitude: res.latitude - }) - } - }); + that.setData({ + scale: 12, + longitude: ret.longitude, + latitude: ret.latitude + }) + // wx.getLocation({ + // type: 'wgs84', + // success: (res) => { + // console.log("getMyLocal",res) + // that.setData({ + // scale: 12, + // longitude: res.longitude, + // latitude: res.latitude + // }) + // } + // }); }).catch(()=>{ app.util.message('地图功能开启失败', '', 'error'); }) diff --git a/eaterplanet_ecommerce/moduleB/rider/order.json b/eaterplanet_ecommerce/moduleB/rider/order.json index ce80cbd..4a48b21 100644 --- a/eaterplanet_ecommerce/moduleB/rider/order.json +++ b/eaterplanet_ecommerce/moduleB/rider/order.json @@ -5,6 +5,7 @@ "usingComponents": { "navBar": "miniprograms-navigation-bar/index", "i-load-more": "../../components/load-more/index", - "i-empty": "../../components/empty/index" + "i-empty": "../../components/empty/index", + "i-cashon_delivery": "../../components/cashon_delivery/index" } } \ No newline at end of file diff --git a/eaterplanet_ecommerce/moduleB/rider/order.wxml b/eaterplanet_ecommerce/moduleB/rider/order.wxml index 0ea689e..ceaaf88 100644 --- a/eaterplanet_ecommerce/moduleB/rider/order.wxml +++ b/eaterplanet_ecommerce/moduleB/rider/order.wxml @@ -9,12 +9,18 @@ - 订单编号: {{item.order_num_alias}} + + 订单编号: {{item.order_num_alias}} + + - {{goods.name}} + + {{goods.name}} + 货到付款 + {{goods.option_str}}x{{goods.quantity}} 小计¥{{goods.total}} @@ -49,12 +55,18 @@ - 订单编号: {{item.order_num_alias}} + + 订单编号: {{item.order_num_alias}} + + - {{goods.name}} + + {{goods.name}} + 货到付款 + {{goods.option_str}}x{{goods.quantity}} 小计¥{{goods.total}} diff --git a/eaterplanet_ecommerce/moduleB/writeoff/details.json b/eaterplanet_ecommerce/moduleB/writeoff/details.json index c4ed7cc..5aa1ea8 100644 --- a/eaterplanet_ecommerce/moduleB/writeoff/details.json +++ b/eaterplanet_ecommerce/moduleB/writeoff/details.json @@ -4,6 +4,7 @@ "usingComponents": { "navBar": "miniprograms-navigation-bar/index", "i-input-number": "../../components/input-number/index", - "i-modal": "../../components/modal/index" + "i-modal": "../../components/modal/index", + "i-cashon_delivery": "../../components/cashon_delivery/index" } } \ No newline at end of file diff --git a/eaterplanet_ecommerce/moduleB/writeoff/details.wxml b/eaterplanet_ecommerce/moduleB/writeoff/details.wxml index e62a355..4bcbbd6 100644 --- a/eaterplanet_ecommerce/moduleB/writeoff/details.wxml +++ b/eaterplanet_ecommerce/moduleB/writeoff/details.wxml @@ -1,6 +1,9 @@ - 用户信息 + + 用户信息 + + 昵称:{{orders.username}} 收货人:{{orders.shipping_name}} @@ -20,9 +23,13 @@ - - {{item.goods_name}} - x {{item.quantity}} + + + {{item.goods_name}} + 货到付款 + + {{item.option_sku}} + x {{item.quantity}} diff --git a/eaterplanet_ecommerce/moduleB/writeoff/index.wxml b/eaterplanet_ecommerce/moduleB/writeoff/index.wxml index 903b020..e454755 100644 --- a/eaterplanet_ecommerce/moduleB/writeoff/index.wxml +++ b/eaterplanet_ecommerce/moduleB/writeoff/index.wxml @@ -69,11 +69,15 @@ {{item.goods_name}} + + {{item.option_sku}} x{{item.quantity}} + + 小计 ¥{{item.total}} {{item.hexiao_count}} 核销类型:订单核销 - 核销类型:按次核销;本次核销消耗{{item.hexiao_count2}} - + 核销类型:按次核销;本次核销消耗{{item.hexiao_count2}} +