Commit 6ba0bed49f95043b92b613ac6054b8f47b6e8c01
1 parent
7d200411
购物车的bug修改
Showing
2 changed files
with
21 additions
and
5 deletions
pages/cart/cart/cart.wxml
| ... | ... | @@ -19,22 +19,30 @@ |
| 19 | 19 | <view class="store"> |
| 20 | 20 | <view class="shmd_m"> |
| 21 | 21 | <!-- 门店 --> |
| 22 | - <radio color="red" bindtap="check_th_all_item" class="order-raido flex-center" checked="{{checkAllToggle||item.selected}}" data-pitems="{{pidx}}"></radio> | |
| 22 | + <!--<radio color="red" bindtap="check_th_all_item" class="order-raido flex-center" checked="{{checkAllToggle||item.selected}}" data-pitems="{{pidx}}"></radio>--> | |
| 23 | + | |
| 24 | + <icon wx:if="{{checkAllToggle||item.selected}}" class="order-raido flex-center" bindtap="check_th_all_item" data-pitems="{{pidx}}" | |
| 25 | + color="red" size="20" type="success"></icon> | |
| 26 | + <view wx:else class="icon_no_sele2" bindtap="check_th_all_item" data-pitems="{{pidx}}"></view> | |
| 23 | 27 | |
| 24 | 28 | <view class="flex-center"> |
| 25 | 29 | <image src="{{iurl}}miniapp/images/stores/store.png"></image> |
| 26 | 30 | <view class="shmd fs30">{{item.pname}}</view> |
| 27 | 31 | </view> |
| 32 | + | |
| 28 | 33 | </view> |
| 29 | 34 | <view class="order-item" data-item="{{idx}}" wx:for="{{item.goods}}" wx:for-item="items" wx:for-index="idx" wx:key="{{index}}"> |
| 30 | 35 | <view bindtap="check_th_item" class="order-raido flex-vertical " data-check="{{items.selected}}" data-item="{{idx}}" data-pitems="{{pidx}}"> |
| 31 | - <radio color="red" checked="{{checkAllToggle||items.selected}}"></radio> | |
| 36 | + <!--<radio color="red" checked="{{checkAllToggle||items.selected}}"></radio>--> | |
| 37 | + <icon wx:if="{{checkAllToggle||items.selected}}" color="red" size="20" type="success"></icon> | |
| 38 | + <text wx:else class="icon_no_sele"></text> | |
| 32 | 39 | </view> |
| 33 | 40 | <navigator class="goods-img rel" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}"> |
| 34 | 41 | <image class="wh100" src="{{items.original_img}}" binderror="bind_bnerr2" data-errorimg="requestData[{{pidx}}].goods[{{idx}}].original_img" data-url="{{items.original_img}}"></image> |
| 35 | 42 | <view class="abs flex-center fs26" wx:if="{{items.distr_type==0}}">自选</view> |
| 36 | 43 | <view class="abs flex-center fs26" wx:if="{{items.distr_type==1}}">自提</view> |
| 37 | 44 | <view class="abs flex-center fs26" wx:if="{{items.distr_type==2}}">物流</view> |
| 45 | + | |
| 38 | 46 | </navigator> |
| 39 | 47 | <view class="goods-cont"> |
| 40 | 48 | <view class="goods-name"> |
| ... | ... | @@ -66,9 +74,11 @@ |
| 66 | 74 | |
| 67 | 75 | <view class="pay-for flex-vertical-between"> |
| 68 | 76 | <view class="allradio flex-vertical-between"> |
| 69 | - <view class="flex-vertical" bindtap="checkAll"> | |
| 70 | - <radio class="order-raido" color="red" checked="{{checkAllToggle}}"></radio> | |
| 71 | - <view class="all fs30">全选</view> | |
| 77 | + <view class="flex-vertical mlr" bindtap="checkAll"> | |
| 78 | + <!--<radio class="order-raido" color="red" checked="{{checkAllToggle}}"></radio>--> | |
| 79 | + <icon wx:if="{{checkAllToggle}}" color="red" size="20" type="success"></icon> | |
| 80 | + <text wx:else class="icon_no_sele"></text> | |
| 81 | + <view class="all fs30" style="margin-left: 10rpx">全选</view> | |
| 72 | 82 | </view> |
| 73 | 83 | |
| 74 | 84 | <!-- 显示金额的多少 --> | ... | ... |
pages/cart/cart/cart.wxss
| ... | ... | @@ -286,3 +286,9 @@ radio { |
| 286 | 286 | background-color: rgb(255, 72, 72); |
| 287 | 287 | border-radius: 40rpx; |
| 288 | 288 | } |
| 289 | + | |
| 290 | +.icon_no_sele{ display: inline-block; width: 39rpx; height: 39rpx; border: 1rpx solid #ddd; border-radius: 50%} | |
| 291 | +.icon_no_sele2{width: 39rpx; height: 39rpx; border: 1rpx solid #ddd; border-radius: 50%; margin-top: 20rpx; | |
| 292 | + margin-left: 30rpx; margin-right: 25rpx} | |
| 293 | + | |
| 294 | +.mlr{ margin-left: 25rpx; margin-right: 20rpx} | ... | ... |