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
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
992
993
994
995
<template>
    <view class="index" :data-theme='theme()' :class="theme() || ''"
        :style="'background-color: '+activityData.background_color">
        <view v-if="activityData.name" class="personal-data">
            <view class='list'>
                <!--活动背景图-->
                <view class="activity-pic">
                    <image :src="activityData.image_id?activityData.image.file_path:remoteImg('activity_bg')"
                        class="image" mode="widthFix"></image>
                </view>
                <view class="wrapper bg-white radius24">
                    <view class="text-info">
                        <view class="d-b-c activity-name">
                            <view class="title text-ellipsis-2">{{activityData.name}}</view>
                            <view class="share" @click="showShare">
                                <text class="iconfont icon-share1"></text>
                                分享
                            </view>
                        </view>
                        <view class="activity-item">
                            <view class="gray6 f24">报名截止时间</view>
                            <view class="info">{{activityData.status_text.reg_end_time}}</view>
                        </view>
                        <view class="activity-item">
                            <view class="gray6 f24">活动时间</view>
                            <view class="info">{{activityData.activity_time_text}}</view>
                        </view>
                        <view class="activity-item d-b-c">
                            <view class="flex-1">
                                <view class="gray6 f24">活动名额</view>
                                <view class="info">{{activityData.limit_num == 0 ? '不限' : activityData.limit_num+'人'}}
                                </view>
                            </view>
 
                            <view class="flex-1">
                                <view class="activity-item" v-if="activityData.fee > 0">
                                    <view class="gray6 f24">活动费用</view>
                                    <view class="info">¥{{activityData.fee}}/人</view>
                                </view>
                            </view>
                        </view>
                        <view class="activity-item" v-if="activityData.is_visit == 1">
                            <view class="gray6 f24">走访企业</view>
                            <view class="info">{{activityData.visitSupplier?activityData.visitSupplier.name:''}}</view>
                        </view>
                        <view class="activity-item"
                            v-if="activityData.is_visit == 0 && activityData.space_supplier_id > 0">
                            <view class="gray6 f24">提供场地企业</view>
                            <view class="info">{{activityData.spaceSupplier?activityData.spaceSupplier.name:''}}</view>
                        </view>
                        <view class="activity-item">
                            <view class="gray6 f24">活动发起分会</view>
                            <view class="info">{{activityData.branch.name}}</view>
                        </view>
                        <view class="activity-item d-b-c" v-if="activityData.fee > 0">
                            <view>
                                <view class="gray6 f24">已报名人数</view>
                                <view class="info">{{activityData.total}}</view>
                            </view>
                            <view class="avatar-list d-s-c">
                                <image :src="item.avatarUrl" mode="aspectFill" v-for="(item, index) in userList"
                                    :key="index"></image>
                                <view class="more" v-if="activityData.total > 8"></view>
                            </view>
                        </view>
                        <!-- 活动结束图标 -->
                        <view class="status-image" v-if="activityData.is_finish">
                            <image :src="remoteImg('finish')"></image>
                        </view>
                        <!-- 活动进行中图标 -->
                        <view class="status-image" v-else-if="activityData.status_text.status==1">
                            <image :src="remoteImg('in_progress')"></image>
                        </view>
                        <!-- 已签到状态显示 -->
                        <view class="status-verify" v-if="activityData.is_verify">
                            <text class="iconfont icon-dianzan"></text>您已签到
                        </view>
                    </view>
                </view>
                <!-- 活动介绍 -->
                <view class="wrapper bg-white radius24" v-if="activityData.content || activityData.describe">
                    <view class="info-title-box tc pt30 fb f30">
                        <view class="info-title">活动介绍</view>
                    </view>
                    <view class="activity-desc p30" v-html="activityData.content||activityData.describe"></view>
                    <!-- <view class="activity-desc p30" v-else>{{ activityData.describe }}</view> -->
                </view>
            </view>
            <view class="detail-footer">
                <!-- 如果已经报名 -->
                <block v-if="activityData.is_reg">
                    <!-- 如果已经核销 -->
                    <view class="d-c-c finish-btn" v-if="activityData.is_verify">
                        <button class='modifyBnt' @click="onAlbum">活动相册</button>
                        <!-- 如果有走访企业,跳转企业店铺 -->
                        <button class='modifyBnt' @click="gotoSupplier" v-if="activityData.is_visit">超值购</button>
                        <button class='modifyBnt' @click="showShare" v-else>分享给好友</button>
                    </view>
                    <button v-else-if="activityData.status_text.status==1" class='modifyBnt'
                        @click="onVerify">马上签到</button>
                    <button v-else-if="activityData.status_text.status==2" class='modifyBnt disabled'>您缺席了这场活动</button>
                    <button v-else class='modifyBnt disabled'>活动未开始</button>
                </block>
                <block v-else>
                    <button v-if="activityData.status_text.reg_status==0" class='modifyBnt disabled'>报名未开始</button>
                    <block v-else-if="activityData.status_text.reg_status==1">
                        <button v-if="activityData.limit_num==activityData.total && activityData.limit_num!=0"
                            class='modifyBnt disabled'>已报满</button>
                        <button v-else class='modifyBnt' @click="onReg">提交报名</button>
                    </block>
                    <button v-else class='modifyBnt disabled'>报名已结束</button>
                </block>
 
 
            </view>
        </view>
        <!--报名成功弹窗-->
        <view class="success-box" v-if="isShowbox">
            <view class="bg" @click="isShowbox=false"></view>
            <view class="con bg-white radius24">
                <image :src="remoteImg('sign_success')" mode=""></image>
                <view class="title">报名成功</view>
                <view class="text">感谢参与,您已完成报名!</view>
                <view class="foot">
                    <navigator url="/pages/user/my_activity/index" hover-class='none' class="btn">查看我的报名</navigator>
                    <view class="btn" @click="showShare">分享报名</view>
                </view>
            </view>
        </view>
        <!--签到成功弹窗-->
        <view class="success-box" v-if="isVerify">
            <view class="bg" @click="isVerify=false"></view>
            <view class="con bg-white radius24">
                <image :src="remoteImg('sign_success')" mode=""></image>
                <view class="title">签到成功</view>
                <view class="text">感谢参与,祝您收获满满!</view>
                <view class="foot">
                    <view class="btn" @click="isVerify=false">确定</view>
                </view>
            </view>
        </view>
        <!--生成分享图片-->
        <uniPopup :show="isCreatedImg" type="middle" @hidePopup="hidePopupFunc">
            <view class="d-c-c d-c create-img">
                <image :src="poster_img" mode="widthFix"></image>
                <!-- #ifdef MP -->
                <button class="btn-red mt20" type="default" @click="savePosterImg">保存图片</button>
                <!-- #endif  -->
                <!-- #ifdef H5 -->
                <view class="mt20 f34 red" type="default">长按保存图片</view>
                <!-- #endif -->
            </view>
        </uniPopup>
        <!-- 报名弹窗 -->
        <RegForm ref="regForm" :isOpenReg="isOpenReg" :in_radius="in_radius" @close="closeRegFunc"></RegForm>
        <!--分享底部弹窗-->
        <Share :isbottmpanel="isbottmpanel" :activity_id="activity_id" @close="closeBottmpanel"></Share>
        <!--app分享-->
        <AppShare :isAppShare="isAppShare" :appParams="appParams" @close="closeAppShare"></AppShare>
        <!-- 打开活动相册 -->
        <Album ref="album" :isOpenAlbum="isOpenAlbum" :activity_id="activity_id" @close="closeAlbumFunc"></Album>
    </view>
</template>
 
<script>
    import {
        pay
    } from '@/common/pay.js';
    import RegForm from './popup/reg';
    import AppShare from '@/components/app-share.vue';
    import Share from './popup/share.vue';
    import Album from './popup/album.vue'; // 相册
    import uniPopup from '@/components/uni-popup.vue';
    import utils from '@/common/utils.js';
    export default {
        components: {
            RegForm,
            AppShare,
            Share,
            Album,
            uniPopup
        },
        data() {
            return {
                form: {
                    activity_id: '',
                    user_name: '',
                    mobile: '',
                },
                balance: 0,
                activity_id: 0,
                activityData: {},
                userList: [],
                /*是否显示支付宝支付,只有在h5,非微信内打开才显示*/
                showAlipay: false,
                pay_type: "",
                isOpenReg: false,
                isShowbox: false, // 报名成功弹窗
                isOpenAlbum: false, // 相册
                /*分享*/
                isbottmpanel: false,
                /*是否生成图片*/
                isCreatedImg: false,
                poster_img: '',
                /*app分享*/
                isAppShare: false,
                appParams: {
                    title: '',
                    summary: '',
                    path: '',
                    image: ''
                },
                // 用户当前坐标
                latitude: 0,
                longitude: 0,
                isVerify: false, // 签到成功弹窗
                in_radius: false, // 用户是否在活动地点限定范围内
                user_verify: 0, // 核销标识,只有扫核销码进来值才是1
            }
        },
        onLoad(e) {
            /*活动id*/
            let scene = utils.getSceneData(e);
            if (scene && typeof scene === 'object' && Object.keys(scene).length > 0) {
                this.activity_id = scene.activity_id;
                this.user_verify = scene.user_verify;
            } else {
                this.activity_id = e.activity_id;
            }
        },
        onShow() {
            this.getData();
        },
        onUnload() {
            this.stopWatchingLocation();
        },
        methods: {
            /*获取数据*/
            getData() {
                let self = this;
                uni.showLoading({
                    title: '加载中'
                });
                self.loading = true;
                self._get(
                    'branch.activity/detail', {
                        activity_id: self.activity_id
                    },
                    function(res) {
                        self.activityData = res.data.detail;
                        self.userList = res.data.userList;
                        // 当活动设置了签到范围并且是扫核销码进来的
                        if (self.activityData.radius > 0 && self.user_verify) {
                            self.initializeWithLocation();
                        }
                        self.loadding = false;
                        uni.hideLoading();
                    }
                );
            },
            
            // 初始化并等待位置信息
            async initializeWithLocation() {
                try {
 
                    // 等待获取第一个有效位置
                    const location = await this.startWatchingLocation();
 
                    console.log('获得初始位置:', location);
 
                    // 检查用户是否在活动范围
                    this.updateInRadius();
 
                } catch (error) {
                    console.error('初始化失败:', error);
                    uni.showToast({
                        title: '位置获取失败,请重新扫码试试',
                        icon: 'none'
                    });
                }
            },
 
            // 修改后的开始监听位置方法,返回 Promise
            startWatchingLocation() {
                return new Promise(async (resolve, reject) => {
                    try {
                        // 存储 resolve 和 reject 以便在位置回调中使用
                        this.locationResolve = resolve;
                        this.locationReject = reject;
 
                        // 申请定位权限
                        await this.authorizeLocation();
 
                        // 开始位置更新
                        await this.startLocationUpdate();
 
                        // 监听位置变化
                        this.watchLocationChange();
 
                        // 设置超时处理
                        setTimeout(() => {
                            if (this.locationReject) {
                                this.locationReject(new Error('位置获取超时'));
                                this.locationResolve = null;
                                this.locationReject = null;
                            }
                        }, 10000); // 10秒超时
 
                    } catch (error) {
                        reject(error);
                    }
                });
            },
 
            // 授权定位
            authorizeLocation() {
                return new Promise((resolve, reject) => {
                    uni.authorize({
                        scope: 'scope.userLocation',
                        success: resolve,
                        fail: (err) => {
                            uni.showModal({
                                title: '提示',
                                content: '需要您授权位置信息,请前往设置页开启权限',
                                success: (modalRes) => {
                                    if (modalRes.confirm) {
                                        uni.openSetting({
                                            success: (openRes) => {
                                                if (openRes.authSetting[
                                                        'scope.userLocation'
                                                        ]) {
                                                    resolve();
                                                } else {
                                                    reject(new Error(
                                                        '用户未授权位置权限'));
                                                }
                                            }
                                        });
                                    } else {
                                        reject(new Error('用户取消授权'));
                                    }
                                }
                            });
                        }
                    });
                });
            },
 
            // 开启位置更新
            startLocationUpdate() {
                return new Promise((resolve, reject) => {
                    uni.startLocationUpdate({
                        success: resolve,
                        fail: reject
                    });
                });
            },
 
            // 监听位置变化
            watchLocationChange() {
                if (this._locationChangeCallback) {
                    uni.offLocationChange(this._locationChangeCallback);
                }
 
                this._locationChangeCallback = (res) => {
                    console.log('位置变化:', res);
                    this.latitude = res.latitude;
                    this.longitude = res.longitude;
 
                    // 如果是第一次获取位置,解析 Promise
                    if (this.locationResolve) {
                        this.locationResolve({
                            latitude: res.latitude,
                            longitude: res.longitude,
                            accuracy: res.accuracy
                        });
                        this.locationResolve = null;
                        this.locationReject = null;
                    }
 
                    // 位置更新后处理
                    this.updateInRadius();
                };
 
                uni.onLocationChange(this._locationChangeCallback);
            },
 
            // 检查是否在签到范围
            updateInRadius() {
                let self = this;
                // 如果不是扫码进来的或者没有设置活动范围
                if (!self.user_verify || !self.activityData.radius) {
                    return;
                }
                // 计算距离
                const distance = this.calculateDistance(
                    parseFloat(self.latitude), 
                    parseFloat(self.longitude),
                    parseFloat(self.activityData.latitude), 
                    parseFloat(self.activityData.longitude)
                );
                if (distance <= self.activityData.radius) {
                    self.in_radius = true;
                }
            },
 
            // 停止监听位置
            stopWatchingLocation() {
                if (this._locationChangeCallback) {
                    uni.offLocationChange(this._locationChangeCallback);
                    this._locationChangeCallback = null;
                }
 
                // 清理 Promise 相关状态
                if (this.locationReject) {
                    this.locationReject(new Error('位置监听已停止'));
                    this.locationResolve = null;
                    this.locationReject = null;
                }
 
                uni.stopLocationUpdate();
            },
 
            // 获取用户坐标并判断在不在活动范围内(弃用)
            // getUserLocation() {
            //     let self = this;
            //     uni.getLocation({
            //         type: 'gcj02',
            //         success: (res) => {
            //             self.latitude = res.latitude;
            //             self.longitude = res.longitude;
            //             // 计算距离
            //             const distance = this.calculateDistance(
            //                 res.latitude, res.longitude,
            //                 parseFloat(self.activityData.latitude), parseFloat(self.activityData.longitude)
            //             );
            //             if (distance <= self.activityData.radius) {
            //                 self.in_radius = true;
            //             }
            //         },
            //         fail: (err) => {
            //             console.error('获取位置失败:', err);
            //             uni.showToast({
            //                 title: '获取位置失败' + err,
            //                 icon: 'none'
            //             });
            //         }
            //     });
            // },
 
            onReg() {
                this.$refs.regForm.activityData = this.activityData;
                if (this.activityData.fee > 0) {
                    this.isOpenReg = true;
                } else {
                    this.$refs.regForm.onSubmit();
                }
            },
 
            closeRegFunc(e) {
                this.isOpenReg = false;
                if (e !== null) {
                    if (e == 1) {
                        this.isShowbox = true;
                        this.getData();
                    } else {
                        uni.showToast({
                            title: '报名失败',
                            duration: 1000,
                            icon: 'none'
                        });
                    }
                }
            },
 
            // 签到
            onVerify() {
                let self = this;
                if (!self.in_radius && self.activityData.radius > 0) {
                    uni.showModal({
                        title: '签到失败',
                        content: `您距离活动地点太远,无法签到`,
                        showCancel: false
                    });
                    return false;
                } else {
                    self.doVierfy();
                }
            },
 
            // 执行签到
            doVierfy() {
                let self = this;
                uni.showLoading({
                    title: '正在签到...'
                });
                self._post(
                    'branch.activityUser/verify', {
                        activity_id: self.activity_id
                    },
                    function(res) {
                        uni.hideLoading();
                        self.isVerify = true;
                        self.getData();
                    }
                );
            },
 
            // 计算坐标距离
            calculateDistance(lat1, lng1, lat2, lng2) {
                const R = 6371000; // 地球半径(米)
                const toRadians = (degree) => degree * (Math.PI / 180);
 
                const φ1 = toRadians(lat1);
                const φ2 = toRadians(lat2);
                const Δφ = toRadians(lat2 - lat1);
                const Δλ = toRadians(lng2 - lng1);
 
                const a = Math.sin(Δφ / 2) * Math.sin(Δφ / 2) +
                    Math.cos(φ1) * Math.cos(φ2) *
                    Math.sin(Δλ / 2) * Math.sin(Δλ / 2);
                const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
 
                const distance = R * c;
                return Math.round(distance * 100) / 100; // 保留两位小数
            },
 
            // 打开相册
            onAlbum() {
                this.isOpenAlbum = true;
            },
 
            closeAlbumFunc(e) {
                this.isOpenAlbum = false;
            },
 
            //关闭分享
            closeBottmpanel(data) {
                this.isbottmpanel = false;
                if (data.type == 2) {
                    this.poster_img = data.poster_img;
                    this.isCreatedImg = true;
                }
            },
 
            /*APP分享*/
            onShareAppMessage() {
                let self = this;
                // 构建页面参数
                let params = self.getShareUrlParams({
                    activity_id: self.activity_id
                });
                return {
                    title: self.activityData.name,
                    path: '/pages/branch/activity/detail/detail?' + params
                };
            },
 
            //分享按钮
            showShare() {
                let self = this;
                //#ifndef APP-PLUS
                self.isbottmpanel = true;
                //#endif
                //#ifdef APP-PLUS
                self.appParams.title = self.activityData.name;
                self.appParams.summary = self.activityData.describe;
                // 构建页面参数
                let params = self.getShareUrlParams({
                    activity_id: self.activity_id
                });
                self.appParams.path = '/pages/branch/activity/detail/detail?' + params;
                self.appParams.image = self.activityData.image.file_path;
                self.isAppShare = true;
                //#endif
            },
            //关闭分享
            closeAppShare(data) {
                this.isAppShare = false;
            },
            //关闭生成图片
            hidePopupFunc() {
                this.isCreatedImg = false;
            },
 
            //保存海报图片
            savePosterImg() {
                let self = this;
                uni.showLoading({
                    title: '加载中'
                });
                // 下载海报图片
                uni.downloadFile({
                    url: self.poster_img,
                    success(res) {
                        uni.hideLoading();
                        // 图片保存到本地
                        uni.saveImageToPhotosAlbum({
                            filePath: res.tempFilePath,
                            success(data) {
                                uni.showToast({
                                    title: '保存成功',
                                    icon: 'success',
                                    duration: 2000
                                });
                                // 关闭商品海报
                                self.isCreatedImg = false;
                            },
                            fail(err) {
                                if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') {
                                    uni.showToast({
                                        title: '请允许访问相册后重试',
                                        icon: 'none',
                                        duration: 1000
                                    });
                                    setTimeout(() => {
                                        uni.openSetting();
                                    }, 1000);
                                }
                            },
                            complete(res) {
                                console.log('complete');
                            }
                        });
                    }
                });
            },
 
            gotoSupplier() {
                this.gotoPage('pages/shop/shop?shop_supplier_id=' + this.activityData.visit_supplier_id);
            },
 
        }
    }
</script>
 
<style lang="scss" scoped>
    .personal-data {
        padding-bottom: 150rpx;
        padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
        padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
        min-height: 100vh;
    }
 
    .personal-data .activity-pic {
        display: flex;
        align-items: center;
        justify-content: center;
 
        .image {
            width: 100%;
        }
    }
 
    .personal-data .wrapper {
        width: 710rpx;
        margin: 0 auto;
        position: relative;
        top: -30rpx;
 
        +.wrapper {
            margin-top: 20rpx;
        }
    }
 
    .form-wrapper {
        pointer-events: none;
    }
 
    .personal-data .wrapper .text-info {
        padding: 30rpx;
        position: relative;
 
        >view {
            +view {
                margin-top: 30rpx;
            }
        }
 
        .activity-name {
            justify-content: space-between;
 
            .title {
                width: 576rpx;
                color: #282828;
                font-size: 32rpx;
                font-weight: bold;
            }
        }
 
        .share {
            text-align: center;
            color: #666666;
            font-size: 18rpx;
            cursor: pointer;
 
            .iconfont {
                display: block;
                color: #282828;
                font-size: 34rpx;
                margin: 0 0 6rpx 0;
            }
        }
 
        .iconfont {
            margin-right: 17rpx;
            font-size: 34rpx;
        }
 
        .activity-item {
            .avatar-list {
                image {
                    width: 70rpx;
                    height: 70rpx;
                    border-radius: 70rpx;
                    border: 2rpx solid #ffffff;
                    margin-left: -20rpx;
                }
 
                .more {
                    position: relative;
                    width: 140rpx;
                    height: 70rpx;
                    margin-left: -140rpx;
                    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9));
                }
            }
        }
 
        .status-image {
            position: absolute;
            top: 180rpx;
            right: 30rpx;
 
            image {
                width: 120rpx;
                height: 120rpx;
            }
        }
 
        .status-verify {
            position: absolute;
            bottom: 200rpx;
            right: 0;
            background: linear-gradient(145deg, #f8e3a8, #e8c077);
            border-radius: 60rpx 0 0 60rpx;
            font-size: 28rpx;
            padding: 6rpx 20rpx;
 
            .iconfont {
                margin-right: 10rpx;
            }
        }
    }
 
    .personal-data .wrapper .text-info .iconfont {
        color: #666666;
    }
 
    .personal-data .wrapper .text-info .info {
        color: #000000;
        font-size: 26rpx;
        padding-top: 8rpx;
 
        &.info-theme {
            @include font_color('font_color');
        }
    }
 
    .personal-data .wrapper .text-info .acea-info {
        max-width: 580rpx;
        text-align: justify;
        word-break: break-all;
    }
 
    .personal-data .wrapper .item .name {
        position: relative;
        width: 190rpx;
    }
 
    .personal-data .wrapper .item {
        padding: 27rpx 30rpx;
        font-size: 28rpx;
        color: #282828;
        position: relative;
 
        &::after {
            content: "";
            width: 650rpx;
            border-bottom: 1rpx solid #eee;
            position: absolute;
            bottom: 0;
        }
 
        &:last-child {
            &::after {
                display: none;
            }
        }
    }
 
    .personal-data .wrapper .disabled {
        pointer-events: none;
    }
 
    .personal-data .wrapper .item.on {
        padding: 16rpx 30rpx;
        align-items: baseline;
    }
 
    .personal-data .wrapper .item.on3 {
        align-items: baseline;
    }
 
    .personal-data .wrapper .info-title-box {
        .info-title {
            display: inline-block;
            position: relative;
 
            &::after {
                position: absolute;
                content: ' ';
                background: #ccc;
                width: 160rpx;
                height: 1rpx;
                right: -180rpx;
                bottom: 20rpx;
            }
 
            &::before {
                position: absolute;
                content: ' ';
                background: #ccc;
                width: 160rpx;
                height: 1rpx;
                left: -180rpx;
                bottom: 20rpx;
            }
        }
 
    }
 
    .personal-data .wrapper .activity-desc {
        line-height: 50rpx;
        font-size: 34 rpx;
        overflow: hidden;
    }
 
    .detail-footer {
        background: #ffffff;
        width: 750rpx;
        height: 126rpx;
        height: calc(126rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
        height: calc(126rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        bottom: 0;
        border-top: 1rpx solid #eeeeee;
    }
 
    .personal-data .modifyBnt {
        font-size: 28rpx;
        @include font_color("font_color");
        background-color: #ffffff;
        @include border_color("border_color");
        border-width: 2rpx;
        border-style: solid;
        width: 690rpx;
        height: 90rpx;
        border-radius: 200rpx;
        text-align: center;
        line-height: 90rpx;
        font-weight: bold;
 
        &.disabled {
            color: #ffffff !important;
            background-color: #BBBBBB !important;
            border-color: #BBBBBB !important;
        }
    }
 
    .personal-data .finish-btn .modifyBnt {
        width: 325rpx;
        margin: 0 20rpx;
    }
 
    .success-box {
        z-index: 10;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
 
        .bg {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, .5);
        }
 
        .con {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 520rpx;
            height: 526rpx;
            font-size: 34rpx;
            color: #282828;
 
            image {
                width: 214rpx;
                height: 180rpx;
            }
 
            .title {
                color: #282828;
                font-size: 32rpx;
                font-weight: bold;
            }
 
            .text {
                color: #999999;
                font-size: 26rpx;
                margin-top: 30rpx;
            }
 
            .foot {
                height: 78rpx;
                border-top: 1px solid #EAEAEA;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                position: absolute;
                bottom: 0;
                left: 0;
 
                .btn {
                    color: #999999;
                    font-size: 26rpx;
                    width: 50%;
                    text-align: center;
                    height: 78rpx;
                    display: flex;
                    align-items: center;
                    justify-content: center;
 
                    +.btn {
                        color: #E93323;
                        position: relative;
 
                        &::before {
                            content: "";
                            display: block;
                            width: 1px;
                            height: 78rpx;
                            background: #EAEAEA;
                            position: absolute;
                            left: 0;
                            top: 0;
                        }
                    }
                }
            }
        }
    }
 
    .create-img {
        width: 100%;
        box-sizing: border-box;
 
        image {
            width: 100%;
        }
 
        button {
            width: 100%;
            height: 88rpx;
            line-height: 88rpx;
            border-radius: 44rpx;
            box-shadow: 0 8rpx 16rpx 0 rgba(226, 35, 26, 0.6);
        }
    }
</style>