goodkind.wxml
2.4 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
<view class="searchhead">
<view class="searchheadleft">
<view class="searchboxleft">
<image src="/img/sousuo.png"></image>
</view>
<view class="searchleftcontent">
<input placeholder='请输入商品/赠品关键字' bindinput="enterword" />
</view>
</view>
<view class="searchheadright" bindtap="sousuo">
搜索
</view>
</view>
<view class="goodkindbox">
<view class="goodkindleft">
<view class="goodkindleftitem {{sel==index?'goodsel':''}}" wx:for="{{goodkind}}" wx:key="" bindtap="goodsel" data-index="{{index}}" data-id="{{item.id}}">{{item.categories_name}}</view>
</view>
<view class="nodataw" wx:if="{{kindgoodlist.length==0}}">暂无数据</view>
<view class="goodkindright" wx:else>
<view class="goodkindrightitem" wx:for="{{kindgoodlist}}" wx:key="" bindtap="goodtail" data-id="{{item.id}}">
<view class="goodkindbox">
<view class='goodkindrightitemleft'>
<view class="goodkindleftimg">
<image src="{{item.image}}"></image>
</view>
<view class="xiename">
<view class="xienameleft">
<image src="/img/good.png"></image>
</view>
<view class="goodname">{{item.goods_name}}</view>
</view>
</view>
<view class="songk">
<image src="/img/send.png"></image>
</view>
<view class='goodkindrightitemleft'>
<view class="goodkindleftimg">
<image src="{{item.gift.image}}"></image>
</view>
<view class="xiename">
<view class="xienameleft">
<image src="/img/zeng.png"></image>
</view>
<view class="goodname">{{item.gift.goods_name}}</view>
</view>
</view>
</view>
<view class="goodkindprice">
<view class="goodkindpriceleft">
¥{{item.price}}
</view>
<view class="goodkindpriceright" wx:if="{{item.freight==0.00}}">运费:免运费</view>
<view class="goodkindpriceright" wx:else>运费:{{item.freight}}元</view>
<view class="zengfreight" wx:if="{{item.gift.freight==0.00}}">
<view class="goodkindpriceright">运费:免运费</view>
</view>
<view class="zengfreight" wx:else>
<view class="goodkindpriceright">运费:{{item.gift.freight}}元</view>
</view>
</view>
</view>
</view>
</view>