3f535f30
杨鑫
'初始'
|
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
|
<template>
<div class="login">
<div class="pc">
<div class="loginTop">
<div class="loginLogo warp">
<div class="leftBox">
<div class="loginImgBox">
<img src="@/assets/images/logo.png" alt="">
</div>
</div>
<!-- <div class="rightBox" v-if="userName !== ''">
欢迎您{{userName == 'undefined' ? '' : userName}}
</div>
<div v-else class="rightBox">
我已有CERESHOP<span>快捷登录</span>
</div> -->
</div>
</div>
<div class="loginCent">
<div class="entrance">
<div class="entranceInfo">
<!-- <img src="../../assets/images/title.png" alt=""> -->
<p>用心开好店,打造大事业,与锦江公园共同展望美好未来。</p>
</div>
<!-- 申请跳转按钮 -->
<div class="entranceBtn">
<div
class="btnContainer"
v-for="item in pcBtnList"
:key="item.value"
@click="goToApplication(type = item.type)"
>
<img :src="item.img" alt="">
<span>{{ item.label }}</span>
</div>
</div>
</div>
</div>
</div>
<!-- 手机端 -->
<div class="wap">
|
6f06533e
杨鑫
最新1
|
42
|
<!-- <div class="wapTop">
|
3f535f30
杨鑫
'初始'
|
43
|
商家入驻
|
6f06533e
杨鑫
最新1
|
44
|
</div> -->
|
3f535f30
杨鑫
'初始'
|
45
46
47
48
|
<div class="wapBan">
</div>
<div class="wapCent">
<div class="wapCentBox">
|
6f06533e
杨鑫
最新1
|
49
50
51
52
|
<!-- class="wapItemBox" -->
<img src="../../assets/images/mb-mUinitBusiness.png" @click="goToApplication('mUinitBusiness')" />
<img src="../../assets/images/mb-mEnterprise.png" @click="goToApplication('mEnterprise')" />
<!-- <div
|
3f535f30
杨鑫
'初始'
|
53
54
|
v-for="item in mbBtnList"
:key="item.value">
|
6f06533e
杨鑫
最新1
|
55
56
|
<img src="../../assets/images/mb-mUinitBusiness.png" />
<img src="../../assets/images/mb-mEnterprise.png" />
|
3f535f30
杨鑫
'初始'
|
57
58
59
60
|
<span>
<img :src="item.img">{{ item.label }}
</span>
<el-button @click="goToApplication(type = item.type)" type="primary">去申请</el-button>
|
6f06533e
杨鑫
最新1
|
61
|
</div> -->
|
3f535f30
杨鑫
'初始'
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
</div>
</div>
</div>
</div>
</template>
<script>
import { Decrypt } from '@/util/secret.js'
import Cookie from 'js-cookie'
export default {
name: 'login',
data () {
return {
userName: '',
// pc端列表渲染
pcBtnList: [
|
be060284
杨鑫
'最新'
|
78
79
80
81
82
83
|
// {
// value: 0,
// img: 'static/imgs/pc/pc-personal.svg',
// label: '个人商户',
// type: 'personal'
// },
|
3f535f30
杨鑫
'初始'
|
84
85
86
87
88
89
90
91
92
93
94
|
{
value: 1,
img: 'static/imgs/pc/pc-IndividualBusiness.svg',
label: '个体工商户',
type: 'IndividualBusiness'
},
{
value: 2,
img: 'static/imgs/pc/pc-enterprisesApply.svg',
label: '企业商户',
type: 'enterprisesApply'
|
3f535f30
杨鑫
'初始'
|
95
|
}
|
be060284
杨鑫
'最新'
|
96
97
98
99
100
101
|
// {
// value: 3,
// img: 'static/imgs/pc/pc-organization.svg',
// label: '其他组织',
// type: 'organization'
// }
|
3f535f30
杨鑫
'初始'
|
102
103
104
|
],
// 手机端列表渲染
mbBtnList: [
|
be060284
杨鑫
'最新'
|
105
106
107
108
109
110
|
// {
// value: 0,
// img: 'static/imgs/mb/mb-personal.svg',
// label: '个人商户',
// type: 'mPersonal'
// },
|
3f535f30
杨鑫
'初始'
|
111
112
|
{
value: 1,
|
6f06533e
杨鑫
最新1
|
113
|
img: '../../assets/images/mb-mUinitBusiness.png',
|
3f535f30
杨鑫
'初始'
|
114
115
116
117
118
|
label: '个体工商户',
type: 'mUinitBusiness'
},
{
value: 2,
|
6f06533e
杨鑫
最新1
|
119
|
img: '../../assets/images/mb-mEnterprise.png]',
|
3f535f30
杨鑫
'初始'
|
120
121
|
label: '企业商户',
type: 'mEnterprise'
|
3f535f30
杨鑫
'初始'
|
122
|
}
|
be060284
杨鑫
'最新'
|
123
124
125
126
127
128
|
// {
// value: 3,
// img: 'static/imgs/mb/mb-mOtherOrg.svg',
// label: '其他组织',
// type: 'mOtherOrg'
// }
|
3f535f30
杨鑫
'初始'
|
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
|
]
}
},
created () {
if (this.userName === '') {
let data = this.getQueryString('user')
if (data !== '' && data !== undefined) {
let user = Decrypt(data)
console.log(user, 'token')
Cookie.set('token', user)
}
// let userName = this.getQueryString('username')
// let userInfo = decodeURI(userName)
// if (userInfo !== '') {
// this.setUserName(userInfo)
// }
}
},
methods: {
goToApplication (type) {
if (type === 'IndividualBusiness') {
this.$router.push({path: '/individualBusiness'})
}
if (type === 'personal') {
this.$router.push({path: '/personal'})
}
if (type === 'enterprisesApply') {
this.$router.push({path: '/enterprisesApply'})
}
if (type === 'organization') {
this.$router.push({path: '/organization'})
}
if (type === 'mUinitBusiness') {
this.$router.push({path: '/mUinitBusiness'})
}
if (type === 'mEnterprise') {
this.$router.push({path: '/mEnterprise'})
}
if (type === 'mPersonal') {
this.$router.push({path: '/mPersonal'})
}
if (type === 'mOtherOrg') {
this.$router.push({path: '/mOtherOrg'})
}
},
getQueryString (name) {
const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i')
const urlObj = window.location
const url = window.location.href
if (url.indexOf(name) !== -1) {
let r = urlObj.href.indexOf('#') > -1 ? urlObj.hash.split('?')[1].match(reg) : urlObj.search.substr(1).match(reg)
if (r != null) return unescape(r[2]); return null
}
}
}
}
</script>
<style lang="scss" scoped>
.login {
height: 100%;
min-height: 870px;
display: flex;
flex-direction: column;
background:#fff;
// background-image: url('../../assets/images/background2.png');
background-repeat: no-repeat;
background-size: 100% 100%;
.loginTop {
background-color: #3f9b6a;
position: relative;
z-index: 999;
.loginLogo {
height: 50px;
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
img {
width: 180px;
margin-right: 30px;
}
span {
font-size: 18px;
color: $fontColor;
}
.loginImgBox {
width: 51px;
height: 40px;
align-items: center;
display: flex;
margin-right: 20px;
cursor: pointer;
img {
width: 275%;
}
}
.leftBox {
display: flex;
align-items: center;
font-weight: 400;
}
.rightBox {
font-size: 16px;
span {
color: #C5AA7B;
padding-left: 10px;
cursor: pointer;
}
}
}
}
.loginCent {
margin-top: 100px;
font-family: Microsoft YaHei;
display: flex;
justify-content: center;
align-items: center;
.entrance {
.entranceInfo{
img{
display: block;
width: 480px;
margin: auto;
}
p{
margin: 30px 0;
font-size: 16px;
text-align: center;
color: #FFFFFF;
}
}
}
.entranceBtn {
width: 700px;
display: flex;
justify-content: space-around;
.btnContainer{
width: 120px;
text-align:center;
border-radius:10px;
padding-top:10px;
padding-bottom:10px;
padding-left:20px;
background:#3f9b6a;
cursor: pointer;
img{
display: block;
width: 80px;
height: 80px;
}
span{
display: block;
margin-top: 18px;
margin-left:-20px;
text-align: center;
color: #FFEBC4;
}
}
}
}
.wap {
display: none;
}
.pc {
height: 100%;
display: flex;
flex-direction: column;
min-height: 768px;
}
}
@media screen and (max-width: 750px) {
.warp {
width: 100%;
}
.login {
background: #F8F8F8;
position: relative;
.pc {
display: none;
}
.wap {
display: block;
.wapTop {
height: 60px;
line-height: 60px;
color: #FFF;
background-color: #333333;
font-size: 18px;
text-align: center;
}
.wapBan {
width: 100%;
background: url("../../assets/images/mb-background.png") no-repeat top center;
background-size: contain;
height: 300px;
}
.wapCent {
position: absolute;
top: 25%;
width: 100%;
.wapCentBox {
width: 94%;
|
6f06533e
杨鑫
最新1
|
335
336
337
338
339
|
display: flex;
justify-content: space-between;
margin: -100px auto 0 auto;
padding: 3%;
// background: #FFFFFF;
|
3f535f30
杨鑫
'初始'
|
340
341
|
// box-shadow: 0px 1px 32px 2px #F4F4F4;
// border-radius: 10px;
|
6f06533e
杨鑫
最新1
|
342
343
344
345
346
|
img {
width: 165px;
height: 165px;
// margin-right: 12px;
}
|
3f535f30
杨鑫
'初始'
|
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
|
.wapItemBox {
display: flex;
height: 90px;
align-items: center;
justify-content: space-between;
width: 100%;
border-bottom: 1px solid #F6F4F7;
.el-button--primary {
width: 80px;
color: #FFEBC4;
background-color: #333333;
border-radius: 0;
}
}
.wapItemBox:last-child {
border-bottom: none;
}
span {
display: flex;
align-items: center;
img {
width: 35px;
height: 35px;
margin-right: 12px;
}
}
}
}
}
}
}
</style>
|