zhaojs
2023-06-10 69ea24e8fdfb41fc48c3fdb8c444645c13b1bbc4
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
<template>
    <view class="customerSevice-wrapper wrapperLayer colCen">
        <view class="topheaderCard-container colCen"></view>
        <view class="topbarbox"></view>
        <view class="headerNavigationbar borderBox rowCenBet">
            <view class="backBtn defIcon" @click="pathBack()">
                <image src="../../../static/images/home/returnWhite.png" mode=""></image>
            </view>
            <view class="pageTitle">
                专属客服
            </view>
            <view class="emptybox"></view>
        </view>
 
        <view class="customerSevice-container borderBox colCen">
            <view class="customerSevice-card colCen">
                <view class="customerHeader-container rowCenCen">
                    <view class="headerbox defIcon">
                        <image :src="appLogo"></image>
                    </view>
                </view>
                <view class="customerInfo colCen">
                    <view class="customerName">
                        专属客服
                    </view>
                    <view class="customerWXnum">
                        微信号:<text :selectable="true">{{wxNum}}</text>
                    </view>
 
                    <view class="qrcode-title">
                        长按保存客服微信二维码
                    </view>
 
                    <view class="qrcode-container defIcon" @longpress="saveImg">
                        <image :src="wxImg" mode=""></image>
                    </view>
                </view>
 
            </view>
        </view>
 
        <view class="textTips borderBox">
            添加微信有助于更好的帮您解决问题哦~
        </view>
        
        <u-toast ref="uToast" />
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                wxNum: 'fisjf390',
                wxImg: '',
                appLogo: ''
            }
        },
        onLoad() {
            this.getpageData()
        },
        methods: {
            getpageData() {
                var appInfo = uni.getStorageSync('appInfo');
                this.wxNum = appInfo.wxNumber
                this.wxImg = appInfo.wxImg
                this.appLogo = appInfo.logo
            },
            pathBack() {
                uni.navigateBack({
                    delta: 1,
                })
            },
            saveImg(e) {
                console.log(e);
                uni.saveImageToPhotosAlbum({
                    filePath: this.wxImg,
                    success: res=> {
                        this.$refs.uToast.show({
                            title: '保存成功,可在相册中查看',
                            type: 'success',
                            position: 'bottom'
                        })
                    }
                });
            }
        }
    }
</script>
 
<style lang="scss">
    .customerSevice-wrapper {
        .topheaderCard-container {
            width: 750rpx;
            height: 525rpx;
            background: url(../../../static/images/mine/tools/customer.png)no-repeat;
            background-size: 100% 100%;
            position: absolute;
            top: 0;
            left: 0;
        }
 
        .headerNavigationbar {
            width: 100%;
            height: 90rpx;
            padding: 0 32rpx;
            z-index: 1;
 
            .emptybox {
                width: 32rpx;
                height: 32rpx;
            }
 
            .pageTitle {
                font-size: 32rpx;
                font-weight: 500;
                color: #FFFFFF;
            }
 
            .backBtn {
                width: 32rpx;
                height: 32rpx;
 
                image {
                    width: 17rpx;
                    height: 32rpx;
                }
            }
        }
 
        .customerSevice-container {
            width: 100%;
            padding: 0 42rpx;
            margin-top: 150rpx;
            z-index: 1;
 
            .customerSevice-card {
                width: 100%;
                height: 900rpx;
                background-color: rgba(255, 255, 255, 0.77);
                box-shadow: 0px 7rpx 16rpx 0px rgba(88, 91, 120, 0.38);
                border-radius: 10rpx;
                position: relative;
 
                .customerHeader-container {
                    position: absolute;
                    width: 100%;
                    height: 200rpx;
                    top: -120rpx;
                    z-index: 10;
 
                    .headerbox {
                        width: 200rpx;
                        height: 200rpx;
                        border: 2rpx solid #FFFFFF;
                        border-radius: 50%;
                        overflow: hidden;
                    }
                }
 
                .customerInfo {
                    width: 100%;
                    margin-top: 115rpx;
 
                    .customerName {
                        font-size: 32rpx;
                        font-weight: bold;
                        color: #095AC1;
                    }
 
                    .customerWXnum {
                        font-size: 28rpx;
                        font-weight: 400;
                        color: #095AC1;
                        margin-top: 30rpx;
                    }
 
                    .qrcode-title {
                        font-size: 32rpx;
                        font-weight: 400;
                        color: #095AC1;
                        margin-top: 100rpx;
                    }
 
                    .qrcode-container {
                        margin-top: 35rpx;
                        width: 375rpx;
                        height: 375rpx;
                        background: url(../../../static/images/mine/tools/qrcode.png) no-repeat;
                        background-size: 100% 100%;
 
                        image {
                            width: 345rpx;
                            height: 345rpx;
                        }
                    }
                }
            }
        }
 
        .textTips {
            width: 100%;
            margin-top: 50rpx;
            font-size: 24rpx;
            font-weight: 400;
            color: #095AC1;
            padding-left: 54rpx;
        }
    }
</style>