quanwei
2025-11-05 0368a9e52986b67493f10b7e21e8b6536a25fa6a
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
<template>
    <view :data-theme='theme()' :class="theme() || ''">
        <view class="top_head pr" :style="'background-color: '+bgcolor+';'">
            <!-- #ifndef MP-WEIXIN-->
            <view class="state_top"></view>
            <!-- #endif -->
            <view class="head_top" :style="'height:'+topBarTop()+'px;'"></view>
            <view class="d-b-c" :class="index_open_city==1?'open_city':''" :style="topBarHeight() == 0 ? '': 'height:'+topBarHeight()+'px;'">
                <view v-if="index_open_city==1" class="index_log index_dingw" @click="gotoPage('/pages2/city/index')">
                    <text class="icon iconfont icon-dizhi"></text>
                    <text class="dizhi">{{index_cityname.substr(0,3) || '未定位'}}</text>
                    <text class="icon iconfont icon-jiantou"></text>
                </view>
                <view v-else class="index_log">
                    <image :src="toplogo || ''" mode=""></image>
                </view>
                <!-- #ifndef MP-WEIXIN -->
                <view class="d-s-c flex-1">
                    <view class="top_search special" :style="'height:'+topBarHeight()+' px;color:'+bgcolor+';'"
                        @click="showSearch=true">
                        <text class="icon iconfont icon-sousuo" :style="'color:'+bgcolor+';'"></text>搜索商品
                    </view>
                    <view class="top_search_right" @click="scanQrcode"><text
                            class="icon iconfont icon-saoyisao1"></text></view>
                </view>
                <view class="d-e-c p-0-20">
                    <view class="news pr" @click="gotoPage('/pages/plus/chat/chat_list')">
                        <image class="chat" src="../../static/icon/chat.png" mode=""></image>
                        <view class="newsnum" v-if="msgNum">{{msgNum}}</view>
                    </view>
                </view> 
                <!-- #endif -->
                <!-- #ifdef MP-WEIXIN -->
                <view class="d-s-c flex-1">
                    <view class="top_search search-wx" :style="'height:'+topBarHeight()+' px;color:'+bgcolor+';'"
                        @click="showSearch=true">
                        <text class="icon iconfont icon-sousuo" :style="'color:'+bgcolor+';'"></text>搜索商品
                    </view>
                    <view class="top_search_right" @click="scanQrcode"><text
                            class="icon iconfont icon-saoyisao1"></text></view>
                </view>
                <!-- #endif -->
            </view>
            <view class="nuter" v-if="openCategory.open">
                <navBar style="width: 100%;" :color='openCategory.color' @currentIndex="setIndex" :currentI="thisindex"
                    :navList="category_list">
                </navBar>
            </view>
            <view style="height: 20rpx;" v-else></view>
        </view>
        <view class="top_bg" :style="'background-color: '+bgcolor+';'">
        </view>
        <view>
            <view v-if='thisindex==0'>
                <diy style="position: relative;" :diyItems="items" :city_supplier_ids="city_supplier_ids" :index_open_city="index_open_city"></diy>
            </view>
            <view v-if='thisindex!=0'>
                <view class="product-list">
                    <view v-if="index_open_city==0 || (index_open_city==1 && isInArray2(city_supplier_ids,pitem.shop_supplier_id))" v-for="(pitem,pindex) in product_list" :key='pindex' class="product_item o-h"
                        :class="pindex%2==1?'product_item_right':''"
                        @click="gotoPage('/pages/product/detail/detail?product_id='+pitem.product_id)">
                        <view>
                            <image :src="pitem.product_image" mode="" style="width: 345rpx;height: 345rpx;"></image>
                        </view>
                        <view class="text-ellipsis-2 f26 pro_name  p-0-20 mt20">{{pitem.product_name}}</view>
                        <view class="mt36 mb20 p-0-20">
                            <text class="f20 fb redF6">¥</text>
                            <text class="f32 fb redF6">{{pitem.product_sku.product_price}}</text>
                            <text v-if="underline_price_show == 0" class="text-d-line f20 gray9 ml10">¥</text>
                            <text v-if="underline_price_show == 0" class="text-d-line f24 gray9">{{pitem.product_sku.line_price}}</text>
                        </view>
                    </view>
                </view>
                <!-- 没有记录 -->
                <view class="d-c-c p30 ww100" v-if="product_list.length == 0 && !loading">
                    <text class="iconfont icon-wushuju"></text>
                    <text class="cont">亲,暂无相关记录哦</text>
                </view>
                <uni-load-more v-else :loadingType="loadingType"></uni-load-more>
            </view>
        </view>
        <!-- </scroll-view> -->
 
        <!--点击收藏-->
        <view class="collection-box" v-if="is_collection" :style="'top:'+(topBarTop()  + topBarHeight() + 10)+'px;'">
            <view class="inner">
                <text>
                    点击“</text>
                <text class="point">.</text>
                <text class="point point-big">.</text>
                <text class="point">.</text>
                <text>”添加到我的小程序,\n微信首页下拉即可快速访问店铺
                </text>
            </view>
            <button type="primary" class="close-btn" @click="is_collection=false">x</button>
        </view>
 
        <!--关注公众号-->
        <!-- #ifdef MP-WEIXIN -->
        <view class="follow-gzh" v-if="is_follow=='1'">
            <text class="icon iconfont icon-guanbi" @click="is_follow=0"></text>
            <official-account></official-account>
        </view>
        <!-- #endif -->
 
        <!--首页推送-->
        <Homepush v-if="is_homepush" :homepush_data="homepush_data"></Homepush>
        <searchProduct :isShow='showSearch' @close="closeSearch"></searchProduct>
        <tabBar></tabBar>
    </view>
</template>
 
<script>
    import diy from '@/components/diy/diy.vue';
    import Homepush from './home-push/home-push.vue';
    import navBar from '@/components/navBar/navBar.vue'
    import uniLoadMore from '@/components/uni-load-more.vue';
    import searchProduct from '@/components/searchProduct.vue';
 
    import config from '@/config.js';
    export default {
        components: {
            diy,
            Homepush,
            navBar,
            uniLoadMore,
            searchProduct
        },
        data() {
            return {
                /*是否正在加载*/
                loading: false,
                background: '',
                listData: [],
                indicatorDots: true,
                autoplay: true,
                interval: 2000,
                duration: 500,
                items: [],
                /*收藏引导*/
                is_collection: false,
                /*关注*/
                is_follow: '0',
                /*是否首页推送*/
                is_homepush: false,
                /*首页推送数据*/
                homepush_data: {},
                triggered: true,
                target: 0,
                thisindex: 0,
                category_list: [],
                product_list: [],
                page: 1,
                last_page: 0,
                no_more: false,
                indexStop: 0,
                title_name: '',
                bgcolor: '',
                msgNum: 0,
                title_image: false,
                toplogo: '',
                url: '',
                jweixin: null,
                showSearch: false,
                openCategory: {
                    color: "#000000",
                    open: 0
                },
                index_open_city:0,
                longitude:'',
                latitude:'',
                city_supplier_ids:[],
                index_cityname:'',
                underline_price_show:0,
            };
        },
        watch: {
            'thisindex': function(n, o) {
                if (n != o) {
                    this.category_id = this.category_list[n].category_id;
                    this.toggleInit();
                    if (n != 0) {
                        this.getProduct()
                    }
                }
            }
        },
        computed: {
            /*加载中状态*/
            loadingType() {
                if (this.loading) {
                    return 1;
                } else {
                    if (this.product_list.length != 0 && this.no_more) {
                        return 2;
                    } else {
                        return 0;
                    }
                }
            }
        },
        onTabItemTap() {
            //#ifdef H5
            if (process.env.NODE_ENV === 'production') {
                window.location.href = config.app_url + config.h5_addr + '/pages/index/index';
            }
            //#endif
        },
        onShow() {
            this.getTabBarLinks();
        },
        onLoad() {
            //#ifdef H5
            if (this.isWeixin()) {
                this.url = window.location.href;
            }
            //#endif
            this._freshing = false;
            /*获取订单列表*/
            this.getData();
            this.getList();
        },
        onPullDownRefresh() {
            if (this.thisindex == 0) {
                this.getData();
            } else {
                this.toggleInit();
                this.getProduct();
            }
        },
        onReachBottom() {
            this.scrolltolowerFunc();
            console.log('到底了')
        },
        methods: {
            isInArray2(arr,value){
                value=parseInt(value);
                var index = arr.indexOf(value);
                //console.log(index);
                //console.log(7);
                if(index >= 0){
                    return true;
                }
                return false;
            },
            getAddress(){
                var self = this;
                var timestamp = Date.parse(new Date());
                var expiration = timestamp + 3600000; //缓存1小时
                var city_expiration = wx.getStorageSync("city_expiration");
                if (city_expiration && timestamp > city_expiration) {
                    uni.setStorageSync('citySupplierRes', '');
                }
                if(uni.getStorageSync('citySupplierRes')){
                    let resData=uni.getStorageSync('citySupplierRes');
                    self.city_supplier_ids=resData.supplier_ids;
                    self.index_cityname=resData.city;
                    //得到供应商ID重新获取首页数据
                    self.getPageData();
                    return;
                }
                uni.getLocation({
                    type: 'wgs84',
                    success: function (res) {
                        console.log('当前位置的经度:' + res.longitude);
                        console.log('当前位置的纬度:' + res.latitude);
                        self.longitude=res.longitude;
                        self.latitude=res.latitude;
                        self._get('index/getCitySupplier', {
                            longitude:self.longitude,
                            latitude:self.latitude
                        }, function(res) {
                            self.city_supplier_ids=res.data.supplier_ids;
                            self.index_cityname=res.data.city;
                            // 记录当前站点信息
                            uni.setStorageSync('citySupplierRes', res.data);
                            // 记录定位的站点信息 by lyzflash
                            // uni.setStorageSync('locationCityObj', res.data);
                            // 记录定位的时间 by lyzflash
                            uni.setStorageSync('city_expiration', expiration);
                            //重新加载一次商品 by yj
                            self.getProduct();
                            //得到供应商ID重新获取首页数据
                            self.getPageData();
                        })
                    },fail:function(res){
                        uni.showModal({
                            title: '提示',
                            content: '授权定位失败,是否手动选择站点?',
                            success: function(o) {
                                if (o.confirm) {
                                    self.gotoPage('/pages2/city/index')
                                }
                            },
                        })
                    }
                });
            },
            /*获取首页分类*/
            getData() {
                let self = this;
                uni.showLoading({
                    title: '加载中'
                });
                self._get('index/index', {
                    url: self.url,
                    longitude:self.longitude,
                    latitude:self.latitude,
                }, function(res) {
                    self.listData = res.data.list;
                    self.background = res.data.background;
                    self.items = res.data.items;
                    self.title_name = res.data.page.params.title;
                    self.bgcolor = res.data.page.style.titleBackgroundColor;
                    self.msgNum = res.data.msgNum;
                    self.toplogo = res.data.page.style.toplogo;
                    self.setPage(res.data.page);
                    self.title_type = res.data.page.params.title_type;
                    self.titleTextColor = res.data.page.style.titleTextColor;
                    self.openCategory = res.data.page.category;
                    self.index_open_city=res.data.setting.store.index_open_city;
                    self.underline_price_show=res.data.setting.store.underline_price_show;
                    if(res.data.setting.store.index_open_city==1){
                        self.getAddress();
                    }
                    //弹出收藏
                    // #ifdef  MP-WEIXIN
                    let isFirst = uni.getStorageSync('isFirst');
                    if (isFirst == '' && res.data.setting.collection.status == '1') {
                        self.is_collection = true;
                        uni.setStorageSync('isFirst', 1);
                    }
                    self.is_follow = res.data.setting.officia.status;
                    // #endif
                    // 首页推送
                    let homepush_name = uni.getStorageSync('homepush_name');
                    if (res.data.setting.homepush.is_open && homepush_name != res.data.setting.homepush.name) {
                        self.homepush_data = res.data.setting.homepush;
                        self.is_homepush = true;
                        self.is_homepush = true;
                    }
                    // 配置微信扫一扫参数
                    //#ifdef H5
                    if (self.url != '') {
                        self.jweixin = self.configWxScan(res.data.signPackage);
                    }
                    //#endif
                    uni.hideLoading();
                    self.loadding = false;
                    uni.stopPullDownRefresh();
                });
            },
            /*单独获取单页面的数据*/
            getPageData() {
                let self = this;
                var city_supplier_ids = '';
                if(self.city_supplier_ids){
                    city_supplier_ids = self.city_supplier_ids.join(",")
                }
                uni.showLoading({
                    title: '加载中'
                });
                self._get('index/getPageData', {
                    city_supplier_ids: city_supplier_ids,
                }, function(res) {
                    self.items = res.data.items;
                    uni.hideLoading();
                    self.loadding = false;
                    uni.stopPullDownRefresh();
                });
            },
            /*获取数据*/
            getList() {
                let self = this;
                self._get('product.category/index', {}, function(res) {
                    self.category_list = res.data.list;
                    let fistIndex = {
                        name: '推荐',
                        category_id: '0'
                    }
                    self.category_list.unshift(fistIndex)
                });
            },
            /*获取数据*/
            getProduct() {
                let self = this;
                let page = self.page;
                var city_supplier_ids = '';
                if(self.city_supplier_ids){
                    city_supplier_ids = self.city_supplier_ids.join(",")
                }
                self.loading = true;
                self._get('product.product/lists', {
                    page: page || 1,
                    category_id: self.category_id,
                    search: '',
                    sortType: 'all',
                    sortPrice: 0,
                    list_rows: 10,
                    city_supplier_ids:city_supplier_ids,
                    longitude:self.longitude,
                    latitude:self.latitude
                }, function(res) {
                    self.loading = false;
                    uni.stopPullDownRefresh();
                    self.product_list = self.product_list.concat(res.data.list.data);
                    self.last_page = res.data.list.last_page;
                    if (res.data.list.last_page <= 1) {
                        self.no_more = true;
                    }
                });
            },
            /*可滚动视图区域到底触发*/
            scrolltolowerFunc() {
                let self = this;
                if (self.page < self.last_page) {
                    self.page++;
                    self.getProduct();
                }
                self.no_more = true;
            },
            /*设置页面*/
            setPage(page) {
 
                uni.setNavigationBarTitle({
                    title: page.params.name
                });
 
                let colors = '#000000';
                if (page.style.titleTextColor == 'white') {
                    //字母要小写
                    colors = '#ffffff'
                }
                uni.setNavigationBarColor({
                    frontColor: colors,
                    backgroundColor: page.style.titleBackgroundColor
                })
                uni.setStorageSync('page',page);
            },
 
            /*分享当前页面*/
            onShareAppMessage() {
                let self = this;
                return {
                    title: self.page.params.share_title,
                    path: '/pages/index/index?' + self.getShareUrlParams(),
                };
            },
            /*分享到朋友圈*/
            onShareTimeline() {
              let self = this;
              return {
                title: self.page.params.share_title,
              }
            },
            setTabBarItem(n) {
                if (n == 2) {
                    console.log('订单')
                    uni.setTabBarItem({
                        index: 2,
                        pagePath: '/pages/order/myorder',
                        text: '订单',
                        iconPath: 'static/order.png',
                        selectedIconPath: 'static/order_active.png',
                    })
                }
 
            },
            toggleInit() {
                this.page = 1;
                this.last_page = 0;
                this.no_more = false;
                this.product_list = [];
            },
            //点击nav控制下面的展示
            setIndex(e) {
                this.thisindex = e
            },
            /* 禁止手动滑动 */
            stopTouchMove() {
                return true
            },
            /*扫一扫核销*/
            scanQrcode: function() {
                let self = this;
                //#ifdef H5
                // 只允许通过相机扫码
                self.jweixin.scanQRCode({
                    needResult: 1,
                    scanType: ["qrCode", "barCode"],
                    success: function(res) {
                        self.gotoPage('/pages/store/scancode?params=' + res.resultStr);
                    },
                    error: function(res) {
                        uni.showToast({
                            title: '扫码失败,请重试'
                        })
                    }
                });
                //#endif
                //#ifndef H5
                // 只允许通过相机扫码
                uni.scanCode({
                    onlyFromCamera: true,
                    success: function(res) {
                        if (res.errMsg == 'scanCode:ok') {
                            self.gotoPage('/pages/store/scancode?params=' + res.result);
                        } else {
                            uni.showToast({
                                title: '扫码失败,请重试'
                            })
                        }
                    }
                });
                //#endif
            },
            /* 关闭搜索 */
            closeSearch() {
                this.showSearch = false;
            }
        }
    };
</script>
 
<style>
    .bg-f2 {
        background-color: #F2F2F2;
    }
 
    .top_head {
        line-height: 30px;
        z-index: 1;
        padding-left: 26rpx;
        position: sticky;
        top: 0;
        left: 0;
        z-index: 100;
    }
 
    .head_top {
        width: 100%;
        height: var(--status-bar-height);
    }
 
    .index_log {
        /* width: 154rpx; */
        min-height: 46rpx;
        line-height: 46rpx;
        font-size: 26rpx;
        font-weight: 800;
        color: #FFFFFF;
    }
 
    .index_log image {
        width: 60rpx;
        height: 60rpx;
    }
 
    .top_search {
        /* width: 380rpx; */
        height: 60rpx;
        line-height: 60rpx;
        background: #FFFFFF;
        border-radius: 30rpx 0 0 30rpx;
        font-size: 30rpx;
        margin-left: 10rpx;
        color: #EE1413;
        font-weight: 800;
 
    }
 
    .top_search.search-wx {
        width: 385rpx;
    }
    .top_search.special {
        width: 100%;
    }
 
    .top_search_right {
        background: #FFFFFF;
        border-radius: 0 30rpx 30rpx 0;
        height: 60rpx;
        position: relative;
        /* padding: 0 20rpx; */
        /* border-left: 1rpx solid #D9D9D9; */
    }
 
    .top_search_right::before {
        content: ' ';
        width: 1rpx;
        height: 20rpx;
        background-color: #D9D9D9;
        left: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        position: absolute;
    }
 
    .top_search_right .icon-saoyisao1 {
        padding: 0 20rpx;
        /* border-left: 1rpx solid #D9D9D9; */
    }
 
    .top_search .icon-sousuo {
        font-size: 30rpx;
        color: #EE1413;
        margin-left: 20rpx;
        margin-right: 10rpx;
    }
 
    .top_bg {
        position: absolute;
        top: 0;
        z-index: 0;
        width: 750rpx;
        height: 350rpx;
    }
 
    .top_bg image {
        width: 750rpx;
        height: 350rpx;
    }
 
    .nuter {
        width: 100%;
        height: 80rpx;
        line-height: 80rpx;
        display: flex;
        justify-content: space-around;
        font-size: 35rpx;
        padding-bottom: 10rpx;
    }
 
    .nuter view {
        flex: 1;
        font-size: 30rpx;
        text-align: center;
        transition: all 0.5s ease .1s;
    }
 
    swiper {
        height: 80vh;
        width: 100%;
        overflow: hidden;
    }
 
    .swiper-item {
        overflow-y: scroll;
        width: 100%;
        height: 99%;
        box-sizing: border-box;
    }
 
    .banner {
        height: 240upx;
        width: 710upx;
    }
 
    .banner image {
        width: 710rpx;
        height: 240rpx;
    }
 
    .new-people .group-bd {
        display: flex;
        justify-content: space-between;
    }
 
    .new-people .list {
        padding-right: 30rpx;
    }
 
    .new-people .list .item {
        width: 180rpx;
        text-align: center;
    }
 
    .new-people .list .price {
        font-size: 24rpx;
    }
 
    .new-people .list .price .num {
        font-size: 34rpx;
        font-weight: bold;
    }
 
    .new-people .list button {
        font-size: 24rpx;
        background: #6170ff;
    }
 
    .new-people .list image {
        width: 180rpx;
        height: 180rpx;
        border: 1px dashed #cccccc;
    }
 
    .new-people .other {
        width: 230rpx;
    }
 
    .new-people .other image {
        width: 100%;
    }
 
    .group-seckill .left .iconfont {
        margin-right: 8rpx;
        color: rgb(226, 35, 26);
        font-size: 40rpx;
    }
 
    .group-seckill .list .item {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 150rpx;
        height: 230rpx;
        border: 1px dashed #cccccc;
    }
 
    .group-seckill .list text {
        line-height: 60rpx;
        color: #e2231a;
    }
 
    .group-seckill .list image {
        width: 150rpx;
        height: 150rpx;
    }
 
    .group-hd .datetime .time {
        padding: 4rpx;
        background: #e2231a;
        color: #ffffff;
        border-radius: 4rpx;
    }
 
    .group-hd .datetime .point {
        padding: 0 10rpx;
        color: #e2231a;
    }
 
    .collection-box {
        position: fixed;
        width: 380rpx;
        padding: 20rpx;
        top: 20rpx;
        right: 20rpx;
        line-height: 40rpx;
        font-size: 24rpx;
        border-radius: 16rpx;
        background: #ffffff;
        border: 1px solid #eeeeee;
        box-shadow: 0 0 6rpx 0 rgba(0, 0, 0, .08);
        z-index: 100;
    }
 
    .collection-box::after {
        position: absolute;
        content: '';
        display: block;
        right: 140rpx;
        top: -15rpx;
        transform: rotate(45deg);
        width: 30rpx;
        height: 30rpx;
        transform: rotate;
        background: #FFFFFF;
        border-left: 1px solid #eeeeee;
        border-top: 1px solid #eeeeee;
    }
 
    .collection-box .point {
        width: 20rpx;
        height: 20rpx;
        font-size: 60rpx;
        line-height: 0;
        color: #666666;
    }
 
    .collection-box .point-big {
        font-size: 80rpx;
    }
 
    .collection-box .close-btn {
        position: absolute;
        padding: 0;
        right: 10rpx;
        top: 10rpx;
        width: 40rpx;
        height: 40rpx;
        line-height: 30rpx;
        background: #FFFFFF;
        color: #999999;
        border-radius: 50%;
    }
 
    .follow-gzh {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--window-bottom));
        border-radius: 16rpx;
        box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, .1);
        background: #FFFFFF;
        z-index: 10;
    }
 
    .follow-gzh .iconfont {
        display: block;
        position: absolute;
        right: 10rpx;
        top: 10rpx;
        z-index: 99;
    }
 
    .product-list {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
        z-index: 1;
    }
 
    .product_item {
        width: 345rpx;
        margin: 20rpx;
        border-radius: 12rpx;
        background-color: #ffffff;
    }
 
    .product_item.product_item_right {
        margin-left: 0;
    }
 
    .product_item .pro_name {
        height: 68rpx;
        line-height: 34rpx;
    }
 
    .chat {
        width: 40rpx;
        height: 40rpx;
    }
 
    .newsnum {
        position: absolute;
        top: -8rpx;
        right: -16rpx;
        z-index: 100;
        border-radius: 50%;
        width: 25rpx;
        height: 25rpx;
        text-align: center;
        line-height: 25rpx;
        color: #FFFFFF;
        background-color: #ff6633;
        padding: 5rpx;
        font-size: 20rpx;
    }
    /* newcss */
    .index_dingw{
        font-size: 24rpx;
        background-color: rgb(0 0 0 / 50%);
        border-radius: 500rpx;
        padding:5rpx 10rpx;
    }
    .index_dingw .icon{
        font-size: 24rpx;
        color: #fff;
    }
    .index_dingw .dizhi{
        margin-left:5rpx;
        margin-right:5rpx;
    }
    .open_city .top_search.search-wx {
        width: calc( 385rpx - 90rpx );
    }
    .open_city .top_search.special {
        width: calc( 100% - 90rpx );
    }
</style>