zhaojs
2023-04-27 0ae224b305087a8d1be405445d06621a07f78bbd
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
<template>
    <view class="container">
        <!-- <image @click="navBack" src="../../static/close.png" style="width: 32upx;height: 32upx;margin-left: 46upx;"></image> -->
 
        <view style="text-align: center;">
            <!-- <image style="width: 120upx;height: 120upx;margin-top: 140upx;border-radius:20upx" src="../../static/logo2.png"></image> -->
            <view style="font-size: 28upx;margin-top: 32upx">你的网购省钱专家</view>
            
            <button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" class="confirm-btn">微信授权手机号</button>
 
            <!-- 底部信息 -->
            <view class="footer">
                <text>授权即代表同意</text>
                <!-- 协议地址 -->
                <navigator url="/pages/agreement/mini" open-type="navigate">《隐私政策》</navigator>
                和
                <navigator url="/pages/agreement/xieyi" open-type="navigate">《用户服务协议》</navigator>
            </view>
        </view>
    </view>
</template>
<script>
    import request from '@/utils/request.js';
    import storage from '@/utils/userInfoStorage.js';
    export default {
        data() {
            return {
                backurl:''
            };
        },
        onLoad(e) {
        this.backurl=e.backurl;
        console.log(this.backurl)
        },
        methods: {
            getPhoneNumber(e)
            {
                const params={
                    coed:e.detail.code
                };
                //设置用户信息
                var userinfo={
                    userid:'222',
                    mobile:'1111',
                    invitecode:'ersx2'
                };
                storage.setuser(userinfo);
                if(this.backurl=='')
                {
                    uni.navigateBack({
                            delta:1,//返回层数,2则上上页
                        })
                }
                else{
                    uni.redirectTo({
                        url: this.backurl
                    });
                }
                
            }
        }
    };
</script>
 
<style lang="scss">
    .footer {
        padding-left: 140upx;
        margin-top: 32upx;
        font-size: 24upx;
        color: #666666;
        text-align: center;
        display: flex;
    }
 
    page {
        background: #fff;
    }
 
    .send-msg {
        border-radius: 30px;
        color: black;
        background: white;
        height: 30px;
        font-size: 14px;
        line-height: 30px;
    }
 
    .container {
        top: 0;
        padding-top: 50px;
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: #fff;
    }
 
    .wrapper {
        position: relative;
        z-index: 90;
        background: #fff;
        padding-bottom: 20px;
    }
 
    .back-btn {
        position: absolute;
        left: 20px;
        z-index: 9999;
        padding-top: var(--status-bar-height);
        top: 20px;
        font-size: 20px;
        color: $font-color-dark;
    }
 
    .left-top-sign {
        font-size: 80px;
        color: $page-color-base;
        position: relative;
    }
 
    .right-top-sign {
        position: absolute;
        top: 40px;
        right: -15px;
        z-index: 95;
 
        &:before,
        &:after {
            display: block;
            content: '';
            width: 20px;
            height: 40px;
            background: #e10a07;
        }
 
        &:before {
            transform: rotate(50deg);
            border-radius: 0 50px 0 0;
        }
 
        &:after {
            position: absolute;
            right: -198px;
            top: 0;
            transform: rotate(-50deg);
            border-radius: 50px 0 0 0;
            /* background: pink; */
        }
    }
 
    .left-bottom-sign {
        position: absolute;
        left: -270px;
        bottom: -320px;
        /*border: 100upx solid #d0d1fd;*/
        border-radius: 50%;
        padding: 90px;
    }
 
    .welcome {
        position: relative;
        left: 30px;
        top: -55px;
        font-size: 28px;
        color: #555;
        text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.3);
    }
 
    .input-content {
        padding: 0 20px;
    }
 
    .input-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 0 30px;
        background: $page-color-light;
        height: 64px;
        border-radius: 4px;
        margin-bottom: 30px;
 
        &:last-child {
            margin-bottom: 0;
        }
 
        .tit {
            height: 30px;
            line-height: 28px;
            font-size: $font-sm + 2upx;
            color: $font-color-base;
        }
 
        input {
            height: 40px;
            font-size: $font-base + 2upx;
            color: $font-color-dark;
            width: 100%;
        }
    }
 
    .confirm-btn-weixin {
        width: 200px;
        height: 42px;
        line-height: 42px;
        border-radius: 30px;
        margin-top: 40upx;
        background: -moz-linear-gradient(left, #f15b6c, #e10a07 100%);
        background: -webkit-gradient(linear, left top, left right, color-stop(0, #f15b6c), color-stop(100%, #e10a07));
        background: -webkit-linear-gradient(left, #f15b6c 0, #e10a07 100%);
        background: -o-linear-gradient(left, #f15b6c 0, #e10a07 100%);
        background: -ms-linear-gradient(left, #f15b6c 0, #e10a07 100%);
        background: linear-gradient(to left, #f15b6c 0, #e10a07 100%);
        color: #fff;
        font-size: $font-lg;
 
        &:after {
            border-radius: 60px;
        }
    }
 
    .confirm-btn {
        width: 200px;
        height: 42px;
        line-height: 42px;
        border-radius: 30px;
        margin-top: 300upx;
        background: -moz-linear-gradient(left, #f15b6c, #e10a07 100%);
        background: -webkit-gradient(linear, left top, left right, color-stop(0, #f15b6c), color-stop(100%, #e10a07));
        background: -webkit-linear-gradient(left, #f15b6c 0, #e10a07 100%);
        background: -o-linear-gradient(left, #f15b6c 0, #e10a07 100%);
        background: -ms-linear-gradient(left, #f15b6c 0, #e10a07 100%);
        background: linear-gradient(to left, #f15b6c 0, #e10a07 100%);
        color: #fff;
        font-size: $font-lg;
 
        &:after {
            border-radius: 60px;
        }
    }
 
    .confirm-btn1 {
        width: 300px;
        height: 42px;
        line-height: 42px;
        border-radius: 30px;
        margin-top: 40px;
        background: whitesmoke;
        color: grey;
        font-size: $font-lg;
 
        &:after {
            border-radius: 60px;
        }
    }
 
    .forget-section {
        font-size: $font-sm + 2upx;
        color: $font-color-spec;
        text-align: center;
        margin-top: 40px;
    }
 
    .register-section {
        left: 0;
        margin-top: 30px;
        bottom: 30px;
        width: 100%;
        font-size: $font-sm + 2upx;
        color: $font-color-base;
        text-align: center;
 
        text {
            color: $font-color-spec;
            margin-left: 10px;
        }
    }
</style>