system-phone 3.1.80 → 3.1.82

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "3.1.80",
3
+ "version": "3.1.82",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -162,7 +162,8 @@ export default {
162
162
  if (this.weakPassword) {
163
163
  const pwdResult = validateStrongPasswordPhone(this.model.password)
164
164
  if (!pwdResult.isValid) {
165
- this.$showMessage('密码过于简单,' + (pwdResult.errors[0] || '请按照要求修改密码!!!'))
165
+ this.$showMessage('密码过于简单,' + (pwdResult.errors[0] || '请按照要求修改密码!!!'))
166
+ return
166
167
  }
167
168
  }
168
169
  // 检验原始密码是否符合 并修改密码
@@ -350,42 +350,6 @@ export default {
350
350
  console.log(this.showauto)
351
351
  this.$androidUtil.setPreference('auto_login', this.showauto)
352
352
  }
353
- // 设置当前登录人信息
354
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
355
- Vue.$login = Vue.prototype.$login = {jwt: ret.data.data.id,
356
- toStandardDateString () {
357
- let dt = new Date()
358
- let month = dt.getMonth() + 1
359
- let date = dt.getDate()
360
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
361
- }, toStandardTimeString () {
362
- let dt = new Date()
363
- let month = dt.getMonth()+1
364
- let date = dt.getDate()
365
- let hour = dt.getHours()
366
- let min = dt.getMinutes()
367
- let sec = dt.getSeconds()
368
- return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
369
- + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
370
- }}
371
- } else {
372
- Vue.$login = Vue.prototype.$login = {jwt: ret.data.id,
373
- toStandardDateString () {
374
- let dt = new Date()
375
- let month = dt.getMonth() + 1
376
- let date = dt.getDate()
377
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
378
- }, toStandardTimeString () {
379
- let dt = new Date()
380
- let month = dt.getMonth()+1
381
- let date = dt.getDate()
382
- let hour = dt.getHours()
383
- let min = dt.getMinutes()
384
- let sec = dt.getSeconds()
385
- return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
386
- + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
387
- }}
388
- }
389
353
  // 获取参数
390
354
  console.log('获取参数system以及安检参数')
391
355
  const flag = await asyncReady(this, this.$androidUtil.getProxyUrl())
@@ -125,7 +125,7 @@ export const validateStrongPasswordPhone = (password) => {
125
125
  if (!REG_STRONG_PWD.test(password)) {
126
126
  result.isValid = false;
127
127
  result.errors.push(
128
- "密码必须包含至少8个字符,包括大写字母、小写字母、数字和特殊字符"
128
+ "密码长度必须为8-16位,且需同时包含大写字母、小写字母、数字和特殊字符"
129
129
  );
130
130
  return result;
131
131
  }