CarOwner.wxml
8 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>
<view class="tab-wrap" wx:if="{{onlyHaveCarOwner}}">
<block wx:if="{{isShowTab}}">
<block wx:for="{{tabList}}" wx:key="index">
<view class="sub-tab-item" bind:tap="toChangeTab" data-tab="{{item}}">
<view class="title {{curSubTabId==item.id ?'active-title':''}}">
{{item.name}}
</view>
<glsx-image wx:if="{{curSubTabId==item.id}}" class="icon" webp src="glsx/discover/version/3_13_0/tab_line_icon.png"></glsx-image>
</view>
</block>
</block>
</view>
<view class="sub-tab-wrap" wx:else>
<block wx:for="{{tabList}}" wx:key="index">
<view class="sub-tab-item {{curSubTabId==item.id ?'active-tab':''}}" bind:tap="toChangeTab" data-tab="{{item}}">
{{item.name}}
</view>
</block>
</view>
<block wx:if="{{curSubTabId ==1}}">
<view class="category_wrapper">
<view class="inner">
<scroll-view scroll-into-view="{{toSeri}}" class="scroll" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-x="{{true}}" scroll-with-animation>
<block wx:for="{{categoryList}}" wx:key="index">
<view id="toCategory-{{index}}" data-item="{{item}}" bind:tap="toSelectCategory" data-index="{{index}}" class="image_text">
<view class="box {{curCategoryIdx==index?'box_active':''}}">
<image mode="aspectFill" class="icon" webp src="{{item.categoryImage}}"></image>
<glsx-image wx:if="{{curCategoryIdx==index}}" class="icon_active" webp src="/glsx/discover/version/3_13_0/select_seri.png"></glsx-image>
</view>
<view class="text hide {{curCategoryIdx==index?'text_active':''}}">
{{item.categoryName}}
</view>
</view>
</block>
</scroll-view>
</view>
</view>
<block wx:if="{{!isShowPointStyle}}">
<view wx:if="{{categoryStyle>-1}}" class="{{ categoryStyle=='2' ? 'goods_ctnr_waterfall': categoryStyle=='3' ? 'goods_ctnr_grass_B' : categoryStyle=='1' ? 'goods_ctnr_row' : 'goods_ctnr_col' }}">
<view wx:if="{{categoryStyle==0 || categoryStyle==1}}" class="goods_wrap">
<view catch:tap="toGoodsDetail" data-item="{{item}}" class="goods_box" wx:for="{{goodsList}}" wx:key="{{index}}">
<image mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<view class="info {{categoryStyle?'flex_cccb':''}}">
<text class="name">{{item.goodsName}}</text>
<block wx:if="{{categoryStyle}}">
<text wx:if="{{item.giveIntegral}}" class="tip">赠养车积分:{{item.giveIntegral}}</text>
</block>
<view class="price_wrap">
<text>
<text class="unit">¥</text>
<text class="new_price">{{item.activityPrice}}</text>
<!-- <text class="old_price">{{item.originalPrice}}</text> -->
<block wx:if="{{item.exchangeIntegralFlag==1}}">
<text class="jf_unit">或</text>
<text class="new_price">{{item.exchangeIntegral}}</text>
<text class="jf_unit jf_unit_1">积分</text>
</block>
</text>
<glsx-image catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn posi_bottom" webp src="glsx/discover/version/3_13_0/add_buyCar_icon.png"></glsx-image>
</view>
<view class="old_price_new">¥{{item.originalPrice}}</view>
<block wx:if="{{!categoryStyle}}">
<text wx:if="{{item.giveIntegral}}" class="tip">赠养车积分:{{item.giveIntegral}}</text>
</block>
</view>
</view>
</view>
<view wx:elif="{{categoryStyle==3}}" class="goods_wrap">
<view catch:tap="toGoodsDetail" data-item="{{item}}" wx:for="{{goodsList}}" wx:key="{{index}}">
<image wx:if="{{item.styleBImg}}" mode="aspectFill" class="publicity-img" src="{{item.styleBImg}}" />
<view class="goods_box">
<video show-fullscreen-btn="{{false}}" show-play-btn="{{false}}" wx:if="{{curPlayIdx==index && (item.commerceVideo || item.goodsVideo)}}" loop id="video{{index}}" muted="{{false}}" autoplay class="cover" src="{{item.commerceVideo || item.goodsVideo}}"></video>
<image wx:else mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<view class="info {{categoryStyle?'flex_cccb':''}}">
<text class="name">{{item.goodsName}}</text>
<text wx:if="{{item.giveIntegral}}" class="tip">赠养车积分:{{item.giveIntegral}}</text>
<view class="price_wrap">
<text>
<text class="unit">¥</text>
<text class="new_price">{{item.activityPrice}}</text>
<block wx:if="{{item.exchangeIntegralFlag==1}}">
<text class="jf_unit">或</text>
<text class="new_price">{{item.exchangeIntegral}}</text>
<text class="jf_unit jf_unit_1">积分</text>
</block>
<!-- <text class="old_price">{{item.originalPrice}}</text> -->
</text>
<glsx-image catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn" webp src="glsx/discover/version/3_13_0/add_buyCar_icon.png"></glsx-image>
</view>
<view class="old_price_new">¥{{item.originalPrice}}</view>
</view>
</view>
</view>
</view>
<block wx:else>
<view class="{{parentIndex==0 ? 'left-box' : 'right-box'}}" wx:for-item="parentItem" wx:for-index="parentIndex" wx:for="{{['leftList','rightList']}}" wx:key="{{index}}">
<block wx:for="{{goodsList}}" wx:key="{{index}}">
<view catch:tap="toGoodsDetail" data-item="{{item}}" wx:if="{{index%2 == parentIndex}}" class="goods_box">
<image mode="widthFix" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<view class="info">
<text class="name">{{item.goodsName}}</text>
<view class="price_wrap">
<text>
<text class="unit">¥</text>
<text class="new_price">{{item.activityPrice}}</text>
<block wx:if="{{item.exchangeIntegralFlag==1}}">
<text class="jf_unit">或</text>
<text class="new_price">{{item.exchangeIntegral}}</text>
<text class="jf_unit jf_unit_1">积分</text>
</block>
</text>
</view>
<view class="old_price_new_black">¥{{item.originalPrice}}</view>
<view wx:if="{{item.giveIntegral}}" class="tip">赠养车积分:{{item.giveIntegral}}</view>
</view>
</view>
</block>
</view>
</block>
<view style="height: 116rpx;">
</view>
</view>
</block>
<block wx:else>
<view class="goods_ctnr_row">
<view class="goods_wrap">
<view catch:tap="toGoodsDetail" data-item="{{item}}" class="goods_box" wx:for="{{goodsList}}" wx:key="{{index}}">
<image mode="aspectFill" class="cover" src="{{item.goodsImage}}" />
<view class="info exchange-info">
<text class="name">{{item.goodsName}}</text>
<view class="buy-wrap">
<text class="num-wrap"><text class="num">{{item.exchangeIntegral || 0}}</text>积分</text>
<view catch:tap="toDuiHuang" data-item="{{item}}" class="buy-btn">
兑换
</view>
</view>
</view>
</view>
</view>
</view>
</block>
</block>
<block wx:elif="{{curSubTabId==2}}">
<goods-oil></goods-oil>
</block>
<block wx:else>
<goods-server></goods-server>
</block>
</view>