system-phone 3.1.43 → 3.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,734 +1,734 @@
1
- <template>
2
- <div class="loginbg" id="outheight">
3
- <!--输入框-->
4
- <div class="htmleaf-container">
5
- <div class="wrapper" :class="{'form-success': login}">
6
- <div class="container">
7
- <h3 style="color:white; margin-top: 15px">欢迎使用</h3>
8
- <p class="form" :style="{'margin-top': margintop + 'px'}">
9
- <input type="text" v-model="ename" class="usericon"/>
10
- <input :type="showpass==true?'text':'password'" v-model="password" class="psicon"/>
11
- <img :src="imageurl"
12
- style="width: 20px;margin-bottom: 5px;position: absolute;left: 62%;bottom: 43%;"
13
- alt=""
14
- @click="changepass()"/>
15
- <button type="button" id="login-button" @click.prevent="confirm()"><strong>登录</strong></button>
16
- </p>
17
- <div class="row">
18
- <img src="../../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave"
19
- @click="showoff()">
20
- <img src="../../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="!showsave"
21
- @click="showon()">
22
- <span class="text-left font">记住密码</span>
23
- <img src="../../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '1'"
24
- @click="showoff1()">
25
- <img src="../../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '2'"
26
- @click="showon1()">
27
- <span class="text-left font">自动登录</span>
28
- <p></p>
29
- <span class="devicetext">设备码:{{ deviceIemi }}</span>
30
- </div>
31
- </div>
32
- </div>
33
- </div>
34
- <!--<load-appdata @ready="onReady"></load-appdata>-->
35
- <div style="width: 100%;height: 100%;position: fixed;top: 0px;" v-show="loaderShow">
36
- <div id="loading" class="loading">登陆中...</div>
37
- </div>
38
- <modal :show.sync="modifyPassword" backdrop="false">
39
- <header slot="modal-header" class="modal-header">
40
- </header>
41
- <article slot="modal-body" class="modal-body">
42
- <modify-pass-word :sourse="login" :weak-password="weakPassword" v-if="modifyPassword"
43
- v-on:success="success"></modify-pass-word>
44
- </article>
45
- <footer slot="modal-footer" class="modal-footer">
46
- </footer>
47
- </modal>
48
- </div>
49
- </template>
50
-
51
- <script>
52
-
53
- /**
54
- * 说明:
55
- * /rs/vue 请求获取到的配置文件有关配置项目
56
- * telephone.LoginApp.weakPassword:为true 是判断是否弱密码校验
57
- *
58
- * globle 校验参数 Device_IEMI 是否需要校验设备iemi编码
59
- *
60
- */
61
-
62
-
63
- import Vue from 'vue'
64
- import * as Util from '../../Util'
65
- import JSEncrypt from 'jsencrypt'
66
- //获取json配置文件
67
- let asyncReady = async function (self, url) {
68
- // 获取配置信息
69
- try {
70
- console.log("获取营收配置文件和参数【开始】")
71
- await self.$appdata.load()
72
- console.log("获取营收配置文件和参数【结束】,开始获取vue配置文件【开始】")
73
- let that = self
74
- let res = await Vue.resetget(`${url}/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
75
- that.$set('config', res.data)
76
- Vue.config2 = res.data
77
- // 判断是否需要弱密码校验
78
- if (self.config && self.config.telephone && self.config.telephone.LoginApp && "undefined" != typeof self.config.telephone.LoginApp.weakPassword) {
79
- self.weakPassword = self.config.telephone.LoginApp.weakPassword
80
- }
81
- console.log("手机端获取.json文件")
82
- console.log(JSON.stringify(self.config))
83
- return true
84
- } catch (error) {
85
- // 此处业务数据装载异常不做任何处理,理论上不会有任何异常
86
- self.$showMessage('登录失败!用户名或密码错误!')
87
- return false
88
- }
89
- }
90
-
91
- //装载业务数据
92
- let asyncLoadData = async function (self, url) {
93
- try {
94
- // 读取报建本地配置文件
95
- var result = HostApp.readLocalFile('workflow_apply.json')
96
- if (result.code == 500) {
97
- console.log('不存在流程配置文件,即不使用报建app')
98
- return
99
- }
100
- var data = JSON.parse(result.data)
101
- console.log('读取报建配置文件成功,存入缓存中的data=>' + JSON.stringify(data))
102
- Vue.workflow_vue = Vue.prototype.$workflow_vue = data
103
- } catch (error) {
104
- // 此处业务数据装载异常不做任何处理,理论上不会有任何异常,只有当app版本端版本较低无readlocalfile时会异常
105
- console.log(error)
106
- }
107
- }
108
-
109
- export default {
110
- title: '登录系统',
111
- data() {
112
- return {
113
- loaderShow: false,
114
- config: {},
115
- weakPassword: false,
116
- modifyPassword: false,
117
- ename: '',
118
- login: 'login',
119
- password: '',
120
- showsave: true,
121
- showauto: '2', // 1 自动登陆 2取消自动登陆
122
- showpass: false,
123
- imageurl: require('../../assets/miwen.png'),
124
- deviceIemi: '无法获取该设备码,请联系管理员',
125
- loginSafe: false,
126
- margintop: document.documentElement.clientHeight * 0.1
127
- }
128
- },
129
-
130
- ready() {
131
- if (Vue.android) {
132
- const userCache = this.$androidUtil.getPreference('login_user_cache')
133
- this.showauto = this.$androidUtil.getPreference('auto_login')
134
- this.showauto = this.showauto ? this.showauto : '2'
135
- console.log(`自动登陆标识ready:${this.showauto}`)
136
- if (userCache) {
137
- const userCacheJSON = JSON.parse(userCache.replace(/\'/g, '\"'))
138
- this.password = userCacheJSON.password
139
- this.ename = userCacheJSON.username
140
- }
141
- this.deviceIemi = this.$androidUtil.getDeviceIEMI()
142
- console.log(`手机设备码:${this.deviceIemi}`)
143
- if (this.showauto == '1' && this.password) {
144
- this.confirm()
145
- }
146
- }
147
- },
148
- methods: {
149
- success(val) {
150
- // 修改密码成功
151
- this.modifyPassword = false
152
- this.password = val
153
- },
154
- // 对资源菜单进行排序
155
- sortFunctions (val) {
156
- this.sortArr(val)
157
- val.forEach((item)=>{
158
- if(item.children && Array.isArray(item.children)){
159
- this.sortArr(item.children)
160
- }
161
- })
162
- return val
163
- },
164
- sortArr(val){
165
- val.sort((itemA, itemB)=>{
166
- if(itemA.position !== itemB.position){
167
- return itemA.position - itemB.position
168
- }else{
169
- return itemA.id - itemB.id
170
- }
171
- })
172
- },
173
- // 记住密码选中/未选中
174
- showoff() {
175
- this.showsave = false
176
- },
177
- showon() {
178
- this.showsave = true
179
- },
180
- showoff1() {
181
- this.showauto = '2'
182
- },
183
- showon1() {
184
- this.showauto = '1'
185
- },
186
- changepass() {
187
- this.showpass = this.showpass ? false : true
188
- if (this.showpass) {
189
- this.imageurl = require("../../assets/mingwen.png")
190
- } else {
191
- this.imageurl = require("../../assets/miwen.png")
192
- }
193
- },
194
- async confirm() {
195
- this.loaderShow = true
196
- let ip ='';
197
- const rest = await fetch(`${this.$androidUtil.getProxyUrl()}/rs/systemUrl/getIp`);
198
- const ipData = await rest.json();
199
- ip=ipData.ip;
200
- const userData2 = {name: this.ename, password: this.password,ip: ip,device_type:'PHONE'}
201
- await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getLogin`, userData2, {
202
- resolveMsg: null,
203
- rejectMsg: null
204
- })
205
- console.log('Vue.android:' + Vue.android)
206
- const userData = {username: this.ename, password: this.password}
207
- console.log('获取登陆信息:' + userData)
208
- Vue.dataUrl = this.$androidUtil.getProxyUrl() + "/"
209
- // rsa加密
210
- let encrypt = new JSEncrypt();
211
- encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
212
- const userDataEncrypt = encrypt.encrypt(JSON.stringify(userData))
213
- console.log("加密后的用户登录信息", userDataEncrypt)
214
- try {
215
- let ret = {}
216
- try {
217
- ret = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/user/userLogin/手机服务`, userDataEncrypt, {
218
- resolveMsg: null,
219
- rejectMsg: null
220
- })
221
- this.$androidUtil.setPreference('siteId', ret.data.f_extend1 || '')
222
- this.$androidUtil.setPreference('flatId', ret.data.f_extend2 || '')
223
- this.$androidUtil.setPreference('name', ret.data.name || '')
224
- this.$androidUtil.setPreference('ename', ret.data.ename || '')
225
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code !== 200) {
226
- throw {status: ret.data.code, message: ret.data.msg}
227
- }
228
- } catch (e) {
229
- if (Vue.android) {
230
- this.loaderShow = false
231
- this.$showMessage('登录失败!用户名或密码错误!')
232
- }
233
- return
234
- }
235
-
236
- // 设置登录人
237
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
238
- Vue.user = Util.f = ret.data.data
239
- } else {
240
- Vue.user = Util.f = ret.data
241
- }
242
-
243
- // 对资源菜单进行排序
244
- let viewDetails = await Vue.resetpost(`${this.$androidUtil.getProxyUrl()}/rs/search`, {
245
- source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($功能权限$) != -1)',
246
- userid: Vue.user.id
247
- }, {resolveMsg: null, rejectMsg: null})
248
- const rithtList = viewDetails.data
249
- Vue.user.r = []
250
- rithtList.forEach(x => Vue.user.r.push(x.name))
251
- // 功能排序
252
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
253
- Vue.functions = this.sortFunctions(ret.data.data.functions)
254
- } else {
255
- Vue.functions = this.sortFunctions(ret.data.functions)
256
- }
257
- console.log('登陆人信息', JSON.stringify(Vue.user))
258
- let userStr
259
- if (Vue.android) {
260
- console.log(`Device_IEMI:${this.$androidUtil.getPreference('Device_IEMI')}`)
261
- // 判断是否需要验证 设备码
262
- if (this.$androidUtil.getPreference('Device_IEMI')) {
263
- console.log(`手机设备码:${this.deviceIemi}`)
264
- let result = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
265
- data: {
266
- items: '*',
267
- tablename: 't_equipment',
268
- orderitem: 'id desc',
269
- condition: `f_terminal_number = '${this.deviceIemi}' and f_state = '正常'`
270
- }
271
- }, {resolveMsg: null, rejectMsg: null})
272
- console.log(`检测设备码存在是否:${result.data.length}`)
273
- if (result.data.length == 0) {
274
- HostApp.alert('设备码未绑定,请联系管理员!')
275
- return
276
- }
277
- }
278
- if (this.showsave) {
279
- userStr = `{'username':'${this.ename}','password':'${this.password}'}`
280
- } else {
281
- userStr = `{'username':'${this.ename}','password':''}`
282
- }
283
- console.log(this.showauto)
284
- this.$androidUtil.setPreference('login_user_cache', userStr)
285
- this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
286
- this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
287
- this.$androidUtil.setPreference('f_orgid', Util.f.orgid)
288
- this.$androidUtil.setPreference('f_role_name', Util.f.f_role_name || '')
289
- console.log("自动登陆标识" + Util.f.f_role_name)
290
- console.log(this.showauto)
291
- this.$androidUtil.setPreference('auto_login', this.showauto)
292
- }
293
- // 设置当前登录人信息
294
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
295
- Vue.$login = Vue.prototype.$login = {jwt: ret.data.data.id,
296
- toStandardDateString () {
297
- let dt = new Date()
298
- let month = dt.getMonth() + 1
299
- let date = dt.getDate()
300
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
301
- }, toStandardTimeString () {
302
- let dt = new Date()
303
- let month = dt.getMonth()+1
304
- let date = dt.getDate()
305
- let hour = dt.getHours()
306
- let min = dt.getMinutes()
307
- let sec = dt.getSeconds()
308
- return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
309
- + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
310
- }}
311
- } else {
312
- Vue.$login = Vue.prototype.$login = {jwt: ret.data.id,
313
- toStandardDateString () {
314
- let dt = new Date()
315
- let month = dt.getMonth() + 1
316
- let date = dt.getDate()
317
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
318
- }, toStandardTimeString () {
319
- let dt = new Date()
320
- let month = dt.getMonth()+1
321
- let date = dt.getDate()
322
- let hour = dt.getHours()
323
- let min = dt.getMinutes()
324
- let sec = dt.getSeconds()
325
- return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
326
- + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
327
- }}
328
- }
329
- // 获取参数
330
- console.log('获取参数system以及安检参数')
331
- const flag = await asyncReady(this, this.$androidUtil.getProxyUrl())
332
- if (!flag) {
333
- this.loaderShow = false
334
- console.log('获取参数异常')
335
- return
336
- }
337
- console.log('获取参数结束')
338
- this.loaderShow = false
339
- // 弱口令验证
340
- if (this.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(this.password))) {
341
- await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
342
- this.modifyPassword = true
343
- return
344
- }
345
- this.$goto('nav-bottom')
346
- } catch (e) {
347
- if (Vue.android) {
348
- this.loaderShow = false
349
- }
350
- this.$showMessage("登录失败!用户名或密码错误!")
351
- }
352
- },
353
- },
354
- watch: {
355
- 'config'(val) {
356
- Vue.config = val
357
- }
358
- }
359
- }
360
- </script>
361
- <style scoped="">
362
- .devicetext {
363
- font: 13px PingFang-SC-Medium;
364
- position: fixed;
365
- width: 100%;
366
- bottom: 13px;
367
- transform: translate(-50%, -50%);
368
- }
369
-
370
- /*输入框样式*/
371
- /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
372
- * {
373
- box-sizing: border-box;
374
- margin: 0;
375
- padding: 0;
376
- font-weight: 300;
377
- }
378
-
379
- .loginbg {
380
- font-family: 'Source Sans Pro', sans-serif;
381
- color: white;
382
- font-weight: 300;
383
- }
384
-
385
- .loginbg ::-webkit-input-placeholder {
386
- /* WebKit browsers */
387
- font-family: 'Source Sans Pro', sans-serif;
388
- color: white;
389
- font-weight: 300;
390
- }
391
-
392
- .loginbg :-moz-placeholder {
393
- /* Mozilla Firefox 4 to 18 */
394
- font-family: 'Source Sans Pro', sans-serif;
395
- color: white;
396
- opacity: 1;
397
- font-weight: 300;
398
- }
399
-
400
- .loginbg ::-moz-placeholder {
401
- /* Mozilla Firefox 19+ */
402
- font-family: 'Source Sans Pro', sans-serif;
403
- color: white;
404
- opacity: 1;
405
- font-weight: 300;
406
- }
407
-
408
- .loginbg :-ms-input-placeholder {
409
- /* Internet Explorer 10+ */
410
- font-family: 'Source Sans Pro', sans-serif;
411
- color: white;
412
- font-weight: 300;
413
- }
414
-
415
- .wrapper {
416
- /*background: #2D83BA;
417
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
418
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
419
- opacity: 0.8;*/
420
- /*position: absolute;*/
421
- /*top: 50%;
422
- right: 10%;
423
- width: 40%;
424
- height: 350px;
425
- margin-top: -150px;*/
426
- overflow: hidden;
427
- }
428
-
429
- .wrapper.form-success .container h3 {
430
- -webkit-transform: translateY(85px);
431
- -ms-transform: translateY(85px);
432
- transform: translateY(85px);
433
- }
434
-
435
- .container {
436
- /*max-width: 350px;*/
437
- margin: 0 auto;
438
- /*padding: 30px 100px 50px 100px;
439
- height: 350px;*/
440
- text-align: center;
441
- /*以下增加*/
442
- /*background: #2D83BA;
443
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
444
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);*/
445
- opacity: 0.8;
446
- }
447
-
448
- .container h3 {
449
- font-size: 40px;
450
- -webkit-transition-duration: 1s;
451
- transition-duration: 1s;
452
- -webkit-transition-timing-function: ease-in-out;
453
- transition-timing-function: ease-in-out;
454
- font-weight: 200;
455
- }
456
-
457
- .form {
458
- padding: 20px 0;
459
- /*margin-top: 15%;*/
460
- position: relative;
461
- z-index: 2;
462
- }
463
-
464
- .form input {
465
- -webkit-appearance: none;
466
- -moz-appearance: none;
467
- appearance: none;
468
- outline: 0;
469
- border: 1px solid #50ABE6;
470
- background-color: #50ABE6;
471
- width: 250px;
472
- border-radius: 3px;
473
- padding: 10px 15px;
474
- margin: 0 auto 10px auto;
475
- display: block;
476
- text-align: center;
477
- font-size: 18px;
478
- color: white;
479
- -webkit-transition-duration: 0.25s;
480
- transition-duration: 0.25s;
481
- font-weight: 300;
482
- }
483
-
484
- .form input:hover {
485
- background-color: rgba(255, 255, 255, 0.4);
486
- }
487
-
488
- .form input:focus {
489
- background-color: white;
490
- width: 300px;
491
- color: #53e3a6;
492
- }
493
-
494
- .usericon {
495
- background-image: url(../../assets/usericon.png);
496
- background-repeat: no-repeat;
497
- background-size: 30px;
498
- background-position-x: 8px;
499
- background-position-y: 8px;
500
- }
501
-
502
- .psicon {
503
- background-image: url(../../assets/psicon.png);
504
- background-repeat: no-repeat;
505
- background-size: 30px;
506
- background-position-x: 8px;
507
- background-position-y: 8px;
508
- }
509
-
510
- .form button {
511
- -webkit-appearance: none;
512
- -moz-appearance: none;
513
- appearance: none;
514
- outline: 0;
515
- background-color: white;
516
- border: 0;
517
- padding: 10px 15px;
518
- color: #253830;
519
- border-radius: 3px;
520
- width: 250px;
521
- cursor: pointer;
522
- font-size: 18px;
523
- -webkit-transition-duration: 0.25s;
524
- transition-duration: 0.25s;
525
- }
526
-
527
- .form button:hover {
528
- background-color: #f5f7f9;
529
- }
530
-
531
- /*注册字体样式*/
532
- .form span {
533
- color: #fff;
534
- display: table-footer-group;
535
- position: absolute;
536
- right: 10px;
537
- margin-top: 10px;
538
- cursor: pointer;
539
- }
540
-
541
- .logotitle {
542
- color: #fff;
543
- position: absolute;
544
- top: 50px;
545
- left: 50px;
546
- font-size: 50px;
547
- }
548
-
549
- /*注册模态框界面样式*/
550
- .modifystyle {
551
- background: #FCFEEE;
552
- }
553
-
554
- .modifystyle div {
555
- height: auto;
556
- margin-bottom: 15px;
557
- /*text-align: center;*/
558
- /*margin-left: 20%;*/
559
- }
560
-
561
- /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
562
- .modifystyle div input + span {
563
- top: 0 !important;
564
- right: 32%;
565
- }
566
-
567
- .modifystyle span {
568
- color: red;
569
- }
570
-
571
- /* 通告区内容 */
572
- .notice-board {
573
- height: auto;
574
- position: absolute;
575
- top: 50%;
576
- margin-top: -150px;
577
- margin-left: 100px;
578
- color: #fff;
579
- }
580
-
581
- /*修改密码底部按钮部分样式*/
582
- .footerbtn {
583
- text-align: center;
584
- padding: 15px;
585
- }
586
-
587
- .footerbtn button {
588
- width: 100px;
589
- margin-left: 20px;
590
- }
591
-
592
- .bg-bubbles {
593
- position: absolute;
594
- top: 0;
595
- left: 0;
596
- width: 100%;
597
- height: 100%;
598
- z-index: 1;
599
- }
600
-
601
- .bg-bubbles li {
602
- position: absolute;
603
- list-style: none;
604
- display: block;
605
- width: 40px;
606
- height: 40px;
607
- background-color: rgba(255, 255, 255, 0.15);
608
- bottom: -160px;
609
- -webkit-animation: square 25s infinite;
610
- animation: square 25s infinite;
611
- -webkit-transition-timing-function: linear;
612
- transition-timing-function: linear;
613
- }
614
-
615
- .bg-bubbles li:nth-child(1) {
616
- left: 10%;
617
- }
618
-
619
- .bg-bubbles li:nth-child(2) {
620
- left: 20%;
621
- width: 80px;
622
- height: 80px;
623
- -webkit-animation-delay: 2s;
624
- animation-delay: 2s;
625
- -webkit-animation-duration: 17s;
626
- animation-duration: 17s;
627
- }
628
-
629
- .bg-bubbles li:nth-child(3) {
630
- left: 25%;
631
- -webkit-animation-delay: 4s;
632
- animation-delay: 4s;
633
- }
634
-
635
- .bg-bubbles li:nth-child(4) {
636
- left: 40%;
637
- width: 60px;
638
- height: 60px;
639
- -webkit-animation-duration: 22s;
640
- animation-duration: 22s;
641
- background-color: rgba(255, 255, 255, 0.25);
642
- }
643
-
644
- .bg-bubbles li:nth-child(5) {
645
- left: 70%;
646
- }
647
-
648
- .bg-bubbles li:nth-child(6) {
649
- left: 80%;
650
- width: 120px;
651
- height: 120px;
652
- -webkit-animation-delay: 3s;
653
- animation-delay: 3s;
654
- background-color: rgba(255, 255, 255, 0.2);
655
- }
656
-
657
- .bg-bubbles li:nth-child(7) {
658
- left: 32%;
659
- width: 160px;
660
- height: 160px;
661
- -webkit-animation-delay: 7s;
662
- animation-delay: 7s;
663
- }
664
-
665
- .bg-bubbles li:nth-child(8) {
666
- left: 55%;
667
- width: 20px;
668
- height: 20px;
669
- -webkit-animation-delay: 15s;
670
- animation-delay: 15s;
671
- -webkit-animation-duration: 40s;
672
- animation-duration: 40s;
673
- }
674
-
675
- .bg-bubbles li:nth-child(9) {
676
- left: 25%;
677
- width: 10px;
678
- height: 10px;
679
- -webkit-animation-delay: 2s;
680
- animation-delay: 2s;
681
- -webkit-animation-duration: 40s;
682
- animation-duration: 40s;
683
- background-color: rgba(255, 255, 255, 0.3);
684
- }
685
-
686
- .bg-bubbles li:nth-child(10) {
687
- left: 90%;
688
- width: 160px;
689
- height: 160px;
690
- -webkit-animation-delay: 11s;
691
- animation-delay: 11s;
692
- }
693
-
694
- @-webkit-keyframes square {
695
- 0% {
696
- -webkit-transform: translateY(0);
697
- transform: translateY(0);
698
- }
699
- 100% {
700
- -webkit-transform: translateY(-700px) rotate(600deg);
701
- transform: translateY(-700px) rotate(600deg);
702
- }
703
- }
704
-
705
- @keyframes square {
706
- 0% {
707
- -webkit-transform: translateY(0);
708
- transform: translateY(0);
709
- }
710
- 100% {
711
- -webkit-transform: translateY(-700px) rotate(600deg);
712
- transform: translateY(-700px) rotate(600deg);
713
- }
714
- }
715
-
716
- .loading {
717
- width: 36%;
718
- height: 7%;
719
- position: absolute;
720
- top: 30%;
721
- left: 32%;
722
- line-height: 56px;
723
- color: #fff;
724
- padding-left: 60px;
725
- font-size: 15px;
726
- background: #000 url(../../assets/loging.gif) no-repeat 10px 50%;
727
- opacity: 0.7;
728
- z-index: 9999;
729
- -moz-border-radius: 20px;
730
- -webkit-border-radius: 20px;
731
- border-radius: 20px;
732
- filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
733
- }
734
- </style>
1
+ <template>
2
+ <div class="loginbg" id="outheight">
3
+ <!--输入框-->
4
+ <div class="htmleaf-container">
5
+ <div class="wrapper" :class="{'form-success': login}">
6
+ <div class="container">
7
+ <h3 style="color:white; margin-top: 15px">欢迎使用</h3>
8
+ <p class="form" :style="{'margin-top': margintop + 'px'}">
9
+ <input type="text" v-model="ename" class="usericon"/>
10
+ <input :type="showpass==true?'text':'password'" v-model="password" class="psicon"/>
11
+ <img :src="imageurl"
12
+ style="width: 20px;margin-bottom: 5px;position: absolute;left: 62%;bottom: 43%;"
13
+ alt=""
14
+ @click="changepass()"/>
15
+ <button type="button" id="login-button" @click.prevent="confirm()"><strong>登录</strong></button>
16
+ </p>
17
+ <div class="row">
18
+ <img src="../../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave"
19
+ @click="showoff()">
20
+ <img src="../../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="!showsave"
21
+ @click="showon()">
22
+ <span class="text-left font">记住密码</span>
23
+ <img src="../../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '1'"
24
+ @click="showoff1()">
25
+ <img src="../../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '2'"
26
+ @click="showon1()">
27
+ <span class="text-left font">自动登录</span>
28
+ <p></p>
29
+ <span class="devicetext">设备码:{{ deviceIemi }}</span>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ <!--<load-appdata @ready="onReady"></load-appdata>-->
35
+ <div style="width: 100%;height: 100%;position: fixed;top: 0px;" v-show="loaderShow">
36
+ <div id="loading" class="loading">登陆中...</div>
37
+ </div>
38
+ <modal :show.sync="modifyPassword" backdrop="false">
39
+ <header slot="modal-header" class="modal-header">
40
+ </header>
41
+ <article slot="modal-body" class="modal-body">
42
+ <modify-pass-word :sourse="login" :weak-password="weakPassword" v-if="modifyPassword"
43
+ v-on:success="success"></modify-pass-word>
44
+ </article>
45
+ <footer slot="modal-footer" class="modal-footer">
46
+ </footer>
47
+ </modal>
48
+ </div>
49
+ </template>
50
+
51
+ <script>
52
+
53
+ /**
54
+ * 说明:
55
+ * /rs/vue 请求获取到的配置文件有关配置项目
56
+ * telephone.LoginApp.weakPassword:为true 是判断是否弱密码校验
57
+ *
58
+ * globle 校验参数 Device_IEMI 是否需要校验设备iemi编码
59
+ *
60
+ */
61
+
62
+
63
+ import Vue from 'vue'
64
+ import * as Util from '../../Util'
65
+ import JSEncrypt from 'jsencrypt'
66
+ //获取json配置文件
67
+ let asyncReady = async function (self, url) {
68
+ // 获取配置信息
69
+ try {
70
+ console.log("获取营收配置文件和参数【开始】")
71
+ await self.$appdata.load()
72
+ console.log("获取营收配置文件和参数【结束】,开始获取vue配置文件【开始】")
73
+ let that = self
74
+ let res = await Vue.resetget(`${url}/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
75
+ that.$set('config', res.data)
76
+ Vue.config2 = res.data
77
+ // 判断是否需要弱密码校验
78
+ if (self.config && self.config.telephone && self.config.telephone.LoginApp && "undefined" != typeof self.config.telephone.LoginApp.weakPassword) {
79
+ self.weakPassword = self.config.telephone.LoginApp.weakPassword
80
+ }
81
+ console.log("手机端获取.json文件")
82
+ console.log(JSON.stringify(self.config))
83
+ return true
84
+ } catch (error) {
85
+ // 此处业务数据装载异常不做任何处理,理论上不会有任何异常
86
+ self.$showMessage('登录失败!用户名或密码错误!')
87
+ return false
88
+ }
89
+ }
90
+
91
+ //装载业务数据
92
+ let asyncLoadData = async function (self, url) {
93
+ try {
94
+ // 读取报建本地配置文件
95
+ var result = HostApp.readLocalFile('workflow_apply.json')
96
+ if (result.code == 500) {
97
+ console.log('不存在流程配置文件,即不使用报建app')
98
+ return
99
+ }
100
+ var data = JSON.parse(result.data)
101
+ console.log('读取报建配置文件成功,存入缓存中的data=>' + JSON.stringify(data))
102
+ Vue.workflow_vue = Vue.prototype.$workflow_vue = data
103
+ } catch (error) {
104
+ // 此处业务数据装载异常不做任何处理,理论上不会有任何异常,只有当app版本端版本较低无readlocalfile时会异常
105
+ console.log(error)
106
+ }
107
+ }
108
+
109
+ export default {
110
+ title: '登录系统',
111
+ data() {
112
+ return {
113
+ loaderShow: false,
114
+ config: {},
115
+ weakPassword: false,
116
+ modifyPassword: false,
117
+ ename: '',
118
+ login: 'login',
119
+ password: '',
120
+ showsave: true,
121
+ showauto: '2', // 1 自动登陆 2取消自动登陆
122
+ showpass: false,
123
+ imageurl: require('../../assets/miwen.png'),
124
+ deviceIemi: '无法获取该设备码,请联系管理员',
125
+ loginSafe: false,
126
+ margintop: document.documentElement.clientHeight * 0.1
127
+ }
128
+ },
129
+
130
+ ready() {
131
+ if (Vue.android) {
132
+ const userCache = this.$androidUtil.getPreference('login_user_cache')
133
+ this.showauto = this.$androidUtil.getPreference('auto_login')
134
+ this.showauto = this.showauto ? this.showauto : '2'
135
+ console.log(`自动登陆标识ready:${this.showauto}`)
136
+ if (userCache) {
137
+ const userCacheJSON = JSON.parse(userCache.replace(/\'/g, '\"'))
138
+ this.password = userCacheJSON.password
139
+ this.ename = userCacheJSON.username
140
+ }
141
+ this.deviceIemi = this.$androidUtil.getDeviceIEMI()
142
+ console.log(`手机设备码:${this.deviceIemi}`)
143
+ if (this.showauto == '1' && this.password) {
144
+ this.confirm()
145
+ }
146
+ }
147
+ },
148
+ methods: {
149
+ success(val) {
150
+ // 修改密码成功
151
+ this.modifyPassword = false
152
+ this.password = val
153
+ },
154
+ // 对资源菜单进行排序
155
+ sortFunctions (val) {
156
+ this.sortArr(val)
157
+ val.forEach((item)=>{
158
+ if(item.children && Array.isArray(item.children)){
159
+ this.sortArr(item.children)
160
+ }
161
+ })
162
+ return val
163
+ },
164
+ sortArr(val){
165
+ val.sort((itemA, itemB)=>{
166
+ if(itemA.position !== itemB.position){
167
+ return itemA.position - itemB.position
168
+ }else{
169
+ return itemA.id - itemB.id
170
+ }
171
+ })
172
+ },
173
+ // 记住密码选中/未选中
174
+ showoff() {
175
+ this.showsave = false
176
+ },
177
+ showon() {
178
+ this.showsave = true
179
+ },
180
+ showoff1() {
181
+ this.showauto = '2'
182
+ },
183
+ showon1() {
184
+ this.showauto = '1'
185
+ },
186
+ changepass() {
187
+ this.showpass = this.showpass ? false : true
188
+ if (this.showpass) {
189
+ this.imageurl = require("../../assets/mingwen.png")
190
+ } else {
191
+ this.imageurl = require("../../assets/miwen.png")
192
+ }
193
+ },
194
+ async confirm() {
195
+ this.loaderShow = true
196
+ let ip ='';
197
+ const rest = await fetch(`${this.$androidUtil.getProxyUrl()}/rs/systemUrl/getIp`);
198
+ const ipData = await rest.json();
199
+ ip=ipData.ip;
200
+ const userData2 = {name: this.ename, password: this.password,ip: ip,device_type:'PHONE'}
201
+ await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getLogin`, userData2, {
202
+ resolveMsg: null,
203
+ rejectMsg: null
204
+ })
205
+ console.log('Vue.android:' + Vue.android)
206
+ const userData = {username: this.ename, password: this.password}
207
+ console.log('获取登陆信息:' + userData)
208
+ Vue.dataUrl = this.$androidUtil.getProxyUrl() + "/"
209
+ // rsa加密
210
+ let encrypt = new JSEncrypt();
211
+ encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
212
+ const userDataEncrypt = encrypt.encrypt(JSON.stringify(userData))
213
+ console.log("加密后的用户登录信息", userDataEncrypt)
214
+ try {
215
+ let ret = {}
216
+ try {
217
+ ret = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/user/userLogin/手机服务`, userDataEncrypt, {
218
+ resolveMsg: null,
219
+ rejectMsg: null
220
+ })
221
+ this.$androidUtil.setPreference('siteId', ret.data.f_extend1 || '')
222
+ this.$androidUtil.setPreference('flatId', ret.data.f_extend2 || '')
223
+ this.$androidUtil.setPreference('name', ret.data.name || '')
224
+ this.$androidUtil.setPreference('ename', ret.data.ename || '')
225
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code !== 200) {
226
+ throw {status: ret.data.code, message: ret.data.msg}
227
+ }
228
+ } catch (e) {
229
+ if (Vue.android) {
230
+ this.loaderShow = false
231
+ this.$showMessage('登录失败!用户名或密码错误!')
232
+ }
233
+ return
234
+ }
235
+
236
+ // 设置登录人
237
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
238
+ Vue.user = Util.f = ret.data.data
239
+ } else {
240
+ Vue.user = Util.f = ret.data
241
+ }
242
+
243
+ // 对资源菜单进行排序
244
+ let viewDetails = await Vue.resetpost(`${this.$androidUtil.getProxyUrl()}/rs/search`, {
245
+ source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($功能权限$) != -1)',
246
+ userid: Vue.user.id
247
+ }, {resolveMsg: null, rejectMsg: null})
248
+ const rithtList = viewDetails.data
249
+ Vue.user.r = []
250
+ rithtList.forEach(x => Vue.user.r.push(x.name))
251
+ // 功能排序
252
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
253
+ Vue.functions = this.sortFunctions(ret.data.data.functions)
254
+ } else {
255
+ Vue.functions = this.sortFunctions(ret.data.functions)
256
+ }
257
+ console.log('登陆人信息', JSON.stringify(Vue.user))
258
+ let userStr
259
+ if (Vue.android) {
260
+ console.log(`Device_IEMI:${this.$androidUtil.getPreference('Device_IEMI')}`)
261
+ // 判断是否需要验证 设备码
262
+ if (this.$androidUtil.getPreference('Device_IEMI')) {
263
+ console.log(`手机设备码:${this.deviceIemi}`)
264
+ let result = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
265
+ data: {
266
+ items: '*',
267
+ tablename: 't_equipment',
268
+ orderitem: 'id desc',
269
+ condition: `f_terminal_number = '${this.deviceIemi}' and f_state = '正常'`
270
+ }
271
+ }, {resolveMsg: null, rejectMsg: null})
272
+ console.log(`检测设备码存在是否:${result.data.length}`)
273
+ if (result.data.length == 0) {
274
+ HostApp.alert('设备码未绑定,请联系管理员!')
275
+ return
276
+ }
277
+ }
278
+ if (this.showsave) {
279
+ userStr = `{'username':'${this.ename}','password':'${this.password}'}`
280
+ } else {
281
+ userStr = `{'username':'${this.ename}','password':''}`
282
+ }
283
+ console.log(this.showauto)
284
+ this.$androidUtil.setPreference('login_user_cache', userStr)
285
+ this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
286
+ this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
287
+ this.$androidUtil.setPreference('f_orgid', Util.f.orgid)
288
+ this.$androidUtil.setPreference('f_role_name', Util.f.f_role_name || '')
289
+ console.log("自动登陆标识" + Util.f.f_role_name)
290
+ console.log(this.showauto)
291
+ this.$androidUtil.setPreference('auto_login', this.showauto)
292
+ }
293
+ // 设置当前登录人信息
294
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
295
+ Vue.$login = Vue.prototype.$login = {jwt: ret.data.data.id,
296
+ toStandardDateString () {
297
+ let dt = new Date()
298
+ let month = dt.getMonth() + 1
299
+ let date = dt.getDate()
300
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
301
+ }, toStandardTimeString () {
302
+ let dt = new Date()
303
+ let month = dt.getMonth()+1
304
+ let date = dt.getDate()
305
+ let hour = dt.getHours()
306
+ let min = dt.getMinutes()
307
+ let sec = dt.getSeconds()
308
+ return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
309
+ + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
310
+ }}
311
+ } else {
312
+ Vue.$login = Vue.prototype.$login = {jwt: ret.data.id,
313
+ toStandardDateString () {
314
+ let dt = new Date()
315
+ let month = dt.getMonth() + 1
316
+ let date = dt.getDate()
317
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
318
+ }, toStandardTimeString () {
319
+ let dt = new Date()
320
+ let month = dt.getMonth()+1
321
+ let date = dt.getDate()
322
+ let hour = dt.getHours()
323
+ let min = dt.getMinutes()
324
+ let sec = dt.getSeconds()
325
+ return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
326
+ + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
327
+ }}
328
+ }
329
+ // 获取参数
330
+ console.log('获取参数system以及安检参数')
331
+ const flag = await asyncReady(this, this.$androidUtil.getProxyUrl())
332
+ if (!flag) {
333
+ this.loaderShow = false
334
+ console.log('获取参数异常')
335
+ return
336
+ }
337
+ console.log('获取参数结束')
338
+ this.loaderShow = false
339
+ // 弱口令验证
340
+ if (this.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(this.password))) {
341
+ await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
342
+ this.modifyPassword = true
343
+ return
344
+ }
345
+ this.$goto('nav-bottom')
346
+ } catch (e) {
347
+ if (Vue.android) {
348
+ this.loaderShow = false
349
+ }
350
+ this.$showMessage("登录失败!用户名或密码错误!")
351
+ }
352
+ },
353
+ },
354
+ watch: {
355
+ 'config'(val) {
356
+ Vue.config = val
357
+ }
358
+ }
359
+ }
360
+ </script>
361
+ <style scoped="">
362
+ .devicetext {
363
+ font: 13px PingFang-SC-Medium;
364
+ position: fixed;
365
+ width: 100%;
366
+ bottom: 13px;
367
+ transform: translate(-50%, -50%);
368
+ }
369
+
370
+ /*输入框样式*/
371
+ /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
372
+ * {
373
+ box-sizing: border-box;
374
+ margin: 0;
375
+ padding: 0;
376
+ font-weight: 300;
377
+ }
378
+
379
+ .loginbg {
380
+ font-family: 'Source Sans Pro', sans-serif;
381
+ color: white;
382
+ font-weight: 300;
383
+ }
384
+
385
+ .loginbg ::-webkit-input-placeholder {
386
+ /* WebKit browsers */
387
+ font-family: 'Source Sans Pro', sans-serif;
388
+ color: white;
389
+ font-weight: 300;
390
+ }
391
+
392
+ .loginbg :-moz-placeholder {
393
+ /* Mozilla Firefox 4 to 18 */
394
+ font-family: 'Source Sans Pro', sans-serif;
395
+ color: white;
396
+ opacity: 1;
397
+ font-weight: 300;
398
+ }
399
+
400
+ .loginbg ::-moz-placeholder {
401
+ /* Mozilla Firefox 19+ */
402
+ font-family: 'Source Sans Pro', sans-serif;
403
+ color: white;
404
+ opacity: 1;
405
+ font-weight: 300;
406
+ }
407
+
408
+ .loginbg :-ms-input-placeholder {
409
+ /* Internet Explorer 10+ */
410
+ font-family: 'Source Sans Pro', sans-serif;
411
+ color: white;
412
+ font-weight: 300;
413
+ }
414
+
415
+ .wrapper {
416
+ /*background: #2D83BA;
417
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
418
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
419
+ opacity: 0.8;*/
420
+ /*position: absolute;*/
421
+ /*top: 50%;
422
+ right: 10%;
423
+ width: 40%;
424
+ height: 350px;
425
+ margin-top: -150px;*/
426
+ overflow: hidden;
427
+ }
428
+
429
+ .wrapper.form-success .container h3 {
430
+ -webkit-transform: translateY(85px);
431
+ -ms-transform: translateY(85px);
432
+ transform: translateY(85px);
433
+ }
434
+
435
+ .container {
436
+ /*max-width: 350px;*/
437
+ margin: 0 auto;
438
+ /*padding: 30px 100px 50px 100px;
439
+ height: 350px;*/
440
+ text-align: center;
441
+ /*以下增加*/
442
+ /*background: #2D83BA;
443
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
444
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);*/
445
+ opacity: 0.8;
446
+ }
447
+
448
+ .container h3 {
449
+ font-size: 40px;
450
+ -webkit-transition-duration: 1s;
451
+ transition-duration: 1s;
452
+ -webkit-transition-timing-function: ease-in-out;
453
+ transition-timing-function: ease-in-out;
454
+ font-weight: 200;
455
+ }
456
+
457
+ .form {
458
+ padding: 20px 0;
459
+ /*margin-top: 15%;*/
460
+ position: relative;
461
+ z-index: 2;
462
+ }
463
+
464
+ .form input {
465
+ -webkit-appearance: none;
466
+ -moz-appearance: none;
467
+ appearance: none;
468
+ outline: 0;
469
+ border: 1px solid #50ABE6;
470
+ background-color: #50ABE6;
471
+ width: 250px;
472
+ border-radius: 3px;
473
+ padding: 10px 15px;
474
+ margin: 0 auto 10px auto;
475
+ display: block;
476
+ text-align: center;
477
+ font-size: 18px;
478
+ color: white;
479
+ -webkit-transition-duration: 0.25s;
480
+ transition-duration: 0.25s;
481
+ font-weight: 300;
482
+ }
483
+
484
+ .form input:hover {
485
+ background-color: rgba(255, 255, 255, 0.4);
486
+ }
487
+
488
+ .form input:focus {
489
+ background-color: white;
490
+ width: 300px;
491
+ color: #53e3a6;
492
+ }
493
+
494
+ .usericon {
495
+ background-image: url(../../assets/usericon.png);
496
+ background-repeat: no-repeat;
497
+ background-size: 30px;
498
+ background-position-x: 8px;
499
+ background-position-y: 8px;
500
+ }
501
+
502
+ .psicon {
503
+ background-image: url(../../assets/psicon.png);
504
+ background-repeat: no-repeat;
505
+ background-size: 30px;
506
+ background-position-x: 8px;
507
+ background-position-y: 8px;
508
+ }
509
+
510
+ .form button {
511
+ -webkit-appearance: none;
512
+ -moz-appearance: none;
513
+ appearance: none;
514
+ outline: 0;
515
+ background-color: white;
516
+ border: 0;
517
+ padding: 10px 15px;
518
+ color: #253830;
519
+ border-radius: 3px;
520
+ width: 250px;
521
+ cursor: pointer;
522
+ font-size: 18px;
523
+ -webkit-transition-duration: 0.25s;
524
+ transition-duration: 0.25s;
525
+ }
526
+
527
+ .form button:hover {
528
+ background-color: #f5f7f9;
529
+ }
530
+
531
+ /*注册字体样式*/
532
+ .form span {
533
+ color: #fff;
534
+ display: table-footer-group;
535
+ position: absolute;
536
+ right: 10px;
537
+ margin-top: 10px;
538
+ cursor: pointer;
539
+ }
540
+
541
+ .logotitle {
542
+ color: #fff;
543
+ position: absolute;
544
+ top: 50px;
545
+ left: 50px;
546
+ font-size: 50px;
547
+ }
548
+
549
+ /*注册模态框界面样式*/
550
+ .modifystyle {
551
+ background: #FCFEEE;
552
+ }
553
+
554
+ .modifystyle div {
555
+ height: auto;
556
+ margin-bottom: 15px;
557
+ /*text-align: center;*/
558
+ /*margin-left: 20%;*/
559
+ }
560
+
561
+ /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
562
+ .modifystyle div input + span {
563
+ top: 0 !important;
564
+ right: 32%;
565
+ }
566
+
567
+ .modifystyle span {
568
+ color: red;
569
+ }
570
+
571
+ /* 通告区内容 */
572
+ .notice-board {
573
+ height: auto;
574
+ position: absolute;
575
+ top: 50%;
576
+ margin-top: -150px;
577
+ margin-left: 100px;
578
+ color: #fff;
579
+ }
580
+
581
+ /*修改密码底部按钮部分样式*/
582
+ .footerbtn {
583
+ text-align: center;
584
+ padding: 15px;
585
+ }
586
+
587
+ .footerbtn button {
588
+ width: 100px;
589
+ margin-left: 20px;
590
+ }
591
+
592
+ .bg-bubbles {
593
+ position: absolute;
594
+ top: 0;
595
+ left: 0;
596
+ width: 100%;
597
+ height: 100%;
598
+ z-index: 1;
599
+ }
600
+
601
+ .bg-bubbles li {
602
+ position: absolute;
603
+ list-style: none;
604
+ display: block;
605
+ width: 40px;
606
+ height: 40px;
607
+ background-color: rgba(255, 255, 255, 0.15);
608
+ bottom: -160px;
609
+ -webkit-animation: square 25s infinite;
610
+ animation: square 25s infinite;
611
+ -webkit-transition-timing-function: linear;
612
+ transition-timing-function: linear;
613
+ }
614
+
615
+ .bg-bubbles li:nth-child(1) {
616
+ left: 10%;
617
+ }
618
+
619
+ .bg-bubbles li:nth-child(2) {
620
+ left: 20%;
621
+ width: 80px;
622
+ height: 80px;
623
+ -webkit-animation-delay: 2s;
624
+ animation-delay: 2s;
625
+ -webkit-animation-duration: 17s;
626
+ animation-duration: 17s;
627
+ }
628
+
629
+ .bg-bubbles li:nth-child(3) {
630
+ left: 25%;
631
+ -webkit-animation-delay: 4s;
632
+ animation-delay: 4s;
633
+ }
634
+
635
+ .bg-bubbles li:nth-child(4) {
636
+ left: 40%;
637
+ width: 60px;
638
+ height: 60px;
639
+ -webkit-animation-duration: 22s;
640
+ animation-duration: 22s;
641
+ background-color: rgba(255, 255, 255, 0.25);
642
+ }
643
+
644
+ .bg-bubbles li:nth-child(5) {
645
+ left: 70%;
646
+ }
647
+
648
+ .bg-bubbles li:nth-child(6) {
649
+ left: 80%;
650
+ width: 120px;
651
+ height: 120px;
652
+ -webkit-animation-delay: 3s;
653
+ animation-delay: 3s;
654
+ background-color: rgba(255, 255, 255, 0.2);
655
+ }
656
+
657
+ .bg-bubbles li:nth-child(7) {
658
+ left: 32%;
659
+ width: 160px;
660
+ height: 160px;
661
+ -webkit-animation-delay: 7s;
662
+ animation-delay: 7s;
663
+ }
664
+
665
+ .bg-bubbles li:nth-child(8) {
666
+ left: 55%;
667
+ width: 20px;
668
+ height: 20px;
669
+ -webkit-animation-delay: 15s;
670
+ animation-delay: 15s;
671
+ -webkit-animation-duration: 40s;
672
+ animation-duration: 40s;
673
+ }
674
+
675
+ .bg-bubbles li:nth-child(9) {
676
+ left: 25%;
677
+ width: 10px;
678
+ height: 10px;
679
+ -webkit-animation-delay: 2s;
680
+ animation-delay: 2s;
681
+ -webkit-animation-duration: 40s;
682
+ animation-duration: 40s;
683
+ background-color: rgba(255, 255, 255, 0.3);
684
+ }
685
+
686
+ .bg-bubbles li:nth-child(10) {
687
+ left: 90%;
688
+ width: 160px;
689
+ height: 160px;
690
+ -webkit-animation-delay: 11s;
691
+ animation-delay: 11s;
692
+ }
693
+
694
+ @-webkit-keyframes square {
695
+ 0% {
696
+ -webkit-transform: translateY(0);
697
+ transform: translateY(0);
698
+ }
699
+ 100% {
700
+ -webkit-transform: translateY(-700px) rotate(600deg);
701
+ transform: translateY(-700px) rotate(600deg);
702
+ }
703
+ }
704
+
705
+ @keyframes square {
706
+ 0% {
707
+ -webkit-transform: translateY(0);
708
+ transform: translateY(0);
709
+ }
710
+ 100% {
711
+ -webkit-transform: translateY(-700px) rotate(600deg);
712
+ transform: translateY(-700px) rotate(600deg);
713
+ }
714
+ }
715
+
716
+ .loading {
717
+ width: 36%;
718
+ height: 7%;
719
+ position: absolute;
720
+ top: 30%;
721
+ left: 32%;
722
+ line-height: 56px;
723
+ color: #fff;
724
+ padding-left: 60px;
725
+ font-size: 15px;
726
+ background: #000 url(../../assets/loging.gif) no-repeat 10px 50%;
727
+ opacity: 0.7;
728
+ z-index: 9999;
729
+ -moz-border-radius: 20px;
730
+ -webkit-border-radius: 20px;
731
+ border-radius: 20px;
732
+ filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
733
+ }
734
+ </style>