Authored by yyq

cart

1 -Component({  
2 - properties: {  
3 - item: {  
4 - type: Object,  
5 - value: {},  
6 - observer: '_itemChange'  
7 - },  
8 - index: {  
9 - type: Number,  
10 - value: 0  
11 - }  
12 - },  
13 - methods: {  
14 - _itemChange(item) {  
15 - if (item) {  
16 - item.mark_price = item.sales_price;  
17 -  
18 - switch (item.goods_type) {  
19 - case 'price_gift':  
20 - item.sales_price = +item.last_price;  
21 - break;  
22 - case 'gift':  
23 - item.sales_price = 0;  
24 - break;  
25 - default:  
26 - if (item.last_vip_price < item.sales_price) {  
27 - item.sales_price = item.last_vip_price;  
28 - }  
29 - break;  
30 - }  
31 -  
32 - if (item.mark_price <= item.sales_price) {  
33 - delete item.mark_price;  
34 - }  
35 -  
36 - item.isVipPrice = item.vip_discount_money > 0;  
37 -  
38 - this.setData({item});  
39 - }  
40 - },  
41 - itemTapped() {  
42 - this.triggerEvent('itemTapped', this.data.item);  
43 - }  
44 - }  
45 -});  
1 -<wxs src="../../../wxs/helper.wxs" module="helper" />  
2 -  
3 -<view class="goods-item" bindtap="itemTapped">  
4 - <view class="choose-btn">  
5 - <block wx:if="{{item.goods_type !== 'gift' && !item.batch_no && !item.bundle_activity_id}}">  
6 - <text class="iconfont icon-duihao-fill" wx:if="{{item.selected === 'Y'}}"></text>  
7 - <text class="iconfont icon-round" wx:else></text>  
8 - </block>  
9 - </view>  
10 -  
11 - <image class="thumb" src="{{helper.image(item.goods_images || item.goods_image, 76, 100)}}">  
12 - <view class="goods-type price-gift-tag" wx:if="{{item.goods_type === 'price_gift'}}">  
13 - <text>加价购</text>  
14 - </view>  
15 - <view class="goods-type gift-tag" wx:if="{{item.goods_type === 'gift'}}">  
16 - <text>赠品</text>  
17 - </view>  
18 - <view class="goods-type virtual-tag" wx:if="{{item.goods_type === 'ticket'}}">  
19 - <text>虚拟商品</text>  
20 - </view>  
21 - <view class="goods-type advance-tag" wx:if="{{item.goods_type === 'advance'}}">  
22 - <text>预售</text>  
23 - </view>  
24 - <view class="goods-type low-storage-tag" wx:if="{{item.buy_number > item.storage_number}}">  
25 - <text>库存不足</text>  
26 - </view>  
27 - </image>  
28 -  
29 - <view class="info">  
30 - <view class="info-wrap">  
31 - <view class="name">{{item.product_name}}</view>  
32 - <view class="color-size">颜色:{{item.factory_goods_name}} 尺码:{{item.size_name}}</view>  
33 - <view class="price">  
34 - <text class="sale-price">¥ {{helper.round(item.sales_price)}}</text>  
35 - <text wx:if="{{item.mark_price}}" class="mark-price">¥ {{helper.round(item.mark_price)}}</text>  
36 - <text class="vip-price-tig" wx:if="{{item.isVipPrice}}">VIP</text>  
37 - </view>  
38 - <view class="price-down" wx:if="{{item.price_down > 0}}">  
39 - <text>已降¥{{item.price_down}}</text>  
40 - </view>  
41 - </view>  
42 -  
43 -  
44 -  
45 - </view>  
46 - <view class="buy-num">  
47 - <text>x {{item.buy_number}}</text>  
48 - </view>  
49 -</view>  
1 -@import "../../../iconfont.wxss";  
2 -  
3 -.goods-item {  
4 - width: 100%;  
5 - height: 200rpx;  
6 - line-height: 200rpx;  
7 - padding: 20rpx 0;  
8 - font-size: 26rpx;  
9 - display: flex;  
10 - flex-direction: row;  
11 - position: relative;  
12 -}  
13 -  
14 -.goods-item:before {  
15 - content: '';  
16 - height: 1rpx;  
17 - position: absolute;  
18 - left: 100rpx;  
19 - right: 0;  
20 - top: -1rpx;  
21 - background-color: #f0f0f0;  
22 -}  
23 -  
24 -.goods-item.top-none:before {  
25 - display: none;  
26 -}  
27 -  
28 -.goods-item .red {  
29 - color: #d0021b;  
30 -}  
31 -  
32 -.goods-item .choose-btn {  
33 - width: 100rpx;  
34 - text-align: center;  
35 - display: flex;  
36 - flex-direction: row;  
37 -}  
38 -  
39 -.goods-item .choose-btn .iconfont {  
40 - margin: auto;  
41 -}  
42 -  
43 -.goods-item .thumb {  
44 - width: 150rpx;  
45 - height: 200rpx;  
46 - background-color: #f3f3f3;  
47 - display: flex;  
48 - flex-direction: row;  
49 - position: relative;  
50 -}  
51 -  
52 -.goods-item .thumb .goods-type {  
53 - width: 100%;  
54 - height: 30rpx;  
55 - line-height: 30rpx;  
56 - font-size: 20rpx;  
57 - background-color: #444;  
58 - color: #fff;  
59 - text-align: center;  
60 - position: absolute;  
61 - left: 0;  
62 - bottom: 0;  
63 -}  
64 -  
65 -.goods-item .thumb .price-gift-tag {  
66 - background-color: #fc1261;  
67 -}  
68 -  
69 -.goods-item .thumb .gift-tag {  
70 - background-color: #85c45c;  
71 -}  
72 -  
73 -.goods-item .thumb .low-storage-tag {  
74 - background-color: #b0b0b0;  
75 -}  
76 -  
77 -.goods-item .thumb .virtual-tag {  
78 - background-color: #c80813;  
79 -}  
80 -  
81 -.goods-item .info {  
82 - line-height: 1.5;  
83 - display: flex;  
84 - flex-direction: row;  
85 -}  
86 -  
87 -.goods-item .info-wrap {  
88 - width: 380rpx;  
89 - padding-left: 20rpx;  
90 -}  
91 -  
92 -.goods-item .info-wrap .name {  
93 - line-height: 1.4;  
94 - direction: flex;  
95 - display: -webkit-box;  
96 - overflow: hidden;  
97 - text-overflow: ellipsis;  
98 - -webkit-line-clamp: 2;  
99 - -webkit-box-orient: vertical;  
100 - margin-top: 20rpx;  
101 -}  
102 -  
103 -.goods-item .info-wrap .color-size {  
104 - padding: 10rpx 0;  
105 - line-height: 1.3;  
106 - color: #b0b0b0;  
107 - font-size: 24rpx;  
108 -}  
109 -  
110 -.goods-item .info-wrap .sale-price {  
111 - color: #d0021b;  
112 - margin-right: 10rpx;  
113 -}  
114 -  
115 -.goods-item .info-wrap .mark-price {  
116 - color: #b0b0b0;  
117 - margin-right: 10rpx;  
118 - text-decoration: line-through;  
119 -}  
120 -  
121 -.goods-item .info-wrap .vip-price-tig {  
122 - height: 28rpx;  
123 - line-height: 28rpx;  
124 - padding: 0 14rpx;  
125 - border-radius: 16rpx;  
126 - font-size: 22rpx;  
127 - color: #fff;  
128 - background-color: #d0021b;  
129 -}  
130 -  
131 -  
132 -.goods-item .buy-num {  
133 - padding-top: 20rpx;  
134 - line-height: 1.4;  
135 - color: #b0b0b0;  
136 - position: absolute;  
137 - right: 30rpx;  
138 -}  
@@ -197,6 +197,10 @@ const formatOrdinaryCartData = (data) => { @@ -197,6 +197,10 @@ const formatOrdinaryCartData = (data) => {
197 ordinaryCart.isValidGoodsSelectAll = allGoodsSelect.val(); 197 ordinaryCart.isValidGoodsSelectAll = allGoodsSelect.val();
198 ordinaryCart.shoppingCartData = data.shopping_cart_data; 198 ordinaryCart.shoppingCartData = data.shopping_cart_data;
199 199
  200 + if (data.promotion_info && data.promotion_info.length) {
  201 + ordinaryCart.promotionInfo = data.promotion_info;
  202 + }
  203 +
200 console.log(ordinaryCart); 204 console.log(ordinaryCart);
201 return { 205 return {
202 isEmptyCart, 206 isEmptyCart,
1 { 1 {
2 "navigationBarTitleText": "购物车", 2 "navigationBarTitleText": "购物车",
3 "usingComponents": { 3 "usingComponents": {
4 - "cart-item": "/components/product/cart-item/cart-item" 4 + "cart-item": "/components/cart/item/item",
  5 + "cart-edit": "/components/cart/edit/edit"
5 } 6 }
6 } 7 }
  1 +<wxs src="../../wxs/helper.wxs" module="helper" />
  2 +
1 <import src="./template/cart/goods-pool.wxml"/> 3 <import src="./template/cart/goods-pool.wxml"/>
  4 +<import src="./template/cart/goods-list.wxml"/>
  5 +<import src="./template/cart/gift-list.wxml"/>
  6 +<import src="./template/cart/invalid-list.wxml"/>
2 7
3 <block wx:if="{{isEmptyCart}}"> 8 <block wx:if="{{isEmptyCart}}">
4 - <view class="empty-cart">  
5 - <image src='../../static/images/empty_cart.png' class='empty-img'></image>  
6 - <text class='empty-desc'>购物车空空如也\n去挑选中意的商品</text>  
7 - <view class='shopping-btn' bindtap='goShopping'>去逛逛</view>  
8 - </view> 9 + <view class="empty-cart">
  10 + <image src='../../static/images/empty_cart.png' class='empty-img'></image>
  11 + <text class='empty-desc'>购物车空空如也\n去挑选中意的商品</text>
  12 + <view class='shopping-btn' bindtap='goShopping'>去逛逛</view>
  13 + </view>
9 </block> 14 </block>
10 <block wx:else> 15 <block wx:else>
11 - <scroll-view scroll-y style="height: 100%;">  
12 - <view class="tips-wrap">  
13 - <view class="hold-text">  
14 - <text>{{priceDownTips || shippingCostTips}}</text> 16 + <scroll-view scroll-y style="height: 100%;">
  17 + <view class="tips-wrap" wx:if="{{priceDownTips || shippingCostTips}}">
  18 + <view class="hold-text">
  19 + <text>{{priceDownTips || shippingCostTips}}</text>
  20 + </view>
  21 + <view wx:if="{{shippingCostTips || priceDownTips}}" class="fixed-top-tips">
  22 + <view wx:if="{{priceDownTips}}" class="price-down-tips">
  23 + <text>{{priceDownTips}}</text>
  24 + <text class="iconfont icon-top" bindtap='tapPriceDownTipsAction'></text>
  25 + </view>
  26 + <view wx:else class="shipping-cost-tips">{{shippingCostTips}}</view>
  27 + <view class="edit-cart-btn" bindtap="editCartAction">{{isEditing ? '完成' : '编辑商品'}}</view>
  28 + </view>
  29 + </view>
  30 +
  31 + <!-- 商品池 -->
  32 + <template is="cartGoodsPool" data="{{goodsPoolList, isEditing}}"/>
  33 +
  34 + <!-- 商品列表 -->
  35 + <view wx:if="{{goodsList}}">
  36 + <template is="cartGoodsList" data="{{goodsList, isEditing}}"/>
  37 + <view class="split-line"></view>
  38 + </view>
  39 +
  40 + <!-- 加价购&赠品 -->
  41 + <template is="cartGiftList" data="{{giftList: gGiftAndPriceGiftList}}"/>
  42 +
  43 + <!-- 无效商品 -->
  44 + <template is="cartInvalidList" data="{{invalidGoodsList}}"/>
  45 +
  46 + <!-- 已参与活动 -->
  47 + <view class="used-promotion" wx:if="{{promotionInfo}}">
  48 + <view class="promotion-title">已参与活动</view>
  49 + <block wx:for="{{promotionInfo}}" wx:key="unique">
  50 + <view class="promotion-item">• {{item.promotion_title}}</view>
  51 + </block>
  52 + </view>
  53 +
  54 + <!-- 总计价格 -->
  55 + <block wx:if="{{shoppingCartData}}">
  56 + <view class="total-cost">{{shoppingCartData.promotion_formula}}</view>
  57 + <view class="split-line"></view>
  58 +
  59 + <view class="footer-wrap">
  60 + <view class="footer-fixed">
  61 + <view class="select-all-btn">
  62 + <text class="iconfont icon-duihao-fill" wx:if="{{isSelectAll}}"></text>
  63 + <text class="iconfont icon-round" wx:else></text>
  64 + <text>全选</text>
  65 + </view>
  66 + <view class="settlement-block">
  67 + <view class="footer-total-cost">
  68 + <text class="cost">总计¥{{helper.round(shoppingCartData.last_order_amount)}}({{shoppingCartData.selected_goods_count}})件</text>
  69 + <text class="no-freight">不含运费</text>
15 </view> 70 </view>
16 - <view wx:if="{{shippingCostTips || priceDownTips}}" class="fixed-top-tips">  
17 - <view wx:if="{{priceDownTips}}" class="price-down-tips">  
18 - <text>{{priceDownTips}}</text>  
19 - <text class="iconfont icon-top" bindtap='tapPriceDownTipsAction'></text>  
20 - </view>  
21 - <view wx:else class="shipping-cost-tips">{{shippingCostTips}}</view>  
22 - <view class="edit-cart-btn" bindtap="editCartAction">{{isEditing ? '完成' : '编辑商品'}}</view> 71 + <view class="payment-btn" bindtap="paymentAction" style="{{shoppingCartData.selected_goods_count > 0 ? '' : 'background-color: #b0b0b0'}}">
  72 + <text>结算</text>
23 </view> 73 </view>
  74 + </view>
24 </view> 75 </view>
  76 + </view>
  77 + </block>
25 78
26 - <template is="cartGoodsPool" data="{{goodsPoolList}}"/>  
27 79
28 - </scroll-view> 80 + </scroll-view>
29 </block> 81 </block>
1 @import "./template/cart/goods-pool.wxss"; 1 @import "./template/cart/goods-pool.wxss";
  2 +@import "./template/cart/gift-list.wxss";
  3 +@import "./template/cart/invalid-list.wxss";
2 4
3 page { 5 page {
4 height: 100%; 6 height: 100%;
@@ -70,7 +72,6 @@ page { @@ -70,7 +72,6 @@ page {
70 top: 50%; 72 top: 50%;
71 right: 30rpx; 73 right: 30rpx;
72 margin-top: -30rpx; 74 margin-top: -30rpx;
73 - font-family: PingFang-SC-Regular;  
74 color: #d0021b; 75 color: #d0021b;
75 } 76 }
76 77
@@ -79,3 +80,94 @@ page { @@ -79,3 +80,94 @@ page {
79 height: 20rpx; 80 height: 20rpx;
80 background-color: #eee; 81 background-color: #eee;
81 } 82 }
  83 +
  84 +.used-promotion {
  85 + padding: 10rpx 30rpx;
  86 + border-bottom: 1rpx solid #f0f0f0;
  87 + font-size: 26rpx;
  88 + line-height: 1.4;
  89 +}
  90 +
  91 +.used-promotion .promotion-title {
  92 + font-size: 30rpx;
  93 + line-height: 2;
  94 +}
  95 +
  96 +.total-cost {
  97 + padding: 20rpx 30rpx;
  98 + font-size: 26rpx;
  99 +}
  100 +
  101 +.footer-wrap {
  102 + height: 130rpx;
  103 + background-color: #eee;
  104 +}
  105 +
  106 +.footer-wrap .footer-fixed {
  107 + width: 100%;
  108 + height: 130rpx;
  109 + padding: 20rpx 0;
  110 + background-color: #fff;
  111 + border-top: 1rpx solid #f0f0f0;
  112 + box-sizing: border-box;
  113 + position: fixed;
  114 + bottom: 0;
  115 + left: 0;
  116 + z-index: 10;
  117 +}
  118 +
  119 +.footer-fixed .select-all-btn {
  120 + width: 90rpx;
  121 + font-size: 22rpx;
  122 + text-align: center;
  123 +}
  124 +
  125 +.footer-fixed .select-all-btn > text {
  126 + display: block;
  127 +}
  128 +
  129 +.footer-fixed .select-all-btn .iconfont {
  130 + font-size: 40rpx;
  131 + line-height: 1.5;
  132 +}
  133 +
  134 +.footer-fixed .settlement-block {
  135 + position: absolute;
  136 + top: 20rpx;
  137 + right: 30rpx;
  138 +}
  139 +
  140 +.footer-fixed .settlement-block text {
  141 + display: block;
  142 +}
  143 +
  144 +.footer-fixed .settlement-block .footer-total-cost {
  145 + padding-right: 174rpx;
  146 + text-align: right;
  147 +}
  148 +
  149 +.footer-fixed .footer-total-cost .cost {
  150 + font-size: 34rpx;
  151 + color: #ce0a24;
  152 + margin-top: 6rpx;
  153 +}
  154 +
  155 +.footer-fixed .footer-total-cost .no-freight {
  156 + font-size: 22rpx;
  157 + color: #b0b0b0;
  158 + line-height: 1.3;
  159 +}
  160 +
  161 +.footer-fixed .settlement-block .payment-btn {
  162 + font-size: 30rpx;
  163 + width: 160rpx;
  164 + height: 90rpx;
  165 + line-height: 90rpx;
  166 + color: #fff;
  167 + background-color: #ce0a24;
  168 + text-align: center;
  169 + position: absolute;
  170 + top: 0;
  171 + right: 0;
  172 + border-radius: 10rpx;
  173 +}
  1 +<import src="./goods-list.wxml"/>
1 <import src="./promotion-list.wxml"/> 2 <import src="./promotion-list.wxml"/>
2 3
3 <template name="cartGoodsPool"> 4 <template name="cartGoodsPool">
4 <div class="goods-pool-list"> 5 <div class="goods-pool-list">
5 <block wx:for="{{goodsPoolList}}" wx:key="unique"> 6 <block wx:for="{{goodsPoolList}}" wx:key="unique">
6 - <template is="cartPromotionList" data="{{promotion_list: item.promotion_list, isPromotionExpanded: item.isPromotionExpanded}}"/> 7 +
  8 + <template is="cartPromotionList" data="{{promotionList: item.promotion_list, isPromotionExpanded: item.isPromotionExpanded}}"/>
7 9
8 <block wx:if="{{item.sub_pool}}"> 10 <block wx:if="{{item.sub_pool}}">
9 <block wx:for="{{item.sub_pool}}" wx:for-item="sItem" wx:for-index="sIndex" wx:key="unique"> 11 <block wx:for="{{item.sub_pool}}" wx:for-item="sItem" wx:for-index="sIndex" wx:key="unique">
10 - <template is="cartPromotionList" data="{{promotion_list: sItem.promotion_list, isPromotionExpanded: item.isPromotionExpanded, isSub: true}}"/> 12 + <template is="cartPromotionList" data="{{promotionList: sItem.promotion_list, isPromotionExpanded: item.isPromotionExpanded, isSub: true}}"/>
11 13
12 <view class="list-warp"> 14 <view class="list-warp">
13 - <block wx:for="{{sItem.goods_list}}" wx:for-item="spgItem" wx:for-index="spgIndex" wx:key="unique">  
14 - <cart-item item="{{spgItem}}" index="{{spgIndex}}"></cart-item>  
15 - </block>  
16 - </view> 15 + <template is="cartGoodsList" data="{{goodsList: sItem.goods_list, isEditing}}"/>
  16 + </view>
17 </block> 17 </block>
18 </block> 18 </block>
19 19
20 - <!-- TODO 套餐 -->  
21 - 20 + <view class="bundle-goods" wx:if="{{item.pool_type === 3 && item.pool_batch_no}}">
  21 + <view class='bundle-title'>
  22 + <view class="choose-btn">
  23 + <text class="iconfont icon-duihao-fill" wx:if="{{item.selected === 'Y'}}"></text>
  24 + <text class="iconfont icon-round" wx:else></text>
  25 + </view>
  26 + <view class="bundle-tag">优惠套装</view>
  27 + <view class="bundle-name">{{item.pool_title}}</view>
  28 + <view class='bundle-buy-num' wx:if="{{!isEditing}}">x {{item.pool_buy_number}}</view>
  29 + </view>
  30 + <view class="edit-wrap" wx:if="{{isEditing}}">
  31 + <view class="bundle-edit-title">优惠数量</view>
  32 + <view class="bundle-edit-num">
  33 + <cart-edit goods="{{item}}" type="{{'bundle'}}"></cart-edit>
  34 + </view>
  35 + <view class='bundle-buy-num'>x {{item.pool_buy_number}}</view>
  36 + </view>
  37 + </view>
22 38
23 - <block wx:if="{{item.goods_list.length}}">  
24 - <block wx:for="{{item.goods_list}}" wx:for-item="sgItem" wx:for-index="sgIndex" wx:key="unique">  
25 - <cart-item item="{{sgItem}}" index="{{sgIndex}}"></cart-item>  
26 - </block>  
27 - </block> 39 + <template is="cartGoodsList" data="{{goodsList: item.goods_list, isEditing}}"/>
28 40
29 <view class="split-line"></view> 41 <view class="split-line"></view>
30 </block> 42 </block>
@@ -8,3 +8,56 @@ @@ -8,3 +8,56 @@
8 border-bottom: 1rpx solid #f0f0f0; 8 border-bottom: 1rpx solid #f0f0f0;
9 } 9 }
10 10
  11 +.goods-pool-list .bundle-title {
  12 + height: 80rpx;
  13 + line-height: 80rpx;
  14 + border-bottom: 1rpx solid #f0f0f0;
  15 + font-size: 0;
  16 +}
  17 +
  18 +.goods-pool-list .bundle-title > view {
  19 + display: inline-block;
  20 + font-size: 24rpx;
  21 +}
  22 +
  23 +.goods-pool-list .bundle-title .choose-btn {
  24 + width: 90rpx;
  25 + text-align: center;
  26 +}
  27 +
  28 +.goods-pool-list .bundle-title .bundle-tag {
  29 + line-height: 1;
  30 + padding: 5rpx 7rpx;
  31 + border-radius: 4rpx;
  32 + background-color: #d0021b;
  33 + color: #fff;
  34 + margin-right: 10rpx;
  35 +}
  36 +
  37 +.goods-pool-list .bundle-goods .bundle-buy-num {
  38 + position: absolute;
  39 + right: 30rpx;
  40 + font-size: 26rpx;
  41 + color: #b0b0b0;
  42 +}
  43 +
  44 +.goods-pool-list .edit-wrap {
  45 + padding: 16rpx 90rpx;
  46 + padding-right: 0;
  47 + border-bottom: 1rpx solid #f0f0f0;
  48 + font-size: 0;
  49 + margin-top: -4rpx;
  50 + background-color: #fff;
  51 +}
  52 +
  53 +.goods-pool-list .edit-wrap > view {
  54 + display: inline-block;
  55 + font-size: 26rpx;
  56 + line-height: 80rpx;
  57 + vertical-align: middle;
  58 +}
  59 +
  60 +.goods-pool-list .edit-wrap .bundle-edit-title {
  61 + width: 170rpx;
  62 +}
  63 +
1 <template name="cartPromotionList"> 1 <template name="cartPromotionList">
2 - <view class="promotion-wrap {{isSub ? 'sub-promotion-wrap' : ''}}" wx:if="{{promotion_list}}"> 2 + <view class="promotion-wrap {{isSub ? 'sub-promotion-wrap' : ''}}" wx:if="{{promotionList}}">
3 <view class="inner-wrap"> 3 <view class="inner-wrap">
4 - <block wx:for="{{promotion_list}}" wx:key="unique"> 4 + <block wx:for="{{promotionList}}" wx:key="unique">
5 <view class="promotion-item" data-promotion="{{item}}" bindtap="navToPromotionPage"> 5 <view class="promotion-item" data-promotion="{{item}}" bindtap="navToPromotionPage">
6 <view class="right-option"> 6 <view class="right-option">
7 <text class="promotion-status {{item.soldOut ? 'soldOut' : ''}}">{{item.statuString}}</text> 7 <text class="promotion-status {{item.soldOut ? 'soldOut' : ''}}">{{item.statuString}}</text>
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 </view> 15 </view>
16 </block> 16 </block>
17 </view> 17 </view>
18 - <block wx:if="{{promotion_list.length > 1}}"> 18 + <block wx:if="{{promotionList.length > 1}}">
19 <view class="show-more-promotion" bindtap="flexOrUnflexPromotion"> 19 <view class="show-more-promotion" bindtap="flexOrUnflexPromotion">
20 <text class="iconfont {{isPromotionExpanded ? 'icon-top' : 'icon-bottom'}}"></text> 20 <text class="iconfont {{isPromotionExpanded ? 'icon-top' : 'icon-bottom'}}"></text>
21 </view> 21 </view>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 } 8 }
9 9
10 .sub-promotion-wrap { 10 .sub-promotion-wrap {
11 - margin-left: 100rpx; 11 + margin-left: 90rpx;
12 padding-left: 0; 12 padding-left: 0;
13 } 13 }
14 14