朱桂飞
2023-03-22 4434c41562f18959967a957f09c795f0c24f3b70
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
<!-- 个人中心 -->
<template>
    <view class="components-theme">
 
        <!-- 弹窗确认 -->
        <view class="cu-modal" :class="modalName=='Modal'?'show':''">
            <view class="cu-dialog" style="padding: 300rpx 0 70rpx;">
                <view class="modal_bg"></view>
                <view class="modal_main">
                    <view class='nav-list margin-top'>
                        <view :class="'nav-li bg-zt' + (index+1)" v-for="(item, index) in inter" :key="index"
                            @click="switchImage(index,item.name)">
                            <view class="nav-name">{{item.name}}</view>
                        </view>
                    </view>
                </view>
            </view>
        </view>
        <!-- 顶部背景 -->
        <view class='UCenter-bg'
            :style="'background-image: url(' + pic[topBackGroupImageIndex].link + ');margin-top:' + 0 + 'px;'">
            <view class='space' v-show="spaceShow">
                <view class="stars ">
                    <view class="star "></view>
                    <view class="star pink "></view>
                    <view class="star blue "></view>
                    <view class="star yellow "></view>
                </view>
            </view>
 
            <block>
                <view class='text-center'>
                    <view class="cu-avatar2 round xl margin-right-sm shadow-blur-lg bg-img open-data"
                        style="overflow: hidden;">
                        <image   style="width: 100%; height: 100%;"></image>
                    </view>
                    <view class="padding text-blue text-xl text-bold">
                        你好,{{userinfo.realname == null ? '--' : userinfo.realname}}!
                    </view>
 
                </view>
            </block>
 
        </view>
 
        <block>
            <view class='padding flex text-center text-grey bg-white shadow-warp-my'>
                <view class='flex flex-sub flex-direction solid-right'>
                    <view class="text-xxl text-orange">-</view>
                    <view class="margin-top-sm">
                        设备总数</view>
                </view>
                <view class='flex flex-sub flex-direction solid-right'>
                    <view class="text-xxl text-blue">-</view>
                    <view class="margin-top-sm">
                        运行设备</view>
                </view>
                <view class='flex flex-sub flex-direction'>
                    <view class="text-xxl text-red">-</view>
                    <view class="margin-top-sm">
                        报警次数 </view>
                </view>
            </view>
 
 
 
            <view class="cu-list menu card-menu margin-top-lg shadow-shop bg-white text-black my-radius sm-border">
 
 
 
 
 
 
 
            </view>
 
 
            <view
                class="cu-list menu card-menu margin-top-lg margin-bottom-lg shadow-shop bg-white text-black my-radius sm-border">
 
                <view class="cu-item" @tap="showModal" data-target="Modal">
                    <view class='content'>
                        <image src='../../static/me/icon/zhuti.png' class='png' mode='aspectFit'></image>
                        <text class='text-lg margin-sm'>主题切换</text>
                    </view>
                    <view class='action'>
                        <view class="cu-capsule radius">
                            <view class='cu-tag bg-gradual-blue'>
                                <view style="clear: both;"></view>
                            </view>
                            <view class="cu-tag line-blue">
                                {{picName}}
                            </view>
                        </view>
                    </view>
                </view>
 
 
 
 
 
                <view class="cu-item">
                    <view class='content'>
                        <image src='../../static/me/icon/dengta.png' class='png' mode='aspectFit'></image>
                        <text class='text-lg margin-sm'>技术支持</text>
                    </view>
                    <view class="action">
                        <view class="cu-tag round bg-blue light">shlb@email.com</view>
                    </view>
                </view>
 
                <view class="cu-item">
                    <button class='content cu-btn'>
                        <image src='../../static/me/icon/chucuo.png' class='png' mode='aspectFit'></image>
                        <text class='text-lg margin-sm'>问题反馈</text>
                    </button>
                </view>
                <view class="cu-item">
                    <button class='content cu-btn'>
                        <image src='../../static/me/icon/xiaoxi.png' class='png' mode='aspectFit'></image>
                        <text class='text-lg margin-sm'>关于</text>
                    </button>
                </view>
                <view class="cu-item">
                    <button class='content cu-btn' @click="exit">
                        <image src='../../static/me/icon/diannao.png' class='png' mode='aspectFit'></image>
                        <text class='text-lg margin-sm'>退出登录</text>
                    </button>
                </view>
            </view>
 
        </block>
        <u-modal title="提示" content='确认退出登录吗?' :show="show" @confirm="confirm" @cancel="cancel" ref="uModal"
            showCancelButton></u-modal>
        <view style="height: 110rpx;width: 1rpx;"></view>
 
    </view>
</template>
 
<script>
    var videoAd = null
    export default {
        data() {
            return {
                show: false,
                // Custom: this.Custom,
                // CustomBar: this.CustomBar,
                spaceShow: true,
                modalName: null,
                picName: '流星之夜',
                userinfo:{},
                pic: [{
                    link: 'https://cdn.zhoukaiwen.com/zjx_me_bg1.jpeg',
                    name: '春天'
                }, {
                    link: 'https://cdn.zhoukaiwen.com/zjx_me_bg2.jpeg',
                    name: '夏天'
                }, {
                    link: 'https://cdn.zhoukaiwen.com/zjx_me_bg3.jpeg',
                    name: '秋天'
                }, {
                    link: 'https://cdn.zhoukaiwen.com/zjx_me_bg4.jpeg',
                    name: '冬天'
                }, {
                    link: 'https://cdn.zhoukaiwen.com/zjx_me_bg5.jpeg',
                    name: '幽静'
                }, {
                    link: 'https://cdn.zhoukaiwen.com/zjx_me_bg6.jpg',
                    name: '天空'
                }],
                topBackGroupImageIndex: 5,
                inter: [{
                    title: 'mimicry',
                    name: '活力春天',
                    color: ''
                }, {
                    title: 'theme',
                    name: '清爽夏日',
                    color: ''
                }, {
                    title: 'theme',
                    name: '金秋之韵',
                    color: ''
                }, {
                    title: 'theme',
                    name: '冬日之阳',
                    color: ''
                }, {
                    title: 'theme',
                    name: '幽兰星空',
                    color: ''
                }, {
                    title: 'theme',
                    name: '流星之夜',
                    color: ''
                }]
            }
        },
        onReady() {
             const userinfo =  uni.getStorageSync('userinfo');
            if(userinfo){
                this.userinfo  = userinfo
            }
        },
        // 分享小程序
        onShareAppMessage(res) {
            return {
                title: '看看这个小程序多好玩~',
                imageUrl: 'https://cdn.zhoukaiwen.com/qdpz_share.jpg',
            };
        },
        watch: {
            topBackGroupImageIndex(val) {
                console.log(val)
                if (val == 4 || val == 5) {
                    this.spaceShow = true;
                } else {
                    this.spaceShow = false;
                }
            }
        },
        mounted() {     
        },
        methods: {
            exit() {
                this.show = true
            },
            confirm() {
                this.show = false
                uni.removeStorageSync('token');
                uni.removeStorageSync('userinfo');
                uni.reLaunch({
                    url: '/pages/login/login'
                });
            },
            cancel() {
                this.show = false
            },
            switchImage(index, name) {
                this.topBackGroupImageIndex = index;
                this.modalName = null;
                this.picName = name;
            },
            showModal(e) {
                this.modalName = e.currentTarget.dataset.target
            },
            showGitee(e) {
                this.modalName = e.currentTarget.dataset.target
            },
            hideModal(e) {
                this.modalName = null
            },
 
 
 
 
        }
    }
</script>
 
<style lang="scss" scoped>
    .UCenter-bg {
        background: #fff;
        background-size: 100% 100%;
        /* background-size: cover; */
        height: 550rpx;
        display: flex;
        justify-content: center;
        padding-top: 40rpx;
        overflow: hidden;
        position: relative;
        flex-direction: column;
        align-items: center;
        color: #fff;
        font-weight: 300;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    }
 
    .UCenter-bg text {
        opacity: 0.8;
    }
 
    .UCenter-bg image {
        width: 200rpx;
        height: 200rpx;
    }
 
    .UCenter-bg .gif-wave {
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 0;
        z-index: 99;
        mix-blend-mode: screen;
        height: 100rpx;
    }
 
 
    // 头像
    .cu-avatar2 {
        font-variant: small-caps;
        margin: 0;
        padding: 0;
        display: inline-flex;
        text-align: center;
        justify-content: center;
        align-items: center;
        background: #ccc;
        color: #fff;
        white-space: nowrap;
        position: relative;
        width: 150rpx;
        height: 150rpx;
        background-size: cover;
        background-position: center;
        vertical-align: middle;
        font-size: 1.5em;
        z-index: 99;
    }
 
    .name {
        text-shadow: 2px 2px 1px #2f9bfe;
    }
 
    .dialog2 {
        background: none;
    }
 
    .saicode {
        background-size: 100% 100%;
        -moz-background-size: 100% 100%;
    }
 
    .img-big image {
        top: -40px;
        width: 280rpx;
        height: 280rpx;
    }
 
 
    .shadow-me {
        box-shadow: 0rpx 0rpx 100rpx 0rpx rgba(0, 0, 0, 0.1);
    }
 
    .tn-footerfixed {
        position: fixed;
        width: 100%;
        bottom: 0;
        z-index: 1024;
        box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.35);
    }
 
    .my_logo {
        background: none;
        padding: 50rpx 0 30rpx 0;
    }
 
    .my-radius {
        border-radius: 12rpx;
        overflow: hidden
    }
 
    .my-icon image {
        width: 100rpx;
        height: 100rpx;
        display: inline-block;
        margin: 0 auto
    }
 
    .my-iconcolor {
        background: rgba(255, 255, 255, 0.96)
    }
 
    .shadow-shop {
        box-shadow: 0rpx 0rpx 90rpx 0rpx rgba(0, 0, 0, 0.1);
    }
 
    .qrcode-img {
        position: fixed;
        width: 80rpx;
        height: 80rpx;
        bottom: 350rpx;
        right: 30rpx;
        z-index: 1024;
        opacity: 0.8;
        box-shadow: 0rpx 8rpx 30rpx 0rpx rgba(0, 0, 0, 0.3);
        border: none
    }
 
 
    /* 数字背景 */
    .shadow-warp-my {
        position: relative;
        box-shadow: 0 10rpx 10rpx rgba(0, 0, 0, 0.1);
    }
 
    .shadow-warp-my:before,
    .shadow-warp-my:after {
        position: absolute;
        content: "";
        top: 20rpx;
        bottom: 30rpx;
        left: 20rpx;
        width: 50%;
        box-shadow: 0 30rpx 20rpx rgba(0, 0, 0, 0.16);
        transform: rotate(-6deg);
        z-index: -1;
    }
 
    .shadow-warp-my:after {
        right: 20rpx;
        left: auto;
        transform: rotate(6deg);
    }
 
 
    .bg-product {
        background-image: linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
        color: #fff;
    }
 
    .margin-bottom-my {
        margin-bottom: 150rpx;
    }
 
    .giteeClass {
        margin-top: 30rpx;
        font-size: 34rpx;
        color: #2440B3;
        text-decoration: underline;
    }
 
    .cu-dialog {
        background: #FFFFFF;
        overflow: visible;
    }
 
    .modal_bg {
        width: 100%;
        height: 400rpx;
        position: absolute;
        top: -100rpx;
        background-image: url(https://zhoukaiwen.com/img/qdpz/modal_bg.png);
        background-size: 100%;
        background-repeat: no-repeat;
    }
 
    .modal_main {
        background-color: #FFFFFF;
    }
 
    /* 主题色 */
    .bg-zt1 {
        color: #fff;
        background: #81d949;
    }
 
    .bg-zt2 {
        color: #fff;
        background: #b2e6ff;
    }
 
    .bg-zt3 {
        color: #fff;
        background: #f3cd41;
    }
 
    .bg-zt4 {
        color: #fff;
        background: #ddecf7;
    }
 
    .bg-zt5 {
        color: #fff;
        background: #152e9d;
    }
 
    .bg-zt6 {
        color: #fff;
        background: #0f1358;
    }
 
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        padding: 0px 40upx 0px;
        justify-content: space-between;
    }
 
    .nav-li {
        padding: 22upx;
        border-radius: 12upx;
        width: 45%;
        margin: 0 2.5% 40upx;
        //background-image: url(../../static/me/NyU04x.png);
        background-size: cover;
        background-position: center;
        position: relative;
        z-index: 1;
    }
 
    .nav-li::after {
        content: "";
        position: absolute;
        z-index: -1;
        background-color: inherit;
        width: 100%;
        height: 100%;
        left: 0;
        bottom: -10%;
        border-radius: 10upx;
        opacity: 0.2;
        transform: scale(0.9, 0.9);
    }
 
    .nav-li.cur {
        color: #fff;
        background: rgb(94, 185, 94);
        box-shadow: 4upx 4upx 6upx rgba(94, 185, 94, 0.4);
    }
 
    .nav-name {
        font-size: 28upx;
        text-transform: Capitalize;
        position: relative;
    }
 
    .nav-name::before {
        content: "";
        position: absolute;
        display: block;
        width: 40upx;
        height: 6upx;
        background: #fff;
        bottom: 0;
        right: 0;
        opacity: 0.5;
    }
 
    .nav-name::after {
        content: "";
        position: absolute;
        display: block;
        width: 100upx;
        height: 1px;
        background: #fff;
        bottom: 0;
        right: 40upx;
        opacity: 0.3;
    }
 
    .nav-name::first-letter {
        font-weight: bold;
        font-size: 36upx;
        margin-right: 1px;
    }
 
    .nav-li text {
        position: absolute;
        right: 30upx;
        top: 30upx;
        font-size: 52upx;
        width: 60upx;
        height: 60upx;
        text-align: center;
        line-height: 60upx;
    }
 
    .star {
        display: block;
        width: 5rpx;
        height: 5rpx;
        border-radius: 50%;
        background: #FFF;
        top: 100rpx;
        left: 400rpx;
        position: relative;
        transform-origin: 100% 0;
        animation: star-ani 6s infinite ease-out;
        box-shadow: 0 0 5rpx 5rpx rgba(255, 255, 255, .3);
        opacity: 0;
        z-index: 2;
    }
 
    .star:after {
        content: '';
        display: block;
        top: 0rpx;
        left: 4rpx;
        border: 0rpx solid #fff;
        border-width: 0rpx 90rpx 2rpx 90rpx;
        border-color: transparent transparent transparent rgba(255, 255, 255, .3);
        transform: rotate(-45deg) translate3d(1rpx, 3rpx, 0);
        box-shadow: 0 0 1rpx 0 rgba(255, 255, 255, .1);
        transform-origin: 0% 100%;
        animation: shooting-ani 3s infinite ease-out;
    }
 
    .pink {
        top: 30rpx;
        left: 395rpx;
        background: #ff5a99;
        animation-delay: 5s;
        -webkit-animation-delay: 5s;
        -moz-animation-delay: 5s;
    }
 
    .pink:after {
        border-color: transparent transparent transparent #ff5a99;
        animation-delay: 5s;
        -webkit-animation-delay: 5s;
        -moz-animation-delay: 5s;
    }
 
    .blue {
        top: 35rpx;
        left: 432rpx;
        background: cyan;
        animation-delay: 7s;
        -webkit-animation-delay: 7s;
        -moz-animation-delay: 7s;
    }
 
    .blue:after {
        /* border-color: transpareanimation-delay: 12s; */
        -webkit-animation-delay: 7s;
        -moz-animation-delay: 7s;
        animation-delay: 7s;
    }
 
    .yellow {
        top: 50rpx;
        left: 600rpx;
        background: #ffcd5c;
        animation-delay: 5.8s;
    }
 
    .yellow:after {
        border-color: transparent transparent transparent #ffcd5c;
        animation-delay: 5.8s;
    }
 
    @keyframes star-ani {
        0% {
            opacity: 0;
            transform: scale(0) rotate(0) translate3d(0, 0, 0);
            -webkit-transform: scale(0) rotate(0) translate3d(0, 0, 0);
            -moz-transform: scale(0) rotate(0) translate3d(0, 0, 0);
        }
 
        50% {
            opacity: 1;
            transform: scale(1) rotate(0) translate3d(-200rpx, 200rpx, 0);
            -webkit-transform: scale(1) rotate(0) translate3d(-200rpx, 200rpx, 0);
            -moz-transform: scale(1) rotate(0) translate3d(-200rpx, 200rpx, 0);
        }
 
        100% {
            opacity: 0;
            transform: scale(1) rotate(0) translate3d(-300rpx, 300rpx, 0);
            -webkit-transform: scale(1) rotate(0) translate3d(-300rpx, 300rpx, 0);
            -moz-transform: scale(1) rotate(0) translate3d(-300rpx, 300rpx, 0);
        }
    }
</style>