shop_detail.wxml
4.5 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
<import src="/wxParse/wxParse.wxml" />
<view class='page{{mask?" active":""}}'>
<concat/>
<view class='top'>
<view class='current_box'>{{current+1}}/{{info.images.length}}</view>
<swiper class='swiper' current='{{current}}' bindchange='getCurrent'>
<swiper-item class='swiper-item' wx:for='{{info.images}}' wx:key='index'>
<image src='{{item}}' mode="aspectFill" />
</swiper-item>
</swiper>
</view>
<view class='two'>
<view class="couponflex">
<view class='two_one'>
<!-- <view class='score'>积分</view> -->
<view class='price'>¥{{info.min_goods_price}}</view>
</view>
<!-- <view class="lingcoupon" bindtap="lingququan">领取优惠券</view> -->
</view>
<!-- <view class="oldprice" wx:if="{{info.price2!=null}}">{{info.price}}</view> -->
<view class='two_two'>{{info.name}}</view>
<view class='two_three two_threek'>
<!-- <view>库存:{{info.stock_num}}</view> -->
<view>销量:{{info.sales}}</view>
</view>
</view>
<view class='three'>
<view class='three_one'>
<view class='three_one_item {{status==index?"active":""}}' wx:for='{{nav}}' wx:for-index='index' wx:key='{{index}}' bindtap='clickNav' data-index='{{index}}'>{{item}}</view>
</view>
<view class='three_two'>
<template is="wxParse" data="{{wxParseData:contenta.nodes}}" wx:if="{{status==0}}" />
<template is="wxParse" data="{{wxParseData:contenb.nodes}}" wx:elif="{{status==1}}" />
<template is="wxParse" data="{{wxParseData:contenc.nodes}}" wx:elif="{{status==2}}" />
</view>
</view>
<view class='bottom'>
<view class='cart_box' catchtap="go_car">
<view class='cart_img'>
<view class='cart_count' wx:if='{{cartnum>0}}'>{{cartnum}}</view>
<image src='/images/icon_51.png'></image>
</view>
<view class='cart_font'>购物车</view>
</view>
<view class="sc_box" catchtap="colloct">
<image src="{{info.is_collect==1?'/images/sc@.png':'/images/sc.png'}}" />
<view class="{{info.is_collect==1?'active':''}}">{{info.is_collect==1?'已收藏':'收藏'}}</view>
</view>
<view class='left_btn' bindtap='change_cover' data-type="1">加入购物车</view>
<view class='right_btn' bindtap='change_cover' data-type="2">立即购买</view>
<!-- 遮罩 -->
<view class="bottom_cover" catchtap="go_login" wx:if="{{no_login}}" />
</view>
</view>
<!-- 弹框开始 -->
<view class='mask' wx:if='{{mask}}' bindtap="change_cover" catchtouchmove="true">
<view class='mask_diceng'>
<view class='mask_one'>
<view class='mask_img'>
<image src='{{goodimg}}'></image>
</view>
<view class='img_right'>
<view class='info_title'>{{info.name}}</view>
<!-- <view wx:if="{{info.price2!=null}}">
<view class='two_ones'>
<view class='scores'>积分</view>
<view class='prices'>{{info.price2}}</view>
</view>
</view> -->
<view class='two_ones' >
<!-- <view class='scores'>{{info.goods_price}}</view> -->
<view class='prices'>{{min_goods_price}}</view>
<view class="lineprice">{{line_price}}</view>
</view>
<view class="stocknum">库存:{{stock_num}}</view>
</view>
</view>
<!-- 规格 -->
<view class="guigebox" catchtap="zuzhi">
<view class="guigeboxitem" wx:for="{{speclist}}" wx:key="index" wx:for-index="parindex" wx:for-item="specitem">
<view class="tuigetitle">{{specitem.spec_name}}</view>
<view class="guigelist">
<view class="guigelistitem {{item.sel==true?'selactive':''}}" wx:for="{{specitem.spec_value}}" wx:key="indexk" data-parindex="{{parindex}}" data-index="{{index}}" catchtap="selectspec" data-id="{{specitem.id}}" >{{item.spec_value}}</view>
</view>
</view>
</view>
<view class='mask_two'>
<view class='mask_two_name'>购买数量</view>
<view class='operation_box'>
<view class='operation_btn' data-type="0" catchtap="num_change">
<image src='/images/reduce.png'></image>
</view>
<view class='operation_count'>{{num}}</view>
<view class='operation_btn' data-type="1" catchtap="num_change">
<image src='/images/add.png'></image>
</view>
</view>
</view>
<view class='mask_three'>
<view class='mask_btn1' bindtap='addshop' wx:if="{{btn_type == 1}}">加入购物车</view>
<view class='mask_btn2' bindtap='purchaseNow' wx:elif="{{btn_type == 2}}">立即购买</view>
</view>
</view>
</view>
<!-- 弹框结束-->