triple.wxml
3.7 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
<view class="resource-shop-triple-image {{properties.isModuleMargin ? 'margin-bottom-20' : ''}}">
<view class="style-type-1 style-type-2" wx:if="{{properties.displayType == 1 || properties.displayType == 2}}">
<anchor
wx:for="{{images}}"
wx:key="index"
class="anchor-item"
bindclickreport="report"
url="{{item.url}}"
floor-id="{{floorId}}"
floor-name="{{floorName}}"
floor-url="{{item.url}}"
floor-index="{{floorIndex}}"
floor-item-index="{{index + 1}}">
<image class="image-item" src="{{item.pic}}" mode="widthFix"></image>
</anchor>
</view>
<view class="style-type-3" wx:if="{{properties.displayType == 3}}">
<view class="left-part">
<anchor
class="anchor-item"
bindclickreport="report"
url="{{item.url}}"
floor-id="{{floorId}}"
floor-name="{{floorName}}"
floor-url="{{item.url}}"
floor-index="{{floorIndex}}"
floor-item-index="1">
<image class="image-item" src="{{images[0].pic}}" mode="widthFix"></image>
</anchor>
<anchor
class="anchor-item"
bindclickreport="report"
url="{{item.url}}"
floor-id="{{floorId}}"
floor-name="{{floorName}}"
floor-url="{{item.url}}"
floor-index="{{floorIndex}}"
floor-item-index="2">
<image class="image-item" src="{{images[1].pic}}" mode="widthFix"></image>
</anchor>
</view>
<view class="right-part">
<anchor
class="anchor-item"
bindclickreport="report"
url="{{item.url}}"
floor-id="{{floorId}}"
floor-name="{{floorName}}"
floor-url="{{item.url}}"
floor-index="{{floorIndex}}"
floor-item-index="3">
<image class="image-item" src="{{images[2].pic}}" mode="widthFix"></image>
</anchor>
</view>
</view>
<view class="style-type-3 style-type-4" wx:if="{{properties.displayType == 4}}">
<view class="left-part">
<anchor
class="anchor-item"
bindclickreport="report"
url="{{item.url}}"
floor-id="{{floorId}}"
floor-name="{{floorName}}"
floor-url="{{item.url}}"
floor-index="{{floorIndex}}"
floor-item-index="1">
<image class="image-item" src="{{images[0].pic}}" mode="widthFix"></image>
</anchor>
</view>
<view class="right-part">
<anchor
class="anchor-item"
bindclickreport="report"
url="{{item.url}}"
floor-id="{{floorId}}"
floor-name="{{floorName}}"
floor-url="{{item.url}}"
floor-index="{{floorIndex}}"
floor-item-index="3">
<image class="image-item" src="{{images[1].pic}}" mode="widthFix"></image>
</anchor>
<anchor
class="anchor-item"
bindclickreport="report"
url="{{item.url}}"
floor-id="{{floorId}}"
floor-name="{{floorName}}"
floor-url="{{item.url}}"
floor-index="{{floorIndex}}"
floor-item-index="2">
<image class="image-item" src="{{images[2].pic}}" mode="widthFix"></image>
</anchor>
</view>
</view>
</view>