|
@@ -0,0 +1,207 @@
|
|
1
|
+<template>
|
|
2
|
+ <view class="showModel" v-show="disjunctor">
|
|
3
|
+ <view class="showModel__wrap">
|
|
4
|
+ <view class="showModel__header">
|
|
5
|
+ 我的二维码
|
|
6
|
+ </view>
|
|
7
|
+ <view class="showModel__article">
|
|
8
|
+ <view class="showModel__content">
|
|
9
|
+ <image :src="qrCode" mode="widthFix" style="width: 100%;"></image>
|
|
10
|
+ </view>
|
|
11
|
+ </view>
|
|
12
|
+ <view class="showModel__footer">
|
|
13
|
+ <view class="showModel__know" @click="know" hover-class="seimin-btn-hover">关闭</view>
|
|
14
|
+ </view>
|
|
15
|
+ </view>
|
|
16
|
+ </view>
|
|
17
|
+</template>
|
|
18
|
+
|
|
19
|
+<script>
|
|
20
|
+ import {
|
|
21
|
+ get,
|
|
22
|
+ post,
|
|
23
|
+ webHandle
|
|
24
|
+ } from "../../http/http.js";
|
|
25
|
+ export default {
|
|
26
|
+ data() {
|
|
27
|
+ return {
|
|
28
|
+ qrCode: '',
|
|
29
|
+ };
|
|
30
|
+ },
|
|
31
|
+ props: {
|
|
32
|
+ // 显示隐藏
|
|
33
|
+ disjunctor: {
|
|
34
|
+ type: Boolean,
|
|
35
|
+ default: false,
|
|
36
|
+ },
|
|
37
|
+ },
|
|
38
|
+ methods: {
|
|
39
|
+ // 关闭
|
|
40
|
+ know() {
|
|
41
|
+ this.$emit("know");
|
|
42
|
+ },
|
|
43
|
+ // 获取我的二维码
|
|
44
|
+ getQrCode(){
|
|
45
|
+ uni.showLoading({
|
|
46
|
+ title: "加载中",
|
|
47
|
+ mask: true,
|
|
48
|
+ });
|
|
49
|
+ post("/data/createUserQRCode/0", {})
|
|
50
|
+ .then((result) => {
|
|
51
|
+ uni.hideLoading();
|
|
52
|
+ if (result.status == 200) {
|
|
53
|
+ this.qrCode = result.data;
|
|
54
|
+ } else {
|
|
55
|
+ uni.showToast({
|
|
56
|
+ icon: "none",
|
|
57
|
+ title: '请求失败',
|
|
58
|
+ });
|
|
59
|
+ }
|
|
60
|
+ })
|
|
61
|
+ }
|
|
62
|
+ },
|
|
63
|
+ mounted() {
|
|
64
|
+ this.getQrCode();
|
|
65
|
+ }
|
|
66
|
+ };
|
|
67
|
+</script>
|
|
68
|
+
|
|
69
|
+<style lang="less" scoped>
|
|
70
|
+ .showModel {
|
|
71
|
+ position: fixed;
|
|
72
|
+ left: 0;
|
|
73
|
+ right: 0;
|
|
74
|
+ top: 0;
|
|
75
|
+ bottom: 0;
|
|
76
|
+ background-color: rgba(0, 0, 0, 0.2);
|
|
77
|
+ z-index: 999999;
|
|
78
|
+
|
|
79
|
+ .showModel__wrap {
|
|
80
|
+ width: 560rpx;
|
|
81
|
+ position: absolute;
|
|
82
|
+ left: 50%;
|
|
83
|
+ top: 50%;
|
|
84
|
+ transform: translate(-50%, -50%);
|
|
85
|
+ background-color: #fff;
|
|
86
|
+ border-radius: 12rpx;
|
|
87
|
+
|
|
88
|
+ .showModel__header {
|
|
89
|
+ font-size: 36rpx;
|
|
90
|
+ color: #000;
|
|
91
|
+ height: 84rpx;
|
|
92
|
+ display: flex;
|
|
93
|
+ justify-content: center;
|
|
94
|
+ align-items: center;
|
|
95
|
+ }
|
|
96
|
+
|
|
97
|
+ .showModel__article {
|
|
98
|
+ color: #000;
|
|
99
|
+ margin: 0 auto 25rpx;
|
|
100
|
+ width: 488rpx;
|
|
101
|
+ background-color: rgb(249, 250, 251);
|
|
102
|
+ border: 2rpx solid rgb(229, 233, 237);
|
|
103
|
+ border-radius: 12rpx;
|
|
104
|
+ box-sizing: border-box;
|
|
105
|
+ display: flex;
|
|
106
|
+ flex-direction: column;
|
|
107
|
+ justify-content: center;
|
|
108
|
+ align-items: center;
|
|
109
|
+
|
|
110
|
+ &.p0 {
|
|
111
|
+ padding: 0;
|
|
112
|
+ }
|
|
113
|
+
|
|
114
|
+ &.p1 {
|
|
115
|
+ text-align: left;
|
|
116
|
+ }
|
|
117
|
+
|
|
118
|
+ .showModel__icon {
|
|
119
|
+ font-size: 138rpx;
|
|
120
|
+ margin-bottom: 32rpx;
|
|
121
|
+
|
|
122
|
+ &.showModel__icon--success {
|
|
123
|
+ color: rgb(52, 179, 73);
|
|
124
|
+ }
|
|
125
|
+
|
|
126
|
+ &.showModel__icon--warn {
|
|
127
|
+ color: rgb(245, 165, 35);
|
|
128
|
+ }
|
|
129
|
+
|
|
130
|
+ &.showModel__icon--error {
|
|
131
|
+ color: rgb(255, 58, 82);
|
|
132
|
+ }
|
|
133
|
+ }
|
|
134
|
+
|
|
135
|
+ .showModel__content {
|
|
136
|
+ font-size: 36rpx;
|
|
137
|
+ word-break: break-all;
|
|
138
|
+ width: 100%;
|
|
139
|
+ }
|
|
140
|
+
|
|
141
|
+ .showModel__info {
|
|
142
|
+ font-size: 32rpx;
|
|
143
|
+ color: rgb(102, 102, 102);
|
|
144
|
+ }
|
|
145
|
+
|
|
146
|
+ .specialCloseFlag {
|
|
147
|
+ width: 90%;
|
|
148
|
+ height: 100%;
|
|
149
|
+ padding: 16rpx;
|
|
150
|
+ }
|
|
151
|
+
|
|
152
|
+ .radio-wrap {
|
|
153
|
+ .radio-item {
|
|
154
|
+ margin-top: 16rpx;
|
|
155
|
+
|
|
156
|
+ /deep/ .uni-radio-input-checked {
|
|
157
|
+ background-color: #49b856 !important;
|
|
158
|
+ border-color: #49b856 !important;
|
|
159
|
+ }
|
|
160
|
+ }
|
|
161
|
+ }
|
|
162
|
+ }
|
|
163
|
+
|
|
164
|
+ .showModel__footer {
|
|
165
|
+ box-sizing: border-box;
|
|
166
|
+ height: 100rpx;
|
|
167
|
+ border-top: 2rpx solid rgb(229, 233, 237);
|
|
168
|
+ display: flex;
|
|
169
|
+ align-items: center;
|
|
170
|
+
|
|
171
|
+ view {
|
|
172
|
+ height: 100%;
|
|
173
|
+ display: flex;
|
|
174
|
+ align-items: center;
|
|
175
|
+ justify-content: center;
|
|
176
|
+ font-size: 36rpx;
|
|
177
|
+ color: rgb(102, 102, 102);
|
|
178
|
+ position: relative;
|
|
179
|
+
|
|
180
|
+ &:nth-of-type(2)::before {
|
|
181
|
+ content: "";
|
|
182
|
+ position: absolute;
|
|
183
|
+ left: 0;
|
|
184
|
+ bottom: 0;
|
|
185
|
+ width: 2rpx;
|
|
186
|
+ height: 87rpx;
|
|
187
|
+ background-color: rgb(229, 233, 237);
|
|
188
|
+ }
|
|
189
|
+ }
|
|
190
|
+
|
|
191
|
+ .showModel__ok {
|
|
192
|
+ flex: 1;
|
|
193
|
+ color: rgb(73, 184, 86);
|
|
194
|
+ }
|
|
195
|
+
|
|
196
|
+ .showModel__cancel {
|
|
197
|
+ flex: 1;
|
|
198
|
+ }
|
|
199
|
+
|
|
200
|
+ .showModel__know {
|
|
201
|
+ flex: 1;
|
|
202
|
+ color: rgb(73, 184, 86);
|
|
203
|
+ }
|
|
204
|
+ }
|
|
205
|
+ }
|
|
206
|
+ }
|
|
207
|
+</style>
|