system-phone 3.1.81 → 3.1.83
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
|
@@ -105,9 +105,9 @@ let asyncReady = async function (self, url) {
|
|
|
105
105
|
that.$set('config', vueConfig)
|
|
106
106
|
Vue.config2 = vueConfig
|
|
107
107
|
// 判断是否需要弱密码校验
|
|
108
|
-
if (self.config && self.config
|
|
109
|
-
self.weakPassword = self.config
|
|
110
|
-
Vue.weakPassword = self.config
|
|
108
|
+
if (self.config && self.config['af-telephone'] && self.config['af-telephone'].LoginApp && 'undefined' != typeof self.config['af-telephone'].LoginApp.weakPassword) {
|
|
109
|
+
self.weakPassword = self.config['af-telephone'].LoginApp.weakPassword
|
|
110
|
+
Vue.weakPassword = self.config['af-telephone'].LoginApp.weakPassword
|
|
111
111
|
}
|
|
112
112
|
console.log('手机端获取.json文件')
|
|
113
113
|
console.log(JSON.stringify(self.config))
|
|
@@ -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())
|