fstarter 2.10.42 → 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 (76) 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 -165
  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 -382
  35. package/src/plugins/components/BSVerCode.vue +131 -134
  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 -37
  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 -353
  67. package/src/views/auth2.vue +90 -90
  68. package/src/views/auth3.vue +148 -148
  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
@@ -1,104 +1,104 @@
1
- import http from '../assets/http.js'
2
- import ak from '../assets/ak.js'
3
- import config from '../assets/config.js'
4
- import {ua} from "../assets/ua";
5
- import service from "../service"
6
-
7
- var face = {
8
-
9
- need(){
10
-
11
- let token = ak.http.getQueryString('facetoken')
12
- if(ak.utils.isEmpty(token)){
13
- localStorage.removeItem('face.biz_no')
14
- return false
15
- }else{
16
- return true
17
- }
18
-
19
- },
20
- getData(){
21
-
22
- let biz_no = localStorage.getItem('face.biz_no')
23
- let faceType = localStorage.getItem('face.faceType')
24
-
25
- localStorage.removeItem('face.biz_no')
26
- localStorage.removeItem('face.faceType')
27
-
28
- return {
29
- biz_no:biz_no,
30
- expired: "-1000",
31
- buz: "POLICY_FILE",
32
- domain: "POLICY",
33
- actions: '',
34
- buzId: Number(`${Math.random()*10}`.slice(2, 22)),
35
- fileName: Number(`${Math.random()*10}`.slice(2, 22)),
36
- faceType:faceType
37
- }
38
- },
39
-
40
- invoke(params){
41
-
42
- let faceType = params.faceType
43
- delete params.faceType
44
-
45
- if(ua.isIspPhone){
46
-
47
-
48
- }else if(ua.microMsg){
49
-
50
- let apiUrl = ''
51
- if(faceType == 'wy'){
52
- apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceResult'
53
- }else{
54
- apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceResultNew'
55
- }
56
-
57
- return http.post(apiUrl,params,true,true).then((data)=>{
58
-
59
- let res = data.responseContent
60
- let statusCode = data.stadusCode
61
-
62
- if(statusCode == 200){
63
-
64
- if(res.status == 'OK'){
65
-
66
- let resData = {
67
- confidence: res.verify_result.result_faceid.confidence,
68
- image:res.images.image_best,
69
- imageFile: res.faceFileId,
70
- success: true
71
- }
72
-
73
- service.saveInitService('getFaceResult',resData)
74
- let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
75
- window.location.href = reUrl
76
-
77
- return Promise.resolve(resData)
78
-
79
- }else{
80
- let failedData = {
81
- reason: res.verify_result.error_message,
82
- success: false
83
- }
84
- service.saveInitService('getFaceResult',failedData)
85
- let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
86
- window.location.href = reUrl
87
- return Promise.reject(failedData)
88
- }
89
- }else{
90
- return Promise.reject()
91
- }
92
-
93
-
94
- })
95
-
96
- }else{
97
- Promise.reject()
98
- }
99
-
100
- }
101
-
102
- }
103
-
104
- export default face;
1
+ import http from '../assets/http.js'
2
+ import ak from '../assets/ak.js'
3
+ import config from '../assets/config.js'
4
+ import {ua} from "../assets/ua";
5
+ import service from "../service"
6
+
7
+ var face = {
8
+
9
+ need(){
10
+
11
+ let token = ak.http.getQueryString('facetoken')
12
+ if(ak.utils.isEmpty(token)){
13
+ localStorage.removeItem('face.biz_no')
14
+ return false
15
+ }else{
16
+ return true
17
+ }
18
+
19
+ },
20
+ getData(){
21
+
22
+ let biz_no = localStorage.getItem('face.biz_no')
23
+ let faceType = localStorage.getItem('face.faceType')
24
+
25
+ localStorage.removeItem('face.biz_no')
26
+ localStorage.removeItem('face.faceType')
27
+
28
+ return {
29
+ biz_no:biz_no,
30
+ expired: "-1000",
31
+ buz: "POLICY_FILE",
32
+ domain: "POLICY",
33
+ actions: '',
34
+ buzId: Number(`${Math.random()*10}`.slice(2, 22)),
35
+ fileName: Number(`${Math.random()*10}`.slice(2, 22)),
36
+ faceType:faceType
37
+ }
38
+ },
39
+
40
+ invoke(params){
41
+
42
+ let faceType = params.faceType
43
+ delete params.faceType
44
+
45
+ if(ua.isIspPhone){
46
+
47
+
48
+ }else if(ua.microMsg){
49
+
50
+ let apiUrl = ''
51
+ if(faceType == 'wy'){
52
+ apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceResult'
53
+ }else{
54
+ apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceResultNew'
55
+ }
56
+
57
+ return http.post(apiUrl,params,true,true).then((data)=>{
58
+
59
+ let res = data.responseContent
60
+ let statusCode = data.stadusCode
61
+
62
+ if(statusCode == 200){
63
+
64
+ if(res.status == 'OK'){
65
+
66
+ let resData = {
67
+ confidence: res.verify_result.result_faceid.confidence,
68
+ image:res.images.image_best,
69
+ imageFile: res.faceFileId,
70
+ success: true
71
+ }
72
+
73
+ service.saveInitService('getFaceResult',resData)
74
+ let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
75
+ window.location.href = reUrl
76
+
77
+ return Promise.resolve(resData)
78
+
79
+ }else{
80
+ let failedData = {
81
+ reason: res.verify_result.error_message,
82
+ success: false
83
+ }
84
+ service.saveInitService('getFaceResult',failedData)
85
+ let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
86
+ window.location.href = reUrl
87
+ return Promise.reject(failedData)
88
+ }
89
+ }else{
90
+ return Promise.reject()
91
+ }
92
+
93
+
94
+ })
95
+
96
+ }else{
97
+ Promise.reject()
98
+ }
99
+
100
+ }
101
+
102
+ }
103
+
104
+ export default face;
@@ -1,40 +1,40 @@
1
- import http from '../assets/http.js'
2
- import ak from '../assets/ak.js'
3
- import config from '../assets/config.js'
4
- import {ua} from "../assets/ua";
5
-
6
- var getMenus = {
7
-
8
- getData(){
9
-
10
- if(ua.isIspPhone){
11
- return {'system': config.sys.id,'platform':'PHONE'}
12
- }else if(ua.microMsg){
13
- return {'system': config.sys.id,'platform':'WX'}
14
- }else{
15
- return {}
16
- }
17
-
18
- },
19
-
20
- invoke(params){
21
-
22
- if(config.sys.authType == 'sso'){
23
- return http.post('/api/v1/ext/auth/auth/getMenus',params,true).then((data)=>{
24
- return Promise.resolve(data)
25
- }
26
- )
27
- }else if(config.sys.authType == 'wx'){
28
- return http.post('/api/v1/ext/auth/auth/getCommonMenus',params,false).then((data)=>{
29
- return Promise.resolve(data)
30
- }
31
- )
32
- }else{
33
- return Promise.resolve()
34
- }
35
-
36
- }
37
-
38
- }
39
-
40
- export default getMenus;
1
+ import http from '../assets/http.js'
2
+ import ak from '../assets/ak.js'
3
+ import config from '../assets/config.js'
4
+ import {ua} from "../assets/ua";
5
+
6
+ var getMenus = {
7
+
8
+ getData(){
9
+
10
+ if(ua.isIspPhone){
11
+ return {'system': config.sys.id,'platform':'PHONE'}
12
+ }else if(ua.microMsg){
13
+ return {'system': config.sys.id,'platform':'WX'}
14
+ }else{
15
+ return {}
16
+ }
17
+
18
+ },
19
+
20
+ invoke(params){
21
+
22
+ if(config.sys.authType == 'sso'){
23
+ return http.post('/api/v1/ext/auth/auth/getMenus',params,true).then((data)=>{
24
+ return Promise.resolve(data)
25
+ }
26
+ )
27
+ }else if(config.sys.authType == 'wx'){
28
+ return http.post('/api/v1/ext/auth/auth/getCommonMenus',params,false).then((data)=>{
29
+ return Promise.resolve(data)
30
+ }
31
+ )
32
+ }else{
33
+ return Promise.resolve()
34
+ }
35
+
36
+ }
37
+
38
+ }
39
+
40
+ export default getMenus;
@@ -1,128 +1,128 @@
1
- import ak from '../assets/ak.js'
2
- import isp_phone from '../platform/isp_phone.js'
3
- import session from '../session'
4
- import {ua} from '../assets/ua.js'
5
- import config from '../assets/config.js'
6
-
7
- var service = {
8
-
9
- getData(){
10
- return {}
11
- },
12
- invoke(params){
13
- if(ua.isIspPhone){
14
- return this.invoke2_isp(params)
15
- }else if(ua.microMsg){
16
- return this.invoke2_microMsg(params)
17
- }else{
18
- return this.invoke2_browser(params)
19
- }
20
- },
21
- invoke2_isp(params){
22
-
23
- if(!ak.utils.isEmpty(isp_phone.data.GET_PHONE_INFO)){
24
- let data = isp_phone.data.GET_PHONE_INFO.nativeData
25
- return Promise.resolve({
26
- model:data.model,
27
- systemType:data.systemType,
28
- version:data.version,
29
- brand:data.brand,
30
- chancel:data.chancel,
31
- isp:data.isp,
32
- startTime:data.startTime,
33
- timeZone: data.timeZone,
34
- uuid: data.uuid,
35
- packageInfo: data.packageInfo,
36
- loginName: data.loginName,
37
- ip:data.ip
38
- })
39
- }
40
-
41
- isp_phone.callShell('GET_PHONE_INFO', null, null)
42
- let self = this
43
- var p = new Promise(function(resolve, reject){
44
- self.onWait(self,resolve)
45
- });
46
-
47
- return p;
48
-
49
- },
50
- invoke2_microMsg(params){
51
- if(ak.utils.isEmpty(session.sys.uuid))
52
- session.sys.uuid = ak.utils.guid2()
53
-
54
- if(ak.utils.isEmpty(session.sys.startTime))
55
- session.sys.startTime = Date.parse(new Date())
56
- console.log(navigator)
57
- let connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection || { type:'unknown' }
58
- let offset = (new Date()).getTimezoneOffset() / 60
59
- return Promise.resolve({
60
- model:'NULL',
61
- systemType:'microMsg',
62
- version:'NULL',
63
- brand:'NULL',
64
- chancel:'NULL',
65
- isp: `${connection.type || connection.effectiveType}`,
66
- startTime:session.sys.startTime,
67
- timeZone: offset,
68
- uuid: session.sys.uuid,
69
- packageInfo: config.sys.id + '-1.9.1',
70
- loginName: session.userInfo.userId,
71
- ip:'0.0.0.0'
72
- })
73
-
74
- },
75
- invoke2_browser(params){
76
- if(ak.utils.isEmpty(session.sys.uuid))
77
- session.sys.uuid = ak.utils.guid2()
78
-
79
- if(ak.utils.isEmpty(session.sys.startTime))
80
- session.sys.startTime = Date.parse(new Date())
81
- console.log(navigator)
82
- let connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection || { type:'unknown' }
83
- let offset = (new Date()).getTimezoneOffset() / 60
84
- return Promise.resolve({
85
- model:'NULL',
86
- systemType:'microMsg',
87
- version:'NULL',
88
- brand:'NULL',
89
- chancel:'NULL',
90
- isp: `${connection.type || connection.effectiveType}`,
91
- startTime:session.sys.startTime,
92
- timeZone: offset,
93
- uuid: session.sys.uuid,
94
- packageInfo: config.sys.id + '-1.9.1',
95
- loginName: session.userInfo.userId,
96
- ip:'0.0.0.0'
97
- })
98
-
99
- },
100
- onWait(self,resolve){
101
-
102
- if(isp_phone.status.GET_PHONE_INFO >= 10){
103
- isp_phone.status.GET_PHONE_INFO = 0
104
- let data = isp_phone.data.GET_PHONE_INFO.nativeData
105
- resolve({
106
- model:data.model,
107
- systemType:data.systemType,
108
- version:data.version,
109
- brand:data.brand,
110
- chancel:data.chancel,
111
- isp:data.isp,
112
- startTime:data.startTime,
113
- timeZone: data.timeZone,
114
- uuid: data.uuid,
115
- packageInfo: data.packageInfo,
116
- loginName: data.loginName,
117
- ip:data.ip
118
- })
119
- }else{
120
- isp_phone.status.GET_PHONE_INFO++
121
- setTimeout(function(){self.onWait(self,resolve)}, 500);
122
- }
123
-
124
- }
125
-
126
- }
127
-
128
- export default service;
1
+ import ak from '../assets/ak.js'
2
+ import isp_phone from '../platform/isp_phone.js'
3
+ import session from '../session'
4
+ import {ua} from '../assets/ua.js'
5
+ import config from '../assets/config.js'
6
+
7
+ var service = {
8
+
9
+ getData(){
10
+ return {}
11
+ },
12
+ invoke(params){
13
+ if(ua.isIspPhone){
14
+ return this.invoke2_isp(params)
15
+ }else if(ua.microMsg){
16
+ return this.invoke2_microMsg(params)
17
+ }else{
18
+ return this.invoke2_browser(params)
19
+ }
20
+ },
21
+ invoke2_isp(params){
22
+
23
+ if(!ak.utils.isEmpty(isp_phone.data.GET_PHONE_INFO)){
24
+ let data = isp_phone.data.GET_PHONE_INFO.nativeData
25
+ return Promise.resolve({
26
+ model:data.model,
27
+ systemType:data.systemType,
28
+ version:data.version,
29
+ brand:data.brand,
30
+ chancel:data.chancel,
31
+ isp:data.isp,
32
+ startTime:data.startTime,
33
+ timeZone: data.timeZone,
34
+ uuid: data.uuid,
35
+ packageInfo: data.packageInfo,
36
+ loginName: data.loginName,
37
+ ip:data.ip
38
+ })
39
+ }
40
+
41
+ isp_phone.callShell('GET_PHONE_INFO', null, null)
42
+ let self = this
43
+ var p = new Promise(function(resolve, reject){
44
+ self.onWait(self,resolve)
45
+ });
46
+
47
+ return p;
48
+
49
+ },
50
+ invoke2_microMsg(params){
51
+ if(ak.utils.isEmpty(session.sys.uuid))
52
+ session.sys.uuid = ak.utils.guid2()
53
+
54
+ if(ak.utils.isEmpty(session.sys.startTime))
55
+ session.sys.startTime = Date.parse(new Date())
56
+ console.log(navigator)
57
+ let connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection || { type:'unknown' }
58
+ let offset = (new Date()).getTimezoneOffset() / 60
59
+ return Promise.resolve({
60
+ model:'NULL',
61
+ systemType:'microMsg',
62
+ version:'NULL',
63
+ brand:'NULL',
64
+ chancel:'NULL',
65
+ isp: `${connection.type || connection.effectiveType}`,
66
+ startTime:session.sys.startTime,
67
+ timeZone: offset,
68
+ uuid: session.sys.uuid,
69
+ packageInfo: config.sys.id + '-1.9.1',
70
+ loginName: session.userInfo.userId,
71
+ ip:'0.0.0.0'
72
+ })
73
+
74
+ },
75
+ invoke2_browser(params){
76
+ if(ak.utils.isEmpty(session.sys.uuid))
77
+ session.sys.uuid = ak.utils.guid2()
78
+
79
+ if(ak.utils.isEmpty(session.sys.startTime))
80
+ session.sys.startTime = Date.parse(new Date())
81
+ console.log(navigator)
82
+ let connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection || { type:'unknown' }
83
+ let offset = (new Date()).getTimezoneOffset() / 60
84
+ return Promise.resolve({
85
+ model:'NULL',
86
+ systemType:'microMsg',
87
+ version:'NULL',
88
+ brand:'NULL',
89
+ chancel:'NULL',
90
+ isp: `${connection.type || connection.effectiveType}`,
91
+ startTime:session.sys.startTime,
92
+ timeZone: offset,
93
+ uuid: session.sys.uuid,
94
+ packageInfo: config.sys.id + '-1.9.1',
95
+ loginName: session.userInfo.userId,
96
+ ip:'0.0.0.0'
97
+ })
98
+
99
+ },
100
+ onWait(self,resolve){
101
+
102
+ if(isp_phone.status.GET_PHONE_INFO >= 10){
103
+ isp_phone.status.GET_PHONE_INFO = 0
104
+ let data = isp_phone.data.GET_PHONE_INFO.nativeData
105
+ resolve({
106
+ model:data.model,
107
+ systemType:data.systemType,
108
+ version:data.version,
109
+ brand:data.brand,
110
+ chancel:data.chancel,
111
+ isp:data.isp,
112
+ startTime:data.startTime,
113
+ timeZone: data.timeZone,
114
+ uuid: data.uuid,
115
+ packageInfo: data.packageInfo,
116
+ loginName: data.loginName,
117
+ ip:data.ip
118
+ })
119
+ }else{
120
+ isp_phone.status.GET_PHONE_INFO++
121
+ setTimeout(function(){self.onWait(self,resolve)}, 500);
122
+ }
123
+
124
+ }
125
+
126
+ }
127
+
128
+ export default service;