detail.wxml
8.94 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
152
153
154
155
156
<view class="commodity-detail-container">
<view class="goods_scroll_wrapper">
<scroll-view scroll-x enhanced="{{true}}" show-scrollbar="{{false}}" scroll-with-animation scroll-into-view="{{to}}" style="height:426rpx">
<block wx:for="{{goodsList}}" wx:key="index">
<view id="to-{{index}}" class="scroll_element {{currentIndex==index?'scroll_element_active':''}}" bind:tap="selectGoodsItem" data-index="{{index}}" data-item="{{item}}">
<view class="image_icon_wrapper">
<image webp class="image_icon" src="{{item.goodsImage}}" />
<glsx-image wx:if="{{!item.noMemberPrice&&!isGameUse}}" mode="widthFix" class="image_vip" webp src="equity/vip_icon_spc.png" />
<!-- <view wx:if="{{!item.noMemberPrice}}" class="vip_text">会员专属</view> -->
</view>
<view class="element_title {{currentIndex==index?'selected1':''}}">{{item.productName}}</view>
<view class="element_sale_price {{currentIndex==index?'selected':''}}">
<view class="price_min_icon">¥</view>
<view>{{isOpen || !item.noMemberPrice?item.salesPrice:item.noMemberPrice}}</view>
</view>
<view class="element_o_price">官方价¥{{item.lineationPrice}}</view>
<glsx-image wx:if="{{currentIndex==index}}" class="check_icon_sty" webp src="equity/checked_icon.png" />
</view>
</block>
</scroll-view>
<view wx:if="{{goodsList.length>3}}" class="more_btn flex_cc" bind:tap="openBottomModal">
<text>更</text>
<text>多</text>
<text class="roate"></text>
</view>
</view>
<view wx:if="{{!isHaveInventory}}" class="noStorck flex_cc">已抢光</view>
<view class="goods_desc_wrapper">
<view class="line_wrapper">
<view class="line_label">
<text style="width:124rpx">附近门店</text>
<view wx:if="{{addressInfo.localAddress}}" class="line_tip">{{addressInfo.localAddress}}</view>
</view>
<view class="line_con flex_cc" bind:tap="openMap">
<text wx:if="{{addressInfo.latitude}}">{{addressInfo.localAddressDistance || ''}}km</text>
<text wx:else>重新定位</text>
<glsx-image webp class="line_icon" webp src="equity/scrm_loca_icon_new.png" />
</view>
</view>
<view class="line_wrapper">
<view class="line_label">质保期至</view>
<view class="line_con class1">{{curentGoodsItem.warrantyDate}}</view>
</view>
<view wx:if="{{curentGoodsItem.validityPeriod}}" class="line_wrapper">
<view class="line_label">卡券有效期</view>
<view class="line_con class2">兑换到账户内有效期{{ curentGoodsItem.validityPeriod }}天</view>
</view>
<view class="line_wrapper">
<view class="line_label">商品金额</view>
<view class="line_con class3">
<text class="price_min_icon">¥</text>
<view>{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}}</view>
</view>
</view>
<!-- <view wx:if="{{isGameUse}}" class="line_wrapper">
<view class="line_label">
<glsx-image class="logo" webp src="glsx/equity/comodity_use_logo.png"></glsx-image>
优惠券
</view>
<view catch:tap="toSelectCoupons" class="line_con class3 class4 class5">
<block wx:if="{{coupons}}">
<text class="price_min_icon">¥</text>
<view>{{coupons.denomination}}</view>
</block>
<glsx-image wx:if="{{!isGH}}" class="logo" webp src="glsx/mine/arrow.png"></glsx-image>
</view>
</view> -->
<view class="line_wrapper">
<view class="line_label">应付金额</view>
<view class="line_con class3 class4 {{isGameUse?'class6':''}}">
<text class="price_min_icon">¥</text>
<view>{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}}</view>
</view>
</view>
</view>
<view class="goods_rich_text">
<view class="rich_title">
<view class="title_icon"></view>
<view class="title_text">使用须知</view>
</view>
<view wx:if="{{richText}}" class="rich_wrapper">
<rich-text nodes="{{richText}}" bind:tap="toClickRich"></rich-text>
</view>
</view>
<view class="fixed_btn isFullSucreen">
<view class="icon_text" bind:tap="toMyCoupons">
<glsx-image webp class="card_icon" webp src="equity/card-icon.png" />
<view class="card_text">我的订单</view>
</view>
<view class="buy_btn flex_cc {{isHaveInventory?'':'disableBtn'}}" bind:tap="toBuyItem">{{isHaveInventory?'立即购买':'该商品已售罄'}}<text wx:if="{{isHaveInventory}}">(¥{{isOpen || !curentGoodsItem.noMemberPrice?curentGoodsItem.salesPrice:curentGoodsItem.noMemberPrice}})</text></view>
</view>
<view wx:if="{{showModal}}" class="overlay" catchtouchmove="noScroll">
<view class="overlay_boxs">
<view class="box_body" style="height:{{!isOpen?'700':'612'}}rpx">
<glsx-image webp class="boxs_icon" webp src="equity/scrm_modal_top_icon.png" />
<view class="boxs_content" style="height:{{!isOpen&&curentGoodsItem.noMemberPrice?'564':'438'}}rpx">
<view class="box_title"><text class="box_title_text">温馨提示</text></view>
<view class="box_container" style="height:{{!isOpen&&curentGoodsItem.noMemberPrice?'536':'410'}}rpx">
<view wx:if="{{isOpen || curentGoodsItem.noMemberPrice}}" class="box_content_text">
卡券<text class="spc_text">【{{curentGoodsItem.productName}}】</text>
有效期为<text class="spc_text">{{curentGoodsItem.warrantyPeriod || 0}}</text>
小时,为避免过期导致卡券失效,请于<text class="spc_text">{{curentGoodsItem.warrantyPeriod || 0}}</text>
小时内兑换使用,如介意请勿拍哦
</view>
<view wx:if="{{!isOpen&&!curentGoodsItem.noMemberPrice}}" class="box_content_text">
卡券<text class="spc_text">【{{curentGoodsItem.productName}}】</text>为会员专属商品,您可在成为会员后发起购买
</view>
<view wx:if="{{!isOpen && diffPrice&&curentGoodsItem.noMemberPrice}}" class="info_diff">
开通会员本商品可再减 <text class="spc_text">{{diffPrice}}元</text>
</view>
<view wx:if="{{!isOpen && diffPrice&&curentGoodsItem.noMemberPrice}}" class="info_open_btn" catchtap="toMemberPage">点我开通</view>
<view class="box_btn_groups">
<view class="btn_wrap" catchtap="modalOnCancel">取消</view>
<view wx:if="{{!isOpen&&!curentGoodsItem.noMemberPrice}}" class="btn_wrap spc_text" catchtap="toMemberPage">开通会员</view>
<view wx:else class="btn_wrap spc_text" catchtap="comfirmBuyItem">确定购买</view>
<view class="dr_line"></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{showBottomModal}}" class="overlay">
<view class="bottom_modal">
<view class="bottom_title_wrapper">
<view class="title_label">更多商品</view>
<view class="title_close title_label" bind:tap="closeBottomModal">X</view>
</view>
<view class="bottom_scoll_wrap isFullSucreen">
<block wx:for="{{goodsList}}">
<view class="scroll_element bottem_item_width {{currentIndex==index?'scroll_element_active':''}}" bind:tap="selectGoodsItem" data-index="{{index}}" data-item="{{item}}">
<view class="image_icon_wrapper">
<image webp mode="widthFix" class="image_icon bottem_item_width" src="{{item.goodsImage}}" />
<glsx-image wx:if="{{!item.noMemberPrice}}" mode="widthFix" class="image_vip" webp src="equity/vip_icon_spc.png" />
<!-- <view wx:if="{{!item.noMemberPrice}}" class="vip_text">会员专属</view> -->
</view>
<view class="element_title bottem_item_title_height {{currentIndex==index?'selected1':''}}">{{item.productName}}</view>
<view class="element_sale_price {{currentIndex==index?'selected':''}}">
<view class="price_min_icon">¥</view>
<view>{{isOpen || !item.noMemberPrice?item.salesPrice:item.noMemberPrice}}</view>
</view>
<view class="element_o_price">官方价¥{{item.lineationPrice}}</view>
<glsx-image wx:if="{{currentIndex==index}}" class="check_icon_sty" webp src="equity/checked_icon.png" />
</view>
</block>
</view>
</view>
</view>
</view>
<block wx:if="{{showAuth}}">
<authorize scopeType="userLocation" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
</block>
<!-- <block wx:if="{{showComponent&&!isGH}}">
<coupons-list bind:getCoupons="getCouponsItem" couponsId="{{query.couponId}}" show="{{showCoupons}}" goodsId="{{curentGoodsItem.id}}"></coupons-list>
</block> -->
<glsx-privacy appletName="积分会"></glsx-privacy>