goodsInfo.wxml
46.2 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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
<import src="../../../utils/wxParse/wxParse.wxml"></import>
<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
<wxs module="" src="filter.wxs"></wxs>
<block wx:if="{{isshow}}">
<view class="container">
<view class="type-navbar">
<view class="type-box" wx:for="{{categories}}" wx:key="categories">
<view bindtap="tabClick" class="type-navbar-item {{activeCategoryId==item.id?'type-item-on':''}}" id="{{item.id}}">
{{item.name}}
</view>
</view>
</view>
<view class="goods-detail">
<view class="goods-info" hidden="{{activeCategoryId==0?false:true}}">
<!-- 视频 -->
<!-- <swiper bindchange="swiperChange"class="xc-pictures swiperContainer rel" current="{{swiperCurrent}}"
indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"> -->
<view id="id" bindtouchstart="handletouchtart" bindtouchmove="handletouchmove">
<view class="xc-videos-picture rel">
<swiper autoplay="{{false}}" current="{{swiperCurrent}}" class="swiper_box swiperContainer rel" duration="{{1000}}" indicatorDots="{{mapurl?false:true}}" interval="{{3000}}" vertical="{{false}}" bindchange="swiperChange">
<swiper-item wx:if="{{mapurl}}">
<view wx:if="{{noon == 0}}">
<image class="xc-picturess" src="{{iurl+mapurl_f_img}}" mode="aspectFit">
<image id="{{index}}" class="xc-play" src="{{iurl}}/miniapp/images/pofang.png" bindtap="videoPlay"></image>
</image>
</view>
<view wx:else>
<video class="xc-videos" src="{{iurl+mapurl}}" id="{{index}}" wx:if="{{_index == index}}"> </video>
</view>
</swiper-item>
<swiper-item wx:for="{{gallery}}" wx:key="gallery">
<image class="wh100" src="{{item.image_url}}" mode="aspectFit" binderror="bind_bnerr" lazy-load="true" data-errorimg="gallery[{{index}}].image_url"></image>
</swiper-item>
</swiper>
<block wx:if="{{mapurl}}">
<view wx:if="{{hiddenn==1}}">
<view class="xc-imageCount">{{current}}/{{gallery.length}}</view>
</view>
<view class="xc-video-picture abs">
<view class="xc-video" data-vipi="0" bindtap="videopicture">
<view class=" {{videopicture==0 ? 'xc-video-button':'xc-video-buttons'}} {{videopicture==0 ? 'xc-sn':''}}">
视频
</view>
</view>
<view class="xc-picture {{videopicture==1 ? 'xc-sn':''}}" data-vipi="1" bindtap="videopicture">
<view>
图片
</view>
</view>
</view>
</block>
</view>
</view>
<!----显示秒杀价,团购,积分购---->
<view class="prom_show rel" wx:if="{{prom_type==1}}">
<image class="secondkill-img" src='{{prom_st==1? iurl+"/miniapp/images/red_jx.png":iurl+"/miniapp/images/blue_ks.png"}}'></image>
<image class="abs spike-img" src="{{iurl}}/miniapp/images/xsmiaosha.png"></image>
<view class="stop fs26 abs" wx:if="{{prom_st==1}}">距活动结束还有</view>
<view class="start fs26 abs" wx:if="{{prom_st==2}}">距活动开始还有</view>
<view class="secview flex abs fs24 xc-miaosha-time">
<block wx:if="djs.day">
<view class='day-val' style="color:{{prom_st==1?'#d40022':'#0097e0'}}">{{djs.day}}</view>
<view class="day white" style="color: {{prom_st==1?'#d40022':'#0097e0'}}">天</view>
</block>
<view class='time-val white t-c' style=" background:{{prom_st==1?'#d40022':'#0097e0'}}">{{djs.hou}}</view>
<view class="time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}">时</view>
<view class='time-val white t-c' style=" background:{{prom_st==1?'#d40022':'#0097e0'}}">{{djs.min}}</view>
<view class="time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}"> 分</view>
<view class='time-val white t-c' style=";background:{{prom_st==1?'#d40022':'#0097e0'}}">{{djs.sec}}</view>
<view class="time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}">秒</view>
</view>
</view>
<!----拼单---->
<view class="pt_show " wx:if="{{prom_type==6}}">
<view class="pt_view rel">
<!--许程 7. 24 -->
<image class="secondkill-img" src="{{prom_st==1? iurl+'/miniapp/images/red_jx.png':iurl+'/miniapp/images/blue_ks.png'}}"></image>
<view class="abs xc-qt-price">
<view class="flex" style='height:40rpx; margin-top:5rpx'>
<view class="flex fs35 xc-qtsign">¥</view>
<view class="fs50 val">{{prom_price}}</view>
</view>
<view class="word-line fs20 xc-qtunit-price">零售价¥{{data.market_price}}</view>
</view>
<view class="abs white xc-nanber">
<text class="fs22">已拼{{prom_act.buy_num}}份</text>
<view class="flex" style='margin-top:-34rpx'>
<view class="xc-people-img">
<image class="imgs" src="{{prom_st==1? iurl+'/miniapp/images/r_logo_red.png':iurl+'/miniapp/images/r_logo.png'}}"></image>
</view>
<view class="t-s fs20 xc-people-val">
{{prom_act.ct_num}}人拼
</view>
</view>
</view>
<view class="hy-stop word-color fs26 abs" wx:if="{{prom_st==1}}">距活动结束还有</view>
<view class="hy-stop word-color-lan fs26 abs" wx:if="{{prom_st==0}}">距活动开始还有</view>
<view class="secview flex abs fs24 " style="color: black;right: 3px; top:46rpx;">
<block wx:if="djs.day">
<view class='day-val' style="color:{{prom_st==1?'#d40022':'#0097e0'}};margin-top:-34rpx;">{{djs.day}}</view>
<view class="day white" style="margin-top:-34rpx;margin-right:10rpx;color: {{prom_st==1?'#d40022':'#0097e0'}}">天</view>
</block>
<view class='xc-time-val white t-c' style=" background:{{prom_st==1?'#d40022':'#0097e0'}}">{{djs.hou}}</view>
<view class="xc-time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}">时</view>
<view class='xc-time-val white t-c' style=" background:{{prom_st==1?'#d40022':'#0097e0'}}">{{djs.min}}</view>
<view class="xc-time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}"> 分</view>
<view class='xc-time-val white t-c' style=";background:{{prom_st==1?'#d40022':'#0097e0'}}">{{djs.sec}}</view>
<view class="xc-time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}">秒</view>
</view>
</view>
<view class="pt_fir">
<!----显示团类型和团价格---->
<view class="pt_fir_title ">
<!-- 许程 商家团主页 -->
<view class="xc-goods-explain flex-vertical-between">
<view class="xc-explain fs32 ellipsis-2" wx:if="{{prom_type!=0 }}">
{{data.goods_name}}
</view>
<view class="xc-share-frame-jieti flex" bindtap="saveImageToPhotosAlbum" style="top:0">
<image class="share-frame" src="{{iurl}}/miniapp/images/share.png"></image>
<view class="share-font">分享</view>
</view>
</view>
</view>
<!----显示价格,阶梯团---->
<block wx:if="{{prom_act.kttype==3}}">
<view class="jie_price flex">
<view style='margin-right:26rpx' wx:for="{{prom_act.ct_rylist}}">
<view class="fs35 word-color">
<text class="fs24">¥</text>{{item.price}}</view>
<view class="fs24 t-c xc-person-number ">满{{item.rynum}}人</view>
</view>
</view>
</block>
</view>
<view class="t_gz" wx:if="{{is_show_gz==1}}">
{{prom_act.remark}}
</view>
<!----------正有多少人在开团---------->
<view class="pt_fir se2" wx:if="{{teamgroup}}">
<view class="xc-partner-frame">
<view class="zzk-1" bindtap="go_t_more">以下小伙伴正在拼单,可直接参与
<view class="ckgd flex">查看详细
<view class="bg_right arrow-one"></view>
</view>
</view>
</view>
<view class='group' wx:for="{{teamgroup}}" wx:for-index="t_ind" wx:key="teamgroup" style='padding-left:28rpx;'>
<view class='group-list' bindtap="go_cj_team" data-ind="{{t_ind}}">
<!--//选项框头像-->
<view class='gtou'>
<image src='{{item.user.head_pic}}'></image>
</view>
<!--//等你来拼-->
<view class='gdn ellipsis-1'>{{item.user.nickname}}</view>
<!--//还差几人,剩余时间-->
<view class="rel">
<view class='ghaicha ellipsis-2 abs'>
<text class='gred' wx:if="{{prom_act.max_ct_num >0}}"><text class="flex" wx:if="{{prom_act.max_ct_num - item.open_num>0}}">还差<text class="word-color">{{prom_act.max_ct_num - item.open_num}}</text>人享最低优惠</text><text wx:else>您已经享最低优惠</text></text>
<text class='gred' wx:else>还差<text style='color:#ff2753'>{{prom_act.ct_num - item.open_num}}</text>人成团 </text>
<view class="t_show">
剩余
<text>{{timer[t_ind].hou}}</text>:
<text>{{timer[t_ind].min}}</text>:
<text>{{timer[t_ind].sec}}</text>
</view>
</view>
</view>
<!--//参加团-->
<view class='cjt t-c'>
去参团
</view>
<view class="clear"></view>
</view>
</view>
</view>
<view class="pt_fir se1">
<view class="pt_hb">
拼团玩法
<view class="ptgz_an xq flex" bindtap="show_pt_xx">查看详细
<view class="bg_right arrow-two"></view>
</view>
</view>
<view class="flex-level" style='height:198rpx; width:100%;'>
<view class="flex-vertical-between rel" style='width:94%;margin-left:10rpx;'>
<!-- 许程 7: 24 -->
<view class="xc-item t-c">
<view class="circle yuan t-c circle-color">1</view>
<view class="word">选择商品完成下单</view>
</view>
<view class="abs link {{color_type==0?'link-color-red':'link-color'}}"></view>
<view class="xc-item t-c">
<view class="circle yuan t-c circle-color">2</view>
<view class="word">支付开团或参团</view>
</view>
<view class="abs link1 {{color_type_one==0?'link-color-red':'link-color'}}"></view>
<view class="xc-item t-c">
<view class="circle yuan t-c circle-color">3</view>
<view class="word">邀请好友参团支付</view>
</view>
<view class="abs link2 {{color_type_two==0?'link-color-red':'link-color'}}"></view>
<view class="xc-item t-c">
<view class="circle yuan t-c circle-color1">4</view>
<view class="word">人满发货失败退款</view>
</view>
</view>
</view>
</view>
</view>
<block wx:if="{{prom_type!=6}}">
<view class="goods-price rel">
<view class="co-red" style="overflow: hidden" wx:if="{{prom_type==0 || prom_type==3}}">
<view class="market-price" style="overflow: hidden">
<text class="rel yuan">¥</text>{{ filters.toFix(data.shop_price,2)}}
<view class='yj'>
<text>原价:¥{{data.market_price}}</text>
</view>
</view>
</view>
<!-- 这个是分享按钮 -->
<view class="xc-share-frame flex {{prom_type==1?'s_ms_bth':''}} " bindtap="saveImageToPhotosAlbum">
<image class="share-frame" src="{{iurl}}/miniapp/images/share.png"></image>
<view class="share-font">分享</view>
</view>
<!--许程 7.24 暂时注释 -->
<view wx:if="{{prom_type!=1}}">
<view class="goods-title">
<view class="goods-name elli">{{data.goods_name}}</view>
</view>
</view>
<view class="goods-num" wx:if="{{prom_type!=1}}">
<view class="sales">销量:{{data.sales_sum}}件</view>
<view class="stock">折扣:{{data.disc}}折</view>
<view class="stock">{{categories3[0].num}}人评价</view>
</view>
<view wx:if="{{prom_type==1}}">
<view class="flex">
<view>
<view class="flex xc-price-frame">
<view class="flex fs45 sign">¥</view>
<view class="fs60 val">{{prom_price}}</view>
</view>
<view class="word-line fs24 xc-unit-price">零售价¥{{data.market_price}}</view>
</view>
<view class="xc-val-price">
<view class="fs30" style='padding-left:13rpx;'>已抢:{{prom_act.buy_num+prom_act.virtual}}件</view>
<view class="fs30 save t-c">秒杀立省¥{{filters.toFix(data.market_price-prom_price,2)}}</view>
</view>
</view>
</view>
<view style='height:42rpx'></view>
<view class="xc-explain fs32 ellipsis-2" wx:if="{{prom_type!=0}}">
{{data.goods_name}}
</view>
<view wx:if="{{prom_type==1}}" style='height:58rpx'></view>
<!-- 许程 7.24 暂时注释 -->
<view wx:if="{{prom_type==1}}">
<view class="goods-num" wx:if="{{prom_type==1}}">
<block wx:if="prom_st>0" >
<view class="stock">总数量:{{prom_act.goods_num+prom_act.virtual}}件</view>
<view class="stock">限购:{{prom_act.buy_limit}}件</view>
<view class="sales">已购:{{prom_act.buy_num+prom_act.virtual}}件</view>
</block>
<block wx:else>
<view class="stock">总数量:{{prom_act.goods_num}}件</view>
<view class="stock">限购:{{prom_act.buy_limit}}件</view>
<view class="sales">已购:{{prom_act.buy_num}}件</view>
</block>
</view>
</view>
</view>
</block>
<!--许程 7.24暂时注释 -->
<view wx:if="{{prom_type!=1&&prom_act.kttype!=3&&prom_act.kttype!=2&&prom_act.kttype!=1 && is_closecoupon!=1}}">
<view class="cx-frame flex" style="position: relative" wx:if="{{fir_quan.length>0}}">
<view class="cx-sizs wsize">领券</view>
<view class="xc-coupon-fram" wx:for="{{fir_quan}}" wx:key="{{index}}">
<view class="circle xc-circular xc-one"></view>
<view class="xc-coupon t-c four-level-word">满{{item.condition}}减{{item.money}}</view>
<view class="circle xc-circular xc-two"></view>
</view>
<view data-coupon="1" bindtap="switchCoupon" class="cx-obtain-coupon wsize">领券
<text class="bg_jj"></text>
</view>
</view>
</view>
<view class="bz_view one_elli" wx:if="{{bconfig}}">
<image class="bzfu_img" src="{{iurl}}/miniapp/images/bzfu_w.png"></image>
<text>{{bconfig.service_bz}}</text>
</view>
<!--- 宝贝评价 ---->
<view style="overflow: hidden">
<view class="bb_view">
<view>宝贝评价({{categories3[0].num}})</view>
<view class="red_bb" bindtap="look_pj">查看全部
<text class="bg_jj"></text>
</view>
</view>
<view class="xc_comment">
<view class="xc_comment-have-pictures"id="2" data-val="5" bindtap="clik_evaluate">有图({{categories3[1].num}}) </view>
<view class="xc_comment-discuss"id="2" data-val="2" bindtap="clik_evaluate">好评({{categories3[2].num}}) </view>
<view class="xc_comment-discuss" id="2"data-val="4"bindtap="clik_evaluate">差评({{categories3[4].num}}) </view>
</view>
<scroll-view scroll-x="true" class="pj_scroll">
<view class="xc_comment-detail" style="display: inline-block" wx:for="{{fir_comments}}" wx:key="fir_comments">
<view class="xc_comment-left">
<view class="xc_comment-user">
<view class="xc_user-img">
<image class="xc_imgs" src='{{item.head_pic}}' binderror="bind_bnerr2" data-errorimg="fir_comments[{{index}}].head_pic"></image>
</view>
<view class="xc_user">
<view class="xc_user-name five-level-word">{{item.username}}</view>
<image class="xc_comment-img" src="{{iurl}}/miniapp/images/star-red.png" wx:for="{{item.sum_rank}}" wx:key="{{index}}"></image>
</view>
</view>
<view class="xc_comment-font pj_word_size ellipsis-3">
{{item.content?item.content:''}}
</view>
<view class="xc_comment-val">
<view class="xc_comment-time">{{item.add_time}}</view>
</view>
</view>
<view class="xc_goods-img-frame">
<image wx:if="{{item.img[0]!=undefined && item.img[0]!=null}}" class="xc_goods-img" src='{{iurl+item.img[0]}}'></image>
<image wx:else class="xc_goods-img" src='{{gallery[0].image_url}}'></image>
</view>
</view>
</scroll-view>
</view>
<!-- 图文详情 -->
<view>
<view class="tuwen_title">
<view class="g_line"></view>
<view class="center_s">
<image src="{{iurl}}/miniapp/images/tuwen_c.png"></image>
<text>详情</text>
</view>
</view>
<view class="t_g_info">
<view class="red_shu"></view>
<view style='font-size: 32rpx;'>商品信息</view>
</view>
<view class="table_s">
<view class="tb_item tb-l">
<view class="item_left">
<text>商品名称</text>
</view>
<view class="item_right">
<text>{{data.goods_name}}</text>
</view>
</view>
<view class="tb_item tb-l">
<view class="item_left">
<text>商品编号</text>
</view>
<view class="item_right">
<text>{{data.goods_sn}}</text>
</view>
</view>
<view class="tb_item tb-l">
<view class="item_left">
<text>商品条码</text>
</view>
<view class="item_right">
<text>{{data.sku}}</text>
</view>
</view>
<view class="tb_item tb-l" wx:if="{{cat_name && is_show_pl}}">
<view class="item_left">
<text>品类</text>
</view>
<view class="item_right">
<text>{{cat_name}}</text>
</view>
</view>
<view class="tb_item tb-l" wx:if="{{brand_name && is_show_pp}}">
<view class="item_left">
<text>品牌</text>
</view>
<view class="item_right">
<text>{{brand_name}}</text>
</view>
</view>
<view class="tb_item tb-l" wx:if="{{nation_name && is_show_gb}}">
<view class="item_left">
<text>国别</text>
</view>
<view class="item_right">
<text>{{nation_name}}</text>
</view>
</view>
<view class="tb_item tb-l">
<view class="item_left">
<text>规格</text>
</view>
<view class="item_right">
<text>{{data.goods_spec==""?"规格1":data.goods_spec}}</text>
</view>
</view>
<view class="tb_item tb-l">
<view class="item_left">
<text>上架时间</text>
</view>
<view class="item_right">
<text>{{data.on_time}}</text>
</view>
</view>
</view>
<!--详情图片-->
<view class="wxParse">
<template is="wxParse" data="{{wxParseData:content.nodes}}"></template>
</view>
</view>
<!-- 推荐商品 -->
<view class="flex-center rel xc-linellae-frame">
<view class="xc-linellae"></view>
<view class="abs flex-center xc-recommend-frame ">
<image class=" xc-recommend" src="{{iurl}}/miniapp/images/diamond.png">
</image>
<view class="xc-recommend-word">推荐</view>
</view>
</view>
<!-- 显示商品 -->
<view class="xc-goods ">
<view>
<view bindtap="go_goods" data-gid="{{item.goods_id}}" class="rel xc-goods-recommend {{index%2==0?'':'ml'}}" wx:for="{{recommend_list}}">
<image class="xc-goods-imgs" src="{{iurl+item.original_img}}"></image>
<view class='xc-goods-bottom abs'>
<view class="flex monry-frame">
<view class="flex">
<view class="three-level-word money-color-val rmb-symbol">¥</view>
<view class="two-level-word money-color-val" style='margin-top:8rpx;'>{{item.shop_price}}</view>
</view>
<view class="word-lines xc-original-price"> 原价¥{{item.market_price}}</view>
</view>
<view class="xc-good-explain ellipsis-2">{{item.goods_name}}</view>
</view>
</view>
</view>
</view>
</view>
<!------------商品详情图片页面-------------->
<view class="goods-norms" hidden="{{activeCategoryId==1?false:true}}">
<view class="table_s">
<view class="tb_item tb-l">
<view class="item_left">
<text>商品名称</text>
</view>
<view class="item_right">
<text>{{data.goods_name}}</text>
</view>
</view>
<view class="tb_item tb-l">
<view class="item_left">
<text>商品编号</text>
</view>
<view class="item_right">
<text>{{data.goods_sn}}</text>
</view>
</view>
<view class="tb_item tb-l">
<view class="item_left">
<text>商品条码</text>
</view>
<view class="item_right">
<text>{{data.sku}}</text>
</view>
</view>
<view class="tb_item tb-l" wx:if="{{cat_name && is_show_pl}}">
<view class="item_left">
<text>品类</text>
</view>
<view class="item_right">
<text>{{cat_name}}</text>
</view>
</view>
<view class="tb_item tb-l" wx:if="{{brand_name && is_show_pp}}">
<view class="item_left">
<text>品牌</text>
</view>
<view class="item_right">
<text>{{brand_name}}</text>
</view>
</view>
<view class="tb_item tb-l" wx:if="{{nation_name && is_show_gb}}">
<view class="item_left">
<text>国别</text>
</view>
<view class="item_right">
<text>{{nation_name}}</text>
</view>
</view>
<view class="tb_item tb-l">
<view class="item_left">
<text>规格</text>
</view>
<view class="item_right">
<text>{{data.goods_spec==""?"规格1":data.goods_spec}}</text>
</view>
</view>
<view class="tb_item tb-l">
<view class="item_left">
<text>上架时间</text>
</view>
<view class="item_right">
<text>{{data.on_time}}</text>
</view>
</view>
</view>
<view class="wxParse">
<template is="wxParse" data="{{wxParseData:content.nodes}}"></template>
</view>
</view>
<!------------评价页面-------------->
<view class="goods-comment" hidden="{{activeCategoryId==2?false:true}}">
<view class="topframe">
<view class="topframe-top">
<view class="topframe-top-content">
<view>宝贝评价</view>
<view class="topframe-top-val">({{categories3[0].num}})</view>
</view>
<view class="topframe-praise" wx:if="{{categories3[0].num}}">好评{{ filters.toFix(categories3[2].num/categories3[0].num*100,2) }}%</view>
<view wx:else>好评 0%</view>
</view>
<view class="buttem-list">
<view bindtap="tabClick3" id="{{item.id}}" wx:for="{{categories3}}" wx:key="categories3" class="item {{activeCategoryId3==item.id?'red':''}}">{{item.name}}({{item.num}})</view>
</view>
</view>
<block wx:for="{{comments}}" wx:for-index="cIdx" wx:key="{{cIdx}}">
<view style='border-bottom:4rpx solid #eee;'>
<view class="middle">
<view class="middle-img-frame">
<image class="middle-img" src="{{item.head_pic}}" binderror="bind_bnerr2" data-errorimg="comments[{{cIdx}}].head_pic"></image>
<view class="middle-user-frame">
<view class="middle-user">{{item.username==''?'匿名用户':item.username}}</view>
<image class="star" src="{{iurl}}/miniapp/images/star-red.png" wx:for="{{item.sum_rank}}" wx:key="{{index}}"></image>
</view>
</view>
<view class="xc-pirces">
<text class="middle-font">
{{item.content?item.content:''}}
</text>
</view>
<view class="img-ul">
<view class="img-li" wx:for="{{item.img}}" wx:key="{{index}}">
<image bindtap="previewCommentImgs" class="wh100" data-cidx="{{cIdx}}"
data-id="{{index}}" src="{{iurl}}{{item}}"></image>
</view>
</view>
<view class="iddle-goods-img">
<image bindtap="previewCommentImgs" class="goods-img" wx:for="{{item.img}}" wx:key="{{index}}" data-cidx="{{cIdx}}" data-id="{{index}}" src="{{iurl}}{{item}}"></image>
</view>
<view class="z_parameter">
<view class="parameter-font">{{item.add_time}}</view>
<view class="parameter-dian" bindtap="click_zan" data-com_id="{{item.comment_id}}" data-item_id="{{cIdx}}">
<image wx:if="{{item.userZanNum==1}}" class="parameter-img" src="{{iurl}}/miniapp/images/zan_red.png"></image>
<image wx:else class="parameter-img" src="{{iurl}}/miniapp/images/dianzan.png"></image>
<view class="parameter-val" style='color:{{item.userZanNum==1? "#d60022":"#999" }}' >{{item.zan_num}}</view>
</view>
</view>
</view>
<view class="reply rel" wx:if="{{item.replay_list}}">
<view class="line_bulge"></view>
<view class="shop-reply">店家回复: </view>
<view class="shop-font" wx:for="{{item.replay_list}}" wx:for-item="r_item" wx:key="{{index}}">
{{r_item.content}}
</view>
</view>
</view>
</block>
<block wx:if="{{comments.length==0 && get_c}}">
<text class="no_pj_list">暂无评价</text>
</block>
</view>
</view>
</view>
<!---滚动到顶部---->
<view bindtap="doScrollTop" class="toTop" wx:if="{{supportPageScroll}}">
<image class="wh100" src="{{iurl}}/miniapp/images/topup.png"></image>
</view>
<!-------------------底部按钮-------------------->
<view class="join-cart">
<view bindtap="contactService" class="custom-service cart-ico new_split">
<image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image>
<view>客服</view>
</view>
<view bindtap="collectGoods" class="custom-service cart-ico new_split">
<image hidden="{{is_collect}}" class="cs-img" src="{{iurl}}/miniapp/images/heart.png"></image>
<image hidden="{{!is_collect}}" class="cs-img" src="{{iurl}}/miniapp/images/heart-h.png"></image>
<view>收藏</view>
</view>
<view class="shopping-cart cart-ico new_split">
<navigator openType="switchTab" url="/pages/cart/cart/cart">
<image class="sc-img" src="{{iurl}}/miniapp/images/shopping-cart.png"></image>
<view class="cart-num ellipsis-1"> {{cartGoodsNum}} </view>
<view>购物车</view>
</navigator>
</view>
<!---<view bindtap="openSpecModel" class="buy-btn cart-btn cart-btn-lg" wx:if="{{data.goods.is_virtual}}">立即购买</view>-->
<block wx:if="{{prom_type==0}}">
<view bindtap="openSpecModel" data-ind="1" class="join-btn cart-btn">加入购物车</view>
<view bindtap="openSpecModel" data-ind="2" class="buy-btn cart-btn">立即购买</view>
</block>
<!-------秒杀-------->
<block wx:if="{{prom_type==1}}">
<block wx:if="{{prom_st==1 && !prom_r_null}}">
<view bindtap="openSpecModel" data-ind="1" class="join-btn cart-btn">加入购物车</view>
<view bindtap="openSpecModel" data-ind="2" class="buy-btn cart-btn">立即抢购</view>
</block>
<block wx:if="{{prom_st==0 && !prom_r_null}}">
<view class="buy-btn cart-btn cart-btn-lg lanse set_width">即将开始</view>
</block>
<block wx:if="{{prom_r_null}}">
<view class="buy-btn cart-btn cart-btn-lg huise set_width">已抢光</view>
</block>
<block wx:if="{{prom_st==3 && !prom_r_null}}">
<view class="buy-btn cart-btn cart-btn-lg lanse set_width">活动已经结束</view>
</block>
</block>
<!-------拼单-------->
<block wx:if="{{prom_type==6}}">
<view bindtap="openSpecModel_pt" data-it="1" data-ind="1" class="join-btn cart-btn line-h">
<view class="fir-v">¥{{filters.toFix(data.shop_price,2)}}</view>
<view>单独购买</view>
</view>
<block wx:if="{{user_order_pt_state==0}}">
<!----商家团---->
<view bindtap="openSpecModel_pt" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==1}}" class="buy-btn cart-btn line-h">
<view class="fir-v">¥{{prom_act.price}}</view>
<view>去参团</view>
</view>
<!----会员团---->
<view bindtap="openSpecModel_pt" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==2}}" class="buy-btn cart-btn line-h">
<!--<view class="fir-v">¥{{prom_act.price}}</view>-->
<view class="pd_top1" wx:if="{{prom_act.tz_yhjgtype>1}}">
<view>一键开团</view>
<view wx:if="{{prom_act.tz_yhjgtype==3}}">佣金<text style="font-size: 23rpx">¥</text>{{filters.toFix(prom_act.tz_yyhjg,2)}}</view>
<view wx:if="{{prom_act.tz_yhjgtype==2}}">团长免单</view>
</view>
<view wx:else>
<view class="fir-v">¥{{ filters.toFix(prom_act.price,2)}}</view>
<view>一键开团</view>
</view>
</view>
<!---阶梯团---->
<view bindtap="openSpecModel_pt" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==3 && user_order_pt_state!=3 }}" class="buy-btn cart-btn line-h">
<view class="fir-v">¥{{filters.toFix(prom_act.yf_price,2)}}</view>
<view>支付定金</view>
</view>
<view wx:if="{{prom_st==0}}" class="buy-btn cart-btn lanse">即将开始</view>
<view wx:if="{{prom_r_null}}" class="buy-btn cart-btn huise">已抢光</view>
<view wx:if="{{prom_st==3 && !prom_r_null}}" class="buy-btn cart-btn lanse">活动已经结束</view>
</block>
<block wx:else>
<view bindtap="go_to_nopay" wx:if="{{user_order_pt_state==1}}" class="buy-btn cart-btn huise">您还未支付</view>
<view bindtap="go_to_team_show" wx:if="{{user_order_pt_state==2}}" class="buy-btn cart-btn">查看支付详情</view>
<view wx:if="{{user_order_pt_state==3}}" bindtap="go_pay_wk" class="buy-btn cart-btn">支付尾款</view>
</block>
</block>
<!---<view bindtap="openSpecModel" class="buy-btn cart-btn cart-btn-lg" wx:else>立即兑换</view>-->
</view>
<!-- 制作一个圆球导航 -->
<nav_box></nav_box>
</block>
<!----弹起来,选择规格数量,普通商品购买和秒杀------>
<view hidden="{{!openSpecModal}}">
<view bindtap="closeSpecModal" class="cover-layer"></view>
<view class="spec-model">
<view class="pding">
<icon bindtap="closeSpecModal" class="modal-close" color="gray" size="22" type="cancel"></icon>
<view class="spec-goods">
<image class="wh100 spec-img" src="{{data.original_img}}" binderror="pop_err_img" data-errorimg="data.original_img"></image>
<view class="spec-goods-info">
<!--<view class="spec-goods-name">{{data.goods_name}}</view>-->
<view class="spec-goods-price" wx:if="{{prom_price==null}}">¥ {{sele_g.shop_price}}</view>
<view class="spec-goods-price" wx:else>¥ {{prom_price}}</view>
<block wx:if="{{prom_type==0}}">
<view class="spec-goods-stock">已售:{{sele_g.sales_sum}}</view>
<view class="spec-goods-stock">可售:{{sele_g.store_count}}</view>
<view class="spec-goods-stock">已选:{{sku_g[0].gg}}</view>
</block>
<block wx:if="{{prom_type==1}}">
<view class="spec-goods-stock" wx:if="{{prom_st>0}}">已售:{{prom_act.buy_num+prom_act.virtual}}</view>
<view class="spec-goods-stock" wx:else >已售:{{prom_act.buy_num}}</view>
<view class="spec-goods-stock">可售:{{prom_act.goods_num-prom_act.buy_num}}</view>
<view class="spec-goods-stock">已选:{{sku_g[0].gg}}</view>
</block>
</view>
</view>
<!----商品的属性项目---->
<view hidden="{{ismend==1}}" class="spec-name">商品属性</view>
<view hidden="{{ismend==1}}" class="flex">
<view class="spec_bt {{gid==item.goods_id?'act':''}}" bindtap="sele_spec" data-gid='item.goods_id' wx:for="{{sku_g}}" wx:key="sku_g">
{{item.gg}}
</view>
</view>
<!----点击选择门店的时候要隐藏---->
<view hidden="{{ismend==1}}">
<view bindtap="getmendian" class="quhuo logistics-item">
<view wx:if="{{sto_sele_name==''}}">取货门店
<text class='small'>(选择门店)</text>
</view>
<view wx:else>取货门店({{sto_sele_name}})</view>
<view class="item-img">
<image class="wh100" src="{{iurl}}/miniapp/images/icon-arrowdown.png"></image>
</view>
</view>
<view class="b_num">
<view>购买数量</view>
<view class="count">
<view bindtap="subCartNum" class="sub">-</view>
<input bindblur="inputCartNum" type="number" value="{{goodsInputNum}}"></input>
<view bindtap="addCartNum" class="add">+</view>
</view>
</view>
</view>
<view class="clear"></view>
<!---选择门店的列表--->
<view hidden="{{ismend==0}}" class="sto_v">
<view class="title" hidden="{{is_sec_mend==1}}" bindtap="hidemend">
<image class="tubiao" src="{{iurl}}/miniapp/images/icon-left.png"></image>选择门店
</view>
<!-----第一级显示------>
<view class="itemlists" hidden="{{is_sec_mend==1}}">
<block wx:if="{{is_show_sto_cat}}">
<view wx:for="{{all_sto}}" wx:key="all_sto" class="item" bindtap="show_sec" data-index="{{index}}">{{item.name}}</view>
</block>
<block wx:else>
<view wx:for="{{only_pk}}" wx:key="only_pk" class="item" bindtap="hidemend" data-p_id="{{item.pickup_id}}" data-p_name="{{item.pickup_name}}" data-p_dis="{{item.distr_type}}">{{item.pickup_name}}</view>
</block>
</view>
<!-----第二级显示------>
<view class="stitle" hidden="{{is_sec_mend==0}}" bindtap="hide_sec_mend">
<image class="tubiao" src="{{iurl}}/miniapp/images/icon-left.png"></image>{{sec_sto.name}}
</view>
<view class="itemlists" hidden="{{is_sec_mend==0}}">
<view wx:for="{{sec_sto.s_arr}}" wx:key="{{index}}" class="item" bindtap="hidemend" data-p_id="{{item.pickup_id}}" data-p_name="{{item.pickup_name}}" data-p_dis="{{item.distr_type}}">{{item.pickup_name}}
</view>
</view>
</view>
</view>
<view class="spec-cart-btns">
<block>
<view wx:if="{{openSpecModal_ind==1}}" bindtap="addCart" class="spec-cart-btn spec-buy" data-action="add">加入购物车</view>
<view wx:if="{{openSpecModal_ind==2}}" bindtap="addCart" class="spec-cart-btn spec-buy" data-action="buy">立即购买</view>
</block>
</view>
</view>
</view>
<!----弹起来,选择规格数量,拼单商品购买------>
<view hidden="{{!openSpecModal_pt}}">
<view bindtap="closeSpecModal" class="cover-layer"></view>
<view class="spec-model">
<view class="pding">
<icon bindtap="closeSpecModal" class="modal-close" color="gray" size="22" type="cancel"></icon>
<view class="spec-goods">
<image class="wh100 spec-img" src="{{data.original_img}}" binderror="pop_err_img" data-errorimg="data.original_img"></image>
<view class="spec-goods-info">
<!--<view class="spec-goods-name">{{data.goods_name}}</view>-->
<view class="spec-goods-price" wx:if="{{is_normal==1}}">¥ {{sele_g.shop_price}}</view>
<view class="spec-goods-price" wx:else>¥ {{prom_price}}</view>
<block wx:if="{{is_normal==0}}">
<view class="spec-goods-stock">已售:{{prom_act.buy_num}}</view>
<view class="spec-goods-stock">可售:{{prom_act.goods_num-prom_act.buy_num}}</view>
<view class="spec-goods-stock">已选:{{sku_g[0].gg}}</view>
</block>
<block wx:else>
<view class="spec-goods-stock">已售:{{sele_g.sales_sum}}</view>
<view class="spec-goods-stock">可售:{{sele_g.store_count}}</view>
<view class="spec-goods-stock">已选:{{sku_g_pt[0].gg}}</view>
</block>
</view>
</view>
<!----商品的属性项目---->
<view hidden="{{ismend==1}}" class="spec-name">商品属性</view>
<block wx:if="{{is_normal==0}}">
<view hidden="{{ismend==1}}" class="flex">
<view class="spec_bt {{gid==item.goods_id?'act':''}}" bindtap="sele_spec" data-gid='item.goods_id' wx:for="{{sku_g}}" wx:key="sku_g">{{item.gg}}
</view>
</view>
</block>
<block wx:else>
<view hidden="{{ismend==1}}" class="flex">
<view class="spec_bt {{gid==item.goods_id?'act':''}}" bindtap="sele_spec" data-gid='item.goods_id' wx:for="{{sku_g}}" wx:key="sku_g">{{item.gg}}
</view>
</view>
</block>
<view class="clear"></view>
<view>
<view bindtap="getmendian" class="quhuo logistics-item" hidden="{{ismend==1}}">
<view wx:if="{{sto_sele_name==''}}">取货门店
<text class='small'>(选择门店)</text>
</view>
<view wx:else>{{sto_sele_name}}</view>
<view class="item-img">
<image class="wh100" src="{{iurl}}/miniapp/images/icon-arrowdown.png"></image>
</view>
</view>
<view class="b_num" hidden="{{ismend==1}}">
<view>购买数量</view>
<view class="count">
<view bindtap="subCartNum" class="sub">-</view>
<input bindblur="inputCartNum" type="number" value="{{goodsInputNum}}"></input>
<view bindtap="addCartNum" class="add">+</view>
</view>
</view>
<view class="clear"></view>
<!---当选取门店的时候会显示门店的选项---->
<view hidden="{{ismend==0}}" class="sto_v">
<view class="title" hidden="{{is_sec_mend==1}}" bindtap="hidemend">
<image class="tubiao" src="{{iurl}}/miniapp/images/icon-left.png"></image>选择门店
</view>
<!-----第一级显示------>
<view class="itemlists" hidden="{{is_sec_mend==1}}">
<block wx:if="{{is_show_sto_cat}}">
<view wx:for="{{all_sto}}" wx:key="all_sto" class="item" bindtap="show_sec" data-index="{{index}}">{{item.name}}</view>
</block>
<block wx:else>
<view wx:for="{{only_pk}}" wx:key="only_pk" class="item" bindtap="hidemend" data-p_id="{{item.pickup_id}}" data-p_name="{{item.pickup_name}}" data-p_dis="{{item.distr_type}}">{{item.pickup_name}}
</view>
</block>
</view>
<!-----第二级显示------>
<view class="stitle" hidden="{{is_sec_mend==0}}" bindtap="hide_sec_mend">
<image class="tubiao" src="{{iurl}}/miniapp/images/icon-left.png"></image>{{sec_sto.name}}</view>
<view class="itemlists" hidden="{{is_sec_mend==0}}">
<view wx:for="{{sec_sto.s_arr}}" wx:key="{{index}}" class="item" bindtap="hidemend" data-p_id="{{item.pickup_id}}" data-p_name="{{item.pickup_name}}" data-p_dis="{{item.distr_type}}">{{item.pickup_name}}
</view>
</view>
</view>
</view>
</view>
<view class="pt_qd">
<view bindtap="addCart_pt" class="spec-cart-btn spec-buy w100" data-action="buy">确定</view>
</view>
</view>
</view>
<view hidden="{{!openPromModal}}">
<view bindtap="closePromModal" class="cover-layer"></view>
<view class="prom-model">
<icon bindtap="closePromModal" class="modal-close" color="gray" size="22" type="cancel"></icon>
<view class="prom-title">优惠信息</view>
<view class="logistics-item" wx:for="{{select.activity.data}}" wx:key="{{index}}">
<view class="item-title">
<text class="prom-item">{{item.title}}</text>
</view>
<view class="item-mes ellipsis-1">{{item.content}}</view>
</view>
</view>
</view>
<!----弹起的---->
<block wx:if="{{pd_xx==1}}">
<view class="bview"></view>
<view class="juzhong">
<view class="xq">
<view class="title" bindtap="close_pt_xx">拼团玩法介绍
<image src="{{iurl}}/miniapp/images/gbi.png" class="close"></image>
</view>
<view>1.开团:
<text class="hs1">选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;</text>
</view>
<view>2.参团:
<text class="hs1">进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;</text>
</view>
<view>3.成团:
<text class="hs1">在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;</text>
</view>
<view>4.组团失败:
<text class="hs1">在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;</text>
</view>
<view>5.
<text class="hs1">组团有效期间内,拼购商品订单不允许取消。 </text>
</view>
</view>
</view>
</block>
<!----弹起领券---->
<view wx:if='{{coupon==1}}'>
<view class="cover-layer flex-center" data-coupon='0' bindtap="switchCoupon"></view>
<view class="cx-popup {{coupon== true ? 'up' : 'down'}} ">
<view class="top-frame">
<view class="top two-level-word t-c">
优惠券领取
</view>
</view>
<view class="top-frame">
<view class="xc-valid-coupon four-level-word">可以领优惠券</view>
</view>
<view class="xc-frame">
<view class="top-frame">
<view class="xc-coupon-frame ">
<!---单张的券--->
<view class="rel" wx:for="{{quan_list}}" wx:key="{{index}}">
<view class="coupon flex">
<view class="circle xc-circular-one"></view>
<view class="xc-coupon-left ">
<view class="flex xc-money-frame">
<view class=" xc-money two-level-word xc-rmb">¥</view>
<view class="one-level-word xc-money">{{item.money}}</view>
</view>
<view class="xc-money four-level-word xc-spacing">
满{{item.condition}}元可用
</view>
</view>
<view class="xc-coupon-right flex">
<view class="xc-detail-coupon">
<view class="four-level-word">订单金额满{{item.condition}}元可用</view>
<view class="four-level-word xc-below">{{item.start}}-{{item.end}}</view>
</view>
<view class="flex-vertical">
<view class="three-level-word xc-get background {{item.everyone_num>0 && item.lqnum>=item.everyone_num?'nouse':''}}"
data-ind="{{index}}" data-cid="{{item.id}}" bindtap="get_quan">{{ item.linging==1?'领取中':'领取'}}</view>
</view>
</view>
<view class="circle xc-circular-two"></view>
</view>
</view>
</view>
</view>
</view>
<view class="cx-confirm flex-center" data-coupon='0' bindtap="switchCoupon">
<view class="confirm t-c">确定</view>
</view>
</view>
</view>
<!-- ---------------分享弹窗--------------- -->
<!--二维码显示页面-->
<canvas canvas-id='share' style='width:750rpx;height:1217rpx;' wx:if='{{!canvasHidden}}'></canvas>
<warn id="warn"></warn>