cart.wxml
5.1 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<view class="cartboxhead">
<view class="del" wx:if="{{delshow}}" bindtap="delcart">删除</view>
<view class="managerlist">
<view class="cartboxheadright" bindtap="manage">
<image src="/img/seetingimger.png"></image>
</view>
<view class="cartboxrightname">管理</view>
</view>
</view>
<view class="nodata" wx:if="{{cartlist.length==0}}">暂无数据</view>
<view class="cartbigboxz" wx:else>
<view class="cartbox gouwuche" wx:for="{{cartlist}}" wx:key="">
<!-- 视频 -->
<view class="cartvideo" wx:if="{{item.video_id!=null}}">
<view class="cartbboxitem" wx:key="" >
<block catchtap="ti">
<view class="cartboxitemleft" catchtap="selcart" data-type="1" data-cartid="{{item.id}}">
<image src="/img/noselect.png" wx:if="{{item.sel==false}}"></image>
<image src="/img/selectcart.png" wx:else></image>
</view>
<view class="cartboxitemright">
<view class="videoitemimg" data-id="{{item.video_id.id}}" bindtap="videodetail">
<image src="{{item.video_id.thumbnail}}"></image>
<view class="anniu">
<image src="/img/anniu.png"></image>
</view>
</view>
<view class="cartboxitembottom">
<view class="cartboxitembotleft">
{{item.video_id.title}}
</view>
<block catchtap="ti">
<picker bindchange="bindPickerChange" value="{{index}}" range="{{item.video_id.videotype}}" data-index="{{index}}">
<view class="cartboxitemrightone">
<view class="cartbox">{{item.video_id.videotype[item.cartindex]}}</view>
<view class="picxian"></view>
<view class="cartxuansan">
<image src="/img/sanjiaodown.png"></image>
</view>
</view>
</picker>
</block>
</view>
<view class="money">¥{{item.videoprice}}</view>
</view>
</block>
</view>
</view>
<!-- 图片 -->
<view class="picbox" wx:if="{{item.pic_id!=null}}">
<view class="cartbboxitem" wx:key="" bindtap="picdetail" data-id="{{item.pic_id.id}}">
<view class="cartboxitemleft" catchtap="selcart" data-type="2" data-cartid="{{item.id}}" data-sel="{{item.sel}}">
<image src="/img/noselect.png" wx:if="{{item.sel==false}}"></image>
<image src="/img/selectcart.png" wx:else></image>
</view>
<view class="cartboxitemright">
<view class="videoitemimgp">
<image src="{{item.pic_id.thumbnail}}"></image>
</view>
<view class="cartboxitembottom">
<view class="cartboxitembotleft">
{{item.pic_id.title}}
</view>
<!-- <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
<view class="cartboxitemrightone">
<view class="cartbox">{{array[index]}}</view>
<view class="picxian"></view>
<view class="cartxuansan">
<image src="/img/sanjiaodown.png"></image>
</view>
</view>
</picker> -->
</view>
<view class="money" wx:if="{{item.pic_id.vipprice==undefined}}">¥{{item.pic_id.price}}</view>
<view class="money" wx:else>¥{{item.pic_id.vipprice}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="cartfoot">
<view class="cartfootleft">
<view class="cartfootlefimg" bindtap="selallcart">
<image src="/img/noselect.png" wx:if="{{totalsel==false}}"></image>
<image src="/img/selectcart.png" wx:else></image>
</view>
<view class="cartfootlefthe">合计:¥{{totalmoney}}</view>
</view>
<view class="cartfootright" bindtap="hejisuan">合并计算({{totalcartarr.length}})</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" bindtap="footersel" data-id="1">
<view class="teacherfootitemtop shou">
<image src="{{footersel==1?'/img/shouyeactive.png':'/img/shouye.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==1?'selactive':''}}">首页</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="2">
<view class="teacherfootitemtop order">
<image src="{{footersel==2?'/img/kindactive.png':'/img/kind.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==2?'selactive':''}}">分类</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="3">
<view class="teacherfootitemtop rili">
<image src=" {{footersel==3?'/img/cartactive.png':'/img/cart.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==3?'selactive':''}}">购物车</view>
</view>
<view class="teacherfootitem" bindtap="footersel" data-id="4">
<view class="teacherfootitemtop show">
<image src="{{footersel==4?'/img/mineactive.png':'/img/mine.png'}}"></image>
</view>
<view class="teacherfootname {{footersel==4?'selactive':''}}">我的</view>
</view>
</view>