Goods.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
<van-popup lock-scroll catchtouchmove="noScroll" custom-style="min-height: 280px;width:var(--fontSize686);" round z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
<view class="title">确认需购买的商品</view>
<view class="tips">温馨提示:请仔细确认当前售价,避免录错单</view>
<view class="goods" catchtouchmove="noScroll">
<scroll-view scroll-y style="height:350px;">
<view class="item-wrap {{i.active?'active':''}}" wx:for="{{goodsData.multipleSpecificationsGoods.skuGoodsList}}" wx:key="ind" wx:for-index="index" wx:for-item="i">
<view class="icon" catchtap="choose" data-index="{{index}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/SkuGoods/images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
<view class="value">
<view class="alias" wx:if="{{i.goodsAlias}}">
商品别名:{{i.goodsAlias}}
</view>
<view class="bottom_box">
<view class="left">
<view class="name">{{goodsData.multipleSpecificationsGoods.baseGoodsName}}</view>
<view class="position" wx:if="{{ i.specificationStr }}">{{i.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box">
<text>¥</text>
<view class="price">
<!-- {{i}} -->
{{i.sellPrice}}
</view>
</view>
<view style="display:flex;align-items: center;" wx:if="{{i.active&&sceneType==1}}">x <input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" bindblur="blur" data-index="{{index}}" data-item="{{i}}" /></view>
<view class="count" catchtap="showPopup" wx:else data-show-name="goodsBox">x{{i.count||1}}</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认</view>
</view>
</van-popup>