Goods.wxml
3.15 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
<wxs src="index.wxs" module="filter" />
<popup show="{{show}}" title="选择商品" bindconfirm="confirm" bindcancel="cancel">
<view class="coupon-box">
<search-input bindsearch="searchGoods" value="{{keyWord}}" />
<scroll-view class="coupon" scroll-y>
<block wx:if="{{goodsList.length > 0}}">
<block wx:for="{{goodsList}}" wx:key="index">
<view class="title">
{{item.goodsTypeName}}
<text class="tips">|建议价</text>
</view>
<view class="box">
<view class="itemBox" wx:for="{{item.upgradeGoodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="choose" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{filter.getImageSrc(i.active)}}" />
</view>
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsInfo.goodsName)}}</text>
<text wx:if="{{i.merchantGoodsPosition && (i.goodsInfo.goodsType == 1 || i.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
<text class="warning_text" wx:if="{{!i.merchantGoodsPosition && (i.goodsInfo.goodsType == 1 || i.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text>
</view>
<view class="last" wx:if="{{!i.active}}">
<text class="price">¥{{i.upgradePrice}}</text>
</view>
</view>
<block wx:if="{{i.active}}">
<view class="control">
<view class="minus" catchtap="addCount" data-count="{{-1}}" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
-
</view>
<input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" data-index="{{index}}" data-ind="{{ind}}" />
<view class="add" catchtap="addCount" data-count="{{1}}" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
+
</view>
</view>
</block>
<!-- <view class=" choose" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="../images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view> -->
</view>
</view>
</view>
</block>
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
</view>
</popup>