taocandetail.wxml
4.3 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
<import src="/wxParse/wxParse.wxml" />
<view class='page{{mask?" active":""}}'>
<concat/>
<view class='top'>
<image src="{{info.image}}" mode="widthFix"></image>
<!-- <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='two_one'>
<!-- <view class='score'>积分</view> -->
<view class='price'>¥{{info.goods_price}}</view>
<view class="lineprice">¥{{info.line_price}}</view>
</view>
<view class='two_two'>{{info.name}}</view>
<!-- <view class='two_three'>
<view>库存:{{info.sold}}</view>
<view>销量:{{info.paynum}}</view>
</view> -->
</view>
<view class="list">
<view class="listitem flex" bindtap="look_more" wx:for="{{taocanlist}}" wx:key="no" data-id="{{item.id}}">
<view class="listright">
<image src="{{item.images[0]}}" mode="widthFix"></image>
</view>
<view class="listleft ">
<!-- x{{item.sold}} -->
<view class="commontwo ">{{item.name}} <text class="sold"></text></view>
<view class="leftbottom flexone ">
<view class="botleft ">¥{{item.goods_price}}</view>
<view class="botleft lineprice">¥{{item.line_price}}</view>
</view>
</view>
</view>
</view>
<!-- <view class="list>
<view class="listitem flex">
<view class="listleft">
<view class="top commontwo {{item.image==''?'ktop':''}}"></view>
<view class="leftbottom flexone">
<view class="botleft"></view>
<view class="botright"></view>
</view>
</view>
<view class="listright">
<image src="" mode="widthFix"></image>
</view>
</view>
</view> -->
<view class='bottom'>
<!-- <view class='cart_box' catchtap="go_car">
<view class='cart_img'>
<view class='cart_count'>{{info.shop}}</view>
<image src='/images/icon_51.png'></image>
</view>
<view class='cart_font'>购物车</view>
</view> -->
<!-- <view class="sc_box" catchtap="colloct">
<image src="{{info.colloct?'/images/sc@.png':'/images/sc.png'}}" />
<view class="{{info.colloct?'active':''}}">{{info.colloct?'已收藏':'收藏'}}</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='{{info.image}}'></image>
</view>
<view class='img_right'>
<view class='info_title'>{{info.name}}</view>
<view class='two_ones'>
<!-- <view class='scores'>积分</view> -->
<view class='prices'>¥{{info.goods_price}}</view>
<view class="lineprice">¥{{info.line_price}}</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>
<!-- 弹框结束-->