fstarter 2.10.45 → 2.10.46

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 (78) hide show
  1. package/.babelrc +6 -6
  2. package/.editorconfig +9 -9
  3. package/README.md +18 -18
  4. package/fstarter.iml +9 -0
  5. package/index.html +22 -22
  6. package/index.js +222 -222
  7. package/package.json +104 -104
  8. package/src/App.vue +38 -38
  9. package/src/i18n/en-US.js +35 -35
  10. package/src/i18n/zh-CN.js +35 -35
  11. package/src/main.js +87 -87
  12. package/src/plugins/assets/ak.js +948 -948
  13. package/src/plugins/assets/callNative.js +488 -488
  14. package/src/plugins/assets/compressImg.js +75 -75
  15. package/src/plugins/assets/config.js +106 -106
  16. package/src/plugins/assets/fileServer.js +469 -469
  17. package/src/plugins/assets/http.js +343 -343
  18. package/src/plugins/assets/ua.js +27 -27
  19. package/src/plugins/components/BSButton.vue +61 -61
  20. package/src/plugins/components/BSCascader.vue +465 -465
  21. package/src/plugins/components/BSCell.vue +48 -48
  22. package/src/plugins/components/BSDatePicker.vue +167 -167
  23. package/src/plugins/components/BSImage.vue +42 -42
  24. package/src/plugins/components/BSInput.vue +140 -140
  25. package/src/plugins/components/BSList.vue +81 -81
  26. package/src/plugins/components/BSPicCode.vue +96 -96
  27. package/src/plugins/components/BSPopup.vue +43 -43
  28. package/src/plugins/components/BSRadio.vue +97 -97
  29. package/src/plugins/components/BSSearch.vue +109 -109
  30. package/src/plugins/components/BSSelect.vue +144 -144
  31. package/src/plugins/components/BSSign.vue +454 -454
  32. package/src/plugins/components/BSStepper.vue +115 -115
  33. package/src/plugins/components/BSUpload.vue +92 -92
  34. package/src/plugins/components/BSUpload2.vue +382 -392
  35. package/src/plugins/components/BSVerCode.vue +131 -135
  36. package/src/plugins/components/BSViewer.vue +92 -92
  37. package/src/plugins/components/base.js +496 -496
  38. package/src/plugins/components/base2.js +489 -489
  39. package/src/plugins/lib/weixin.js +20 -20
  40. package/src/plugins/platform/index.js +7 -7
  41. package/src/plugins/platform/isp_phone.js +306 -306
  42. package/src/plugins/route/index.js +140 -140
  43. package/src/plugins/selector/index.js +342 -342
  44. package/src/plugins/service/index.js +81 -81
  45. package/src/plugins/services/callCamera.js +53 -53
  46. package/src/plugins/services/exit.js +36 -36
  47. package/src/plugins/services/face.js +69 -69
  48. package/src/plugins/services/faceInApp.js +31 -31
  49. package/src/plugins/services/getFaceResult.js +104 -104
  50. package/src/plugins/services/getMenus.js +40 -40
  51. package/src/plugins/services/getSystemData.js +128 -128
  52. package/src/plugins/services/getToken.js +79 -79
  53. package/src/plugins/services/getUserInfo.js +47 -47
  54. package/src/plugins/services/goSetPage.js +40 -40
  55. package/src/plugins/services/hideFhoneTitle.js +36 -36
  56. package/src/plugins/services/index.js +37 -41
  57. package/src/plugins/services/init.js +35 -35
  58. package/src/plugins/services/jumpView.js +40 -40
  59. package/src/plugins/services/logout.js +43 -43
  60. package/src/plugins/services/share.js +113 -113
  61. package/src/plugins/services/statusBarHeight.js +39 -39
  62. package/src/plugins/session/index.js +32 -32
  63. package/src/services/getAuthInfo.js +22 -22
  64. package/src/services/index.js +9 -9
  65. package/src/services/sendVerCode.js +23 -23
  66. package/src/views/auth.vue +354 -361
  67. package/src/views/auth2.vue +90 -90
  68. package/src/views/auth3.vue +148 -157
  69. package/src/views/auth4.vue +8979 -8979
  70. package/src/views/auth5.vue +50 -50
  71. package/src/views/components/BankSelect.vue +55 -55
  72. package/src/views/foot.vue +140 -140
  73. package/src/views/page.vue +219 -219
  74. package/src/views/shellFunc.vue +41 -41
  75. package/themes/basic.css +1 -1
  76. package/webpack.config.js +144 -144
  77. package/src/plugins/services/faceTx.js +0 -61
  78. package/src/plugins/services/getTxFaceResult.js +0 -83
@@ -1,342 +1,342 @@
1
- import ak from "../assets/ak";
2
- import session from "../session";
3
-
4
- var selector = selector || {};
5
-
6
- selector = {
7
-
8
- index0:{},
9
- index1:{},
10
- index_add(sname,fullName){
11
-
12
- this.index_add0(sname,fullName)
13
- this.index_add1(sname,fullName)
14
- },
15
- index_delete(sname,fullName){
16
-
17
- this.index_delete0(sname,fullName)
18
- this.index_delete1(sname,fullName)
19
- },
20
- index_add0(sname,fullName){
21
-
22
- if(!this.index0[sname])
23
- this.index0[sname] = {}
24
-
25
- this.index0[sname][fullName] = true
26
-
27
- },
28
- index_delete0(sname,fullName){
29
-
30
- delete this.index0[sname][fullName]
31
-
32
- },
33
- index_add1(sname,fullName){
34
-
35
- let index = fullName.lastIndexOf('.')
36
- if(index > 0) {
37
-
38
- let parent = fullName.substr(0, index)
39
-
40
- if (!this.index1[parent]) {
41
- this.index1[parent] = {}
42
- }
43
-
44
- this.index1[parent][fullName] = true
45
- }
46
-
47
- },
48
- index_delete1(sname,fullName){
49
-
50
- let index = fullName.lastIndexOf('.')
51
- if(index > 0){
52
-
53
- let parent = fullName.substr(0,index)
54
- delete this.index1[parent][fullName]
55
- }
56
- },
57
- select(node,express){
58
-
59
- let store = session.regedit
60
- let action = ''
61
- let exp = ''
62
-
63
- if(express.startWith('##')){
64
- action = '##'
65
- exp = express.substring(2)
66
- }else if(express.startWith('#')){
67
- action = '#'
68
- exp = express.substring(1)
69
- }else if(express.startWith('>>')){
70
- action = '>>'
71
- exp = express.substring(2)
72
- }else if(express.startWith('>')){
73
- action = '>'
74
- exp = express.substring(1)
75
- }else if(express.startWith('<')){
76
- action = '<'
77
- exp = express.substring(1)
78
- }else if(express.startWith('=')){
79
- action = '='
80
- exp = express.substring(1)
81
- }
82
-
83
-
84
- let ctls = {}
85
-
86
-
87
- if(action == '#'){
88
-
89
- let ctls_t = {}
90
- if(this.index0[exp])
91
- ctls_t = this.index0[exp]
92
-
93
- for(let key in ctls_t) {
94
-
95
- if(node != null && !key.startWith(node)){
96
- continue
97
- }
98
-
99
- ctls[key] = store[key]
100
- }
101
-
102
- }else if(action == '='){
103
-
104
- if(node != null && !exp.startWith(node)){
105
-
106
- }else{
107
- ctls[exp] = store[exp]
108
- }
109
-
110
- }else if(action == '##'){
111
-
112
- let ctls_t = {}
113
- if(this.index0[exp])
114
- ctls_t = this.index0[exp]
115
-
116
- for(let key in ctls_t) {
117
-
118
- if(node != null && !key.startWith(node)){
119
- continue
120
- }
121
-
122
- ctls[key] = store[key]
123
- break
124
- }
125
-
126
- }else if(action == '>'){
127
-
128
- let ctls_t = {}
129
- if(this.index0[exp])
130
- ctls_t = this.index0[exp]
131
-
132
- let curId
133
- for(let key in ctls_t) {
134
-
135
- if(node != null && !key.startWith(node)){
136
- continue
137
- }
138
-
139
- curId = key
140
- break
141
- }
142
-
143
- if(curId){
144
-
145
- let children = this.index1[curId]
146
-
147
- for(let key in children){
148
- ctls[key] = store[key]
149
- }
150
- }
151
-
152
- }else if(action == '>>'){
153
-
154
- for(let key in store) {
155
-
156
- let ctl = store[key]
157
- let name = ctl.name
158
-
159
- if(node != null && !name.startWith(node)){
160
- continue
161
- }
162
-
163
- if(name.indexOf(exp + '.') >= 0){
164
- ctls[name] = (ctl)
165
- }
166
-
167
- }
168
-
169
- }else if(action == '<'){
170
-
171
- let ctls_t = {}
172
- if(this.index0[exp])
173
- ctls_t = this.index0[exp]
174
-
175
- let curId
176
- for(let key in ctls_t) {
177
-
178
- if(node != null && !key.startWith(node)){
179
- continue
180
- }
181
-
182
- curId = key
183
- break
184
- }
185
-
186
- if(curId){
187
-
188
- let index = curId.lastIndexOf('.')
189
- if(index > 0){
190
-
191
- let parentId = curId.substr(0,index)
192
- ctls[parentId] = store[parentId]
193
- }
194
- }
195
-
196
- }
197
-
198
- return this.createResultObj(ctls)
199
-
200
- },
201
- createResultObj(ctls){
202
-
203
- var obj = new Object;
204
- obj.ctls = ctls
205
- obj.disable = function() {
206
-
207
- for(var key in this.ctls){
208
- let ctl = this.ctls[key]
209
- ctl.model.disabled = true
210
- }
211
-
212
- return this
213
- };
214
-
215
- obj.enable = function() {
216
-
217
- for(var key in this.ctls){
218
- let ctl = this.ctls[key]
219
- ctl.model.disabled = false
220
- }
221
-
222
- return this
223
- };
224
-
225
- obj.readonly = function() {
226
-
227
- for(var key in this.ctls){
228
- let ctl = this.ctls[key]
229
- ctl.model.readonly = true
230
- }
231
-
232
- return this
233
- };
234
-
235
- obj.set = function(column,val) {
236
-
237
- for(var key in this.ctls){
238
- let ctl = this.ctls[key]
239
- ctl.model[column] = val
240
- }
241
-
242
- return this
243
- };
244
-
245
- obj.get = function(column) {
246
-
247
- let val
248
- for(var key in this.ctls){
249
- let ctl = this.ctls[key]
250
- return ctl.model[column]
251
- }
252
-
253
- return val
254
- };
255
-
256
- obj.setValue = function(val) {
257
-
258
- for(var key in this.ctls){
259
- let ctl = this.ctls[key]
260
- ctl.model.value = val
261
- ctl.model.validateToken++
262
- }
263
-
264
- return this
265
- };
266
-
267
- obj.getValue = function() {
268
-
269
- let val
270
- for(var key in this.ctls){
271
- let ctl = this.ctls[key]
272
- return ctl.model.value
273
- }
274
-
275
- return val
276
- };
277
-
278
- obj.getValue2 = function() {
279
-
280
- let val
281
- for(var key in this.ctls){
282
- let ctl = this.ctls[key]
283
- return ctl.model.value ? ctl.model.value : ''
284
-
285
- }
286
-
287
- return val ? val : ''
288
- };
289
-
290
- obj.reset = function(val) {
291
-
292
- for(var key in this.ctls){
293
- let ctl = this.ctls[key]
294
- ctl.ctl.reset()
295
- }
296
-
297
- return this
298
- };
299
-
300
- obj.getName = function() {
301
-
302
- let val
303
- for(var key in this.ctls){
304
- let ctl = this.ctls[key]
305
- return ctl.ctl.sname
306
- }
307
-
308
- return val
309
- };
310
-
311
- obj.getFullName = function() {
312
-
313
- let val
314
- for(var key in this.ctls){
315
- let ctl = this.ctls[key]
316
- return ctl.ctl.fullName
317
- }
318
-
319
- return val
320
- };
321
-
322
- obj.selector = function(express){
323
-
324
- let ctls = {}
325
-
326
- for(var key in this.ctls){
327
-
328
- let result = selector.select(key,express)
329
- Object.assign(ctls,result.ctls)
330
- }
331
-
332
- return selector.createResultObj(ctls)
333
-
334
- }
335
-
336
- return obj
337
-
338
- }
339
-
340
- }
341
-
342
- export default selector;
1
+ import ak from "../assets/ak";
2
+ import session from "../session";
3
+
4
+ var selector = selector || {};
5
+
6
+ selector = {
7
+
8
+ index0:{},
9
+ index1:{},
10
+ index_add(sname,fullName){
11
+
12
+ this.index_add0(sname,fullName)
13
+ this.index_add1(sname,fullName)
14
+ },
15
+ index_delete(sname,fullName){
16
+
17
+ this.index_delete0(sname,fullName)
18
+ this.index_delete1(sname,fullName)
19
+ },
20
+ index_add0(sname,fullName){
21
+
22
+ if(!this.index0[sname])
23
+ this.index0[sname] = {}
24
+
25
+ this.index0[sname][fullName] = true
26
+
27
+ },
28
+ index_delete0(sname,fullName){
29
+
30
+ delete this.index0[sname][fullName]
31
+
32
+ },
33
+ index_add1(sname,fullName){
34
+
35
+ let index = fullName.lastIndexOf('.')
36
+ if(index > 0) {
37
+
38
+ let parent = fullName.substr(0, index)
39
+
40
+ if (!this.index1[parent]) {
41
+ this.index1[parent] = {}
42
+ }
43
+
44
+ this.index1[parent][fullName] = true
45
+ }
46
+
47
+ },
48
+ index_delete1(sname,fullName){
49
+
50
+ let index = fullName.lastIndexOf('.')
51
+ if(index > 0){
52
+
53
+ let parent = fullName.substr(0,index)
54
+ delete this.index1[parent][fullName]
55
+ }
56
+ },
57
+ select(node,express){
58
+
59
+ let store = session.regedit
60
+ let action = ''
61
+ let exp = ''
62
+
63
+ if(express.startWith('##')){
64
+ action = '##'
65
+ exp = express.substring(2)
66
+ }else if(express.startWith('#')){
67
+ action = '#'
68
+ exp = express.substring(1)
69
+ }else if(express.startWith('>>')){
70
+ action = '>>'
71
+ exp = express.substring(2)
72
+ }else if(express.startWith('>')){
73
+ action = '>'
74
+ exp = express.substring(1)
75
+ }else if(express.startWith('<')){
76
+ action = '<'
77
+ exp = express.substring(1)
78
+ }else if(express.startWith('=')){
79
+ action = '='
80
+ exp = express.substring(1)
81
+ }
82
+
83
+
84
+ let ctls = {}
85
+
86
+
87
+ if(action == '#'){
88
+
89
+ let ctls_t = {}
90
+ if(this.index0[exp])
91
+ ctls_t = this.index0[exp]
92
+
93
+ for(let key in ctls_t) {
94
+
95
+ if(node != null && !key.startWith(node)){
96
+ continue
97
+ }
98
+
99
+ ctls[key] = store[key]
100
+ }
101
+
102
+ }else if(action == '='){
103
+
104
+ if(node != null && !exp.startWith(node)){
105
+
106
+ }else{
107
+ ctls[exp] = store[exp]
108
+ }
109
+
110
+ }else if(action == '##'){
111
+
112
+ let ctls_t = {}
113
+ if(this.index0[exp])
114
+ ctls_t = this.index0[exp]
115
+
116
+ for(let key in ctls_t) {
117
+
118
+ if(node != null && !key.startWith(node)){
119
+ continue
120
+ }
121
+
122
+ ctls[key] = store[key]
123
+ break
124
+ }
125
+
126
+ }else if(action == '>'){
127
+
128
+ let ctls_t = {}
129
+ if(this.index0[exp])
130
+ ctls_t = this.index0[exp]
131
+
132
+ let curId
133
+ for(let key in ctls_t) {
134
+
135
+ if(node != null && !key.startWith(node)){
136
+ continue
137
+ }
138
+
139
+ curId = key
140
+ break
141
+ }
142
+
143
+ if(curId){
144
+
145
+ let children = this.index1[curId]
146
+
147
+ for(let key in children){
148
+ ctls[key] = store[key]
149
+ }
150
+ }
151
+
152
+ }else if(action == '>>'){
153
+
154
+ for(let key in store) {
155
+
156
+ let ctl = store[key]
157
+ let name = ctl.name
158
+
159
+ if(node != null && !name.startWith(node)){
160
+ continue
161
+ }
162
+
163
+ if(name.indexOf(exp + '.') >= 0){
164
+ ctls[name] = (ctl)
165
+ }
166
+
167
+ }
168
+
169
+ }else if(action == '<'){
170
+
171
+ let ctls_t = {}
172
+ if(this.index0[exp])
173
+ ctls_t = this.index0[exp]
174
+
175
+ let curId
176
+ for(let key in ctls_t) {
177
+
178
+ if(node != null && !key.startWith(node)){
179
+ continue
180
+ }
181
+
182
+ curId = key
183
+ break
184
+ }
185
+
186
+ if(curId){
187
+
188
+ let index = curId.lastIndexOf('.')
189
+ if(index > 0){
190
+
191
+ let parentId = curId.substr(0,index)
192
+ ctls[parentId] = store[parentId]
193
+ }
194
+ }
195
+
196
+ }
197
+
198
+ return this.createResultObj(ctls)
199
+
200
+ },
201
+ createResultObj(ctls){
202
+
203
+ var obj = new Object;
204
+ obj.ctls = ctls
205
+ obj.disable = function() {
206
+
207
+ for(var key in this.ctls){
208
+ let ctl = this.ctls[key]
209
+ ctl.model.disabled = true
210
+ }
211
+
212
+ return this
213
+ };
214
+
215
+ obj.enable = function() {
216
+
217
+ for(var key in this.ctls){
218
+ let ctl = this.ctls[key]
219
+ ctl.model.disabled = false
220
+ }
221
+
222
+ return this
223
+ };
224
+
225
+ obj.readonly = function() {
226
+
227
+ for(var key in this.ctls){
228
+ let ctl = this.ctls[key]
229
+ ctl.model.readonly = true
230
+ }
231
+
232
+ return this
233
+ };
234
+
235
+ obj.set = function(column,val) {
236
+
237
+ for(var key in this.ctls){
238
+ let ctl = this.ctls[key]
239
+ ctl.model[column] = val
240
+ }
241
+
242
+ return this
243
+ };
244
+
245
+ obj.get = function(column) {
246
+
247
+ let val
248
+ for(var key in this.ctls){
249
+ let ctl = this.ctls[key]
250
+ return ctl.model[column]
251
+ }
252
+
253
+ return val
254
+ };
255
+
256
+ obj.setValue = function(val) {
257
+
258
+ for(var key in this.ctls){
259
+ let ctl = this.ctls[key]
260
+ ctl.model.value = val
261
+ ctl.model.validateToken++
262
+ }
263
+
264
+ return this
265
+ };
266
+
267
+ obj.getValue = function() {
268
+
269
+ let val
270
+ for(var key in this.ctls){
271
+ let ctl = this.ctls[key]
272
+ return ctl.model.value
273
+ }
274
+
275
+ return val
276
+ };
277
+
278
+ obj.getValue2 = function() {
279
+
280
+ let val
281
+ for(var key in this.ctls){
282
+ let ctl = this.ctls[key]
283
+ return ctl.model.value ? ctl.model.value : ''
284
+
285
+ }
286
+
287
+ return val ? val : ''
288
+ };
289
+
290
+ obj.reset = function(val) {
291
+
292
+ for(var key in this.ctls){
293
+ let ctl = this.ctls[key]
294
+ ctl.ctl.reset()
295
+ }
296
+
297
+ return this
298
+ };
299
+
300
+ obj.getName = function() {
301
+
302
+ let val
303
+ for(var key in this.ctls){
304
+ let ctl = this.ctls[key]
305
+ return ctl.ctl.sname
306
+ }
307
+
308
+ return val
309
+ };
310
+
311
+ obj.getFullName = function() {
312
+
313
+ let val
314
+ for(var key in this.ctls){
315
+ let ctl = this.ctls[key]
316
+ return ctl.ctl.fullName
317
+ }
318
+
319
+ return val
320
+ };
321
+
322
+ obj.selector = function(express){
323
+
324
+ let ctls = {}
325
+
326
+ for(var key in this.ctls){
327
+
328
+ let result = selector.select(key,express)
329
+ Object.assign(ctls,result.ctls)
330
+ }
331
+
332
+ return selector.createResultObj(ctls)
333
+
334
+ }
335
+
336
+ return obj
337
+
338
+ }
339
+
340
+ }
341
+
342
+ export default selector;