From 776605a3e29887f24e9e7addb19dde76d11ef2c3 Mon Sep 17 00:00:00 2001 From: cheng.xu Date: Wed, 9 Oct 2019 17:25:55 +0800 Subject: [PATCH] 商品结算页面 --- pages/cart/cart2/cart2.js | 29 +++++++++++++++++++---------- pages/cart/cart2/cart2.wxml | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------ pages/cart/cart2/cart2.wxss | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 178 insertions(+), 60 deletions(-) diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index 2037ebc..46b7daf 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -79,8 +79,6 @@ Page({ is_express:0,//选中物流的属性 - - express_name:"商家自配", expres_name:"",//点击选定 isopen:0,//券的说明 is_coupon:0,//选择券的控制属性 @@ -1082,18 +1080,26 @@ Page({ //--------立即购买时,选择自提和物流----------- setexptype_w:function(t){ var th=this; - var ty = t.currentTarget.dataset.t,txt = t.currentTarget.dataset.txt; + + var ty = t.currentTarget.dataset.t, txt = t.currentTarget.dataset.txt, ont = t.currentTarget.dataset.ont; th.setData({ [txt]: ty }); var iszt=1; + if(ty==0){ + th.setData({ is_all_zt: 0 }); }else{ for(var i=0;i
- + - + + @@ -28,15 +29,16 @@ 添加地址 - + + - 门店:{{item.pname}} + 门店:{{item.pname}} @@ -46,12 +48,12 @@ {{items.goods_name}} - - {{items.goods_spec}}/ - {{items.goods_color==null?"":items.goods_color}} - + - 商品属性: + 商品属性: + {{items.goods_spec}}/ + {{items.goods_color==null?"":items.goods_color}} + @@ -67,57 +69,95 @@ - 使用优惠券 + 优惠券 不使用 - {{using_quan[item.pickup_id].money}}元优惠券 + ¥{{using_quan[item.pickup_id].money}}元优惠券 + + + + - {{order.store_prom}} + + + {{order.store_prom}} - - - + + + + + + + + + + + + + + 门店自提 - - + + + + + + + + + + 快递邮寄 + + + + {{wu_arr[index].name}} + + + - - - - 留言 - - - - + - - + 使用余额 :¥{{yuer}} + + + + + + 留言 + + + + + + + - + 门店:{{bn_pickname}} @@ -127,11 +167,10 @@ {{bn_goods.goods_name}} - - {{bn_goods.goods_spec}}/{{bn_goods.goods_color}} - + - 商品属性: + 商品属性: + {{bn_goods.goods_spec}}/{{bn_goods.goods_color}} @@ -273,7 +312,22 @@ × - 可使用的优惠券 + + + 可使用的优惠券 + + 不使用优惠券 + + + Γ + + + + + + + + diff --git a/pages/cart/cart2/cart2.wxss b/pages/cart/cart2/cart2.wxss index 2a07175..09c6951 100644 --- a/pages/cart/cart2/cart2.wxss +++ b/pages/cart/cart2/cart2.wxss @@ -19,14 +19,14 @@ .pos-icon { position: absolute; left: 30rpx; - top: 0; + top: 9rpx; width: 32rpx; - height: 32.5rpx; + height: 37.5rpx; } .border-img { width: 100%; - height: 16rpx; + height: 12rpx; } .update-logistics { @@ -55,7 +55,7 @@ padding: 30rpx 0; border-bottom: 1px solid #ddd; color: #777; - min-height: 100rpx; + min-height: 240rpx; background-color: #fff; } @@ -82,6 +82,8 @@ .goods-color { font-size: 24rpx; + margin-left: 15rpx; + } .order-num { @@ -100,7 +102,6 @@ width:95%; margin:auto; - } .use-item>view{ display: flex;margin-right: 10rpx; @@ -136,13 +137,13 @@ margin:auto; } .coupon-mes { - height:80rpx; + height:95rpx; padding: 0 20rpx; background-color: #fff; font-size: 30rpx; color: #444; width: 100%; -border-bottom: 10rpx solid #eee; + } @@ -276,7 +277,7 @@ border-bottom: 10rpx solid #eee; .add_new{height: 60rpx; line-height: 60rpx;} .addr_jia{width: 45rpx; height: 45rpx; border: 1rpx solid #ddd; margin-right: 15rpx; margin-left: 20rpx; vertical-align: middle;} -.yu_er{margin-left: 15rpx;} .wuliu{margin-left: 20rpx;} +.yu_er{margin-left: 10rpx;margin-right: 60rpx;} .wuliu{margin-left: 20rpx;} /*---- 优惠券列表 -----*/ @@ -346,8 +347,6 @@ border-bottom: 10rpx solid #eee; .xc-frame{ width: 100%; height:68.9%; - margin-top:20rpx; - } .xc-frame .list-frame{ @@ -731,8 +730,8 @@ height:42rpx; } .may_use_coupon{ width: 95%; - height: 40rpx; - line-height:68rpx; + height: 68rpx; + line-height:78rpx; margin: auto; } .determine-frame{ @@ -758,8 +757,64 @@ margin: auto; margin-right:20rpx; } .xc-border{ - border-top:5rpx solid #eee; -margin-top:20rpx; + border-top:8rpx solid #eee; width: 100% +} +.main-top{ +margin-top: 20rpx; } +.xc-hookts{ +border: 1rpx solid #999; + +} +.xc-hookts.on{ + width:30rpx; +height:30rpx; + +} +.xc-hookt.sn{ + width: 32rpx; +height: 32rpx; +font-size: 28rpx; +line-height: 34rpx; +} +.xc-hookt{ + transform: rotate(-135deg); +text-align: center; + +} +.main-bottom{ + margin-bottom: 20rpx; + +} +.xc-hookst{ + border: 1rpx solid #999; + +} +.xc-hookst.ons{ + width: 42rpx; +height: 42rpx; +margin-left: 20rpx; + +} +.is_use_coupon{ + width: 65%; +justify-content: flex-end; +padding-top: 10rpx; + + +} +.xc-hooka{ + transform: rotate(-135deg); +text-align: center; + +} +.xc-hooka.sn{ + width: 45rpx; +height: 45rpx; +font-size: 28rpx; +line-height: 44rpx; +margin-left: 20rpx; + +} \ No newline at end of file -- libgit2 0.21.4