shopCart.wxml
2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!--pages/shopCart/shopCart.wxml-->
<view style="margin-bottom:130rpx; border-top:1rpx solid #E4E4E4;">
<view class="car_list" wx:for="{{carts.cartList}}" wx:key="this" data-current='{{index}}'>
<view class="choose">
<icon wx:if="{{item.checked}}" type="success" color="#FFCC00" bindtap="selectList" data-index="{{index}}" data-cart_id='{{item.cart_id}}' />
<icon wx:else type="circle" bindtap="selectList" data-index="{{index}}" />
</view>
<view class="shopp_img">
<image src="{{item.thumb}}"></image>
</view>
<view class="content">
<view class="title">
<view class="name">{{item.goods_name}}</view>
<view class="del" bindtap='del' data-cart_id='{{item.cart_id}}'>删除</view>
</view>
<view class="describe">{{item.goods_description}}</view>
<view class="mon_num">
<view class="num">¥
<text style="font-size:34rpx;">{{item.goods_price}}</text>
</view>
<!-- 主容器 -->
<view class="stepper">
<!-- 减号 -->
<text class="{{minusStatus}}" bindtap="minusCount" data-cart_id='{{item.cart_id}}' data-index="{{index}}">-</text>
<!-- 数值 -->
<text style="background:#fff;font-size:26rpx;width:67rpx;border:0;line-height:36rpx;">{{item.goods_num}}</text>
<!-- 加号 -->
<text class="normal" bindtap="addCount" data-cart_id='{{item.cart_id}}' data-index="{{index}}">+</text>
</view>
</view>
</view>
</view>
</view>
<view class='nodata' wx:if='{{nodata}}'>您还没有下单哦,快去下单吧</view>
<view class="nav">
<view class="shopp_img">
<!-- wx:if 是否全选显示不同图标 -->
<icon wx:if="{{selectAllStatus}}" type="success" color="#FFCC00" bindtap="selectAll" />
<icon wx:else type="circle" bindtap="selectList" bindtap="selectAll" />
</view>
<view class="all">全选</view>
<view class="gross_amount" wx:if="{{sub}}">合计:
<text style="color:#C90103;fot-size:32rpx;">¥{{allPrice}}</text> </view>
<view class="gross_amount" wx:else=""></view>
<form bindsubmit="submit" report-submit='true' >
<button class="sub {{sub == true?'':'hover'}}" form-type="submit" type="default" catchtap='sub'>{{sub == true?'去结算 >':'删除'}}</button>
</form>
<!-- <view class="sub {{sub == true?'':'hover'}}" bindtap='sub'></view> -->
</view>
<view class="tabBar">
<view class="barList" bindtap='tabBar' data-index='{{index}}' wx:for="{{tabBarIndex}}" wx:key="">
<image wx:if="{{item.state == false}}" src="{{item.img}}"></image>
<image wx:else src="{{item.selectImg}}"></image>
<view class="font" style="{{item.state == false?'':'color:#FEAD00'}}">{{item.name}}</view>
<view class="num" wx:if="{{item.num != null}}">{{item.num}}</view>
</view>
</view>