shopdetail.wxml
16.1 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
<view class="box">
<view class="swiper_image">
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange" circular="true">
<block wx:for="{{shopdetail.banner_image}}" wx:key="doct">
<swiper-item>
<image src="{{item}}" class="slide-image" />
<view class="taildot">
{{index+1}}/{{shopdetail.banner_image.length}}
</view>
</swiper-item>
</block>
</swiper>
<!-- <view class="dots">
<block wx:for="{{imgUrls}}" wx:key="d">
<view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
</block>
</view> -->
<view class="detailtop">
<view class="tailtop flextwo">
<view class="tailtopleft">{{shopdetail.name}}</view>
<view class="tailright flexone">
<view class="tailitem" bindtap="recomond">
<view class="tailtopimg">
<image src="/img/zan.png" wx:if="{{shopdetail.is_recommend==0}}"></image>
<image src="/img/yizan.png" wx:else></image>
</view>
<view class="tailname {{shopdetail.is_recommend==1?'recommend':''}}">推荐</view>
</view>
<view class="tailitem" bindtap="collect">
<view class="tailtopimg">
<image src="/img/xin.png" wx:if="{{shopdetail.is_collect==0}}"></image>
<image src="/img/yicollect.png" wx:else></image>
</view>
<view class="tailname {{shopdetail.is_collect==1?'recommend':''}}">收藏</view>
</view>
<view class="tailitem shareitem">
<view class="tailtopimg">
<image src="/img/share.png"></image>
</view>
<view class="tailname">分享</view>
<button open-type="share" class="share"></button>
</view>
</view>
</view>
<view class="cai flex">
<view class="flower flexone">
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=1}}">
<image src="/img/hua.png"></image>
</view>
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=2}}">
<image src="/img/hua.png"></image>
</view>
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=3}}">
<image src="/img/hua.png"></image>
</view>
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=4}}">
<image src="/img/hua.png"></image>
</view>
<view class="floweritem" wx:if="{{shopdetail.miqilin_score>=5}}">
<image src="/img/hua.png"></image>
</view>
</view>
<!-- <view class="fen" wx:if="{{shopdetail.miqilin_score!=false}}">{{shopdetail.miqilin_score}} 分</view> -->
<view class="huaname">{{shopdetail.series_name}}</view>
</view>
<view class="comment flexone">
<view class="sanleft">
<image src="/img/sanxing.png"></image>
</view>
<!-- <view class="star flexone">
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.miqilin_score>=1}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.miqilin_score<0.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.miqilin_score>=0.5&&shopdetail.miqilin_score<1}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.miqilin_score>=2}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.miqilin_score<1.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.miqilin_score>=1.5&&shopdetail.miqilin_score<2}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.miqilin_score>=3}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.miqilin_score<2.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.miqilin_score>=2.5&&shopdetail.miqilin_score<3}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.miqilin_score>=4}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.miqilin_score<3.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.miqilin_score>=3.5&&shopdetail.miqilin_score<4}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.miqilin_score>=5}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.miqilin_score<4.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.miqilin_score>=4.5&&shopdetail.miqilin_score<5}}"></image>
</view>
</view> -->
<view class="fen">{{shopdetail.synthetical_score}}分</view>
<view class="tiao">({{shopdetail.remark_num}}条)</view>
</view>
<view class="commentone flexone">
<view class="sanleft">
<image src="/img/kuai.png"></image>
</view>
<!-- <view class="star flexone">
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.synthetical_score>=1}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.synthetical_score<0.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.synthetical_score>=0.5&&shopdetail.synthetical_score<1}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.synthetical_score>=2}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.synthetical_score<1.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.synthetical_score>=1.5&&shopdetail.synthetical_score<2}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.synthetical_score>=3}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.synthetical_score<2.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.synthetical_score>=2.5&&shopdetail.synthetical_score<3}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.synthetical_score>=4}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.synthetical_score<3.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.synthetical_score>=3.5&&shopdetail.synthetical_score<4}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{shopdetail.synthetical_score>=5}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{shopdetail.synthetical_score<4.5}}"></image>
<image src="/img/banke.png" wx:if="{{shopdetail.synthetical_score>=4.5&&shopdetail.synthetical_score<5}}"></image>
</view>
</view> -->
<view class="fen">{{shopdetail.tabelog}}分</view>
</view>
</view>
</view>
<view class="bodybox">
<view class="jianintro" wx:if="{{shopdetail.content!=''}}">
<!-- <view class="nodata" wx:if="{{shopdetail.content==''}}">暂无数据</view> -->
<view class="jiantext">
<rich-text nodes="{{shopdetail.content}}"></rich-text>
</view>
</view>
<view class="photo {{shopdetail.content==''?'photoact':''}}" wx:if="{{images[0]!=''}}">
<view class="flextwo">
<view class="xiang" >相册</view>
<view class="photoright flexone" bindtap="{{pic.length!=0?'xiangce':''}}" wx:if="{{pic.length!=0}}">
<view class="morename">更多</view>
<view class="yourow">
<image src="/img/leftrow.png"></image>
</view>
</view>
</view>
<view class="jianintro photobox">
<view class="photoitem" wx:for="{{images}}" wx:key="" catchtap='previewimg' data-index="{{index}}">
<image src="{{item}}"></image>
</view>
</view>
</view>
<!-- wx:if="{{shopdetail.remarks.length!=0}}" -->
<view class="photo {{shopdetail.images[0]==''&&shopdetail.content==''?'photoact':''}}" wx:if="{{shopdetail.remarks.length!=0}}">
<view class="phototop flextwo">
<view class="phototopleft flexone">
<view class="xiang">点评 </view>
<view class="tiao">({{shopdetail.remarks.length}}条)</view>
</view>
<view class="photoright flexone" bindtap="morecomment">
<view class="morename">更多</view>
<view class="yourow">
<image src="/img/leftrow.png"></image>
</view>
</view>
</view>
<view class="dianbox">
<!-- wx:for='{{shopdetail.remarks}}' wx:key="" -->
<view class="jianintro commentitem " bindtap="comentdetail" data-id="{{item.id}}" wx:for='{{shopdetail.remarks}}' wx:key="" wx:for-index="cellindex">
<view class="comtop flextwo" catchtap="personpage" data-userid="{{item.user_id}}">
<view class="comleft">
<image src="{{item.avatar}}"></image>
</view>
<view class="comright">
<view class="comrtop flextwo">
<view class="comrname">{{item.nickname}}</view>
<view class="star starone flexone">
<view class="staritem">
<image src="/img/star.png" wx:if="{{item.user_level>=1}}"></image>
<image src="/img/huangkong.png" wx:if="{{item.user_level<1}}"></image>
<image src="/img/huangban.png" wx:if="{{item.user_level>=1.5&&item.user_level<2}}"></image>
</view>
<view class="staritem">
<image src="/img/star.png" wx:if="{{item.user_level>=2}}"></image>
<image src="/img/huangkong.png" wx:if="{{item.user_level<2}}"></image>
<image src="/img/huangban.png" wx:if="{{item.user_level>=2.5&&item.user_level<3}}"></image>
</view>
<view class="staritem">
<image src="/img/star.png" wx:if="{{item.user_level>=3}}"></image>
<image src="/img/huangkong.png" wx:if="{{item.user_level<31}}"></image>
<image src="/img/huangban.png" wx:if="{{item.user_level>=3.5&&item.user_level<4}}"></image>
</view>
<view class="staritem">
<image src="/img/star.png" wx:if="{{item.user_level>=4}}"></image>
<image src="/img/huangkong.png" wx:if="{{item.user_level<4}}"></image>
<image src="/img/huangban.png" wx:if="{{item.user_level>=4.5&&item.user_level<5}}"></image>
</view>
<view class="staritem">
<image src="/img/star.png" wx:if="{{item.user_level>=5}}"></image>
<image src="/img/huangkong.png" wx:if="{{item.user_level<5}}"></image>
<image src="/img/huangban.png" wx:if="{{item.user_level>=5.5&&item.user_level<6}}"></image>
</view>
</view>
</view>
<view class="comdate">{{item.createtime}}</view>
</view>
</view>
<view class="comtext flexone">
<view class="comleft"></view>
<view class="comright">
<view class="flexone fenxia">
<view class="star starone flexone">
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.score>=1}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{sitem.score<1}}"></image>
<image src="/img/banke.png" wx:if="{{item.score>=1.5&&item.score<2}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.score>=2}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{item.score<2}}"></image>
<image src="/img/banke.png" wx:if="{{item.score>=2.5&&item.score<3}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.score>=3}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{item.score<3}}"></image>
<image src="/img/banke.png" wx:if="{{item.score>=3.5&&item.score<4}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.score>=4}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{item.score<4}}"></image>
<image src="/img/banke.png" wx:if="{{item.score>=4.5&&item.score<5}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.score>=5}}"></image>
<image src="/img/lingfen_icon.png" wx:if="{{item.score<5}}"></image>
<image src="/img/banke.png" wx:if="{{item.score>=5.5&&item.score<6}}"></image>
</view>
</view>
<view class="fen">{{item.score}}分</view>
</view>
<view class="text">
{{item.content}}
</view>
<view class="textboximg flexone">
<view class="boxitem" wx:for='{{item.images}}' wx:key="">
<image src="{{item}}" catchtap="previewimgk" data-index="{{index}}" data-pindex="{{cellindex}}"></image>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 店铺信息 -->
<view class="photo">
<view class="xiang" bindtap="xiangce shopname">店铺信息</view>
<view class="addbox">
<view class="additem">
<view class="phonetop flexone">
<view class="phoetopleft ">
<image src="/img/dianhua_icon.png"></image>
</view>
<view class='phonenumber'>{{shopdetail.mobile}}</view>
</view>
<view class="phonetop flex addresstop">
<view class="phoetopleft ">
<image src="/img/dingwei_icon.png"></image>
</view>
<view class='phonenumber'>{{shopdetail.area}}</view>
</view>
</view>
<view class="additem flexone">
<view class="yingshi">营业时间</view>
<view class="timebox flexone">
<view class="tiemitem">{{shopdetail.business_time}}</view>
</view>
</view>
<view class="additem flexone">
<view class="yingshi">休息日</view>
<view class="timebox flexone">
<view class="tiemitem">{{shopdetail.dayoff}}</view>
</view>
</view>
<view class="additem flexone">
<view class="shouimg">
<image src="/img/renjun_icon.png"></image>
</view>
<view class="pricepeopel pricepeopelk">
{{shopdetail.shop_price}}/人
</view>
</view>
<!-- 支付方式 -->
<view class="additem flexone">
<view class="yingshi">支付方式</view>
<view class="timebox flexone">
<view class="tiemitem">{{shopdetail.pay_type}}</view>
</view>
</view>
<!-- 是否接待儿童 -->
<view class="additem flexone">
<view class="yingshi">是否接待儿童</view>
<view class="timebox flexone">
<view class="tiemitem">{{shopdetail.reception_children}}</view>
</view>
</view>
<view class="additem">
<view class="can pricepeopel">套餐信息</view>
<!-- <view class="canone pricepeopel">自助点餐:53000日元 (服务费800日元)</view>
<view class="cantwo pricepeopel">午餐套餐:53000日元 (服务费800日元、税费1600日元)</view> -->
<view class="cantext">
{{shopdetail.combo}}
</view>
</view>
<!-- <view class="yuyuelsit flexone" wx:if="{{shopdetail.label!=''}}">
<view class="yuyueitem" wx:for="{{shopdetail.label}}" wx:key="">{{item}}</view>
</view> -->
</view>
</view>
</view>
<view class="botfix flextwo">
<view class="boitem" bindtap="write" data-id="1">
<view class="botitemtop">
<image src="/img/duigou.png"></image>
</view>
<view class="botname">打卡</view>
</view>
<!-- <view class="boitem" bindtap="write" data-id="2">
<view class="botitemtop">
<image src="/img/chuanphoto.png"></image>
</view>
<view class="botname">传照片</view>
</view> -->
<!-- <view class="boitem" bindtap="write" data-id="3">
<view class="botitemtop">
<image src="/img/video.png"></image>
</view>
<view class="botname">拍视频</view>
</view> -->
<view class="boitem" bindtap="write" data-id="4">
<view class="botitemtop" bindtap="write" data-id="4">
<image src="/img/writedian.png"></image>
</view>
<view class="botname">评价</view>
</view>
</view>
<!-- 打卡失败遮罩层 -->
<view class="register" wx:if="{{hidewrap}}">
<view class="clockwrap">
<view class="gantanimg">
<image src="/img/gantan.png"></image>
</view>
<view class="shibai">打卡失败</view>
<view class="shebei">该账号已在其他设备登录</view>
<view class="bot flex">
<view class="botleft">商户地址报错</view>
<view class="botright">再试一次</view>
</view>
</view>
</view>
<!-- 打卡成功遮罩层 -->
<view class="register" wx:if="{{hidewraptrue}}">
<view class="clockwrap clockwrapy">
<view class="gantanimg">
<image src="/img/clocksuccess.png"></image>
</view>
<view class="successname">打卡成功</view>
<view class="clocksure" bindtap="sure">确定</view>
</view>
</view>
</view>