system-clients 3.2.0 → 3.2.1-12

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