SetMeal.wxml
2.33 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
<popup show="{{ show }}" title="选择套餐" bindconfirm="confirm" bindcancel="cancel">
<view class="coupon-box">
<search-input bindsearch="searchGoods" />
<scroll-view class="set-meal" scroll-y show-scrollbar="{{false}}" enhanced="{{true}}">
<view class="sign-text">
套餐
<text>丨建议价</text>
</view>
<block wx:if="{{goodsData.length}}">
<view class="goods-item" wx:for="{{ goodsData }}" wx:key=" {{item.packageCode}}">
<view class="item-hd">
<view class="icon" catchtap="choose" data-index="{{ index }}">
<block wx:if="{{ item.active }}">
<image src="../images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
<!-- <checkbox value="{{item.packageCode}}" active="{{item.active}}" /> -->
<view class="packageName" catchtap="choose" data-index="{{ index }}">{{item.packageName}}</view>
<block wx:if="{{ !item.active }}">
<view class="total-price">¥{{item.upgradePrice}}</view>
</block>
<view class="control" wx:else>
<view class="minus" catchtap="addCount" data-count="{{ -1 }}" data-index="{{ index }}" data-item="{{ item }}">-</view>
<input type="number" catchtap="noScroll" class="input" value="{{ item.count || 1 }}" catchinput="input" data-index="{{ index }}" />
<view class="add" catchtap="addCount" data-count="{{ 1 }}" data-index="{{ index }}" data-item="{{ item }}">+</view>
</view>
</view>
<view class="item-bd" catchtap="choose" data-index="{{ index }}">
<view class="upgrade-item" wx:for="{{ item.goodsList }}" wx:for-item="i" wx:for-index="ind">
<view class="dot"></view>
<view class="name">{{i.upgradeGoodsAlias||i.upgradeGoodsName}}</view>
<view class="price">¥{{i.sellPrice}}</view>
</view>
</view>
</view>
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
<view class="select-text">
已选套餐
<view class="number">{{selectDataTotal || 0}}</view>
件
</view>
<view class="safeAreaInset"></view>
</view>
</popup>