system-clients 3.2.0 → 3.2.1-10-kelai

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.
@@ -6,8 +6,8 @@
6
6
  <div class="login-title-chi" style="white-space: nowrap;margin-right:-5%">
7
7
  <img src="../../../static/newStyle/login-info.png"/>
8
8
  <span @click="showus=true">关于我们</span>
9
- <!-- <img src="../../../static/newStyle/login-con.png"/>-->
10
- <!-- <span>联系我们</span>-->
9
+ <!-- <img src="../../../static/newStyle/login-con.png"/>-->
10
+ <!-- <span>联系我们</span>-->
11
11
  </div>
12
12
  </div>
13
13
  </div>
@@ -113,622 +113,648 @@
113
113
  </template>
114
114
 
115
115
  <script>
116
- import co from 'co'
117
- import $ from 'jquery'
118
- import Vue from 'vue'
119
- import {HttpResetClass} from 'vue-client'
116
+ import co from 'co'
117
+ import $ from 'jquery'
118
+ import Vue from 'vue'
119
+ import {HttpResetClass} from 'vue-client'
120
120
 
121
121
 
122
122
 
123
- let saveGen = function *(self) {
124
- try {
123
+ let saveGen = function *(self) {
124
+ try {
125
+ if(self.$login){
125
126
  yield self.$login.login(self.model.ename, self.model.password)
127
+ }
128
+ if(self.$appdata){
126
129
  yield self.$appdata.load()
127
130
 
128
- if (Vue.$heatCompatibility) {
129
- try {
131
+ }
132
+ if (Vue.$heatCompatibility) {
133
+ try {
134
+ if(self.$loginHeat){
130
135
  yield self.$loginHeat.login(self.model.ename, self.model.password)
136
+ }
137
+ if(self.$appdataHeat){
131
138
  yield self.$appdataHeat.load()
132
- } catch (e) {
133
- console.log('热力系统登陆失败!')
134
139
  }
140
+ } catch (e) {
141
+ console.log('热力系统登陆失败!')
135
142
  }
136
-
137
- yield self.$getConfig(self, 'Login')
138
- console.log('登录配置', self.config)
139
- if (self.config.isMac) {
140
- // 获取该登录人分公司下的mac配置
141
- let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
142
- resolveMsg: null,
143
- rejectMsg: null
144
- }).catch(() => {
145
- throw new Error('获取mac配置失败')
146
- })
147
- console.log('MAC地址信息', getMacs)
148
- // 获取本地mac地址
149
- let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
150
- resolveMsg: null,
151
- rejectMsg: null
152
- }).catch(() => {
153
- throw new Error('获取本地mac配置失败')
154
- })
155
- console.log('本地MAC地址信息', getLocalMac)
156
- // 对Mac地址进行匹配
157
- let macValidate = false
158
- for (let i = 0; i < getLocalMac.data.mac.length; i++) {
159
- for (let j = 0; j < getMacs.data.length; j++) {
160
- if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
161
- macValidate = true
162
- }
143
+ }
144
+ //吴小平
145
+ // yield self.$getConfig(self, 'Login')
146
+ console.log('登录配置', self.config)
147
+ if (self.config.isMac) {
148
+ // 获取该登录人分公司下的mac配置
149
+ let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
150
+ resolveMsg: null,
151
+ rejectMsg: null
152
+ }).catch(() => {
153
+ throw new Error('获取mac配置失败')
154
+ })
155
+ console.log('MAC地址信息', getMacs)
156
+ // 获取本地mac地址
157
+ let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
158
+ resolveMsg: null,
159
+ rejectMsg: null
160
+ }).catch(() => {
161
+ throw new Error('获取本地mac配置失败')
162
+ })
163
+ console.log('本地MAC地址信息', getLocalMac)
164
+ // 对Mac地址进行匹配
165
+ let macValidate = false
166
+ for (let i = 0; i < getLocalMac.data.mac.length; i++) {
167
+ for (let j = 0; j < getMacs.data.length; j++) {
168
+ if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
169
+ macValidate = true
163
170
  }
164
171
  }
165
- if (!macValidate) {
166
- throw new Error('Mac地址验证失败, 请联系管理员!!')
167
- }
168
172
  }
169
- // 弱口令验证
170
- if (self.config.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(self.model.password))) {
171
- self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
172
- self.modifyPwShow = true
173
- })
174
- } else if (self.config.depPrompt) {
175
- self.depPromptShow = true
176
- } else {
177
- self.$goto('home-page', {functions: self.$login.f})
178
- if (self.$login) {
179
- console.log('登录信息', self.$login.f)
180
- global.login=self.$login.f
181
- console.log('登录信息', global.login)
182
- }
173
+ if (!macValidate) {
174
+ throw new Error('Mac地址验证失败, 请联系管理员!!')
183
175
  }
184
-
185
- } catch (ret) {
186
- console.error('登录失败', ret)
187
- let msg
188
- if (ret instanceof Error) {
189
- msg = ret
176
+ }
177
+ // 弱口令验证
178
+ //跳转过来的不进行验证
179
+ if ((!self.otherLogin) && self.config.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(self.model.password))) {
180
+ self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
181
+ self.modifyPwShow = true
182
+ })
183
+ } else if ((!self.otherLogin) && self.config.depPrompt) {
184
+ self.depPromptShow = true
185
+ } else {
186
+ self.$goto('home-page', {functions: self.$login.f})
187
+ // if (self.otherLogin){
188
+ // window.history.pushState(null,null,'')
189
+ // }
190
+ if (self.$login) {
191
+ console.log('登录信息', self.$login.f)
192
+ global.login=self.$login.f
193
+ console.log('登录信息', global.login)
190
194
  }
191
- if (ret.status === 0) {
192
- msg = '服务连接错误,请确认服务状态'
193
- } else if (ret.status === 401) {
194
- msg = ret.data
195
- } else if (ret.status === 710) {
196
- msg = ret.data
195
+ }
196
+
197
+ } catch (ret) {
198
+ console.error('登录失败', ret)
199
+ let msg
200
+ if (ret instanceof Error) {
201
+ msg = ret
202
+ }
203
+ if (ret.status === 0) {
204
+ msg = '服务连接错误,请确认服务状态'
205
+ } else if (ret.status === 401) {
206
+ msg = ret.data
207
+ } else if (ret.status === 710) {
208
+ msg = ret.data
209
+ }
210
+ self.createCode()
211
+ self.picLyanzhengma = ''
212
+ yield self.$showMessage(msg)
213
+ self.model.ename = ''
214
+ self.model.password = ''
215
+ self.login = false
216
+ $('form').fadeIn(500)
217
+ }
218
+ }
219
+ export default {
220
+ title: '登录',
221
+ async ready () {
222
+ try{
223
+ let http = new HttpResetClass()
224
+ let res = await http.load('POST', 'rs/sql/singleTable',
225
+ {data:{
226
+ tablename: 't_changedeclare',
227
+ condition: ` f_type ='变更通知' `
228
+ }
229
+ }, {resolveMsg: null, rejectMsg: null})
230
+ if(res.data.length>0){
231
+ console.log("---------------获取通知",res.data[0].f_change_message)
232
+ this.notice=res.data[0].f_change_message
197
233
  }
198
- self.createCode()
199
- self.picLyanzhengma = ''
200
- yield self.$showMessage(msg)
201
- self.model.ename = ''
202
- self.model.password = ''
203
- self.login = false
204
- $('form').fadeIn(500)
234
+ }catch(e){}
235
+
236
+ this.loginother();
237
+ $('#login-button').click(function (event) {
238
+ event.preventDefault()
239
+ $('form').fadeOut(500)
240
+ })
241
+ if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
242
+ const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
243
+ console.log(subUrl)
244
+ this.model.ename = window.atob(subUrl[0])
245
+ this.model.password = window.atob(subUrl[1])
246
+ console.log('this.model.ename',this.model.ename)
247
+ this.otherLogin = true
248
+ this.confirm()
249
+ }else{
250
+ //跳转不需要验证码
251
+ this.createCode()
205
252
  }
206
- }
207
- export default {
208
- title: '登录',
209
- async ready () {
210
- try{
211
- let http = new HttpResetClass()
212
- let res = await http.load('POST', 'rs/sql/singleTable',
213
- {data:{
214
- tablename: 't_changedeclare',
215
- condition: ` f_type ='变更通知' `
253
+ },
254
+ data () {
255
+ return {
256
+ image:{
257
+ img1: '/images/newStyle/login-info.png',
258
+ img2: '/images/newStyle/login-con.png',
259
+ img3: '/images/newStyle/login-left.png',
260
+ img4: '/images/newStyle/login-user.png',
261
+ img5: '/images/newStyle/login-pwd.png',
262
+ img6: '/images/newStyle/login-check.png',
263
+ img7: '/images/newStyle/login-do.png',
264
+ },
265
+ config: {
266
+ isMac: false,
267
+ depPrompt: false,
268
+ weakPassword: false,
269
+ title: '燃气客服系统',
270
+ distanceLogin: false
271
+ },
272
+ otherLogin:false,
273
+ login: false,
274
+ depPromptShow: false,
275
+ model: {},
276
+ show: false,
277
+ checkCode: '',
278
+ login_do:true,
279
+ picLyanzhengma: '',
280
+ // 修改密码弹框展示
281
+ modifyPwShow: false,
282
+ logoandroid:false,
283
+ showus:false,
284
+ notice:'',
285
+ loginotherflag :true
286
+ }
287
+ },
288
+ methods: {
289
+ async loginother(){
290
+ if (this.config.distanceLogin) {
291
+ if (this.$login && this.$login.getUrlParames('name') ) {
292
+ let ename = this.$login.getUrlParames('name');
293
+ let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
294
+ if(logininfo.data){
295
+ if(logininfo.data.ename && logininfo.data.password){
296
+ this.model.ename = logininfo.data.ename
297
+ this.model.password =logininfo.data.password
298
+ let gen = saveGen(this)
299
+ return co(gen)
216
300
  }
217
- }, {resolveMsg: null, rejectMsg: null})
218
- if(res.data.length>0){
219
- console.log("---------------获取通知",res.data[0].f_change_message)
220
- this.notice=res.data[0].f_change_message
301
+ }
221
302
  }
222
- }catch(e){}
223
- this.loginother();
224
- $('#login-button').click(function (event) {
225
- event.preventDefault()
226
- $('form').fadeOut(500)
227
- }),
228
- this.createCode()
229
- },
230
- data () {
231
- return {
232
- image:{
233
- img1: '/images/newStyle/login-info.png',
234
- img2: '/images/newStyle/login-con.png',
235
- img3: '/images/newStyle/login-left.png',
236
- img4: '/images/newStyle/login-user.png',
237
- img5: '/images/newStyle/login-pwd.png',
238
- img6: '/images/newStyle/login-check.png',
239
- img7: '/images/newStyle/login-do.png',
240
- },
241
- config: {
242
- isMac: false,
243
- depPrompt: false,
244
- weakPassword: false,
245
- title: '燃气客服系统',
246
- distanceLogin: false
247
- },
248
- login: false,
249
- depPromptShow: false,
250
- model: {},
251
- show: false,
252
- checkCode: '',
253
- login_do:true,
254
- picLyanzhengma: '',
255
- // 修改密码弹框展示
256
- modifyPwShow: false,
257
- logoandroid:false,
258
- showus:false,
259
- notice:'',
260
- loginotherflag :true
261
303
  }
262
304
  },
263
- methods: {
264
- async loginother(){
265
- if (this.config.distanceLogin) {
266
- if (this.$login && this.$login.getUrlParames('name') ) {
267
- let ename = this.$login.getUrlParames('name');
268
- let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
269
- if(logininfo.data){
270
- if(logininfo.data.ename && logininfo.data.password){
271
- this.model.ename = logininfo.data.ename
272
- this.model.password =logininfo.data.password
273
- let gen = saveGen(this)
274
- return co(gen)
275
- }
276
- }
277
- }
278
- }
279
- },
280
- theme(){
281
- // var elementList = document.querySelectorAll('body');
282
- // console.log(elementList)
283
- // document.querySelectorAll('body')[0].className='themeTwo'
284
- // var elementList = document.querySelectorAll('body');
285
- // console.log(elementList)
286
- },
287
- onReady () {
288
- this.$emit('ready')
289
- },
290
- confirm (key) {
291
- this.login_do=!this.login_do
292
- // return
293
- if (key == 'key') {
294
- $('form').fadeOut(500)
295
- }
296
- this.login = true
297
- // let gen = saveGen(this)
298
- // return co(gen)
299
- if(this.$login.Verification){
300
- if(this.picLyanzhengma == '') {
301
- this.$showMessage("请输入验证码!").then(()=>{
302
- this.login = false
303
- $('form').fadeIn(500)
304
- this.createCode()
305
- })
306
- }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
307
- //若输入的验证码与产生的验证码不一致时
308
- this.$showMessage("验证码不正确").then(()=>{
309
- this.login = false
310
- $('form').fadeIn(500)
311
- this.createCode();//刷新验证码
312
- this.picLyanzhengma = '';
313
- })
314
- }else {
315
- this.login = true
316
- let gen = saveGen(this)
317
- return co(gen)
318
- }
305
+ theme(){
306
+ // var elementList = document.querySelectorAll('body');
307
+ // console.log(elementList)
308
+ // document.querySelectorAll('body')[0].className='themeTwo'
309
+ // var elementList = document.querySelectorAll('body');
310
+ // console.log(elementList)
311
+ },
312
+ onReady () {
313
+ this.$emit('ready')
314
+ },
315
+ confirm (key) {
316
+ this.login_do=!this.login_do
317
+ // return
318
+ if (key == 'key') {
319
+ $('form').fadeOut(500)
320
+ }
321
+ this.login = true
322
+ // let gen = saveGen(this)
323
+ // return co(gen)
324
+ if((!this.otherLogin) && this.$login && this.$login.Verification){
325
+ console.log('跳转过来的不走验证')
326
+ if(this.picLyanzhengma == '') {
327
+ this.$showMessage("请输入验证码!").then(()=>{
328
+ this.login = false
329
+ $('form').fadeIn(500)
330
+ this.createCode()
331
+ })
332
+ }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
333
+ //若输入的验证码与产生的验证码不一致时
334
+ this.$showMessage("验证码不正确").then(()=>{
335
+ this.login = false
336
+ $('form').fadeIn(500)
337
+ this.createCode();//刷新验证码
338
+ this.picLyanzhengma = '';
339
+ })
319
340
  }else {
320
341
  this.login = true
321
342
  let gen = saveGen(this)
322
343
  return co(gen)
323
344
  }
324
- },
325
- createCode(){
326
- let code = "";
327
- let codeLength = 4;//验证码的长度
328
- let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
329
- 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
330
- for (let i = 0; i < codeLength; i++) {
331
- //循环操作
332
- let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
333
- code += random[index];//根据索引取得随机数加到code上
334
- }
335
- this.checkCode = code;//把code值赋给验证码
336
- },
337
-
338
- async depPromptConfirm () {
339
- this.depPromptShow = false
340
- return this.$goto('home-page', {functions: this.$login.f})
341
- },
342
-
343
- depPromptCancel () {
344
- this.depPromptShow = false
345
- this.createCode()
346
- this.picLyanzhengma = ''
347
- this.model.ename = ''
348
- this.model.password = ''
349
- this.login = false
350
- $('form').fadeIn(500)
345
+ }else {
346
+ this.login = true
347
+ let gen = saveGen(this)
348
+ return co(gen)
351
349
  }
352
350
  },
353
- watch: {
354
- 'modifyPwShow' (val){
355
- if (!val) {
356
- window.location.reload()
357
- }
351
+ createCode(){
352
+ let code = "";
353
+ let codeLength = 4;//验证码的长度
354
+ let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
355
+ 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
356
+ for (let i = 0; i < codeLength; i++) {
357
+ //循环操作
358
+ let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
359
+ code += random[index];//根据索引取得随机数加到code上
358
360
  }
359
- }
360
- }
361
- </script>
362
-
363
- <style>
364
-
365
- /*输入框样式*/
366
- /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
367
- * {
368
- box-sizing: border-box;
369
- margin: 0;
370
- padding: 0;
371
- font-weight: 400;
372
- outline: none;
373
- }
374
-
375
- body {
376
- font-family: 'Source Sans Pro', sans-serif;
377
- color: white;
378
- font-weight: 400;
379
- }
380
-
381
- body ::-webkit-input-placeholder {
382
- /* WebKit browsers */
383
- font-family: 'Source Sans Pro', sans-serif;
384
- color: white;
385
- font-weight: 400;
386
- }
387
-
388
- body :-moz-placeholder {
389
- /* Mozilla Firefox 4 to 18 */
390
- font-family: 'Source Sans Pro', sans-serif;
391
- color: white;
392
- opacity: 1;
393
- font-weight: 400;
394
- }
395
-
396
- body ::-moz-placeholder {
397
- /* Mozilla Firefox 19+ */
398
- font-family: 'Source Sans Pro', sans-serif;
399
- color: white;
400
- opacity: 1;
401
- font-weight: 400;
402
- }
403
-
404
- body :-ms-input-placeholder {
405
- /* Internet Explorer 10+ */
406
- font-family: 'Source Sans Pro', sans-serif;
407
- color: white;
408
- font-weight: 400;
409
- }
410
-
411
- .wrapper {
412
- /*background: #2D83BA;
413
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
414
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
415
- opacity: 0.8;*/
416
- position: absolute;
417
- top: 50%;
418
- right: -60px;
419
- width: 40%;
420
- height: 400px;
421
- margin-top: -150px;
422
- overflow: hidden;
423
-
424
- }
425
-
426
- .wrapper.form-success .container h3 {
427
- -webkit-transform: translateY(85px);
428
- -ms-transform: translateY(85px);
429
- transform: translateY(85px);
430
- }
431
-
432
- .container {
433
- max-width: 350px;
434
- margin: 0 auto;
435
- padding: 30px 100px 50px 100px;
436
- height: 400px;
437
- text-align: center;
438
- /*以下增加*/
439
- background: #2D83BA;
440
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
441
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
442
- opacity: 0.8;
443
- }
444
-
445
- .container h3 {
446
- font-size: 40px;
447
- -webkit-transition-duration: 1s;
448
- transition-duration: 1s;
449
- -webkit-transition-timing-function: ease-in-put;
450
- transition-timing-function: ease-in-put;
451
- font-weight: 200;
452
- }
453
-
454
- .form {
455
- padding: 20px 0;
456
- position: relative;
457
- z-index: 2;
458
- }
459
-
460
- .form input {
461
- -webkit-appearance: none;
462
- -moz-appearance: none;
463
- appearance: none;
464
- outline: 0;
465
- border: 1px solid #50ABE6;
466
- background-color: #50ABE6;
467
- width: 250px;
468
- border-radius: 3px;
469
- padding: 10px 15px;
470
- margin: 0 auto 10px auto;
471
- display: block;
472
- text-align: center;
473
- font-size: 18px;
474
- color: white;
475
- -webkit-transition-duration: 0.25s;
476
- transition-duration: 0.25s;
477
- font-weight: 400;
478
- }
479
-
480
- .form input:hover {
481
- background-color: rgba(255, 255, 255, 0.4);
482
- }
483
-
484
- .form input:focus {
485
- background-color: white;
486
- width: 300px;
487
- color: #53e3a6;
488
- }
489
-
490
- .usericon {
491
- background-image: url(../../../static/usericon.png);
492
- background-repeat: no-repeat;
493
- background-size: 30px;
494
- background-position-x: 8px;
495
- background-position-y: 8px;
496
- }
497
-
498
- .psicon {
499
- background-image: url(../../../static/psicon.png);
500
- background-repeat: no-repeat;
501
- background-size: 30px;
502
- background-position-x: 8px;
503
- background-position-y: 8px;
504
- }
505
-
506
- .form button {
507
- -webkit-appearance: none;
508
- -moz-appearance: none;
509
- appearance: none;
510
- outline: 0;
511
- background-color: white;
512
- border: 0;
513
- padding: 10px 15px;
514
- color: #253830;
515
- border-radius: 3px;
516
- width: 250px;
517
- cursor: pointer;
518
- font-size: 18px;
519
- -webkit-transition-duration: 0.25s;
520
- transition-duration: 0.25s;
521
- }
522
-
523
- .form button:hover {
524
- background-color: #f5f7f9;
525
- }
526
-
527
- /*注册字体样式*/
528
- .form span {
529
- color: #fff;
530
- display: table-footer-group;
531
- position: absolute;
532
- right: 10px;
533
- margin-top: 10px;
534
- cursor: pointer;
535
- }
536
-
537
- .logotitle {
538
- color: #fff;
539
- position: absolute;
540
- top: 50px;
541
- left: 50px;
542
- font-size: 50px;
543
- }
544
-
545
- /*注册模态框界面样式*/
546
- .modifystyle {
547
- background: #FCFEEE;
548
- }
549
-
550
- .modifystyle div {
551
- height: auto;
552
- margin-bottom: 15px;
553
- /*text-align: center;*/
554
- /*margin-left: 20%;*/
555
- }
556
-
557
- /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
558
- .modifystyle div input + span {
559
- top: 0 !important;
560
- right: 32%;
561
- }
562
-
563
- .modifystyle span {
564
- color: red;
565
- }
566
-
567
- /* 通告区内容 */
568
- .notice-board {
569
- height: auto;
570
- position: absolute;
571
- top: 50%;
572
- margin-top: -150px;
573
- margin-left: 100px;
574
- color: #fff;
575
- }
576
-
577
- /*修改密码底部按钮部分样式*/
578
- .footerbtn {
579
- text-align: center;
580
- padding: 15px;
581
- }
582
-
583
- .footerbtn button {
584
- width: 100px;
585
- margin-left: 20px;
586
- }
587
-
588
- .bg-bubbles {
589
- position: absolute;
590
- top: 0;
591
- left: 0;
592
- width: 100%;
593
- height: 100%;
594
- z-index: 1;
595
- }
596
-
597
- .bg-bubbles li {
598
- position: absolute;
599
- list-style: none;
600
- display: block;
601
- width: 40px;
602
- height: 40px;
603
- background-color: rgba(255, 255, 255, 0.15);
604
- bottom: -160px;
605
- -webkit-animation: square 25s infinite;
606
- animation: square 25s infinite;
607
- -webkit-transition-timing-function: linear;
608
- transition-timing-function: linear;
609
- }
610
-
611
- .bg-bubbles li:nth-child(1) {
612
- left: 10%;
613
- }
614
-
615
- .bg-bubbles li:nth-child(2) {
616
- left: 20%;
617
- width: 80px;
618
- height: 80px;
619
- -webkit-animation-delay: 2s;
620
- animation-delay: 2s;
621
- -webkit-animation-duration: 17s;
622
- animation-duration: 17s;
623
- }
624
-
625
- .bg-bubbles li:nth-child(3) {
626
- left: 25%;
627
- -webkit-animation-delay: 4s;
628
- animation-delay: 4s;
629
- }
630
-
631
- .bg-bubbles li:nth-child(4) {
632
- left: 40%;
633
- width: 60px;
634
- height: 60px;
635
- -webkit-animation-duration: 22s;
636
- animation-duration: 22s;
637
- background-color: rgba(255, 255, 255, 0.25);
638
- }
639
-
640
- .bg-bubbles li:nth-child(5) {
641
- left: 70%;
642
- }
643
-
644
- .bg-bubbles li:nth-child(6) {
645
- left: 80%;
646
- width: 120px;
647
- height: 120px;
648
- -webkit-animation-delay: 3s;
649
- animation-delay: 3s;
650
- background-color: rgba(255, 255, 255, 0.2);
651
- }
652
-
653
- .bg-bubbles li:nth-child(7) {
654
- left: 32%;
655
- width: 160px;
656
- height: 160px;
657
- -webkit-animation-delay: 7s;
658
- animation-delay: 7s;
659
- }
660
-
661
- .bg-bubbles li:nth-child(8) {
662
- left: 55%;
663
- width: 20px;
664
- height: 20px;
665
- -webkit-animation-delay: 15s;
666
- animation-delay: 15s;
667
- -webkit-animation-duration: 40s;
668
- animation-duration: 40s;
669
- }
670
-
671
- .bg-bubbles li:nth-child(9) {
672
- left: 25%;
673
- width: 10px;
674
- height: 10px;
675
- -webkit-animation-delay: 2s;
676
- animation-delay: 2s;
677
- -webkit-animation-duration: 40s;
678
- animation-duration: 40s;
679
- background-color: rgba(255, 255, 255, 0.3);
680
- }
361
+ this.checkCode = code;//把code值赋给验证码
362
+ },
681
363
 
682
- .bg-bubbles li:nth-child(10) {
683
- left: 90%;
684
- width: 160px;
685
- height: 160px;
686
- -webkit-animation-delay: 11s;
687
- animation-delay: 11s;
688
- }
689
- .logofooter{
690
- font-size: 12px;
691
- color:#fff;
692
- width:150px;
693
- margin-left: 17px;
694
- }
695
- .logocontent{
696
- font-size: 14px;
697
- color:#fff;
698
- width:150px;
699
- margin: 3px -15px;
700
- }
701
- .imglogo {
702
- background:url(../../../static/logo.png);
703
- background-size:100%;
704
- }
705
- .logoew {
706
- width:120px;
707
- height:120px;
708
- float:right;
709
- margin-right:8.5%;
710
- margin-top:10px;
711
- }
364
+ async depPromptConfirm () {
365
+ this.depPromptShow = false
366
+ return this.$goto('home-page', {functions: this.$login.f})
367
+ },
712
368
 
713
- @-webkit-keyframes square {
714
- 0% {
715
- -webkit-transform: translateY(0);
716
- transform: translateY(0);
369
+ depPromptCancel () {
370
+ this.depPromptShow = false
371
+ this.createCode()
372
+ this.picLyanzhengma = ''
373
+ this.model.ename = ''
374
+ this.model.password = ''
375
+ this.login = false
376
+ $('form').fadeIn(500)
717
377
  }
718
- 100% {
719
- -webkit-transform: translateY(-700px) rotate(600deg);
720
- transform: translateY(-700px) rotate(600deg);
378
+ },
379
+ watch: {
380
+ 'modifyPwShow' (val){
381
+ if (!val) {
382
+ window.location.reload()
383
+ }
721
384
  }
722
385
  }
386
+ }
387
+ </script>
723
388
 
724
- @keyframes square {
725
- 0% {
726
- -webkit-transform: translateY(0);
727
- transform: translateY(0);
728
- }
729
- 100% {
730
- -webkit-transform: translateY(-700px) rotate(600deg);
731
- transform: translateY(-700px) rotate(600deg);
732
- }
733
- }
389
+ <style>
390
+
391
+ /*输入框样式*/
392
+ /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
393
+ * {
394
+ box-sizing: border-box;
395
+ margin: 0;
396
+ padding: 0;
397
+ font-weight: 400;
398
+ outline: none;
399
+ }
400
+
401
+ body {
402
+ font-family: 'Source Sans Pro', sans-serif;
403
+ color: white;
404
+ font-weight: 400;
405
+ }
406
+
407
+ body ::-webkit-input-placeholder {
408
+ /* WebKit browsers */
409
+ font-family: 'Source Sans Pro', sans-serif;
410
+ color: white;
411
+ font-weight: 400;
412
+ }
413
+
414
+ body :-moz-placeholder {
415
+ /* Mozilla Firefox 4 to 18 */
416
+ font-family: 'Source Sans Pro', sans-serif;
417
+ color: white;
418
+ opacity: 1;
419
+ font-weight: 400;
420
+ }
421
+
422
+ body ::-moz-placeholder {
423
+ /* Mozilla Firefox 19+ */
424
+ font-family: 'Source Sans Pro', sans-serif;
425
+ color: white;
426
+ opacity: 1;
427
+ font-weight: 400;
428
+ }
429
+
430
+ body :-ms-input-placeholder {
431
+ /* Internet Explorer 10+ */
432
+ font-family: 'Source Sans Pro', sans-serif;
433
+ color: white;
434
+ font-weight: 400;
435
+ }
436
+
437
+ .wrapper {
438
+ /*background: #2D83BA;
439
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
440
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
441
+ opacity: 0.8;*/
442
+ position: absolute;
443
+ top: 50%;
444
+ right: -60px;
445
+ width: 40%;
446
+ height: 400px;
447
+ margin-top: -150px;
448
+ overflow: hidden;
449
+
450
+ }
451
+
452
+ .wrapper.form-success .container h3 {
453
+ -webkit-transform: translateY(85px);
454
+ -ms-transform: translateY(85px);
455
+ transform: translateY(85px);
456
+ }
457
+
458
+ .container {
459
+ max-width: 350px;
460
+ margin: 0 auto;
461
+ padding: 30px 100px 50px 100px;
462
+ height: 400px;
463
+ text-align: center;
464
+ /*以下增加*/
465
+ background: #2D83BA;
466
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
467
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
468
+ opacity: 0.8;
469
+ }
470
+
471
+ .container h3 {
472
+ font-size: 40px;
473
+ -webkit-transition-duration: 1s;
474
+ transition-duration: 1s;
475
+ -webkit-transition-timing-function: ease-in-put;
476
+ transition-timing-function: ease-in-put;
477
+ font-weight: 200;
478
+ }
479
+
480
+ .form {
481
+ padding: 20px 0;
482
+ position: relative;
483
+ z-index: 2;
484
+ }
485
+
486
+ .form input {
487
+ -webkit-appearance: none;
488
+ -moz-appearance: none;
489
+ appearance: none;
490
+ outline: 0;
491
+ border: 1px solid #50ABE6;
492
+ background-color: #50ABE6;
493
+ width: 250px;
494
+ border-radius: 3px;
495
+ padding: 10px 15px;
496
+ margin: 0 auto 10px auto;
497
+ display: block;
498
+ text-align: center;
499
+ font-size: 18px;
500
+ color: white;
501
+ -webkit-transition-duration: 0.25s;
502
+ transition-duration: 0.25s;
503
+ font-weight: 400;
504
+ }
505
+
506
+ .form input:hover {
507
+ background-color: rgba(255, 255, 255, 0.4);
508
+ }
509
+
510
+ .form input:focus {
511
+ background-color: white;
512
+ width: 300px;
513
+ color: #53e3a6;
514
+ }
515
+
516
+ .usericon {
517
+ background-image: url(../../../static/usericon.png);
518
+ background-repeat: no-repeat;
519
+ background-size: 30px;
520
+ background-position-x: 8px;
521
+ background-position-y: 8px;
522
+ }
523
+
524
+ .psicon {
525
+ background-image: url(../../../static/psicon.png);
526
+ background-repeat: no-repeat;
527
+ background-size: 30px;
528
+ background-position-x: 8px;
529
+ background-position-y: 8px;
530
+ }
531
+
532
+ .form button {
533
+ -webkit-appearance: none;
534
+ -moz-appearance: none;
535
+ appearance: none;
536
+ outline: 0;
537
+ background-color: white;
538
+ border: 0;
539
+ padding: 10px 15px;
540
+ color: #253830;
541
+ border-radius: 3px;
542
+ width: 250px;
543
+ cursor: pointer;
544
+ font-size: 18px;
545
+ -webkit-transition-duration: 0.25s;
546
+ transition-duration: 0.25s;
547
+ }
548
+
549
+ .form button:hover {
550
+ background-color: #f5f7f9;
551
+ }
552
+
553
+ /*注册字体样式*/
554
+ .form span {
555
+ color: #fff;
556
+ display: table-footer-group;
557
+ position: absolute;
558
+ right: 10px;
559
+ margin-top: 10px;
560
+ cursor: pointer;
561
+ }
562
+
563
+ .logotitle {
564
+ color: #fff;
565
+ position: absolute;
566
+ top: 50px;
567
+ left: 50px;
568
+ font-size: 50px;
569
+ }
570
+
571
+ /*注册模态框界面样式*/
572
+ .modifystyle {
573
+ background: #FCFEEE;
574
+ }
575
+
576
+ .modifystyle div {
577
+ height: auto;
578
+ margin-bottom: 15px;
579
+ /*text-align: center;*/
580
+ /*margin-left: 20%;*/
581
+ }
582
+
583
+ /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
584
+ .modifystyle div input + span {
585
+ top: 0 !important;
586
+ right: 32%;
587
+ }
588
+
589
+ .modifystyle span {
590
+ color: red;
591
+ }
592
+
593
+ /* 通告区内容 */
594
+ .notice-board {
595
+ height: auto;
596
+ position: absolute;
597
+ top: 50%;
598
+ margin-top: -150px;
599
+ margin-left: 100px;
600
+ color: #fff;
601
+ }
602
+
603
+ /*修改密码底部按钮部分样式*/
604
+ .footerbtn {
605
+ text-align: center;
606
+ padding: 15px;
607
+ }
608
+
609
+ .footerbtn button {
610
+ width: 100px;
611
+ margin-left: 20px;
612
+ }
613
+
614
+ .bg-bubbles {
615
+ position: absolute;
616
+ top: 0;
617
+ left: 0;
618
+ width: 100%;
619
+ height: 100%;
620
+ z-index: 1;
621
+ }
622
+
623
+ .bg-bubbles li {
624
+ position: absolute;
625
+ list-style: none;
626
+ display: block;
627
+ width: 40px;
628
+ height: 40px;
629
+ background-color: rgba(255, 255, 255, 0.15);
630
+ bottom: -160px;
631
+ -webkit-animation: square 25s infinite;
632
+ animation: square 25s infinite;
633
+ -webkit-transition-timing-function: linear;
634
+ transition-timing-function: linear;
635
+ }
636
+
637
+ .bg-bubbles li:nth-child(1) {
638
+ left: 10%;
639
+ }
640
+
641
+ .bg-bubbles li:nth-child(2) {
642
+ left: 20%;
643
+ width: 80px;
644
+ height: 80px;
645
+ -webkit-animation-delay: 2s;
646
+ animation-delay: 2s;
647
+ -webkit-animation-duration: 17s;
648
+ animation-duration: 17s;
649
+ }
650
+
651
+ .bg-bubbles li:nth-child(3) {
652
+ left: 25%;
653
+ -webkit-animation-delay: 4s;
654
+ animation-delay: 4s;
655
+ }
656
+
657
+ .bg-bubbles li:nth-child(4) {
658
+ left: 40%;
659
+ width: 60px;
660
+ height: 60px;
661
+ -webkit-animation-duration: 22s;
662
+ animation-duration: 22s;
663
+ background-color: rgba(255, 255, 255, 0.25);
664
+ }
665
+
666
+ .bg-bubbles li:nth-child(5) {
667
+ left: 70%;
668
+ }
669
+
670
+ .bg-bubbles li:nth-child(6) {
671
+ left: 80%;
672
+ width: 120px;
673
+ height: 120px;
674
+ -webkit-animation-delay: 3s;
675
+ animation-delay: 3s;
676
+ background-color: rgba(255, 255, 255, 0.2);
677
+ }
678
+
679
+ .bg-bubbles li:nth-child(7) {
680
+ left: 32%;
681
+ width: 160px;
682
+ height: 160px;
683
+ -webkit-animation-delay: 7s;
684
+ animation-delay: 7s;
685
+ }
686
+
687
+ .bg-bubbles li:nth-child(8) {
688
+ left: 55%;
689
+ width: 20px;
690
+ height: 20px;
691
+ -webkit-animation-delay: 15s;
692
+ animation-delay: 15s;
693
+ -webkit-animation-duration: 40s;
694
+ animation-duration: 40s;
695
+ }
696
+
697
+ .bg-bubbles li:nth-child(9) {
698
+ left: 25%;
699
+ width: 10px;
700
+ height: 10px;
701
+ -webkit-animation-delay: 2s;
702
+ animation-delay: 2s;
703
+ -webkit-animation-duration: 40s;
704
+ animation-duration: 40s;
705
+ background-color: rgba(255, 255, 255, 0.3);
706
+ }
707
+
708
+ .bg-bubbles li:nth-child(10) {
709
+ left: 90%;
710
+ width: 160px;
711
+ height: 160px;
712
+ -webkit-animation-delay: 11s;
713
+ animation-delay: 11s;
714
+ }
715
+ .logofooter{
716
+ font-size: 12px;
717
+ color:#fff;
718
+ width:150px;
719
+ margin-left: 17px;
720
+ }
721
+ .logocontent{
722
+ font-size: 14px;
723
+ color:#fff;
724
+ width:150px;
725
+ margin: 3px -15px;
726
+ }
727
+ .imglogo {
728
+ background:url(../../../static/logo.png);
729
+ background-size:100%;
730
+ }
731
+ .logoew {
732
+ width:120px;
733
+ height:120px;
734
+ float:right;
735
+ margin-right:8.5%;
736
+ margin-top:10px;
737
+ }
738
+
739
+ @-webkit-keyframes square {
740
+ 0% {
741
+ -webkit-transform: translateY(0);
742
+ transform: translateY(0);
743
+ }
744
+ 100% {
745
+ -webkit-transform: translateY(-700px) rotate(600deg);
746
+ transform: translateY(-700px) rotate(600deg);
747
+ }
748
+ }
749
+
750
+ @keyframes square {
751
+ 0% {
752
+ -webkit-transform: translateY(0);
753
+ transform: translateY(0);
754
+ }
755
+ 100% {
756
+ -webkit-transform: translateY(-700px) rotate(600deg);
757
+ transform: translateY(-700px) rotate(600deg);
758
+ }
759
+ }
734
760
  </style>