detail_1.wxml
7.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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!--pages/kind/detail_1/detail_1.wxml-->
<!-- 商品 -->
<view class="pagecontainer">
<import src="../../../wxParse/wxParse.wxml" />
<view class='container'>
<view class='ware_box'>
<view class='ware_top'>
<view class='ware_1'>
<image src='{{detailCon.thumb}}'></image>
<view wx:if="{{over}}">
<view class='ware_1_time' wx:if="{{detailCon.percent!=100}}">
{{days}}天{{hours}}小时{{minutes}}分{{seconds}}秒
</view>
<view class='ware_1_time' wx:else>已成团</view>
</view>
<view class='ware_1_over' wx:else>
<!-- {{detailCon.open_time}} -->
已结束
</view>
</view>
<view class='ware_text'>
<view class='ware_2'>
<text class='ware_2Txt1'>{{detailCon.name}}</text>
<text class='ware_2Txt2'>产地:{{detailCon.origin}}</text>
</view>
<view class='ware_3'>
<progress percent="{{detailCon.percent}}" show-info color="#B5DE96" border-radius="8" font-size="24rpx" stroke-width="16rpx" />
</view>
<view class='ware_4'>
<text>已拼{{detailCon.numb}}份,目标{{detailCon.group}}份</text>
</view>
<view class='ware_5'>
<view>
<text class='ware5_t1'>¥{{detailCon.money_sale}}/</text>
<text class='ware5_t2'>{{detailCon.shop_type}}</text>
</view>
<view class='ware5_box'>
<view class='ware5_t3'>{{detailCon.text_table}}</view>
<view class='ware5_t4'>{{detailCon.text_content}}</view>
</view>
<view wx:if="{{over}}">
<view class='ware_6' bindtap='goConfirm' wx:if="{{detailCon.percent!=100}}">
立即参团
</view>
<view class='ware_6' wx:else>已成团</view>
</view>
<view class="waretext" wx:else>活动结束</view>
</view>
</view>
</view>
<view class='ware_bot'>
<view class='ware_bot_tit'>经典推荐</view>
<view class='ware_bot_txt'>{{detailCon.recommend}}</view>
</view>
</view>
</view>
<!-- 商品规格 -->
<view class='spec'>
<view class='spec_txt'>商品规格</view>
<view class='spec_txt2'>{{detailCon.shop_type1}}</view>
</view>
<!-- 商品详情 -->
<view class='ware_detail'>
<view class='ware_detail_tit'>
<view class="ware_detail_box {{index == 1 ? 'ware_active' : ''}}" bindtap='goy' data-id="1">商品详情</view>
<view class="ware_detail_box {{index == 2 ? 'ware_active' : ''}}" bindtap='goy' data-id="2">用户评价</view>
</view>
<view class='ware_detailC'>
<view class='ware_detailImg' wx:if="{{index == 1}}">
<!-- <template is="wxParse" data="{{wxParseData:content.nodes}}" /> -->
<template is="wxParse" data="{{wxParseData:article.nodes}}" />
</view>
<!-- 用户评价 -->
<view class='ware_assess' wx:if="{{index == 2}}">
<view class="noping" wx:if="{{assess.length==0}}">
<view class="noorder">
<image src="/img/noorder.png" mode="widthFix"></image>
</view>
<view class="noordertitle">暂无评价</view>
</view>
<view wx:else>
<!-- <block wx:if="{{seemore}}">
<view class='ware_assess_li 345' wx:for="{{short}}" wx:key="index">
<view class='assess_header'>
<view class='assess_headerImg'>
<image src='{{item.avatar}}'></image>
</view>
<view class='assess_headerTxt'>{{item.user_nickname}}</view>
</view>
<view class='assess_say'>
{{item.text}}
</view>
<block wx:if="{{item.img.length!=0}}">
<view class='ware_pic'>
<view class='ware_picBox' wx:for="{{item.img}}" wx:key=''>
<image src='{{item}}'></image>
</view>
</view>
</block>
<view class='assess_time'>2019/07/01</view>
</view>
</block> -->
<block>
<view class='ware_assess_li 123' wx:for="{{assess}}" wx:key="index" wx:for-item="items" wx:for-index="indexs">
<view class='assess_header'>
<view class='assess_headerImg'>
<image src='{{items.avatar}}'></image>
</view>
<view class='assess_headerTxt'>{{items.user_nickname}}</view>
</view>
<view class='assess_say'>
{{items.text}}
</view>
<block wx:if="{{item.img.length!=0}}">
<view class='ware_pic' >
<view class='ware_picBox' wx:for="{{items.img}}" wx:key=''>
<image src='{{item}}' bindtap="previewImage" data-src="{{item}}" data-idx="{{indexs}}"></image>
</view>
</view>
</block>
<view class='assess_time'>{{items.create_time}}</view>
</view>
</block>
<block wx:if="{{assess.length==5}}">
<view class='whole' wx:if="{{seemore}}" bindtap="moresee">
查看全部评价
</view>
</block>
</view>
</view>
</view>
</view>
<!-- footer底部 -->
<view class='footer'>
<view class="kefu">
<view class="iconfont icon-kefu"></view>
<button class="remaindetail" open-type="contact" style="margin-left: 0"></button>
</view>
<view class='footer_add' bindtap='addFun' wx:if="{{detailCon.collect_type==0}}">加入收藏</view>
<view class='footer_add' bindtap='addFun' wx:if="{{detailCon.collect_type==1}}">取消收藏</view>
<view wx:if="{{over}}">
<view class='footer_off' bindtap='goConfirm' wx:if='{{detailCon.percent!=100}}'>立即参团</view>
<view class='footer_off' wx:else bindtap='group'>已成团</view>
</view>
<view class='footer_over' wx:else bindtap="gameover">活动结束</view>
</view>
<!-- 遮罩层 -->
<view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
<!-- 弹出层 -->
<view class="modalDlg" wx:if="{{showModal}}">
<view class='modalDlg_p'>
<view class='m_top'>
<view class='m_topImg'>
<image src='{{detailCon.thumb}}'></image>
</view>
<view class='m_topTxt'>
<view class='m_topTxt1'>
<view class='m_topName'>{{detailCon.name}}</view>
<image bindtap='m_close' src='../../../img/cha.png'></image>
</view>
<view class='m_topTxt2'>
<view class='m_topPrice'>¥{{detailCon.money_sale}}</view>
<view class='m_topHelf'>{{detailCon.shop_type}}</view>
</view>
</view>
</view>
<view class='m_number'>
<view class='m_numTxt'>购买数量</view>
<view class='minus_push'>
<view class='minus' bindtap="bindMinus">-</view>
<view class='num' bindchange="bindManual">{{num}}</view>
<view class='push' bindtap="bindPlus">+</view>
</view>
</view>
<button class='m_btn' bindtap='goFirm_order1' data-id="{{detailCon.shop_id}}">确认</button>
</view>
</view>
</view>