system-phone 1.2.82-cr → 1.2.85

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.
Files changed (65) hide show
  1. package/build/dev-server.js +4 -4
  2. package/package.json +1 -1
  3. package/src/App.vue +26 -25
  4. package/src/assets/shuaxindaiban1.png +0 -0
  5. package/src/assets//344/270/213/350/275/275/350/256/241/345/210/222.png +0 -0
  6. package/src/assets//344/273/273/345/212/241/346/237/245/350/257/242.png +0 -0
  7. package/src/assets//344/277/241/346/201/257/345/205/254/345/221/212.png +0 -0
  8. package/src/assets//345/205/254/345/221/212/346/237/245/347/234/213.png +0 -0
  9. package/src/assets//345/205/261/344/272/253/350/256/241/345/210/222.png +0 -0
  10. package/src/assets//345/206/214/345/206/205/351/241/272/345/272/217/344/277/256/346/224/271.png +0 -0
  11. package/src/assets//345/215/241/350/241/250/345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
  12. package/src/assets//345/234/250/347/272/277/345/256/211/346/243/200.png +0 -0
  13. package/src/assets//345/234/250/347/272/277/345/267/241/346/243/200.png +0 -0
  14. package/src/assets//345/234/250/347/272/277/346/212/245/350/243/205.png +0 -0
  15. package/src/assets//345/234/250/347/272/277/346/216/245/345/215/225.png +0 -0
  16. package/src/assets//345/234/250/347/272/277/346/223/215/344/275/234.png +0 -0
  17. package/src/assets//345/234/250/347/272/277/347/273/237/350/256/241.png +0 -0
  18. package/src/assets//345/234/250/347/272/277/347/273/264/344/277/256.png +0 -0
  19. package/src/assets//345/234/250/347/272/277/351/200/232/346/260/224.png +0 -0
  20. package/src/assets//345/256/211/346/243/200/346/212/275/345/215/225.png +0 -0
  21. package/src/assets//345/267/241/346/243/200/344/270/212/344/274/240.png +0 -0
  22. package/src/assets//345/267/241/346/243/200/345/267/262/345/212/236.png +0 -0
  23. package/src/assets//345/274/200/345/205/263/351/230/200.png +0 -0
  24. package/src/assets//346/211/271/351/207/217/346/212/204/350/241/250.png +0 -0
  25. package/src/assets//346/212/204/350/241/250/344/270/212/344/274/240.png +0 -0
  26. package/src/assets//346/212/204/350/241/250/345/276/205/345/212/236.png +0 -0
  27. package/src/assets//346/212/245/345/273/272/345/267/262/345/212/236.png +0 -0
  28. package/src/assets//346/212/245/345/273/272/346/234/215/345/212/241.png +0 -0
  29. package/src/assets//346/224/266/350/264/271/346/261/207/346/200/273/350/241/250.png +0 -0
  30. package/src/assets//346/225/264/346/224/271/344/270/212/344/274/240.png +0 -0
  31. package/src/assets//346/225/264/346/224/271/345/267/262/345/212/236.png +0 -0
  32. package/src/assets//346/227/245/346/212/245/346/237/245/350/257/242.png +0 -0
  33. package/src/assets//346/241/243/346/241/210/344/277/256/346/224/271.png +0 -0
  34. package/src/assets//346/265/201/347/250/213/344/270/232/345/212/241.png +0 -0
  35. package/src/assets//346/265/201/347/250/213/347/233/221/346/216/247.png +0 -0
  36. package/src/assets//347/224/250/346/210/267/347/274/226/345/217/267.png +0 -0
  37. package/src/assets//347/247/273/345/212/250/346/212/204/350/241/250.png +0 -0
  38. package/src/assets//347/247/273/345/212/250/346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
  39. package/src/assets//347/273/237/350/256/241/346/212/245/350/241/250.png +0 -0
  40. package/src/assets//347/273/264/344/277/256/346/264/276/345/217/221.png +0 -0
  41. package/src/assets//350/241/250/345/206/214/351/241/272/345/272/217.png +0 -0
  42. package/src/assets//350/277/224/345/233/236/346/241/214/351/235/242.png +0 -0
  43. package/src/assets//350/277/233/345/272/246/345/210/227/350/241/250.png +0 -0
  44. package/src/assets//351/200/200/345/207/272/347/231/273/345/275/225.png +0 -0
  45. package/src/assets//351/200/201/346/260/224/345/276/205/345/212/236.png +0 -0
  46. package/src/assets//351/232/220/346/202/243/345/244/204/347/220/206.png +0 -0
  47. package/src/assets//351/232/220/346/202/243/346/225/264/346/224/271.png +0 -0
  48. package/src/assets//351/233/206/344/270/255/345/256/211/346/243/200.png +0 -0
  49. package/src/assets//351/233/206/344/270/255/345/256/211/346/243/2002.png +0 -0
  50. package/src/components/LoginApp.vue +54 -11
  51. package/src/components/LoginAppNew.vue +587 -0
  52. package/src/components/ModifyPassWord.vue +14 -2
  53. package/src/components/NavBottomVVV.vue +115 -110
  54. package/src/components/PhoneSellInfo.vue +4 -4
  55. package/src/components/SystemSetUp.vue +256 -228
  56. package/src/components/iot/iotMonitoringFun.vue +24 -0
  57. package/src/components/iot/iotMonitoringMain.vue +444 -0
  58. package/src/components/iot/iotMonitoringQuery.vue +24 -0
  59. package/src/components/userinfo/paymentQuery.vue +1 -1
  60. package/src/components/userinfo/queryFile.vue +1 -1
  61. package/src/main.js +37 -37
  62. package/src/stores/AppData.js +90 -90
  63. package/src/systemphone.js +54 -42
  64. package/src/systemphonegrid.js +136 -128
  65. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
@@ -14,9 +14,9 @@ var proxyTable = {
14
14
  // '/rs/weixin': {
15
15
  // target: 'http://121.36.106.17:8400/'
16
16
  // },
17
- // '/phone/rs/vue': {
18
- // target: 'http://121.36.106.17:8400/'
19
- // },
17
+ '/phone/rs/vue': {
18
+ target: 'http://121.36.106.17:8400/'
19
+ },
20
20
  // '/materials': {
21
21
  // target: 'http://121.36.106.17:8400/'
22
22
  // // target: 'http://192.168.2.77:8081'
@@ -45,7 +45,7 @@ var proxyTable = {
45
45
  // 呼叫系统主数据服务
46
46
  '/rs': {
47
47
  // target: 'http://127.0.0.1:8082'
48
- target: 'http://192.168.50.4:8400'
48
+ target: 'http://121.36.106.17:8400'
49
49
  },
50
50
  // 文字客服
51
51
  // '/Dual': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "1.2.82-cr",
3
+ "version": "1.2.85",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
package/src/App.vue CHANGED
@@ -1,25 +1,26 @@
1
- <template>
2
- <!-- <app-base> -->
3
- <div id="android-app">
4
- <article>
5
- <route :comp="{name: 'phone-user'}"></route>
6
- </article>
7
- <time-out></time-out>
8
- <message-box>
9
- </message-box>
10
- </div>
11
- <!-- </app-base> -->
12
- </template>
13
-
14
- <script>
15
- export default {
16
- ready () {
17
- if (!window.onerror) {
18
- window.onerror = function (message, file, line, col, error) {
19
- // HostApp.alert("网络故障,加载组件有误")
20
- return false
21
- }
22
- }
23
- }
24
- }
25
- </script>
1
+ <template>
2
+ <!-- <app-base> -->
3
+ <div id="android-app">
4
+ <article>
5
+ <!--<route :comp="{name: 'login-app'}"></route>-->
6
+ <route :comp="{name: 'iot-monitoring-main'}"></route>
7
+ </article>
8
+ <time-out></time-out>
9
+ <message-box>
10
+ </message-box>
11
+ </div>
12
+ <!-- </app-base> -->
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ ready () {
18
+ if (!window.onerror) {
19
+ window.onerror = function (message, file, line, col, error) {
20
+ // HostApp.alert("网络故障,加载组件有误")
21
+ return false
22
+ }
23
+ }
24
+ }
25
+ }
26
+ </script>
Binary file
@@ -27,6 +27,15 @@
27
27
  <div style="width: 100%;height: 100%;position: fixed;top: 0px;" v-show="loaderShow">
28
28
  <div id="loading" class="loading">登陆中...</div>
29
29
  </div>
30
+ <modal :show.sync="modifyPassword" backdrop="false">
31
+ <header slot="modal-header" class="modal-header">
32
+ </header>
33
+ <article slot="modal-body" class="modal-body">
34
+ <modify-pass-word :sourse="login" :weak-password="weakPassword" v-if="modifyPassword" v-on:success="success"></modify-pass-word>
35
+ </article>
36
+ <footer slot="modal-footer" class="modal-footer">
37
+ </footer>
38
+ </modal>
30
39
  </div>
31
40
  </template>
32
41
  <script>
@@ -45,11 +54,17 @@
45
54
  let res = await Vue.resetget(`${url}/phone/rs/vue`,{data: {}},{resolveMsg: null, rejectMsg: null})
46
55
  that.$set('config',res.data)
47
56
  Vue.config2 = res.data
57
+ // 判断是否需要弱密码校验
58
+ if(self.config && self.config.telephone && self.config.telephone.LoginApp && "undefined" != typeof self.config.telephone.LoginApp.weakPassword){
59
+ self.weakPassword = self.config.telephone.LoginApp.weakPassword
60
+ }
48
61
  console.log("手机端获取.json文件")
49
62
  console.log(JSON.stringify(self.config))
63
+ return true
50
64
  } catch (error) {
51
65
  // 此处业务数据装载异常不做任何处理,理论上不会有任何异常
52
- console.log(error)
66
+ self.$showMessage('登录系统: 获取配置文件失败,请检查网络后重新登陆!')
67
+ return false
53
68
  }
54
69
  }
55
70
 
@@ -77,7 +92,10 @@
77
92
  return {
78
93
  loaderShow:false,
79
94
  config:{},
95
+ weakPassword:false,
96
+ modifyPassword:false,
80
97
  ename: '',
98
+ login:'login',
81
99
  password: '',
82
100
  showsave:true,
83
101
  showauto:'2', // 1 自动登陆 2取消自动登陆
@@ -116,6 +134,11 @@
116
134
  // }
117
135
  },
118
136
  methods: {
137
+ success(val){
138
+ // 修改密码成功
139
+ this.modifyPassword = false
140
+ this.password = val
141
+ },
119
142
  // 对资源菜单进行排序
120
143
  sortFunctions(val){
121
144
  if(val && val.length > 0){
@@ -166,12 +189,21 @@
166
189
  data = encrypt.encrypt(JSON.stringify(data))
167
190
  console.log(data)
168
191
  try {
169
- let ret = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/user/userLogin/手机服务`, data, {
170
- resolveMsg: null,
171
- rejectMsg: '资源服务数据获取异常'
172
- })
173
- console.log('获取登陆信息:' + JSON.stringify(ret.data) )
174
- console.log('当前登录维修员:' + ret.data.name)
192
+ let ret={}
193
+ try{
194
+ ret = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/user/userLogin/手机服务`, data, {
195
+ resolveMsg: null,
196
+ rejectMsg: null
197
+ })
198
+ console.log('获取登陆信息:' + JSON.stringify(ret.data) )
199
+ console.log('当前登录维修员:' + ret.data.name)
200
+ }catch (e) {
201
+ if (Vue.android){
202
+ this.loaderShow=false
203
+ this.$showMessage("登陆失败,请检查账号密码是否有误,如多次失败请联系管理员核对账号密码!")
204
+ }
205
+ return
206
+ }
175
207
  // 设置登录人
176
208
  Vue.user = Util.f = ret.data
177
209
  // 对资源菜单进行排序
@@ -199,25 +231,36 @@
199
231
  this.$androidUtil.setPreference('login_user_cache', userStr)
200
232
  this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
201
233
  this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
202
- console.log("自动登陆标识")
234
+ this.$androidUtil.setPreference('f_role_name', Util.f.f_role_name)
235
+ console.log("自动登陆标识"+Util.f.f_role_name)
203
236
  console.log(this.showauto)
204
237
  this.$androidUtil.setPreference('auto_login',this.showauto)
205
238
  }
206
239
  Vue.$login = {jwt: ret.data.id}
207
240
  // 获取参数
208
241
  console.log('获取参数system以及安检参数')
209
- asyncReady(this,this.$androidUtil.getProxyUrl())
242
+ var flag = await asyncReady(this,this.$androidUtil.getProxyUrl())
243
+ if(!flag){
244
+ this.loaderShow=false
245
+ console.log('获取参数异常')
246
+ return
247
+ }
210
248
  console.log('获取参数结束')
211
-
212
249
  // console.log('登陆验证成功时装载业务数据')
213
250
  // asyncLoadData()
214
251
  // console.log('装载业务数据结束')
215
252
  this.loaderShow=false
253
+ // 弱口令验证
254
+ if (this.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(this.password))) {
255
+ await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
256
+ this.modifyPassword = true
257
+ return
258
+ }
216
259
  this.$goto('nav-bottom')
217
260
  }catch (e) {
218
261
  if (Vue.android)
219
262
  this.loaderShow=false
220
- HostApp.alert('登录失败!')
263
+ this.$showMessage("登陆失败!")
221
264
  }
222
265
  },
223
266
  // readConfig (url) {