fstarter 2.10.56 → 2.11.1

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 (93) hide show
  1. package/.babelrc +6 -6
  2. package/.editorconfig +9 -9
  3. package/index.html +22 -22
  4. package/index.js +222 -222
  5. package/package.json +104 -104
  6. package/src/App.vue +38 -38
  7. package/src/i18n/en-US.js +35 -35
  8. package/src/i18n/zh-CN.js +35 -35
  9. package/src/main.js +95 -95
  10. package/src/plugins/assets/ak.js +948 -948
  11. package/src/plugins/assets/callNative.js +490 -490
  12. package/src/plugins/assets/compressImg.js +75 -75
  13. package/src/plugins/assets/config.js +106 -106
  14. package/src/plugins/assets/fileServer.js +469 -469
  15. package/src/plugins/assets/http.js +344 -344
  16. package/src/plugins/assets/ua.js +27 -27
  17. package/src/plugins/components/BSButton.vue +61 -61
  18. package/src/plugins/components/BSCascader.vue +465 -465
  19. package/src/plugins/components/BSCell.vue +48 -48
  20. package/src/plugins/components/BSDatePicker.vue +167 -167
  21. package/src/plugins/components/BSImage.vue +42 -42
  22. package/src/plugins/components/BSInput.vue +140 -140
  23. package/src/plugins/components/BSList.vue +81 -81
  24. package/src/plugins/components/BSPicCode.vue +96 -96
  25. package/src/plugins/components/BSPopup.vue +43 -43
  26. package/src/plugins/components/BSRadio.vue +97 -97
  27. package/src/plugins/components/BSSearch.vue +109 -109
  28. package/src/plugins/components/BSSelect.vue +144 -144
  29. package/src/plugins/components/BSSign.vue +454 -454
  30. package/src/plugins/components/BSStepper.vue +115 -115
  31. package/src/plugins/components/BSUpload.vue +92 -92
  32. package/src/plugins/components/BSUpload2.vue +397 -397
  33. package/src/plugins/components/BSVerCode.vue +128 -128
  34. package/src/plugins/components/BSViewer.vue +92 -92
  35. package/src/plugins/components/base.js +496 -496
  36. package/src/plugins/components/base2.js +489 -489
  37. package/src/plugins/lib/weixin.js +20 -20
  38. package/src/plugins/platform/index.js +7 -7
  39. package/src/plugins/platform/isp_phone.js +310 -310
  40. package/src/plugins/plugins/README.md +560 -0
  41. package/src/plugins/plugins/browserUtils.js +925 -0
  42. package/src/plugins/plugins/components/imageCropper.vue +299 -0
  43. package/src/plugins/plugins/components/images/bz.png +0 -0
  44. package/src/plugins/plugins/components/images/correct.png +0 -0
  45. package/src/plugins/plugins/components/images/error.png +0 -0
  46. package/src/plugins/plugins/components/images/mohu.png +0 -0
  47. package/src/plugins/plugins/components/images/qs.png +0 -0
  48. package/src/plugins/plugins/components/images/zd.png +0 -0
  49. package/src/plugins/plugins/components/pdfPreview.vue +688 -0
  50. package/src/plugins/plugins/demo.vue +832 -0
  51. package/src/plugins/plugins/native-js-sdk.js +360 -0
  52. package/src/plugins/plugins/nativeUtils.js +1444 -0
  53. package/src/plugins/route/index.js +140 -140
  54. package/src/plugins/selector/index.js +342 -342
  55. package/src/plugins/service/index.js +81 -81
  56. package/src/plugins/services/callCamera.js +53 -53
  57. package/src/plugins/services/exit.js +37 -36
  58. package/src/plugins/services/face.js +69 -69
  59. package/src/plugins/services/faceH5.js +54 -54
  60. package/src/plugins/services/faceInApp.js +31 -31
  61. package/src/plugins/services/faceTx.js +61 -61
  62. package/src/plugins/services/getFaceResult.js +104 -104
  63. package/src/plugins/services/getH5FaceResult.js +62 -62
  64. package/src/plugins/services/getMenus.js +40 -40
  65. package/src/plugins/services/getSystemData.js +144 -128
  66. package/src/plugins/services/getToken.js +93 -79
  67. package/src/plugins/services/getTxFaceResult.js +83 -83
  68. package/src/plugins/services/getUserInfo.js +47 -47
  69. package/src/plugins/services/goSetPage.js +40 -40
  70. package/src/plugins/services/hideFhoneTitle.js +36 -36
  71. package/src/plugins/services/index.js +45 -45
  72. package/src/plugins/services/init.js +35 -35
  73. package/src/plugins/services/jumpView.js +42 -40
  74. package/src/plugins/services/logout.js +44 -43
  75. package/src/plugins/services/share.js +113 -113
  76. package/src/plugins/services/statusBarHeight.js +39 -39
  77. package/src/plugins/session/index.js +32 -32
  78. package/src/services/getAuthInfo.js +22 -22
  79. package/src/services/index.js +9 -9
  80. package/src/services/sendVerCode.js +23 -23
  81. package/src/views/auth.vue +367 -367
  82. package/src/views/auth2.vue +90 -90
  83. package/src/views/auth3.vue +157 -157
  84. package/src/views/auth4.vue +8979 -8979
  85. package/src/views/auth5.vue +50 -50
  86. package/src/views/authh5.vue +369 -369
  87. package/src/views/components/BankSelect.vue +55 -55
  88. package/src/views/foot.vue +140 -140
  89. package/src/views/page.vue +222 -222
  90. package/src/views/shellFunc.vue +41 -41
  91. package/themes/basic.css +1 -1
  92. package/webpack.config.js +144 -144
  93. package/fstarter.iml +0 -9
@@ -1,47 +1,47 @@
1
- import http from '../assets/http.js'
2
- import ak from '../assets/ak.js'
3
- import config from '../assets/config.js'
4
-
5
- var getUserInfo = {
6
-
7
- getData(){
8
- return {'system': config.sys.id}
9
- },
10
-
11
- invoke(params){
12
-
13
- if(config.sys.authType == 'sso'){
14
- return http.post('/api/v1/ext/auth/auth/getUserRoles',params,true).then((data)=>{
15
- return Promise.resolve({
16
- userId:data.userId,
17
- name:data.name,
18
- roles:data.roles,
19
- attrs:{}
20
- })
21
- }
22
- )
23
- }else if(config.sys.authType == 'wx'){
24
- return http.post('/api/v1/hasl/ibp/wechat/account/getUserInfo',params,true).then((data)=>{
25
- return Promise.resolve({
26
- userId:'',
27
- name:data.name,
28
- roles:'',
29
- attrs:{
30
- mobile:data.mobile,
31
- companyCode:data.companyCode,
32
- companyNo:data.companyNo,
33
- companyName:data.companyName,
34
- authState:data.authState
35
- }
36
- })
37
- }
38
- )
39
- }else{
40
- return Promise.resolve()
41
- }
42
-
43
- }
44
-
45
- }
46
-
47
- export default getUserInfo;
1
+ import http from '../assets/http.js'
2
+ import ak from '../assets/ak.js'
3
+ import config from '../assets/config.js'
4
+
5
+ var getUserInfo = {
6
+
7
+ getData(){
8
+ return {'system': config.sys.id}
9
+ },
10
+
11
+ invoke(params){
12
+
13
+ if(config.sys.authType == 'sso'){
14
+ return http.post('/api/v1/ext/auth/auth/getUserRoles',params,true).then((data)=>{
15
+ return Promise.resolve({
16
+ userId:data.userId,
17
+ name:data.name,
18
+ roles:data.roles,
19
+ attrs:{}
20
+ })
21
+ }
22
+ )
23
+ }else if(config.sys.authType == 'wx'){
24
+ return http.post('/api/v1/hasl/ibp/wechat/account/getUserInfo',params,true).then((data)=>{
25
+ return Promise.resolve({
26
+ userId:'',
27
+ name:data.name,
28
+ roles:'',
29
+ attrs:{
30
+ mobile:data.mobile,
31
+ companyCode:data.companyCode,
32
+ companyNo:data.companyNo,
33
+ companyName:data.companyName,
34
+ authState:data.authState
35
+ }
36
+ })
37
+ }
38
+ )
39
+ }else{
40
+ return Promise.resolve()
41
+ }
42
+
43
+ }
44
+
45
+ }
46
+
47
+ export default getUserInfo;
@@ -1,40 +1,40 @@
1
- import ak from '../assets/ak.js'
2
- import isp_phone from '../platform/isp_phone.js'
3
- import { ua, ua2 } from '../assets/ua.js'
4
- import { SHARE_CHANNEL, SHARE_TYPE, PARAM_FIELD } from "../assets/callNative";
5
-
6
- var service = {
7
-
8
- getData(params){
9
- return params
10
- },
11
- invoke(params){
12
- debugger
13
- const ua2Res = ua2()
14
- if(ua2Res.isIspPhone){
15
- // if(true){
16
- return this.invoke2_isp(params)
17
- }else if(ua2Res.microMsg){
18
- return this.invoke2_microMsg(params)
19
- }else{
20
- return Promise.resolve()
21
- }
22
-
23
- },
24
- invoke2_isp(params){
25
- let requestJson = {
26
- }
27
- debugger
28
- isp_phone.callShell('GO_SET_PAGE', requestJson, null, params.vnode)
29
- return Promise.resolve({})
30
- },
31
- invoke2_microMsg(params){
32
-
33
- return Promise.resolve({
34
-
35
- })
36
-
37
- },
38
- }
39
-
40
- export default service;
1
+ import ak from '../assets/ak.js'
2
+ import isp_phone from '../platform/isp_phone.js'
3
+ import { ua, ua2 } from '../assets/ua.js'
4
+ import { SHARE_CHANNEL, SHARE_TYPE, PARAM_FIELD } from "../assets/callNative";
5
+
6
+ var service = {
7
+
8
+ getData(params){
9
+ return params
10
+ },
11
+ invoke(params){
12
+ debugger
13
+ const ua2Res = ua2()
14
+ if(ua2Res.isIspPhone){
15
+ // if(true){
16
+ return this.invoke2_isp(params)
17
+ }else if(ua2Res.microMsg){
18
+ return this.invoke2_microMsg(params)
19
+ }else{
20
+ return Promise.resolve()
21
+ }
22
+
23
+ },
24
+ invoke2_isp(params){
25
+ let requestJson = {
26
+ }
27
+ debugger
28
+ isp_phone.callShell('GO_SET_PAGE', requestJson, null, params.vnode)
29
+ return Promise.resolve({})
30
+ },
31
+ invoke2_microMsg(params){
32
+
33
+ return Promise.resolve({
34
+
35
+ })
36
+
37
+ },
38
+ }
39
+
40
+ export default service;
@@ -1,36 +1,36 @@
1
- import ak from '../assets/ak.js'
2
- import isp_phone from '../platform/isp_phone.js'
3
- import {ua} from '../assets/ua.js'
4
-
5
- var service = {
6
-
7
- getData(){
8
- return {}
9
- },
10
- invoke(params){
11
-
12
- if(ua.isIspPhone){
13
- return this.invoke2_isp(params)
14
- }else if(ua.microMsg){
15
- return this.invoke2_microMsg(params)
16
- }else{
17
- return Promise.resolve()
18
- }
19
-
20
- },
21
- invoke2_isp(params){
22
-
23
- let self = this
24
- isp_phone.callShell('HIDE_FHONE_TITLE', null, null)
25
- return Promise.resolve({})
26
- },
27
- invoke2_microMsg(params){
28
-
29
- return Promise.resolve({
30
-
31
- })
32
-
33
- }
34
- }
35
-
36
- export default service;
1
+ import ak from '../assets/ak.js'
2
+ import isp_phone from '../platform/isp_phone.js'
3
+ import {ua} from '../assets/ua.js'
4
+
5
+ var service = {
6
+
7
+ getData(){
8
+ return {}
9
+ },
10
+ invoke(params){
11
+
12
+ if(ua.isIspPhone){
13
+ return this.invoke2_isp(params)
14
+ }else if(ua.microMsg){
15
+ return this.invoke2_microMsg(params)
16
+ }else{
17
+ return Promise.resolve()
18
+ }
19
+
20
+ },
21
+ invoke2_isp(params){
22
+
23
+ let self = this
24
+ isp_phone.callShell('HIDE_FHONE_TITLE', null, null)
25
+ return Promise.resolve({})
26
+ },
27
+ invoke2_microMsg(params){
28
+
29
+ return Promise.resolve({
30
+
31
+ })
32
+
33
+ }
34
+ }
35
+
36
+ export default service;
@@ -1,45 +1,45 @@
1
- import getToken from './getToken'
2
- import getMenus from './getMenus'
3
- import getUserInfo from './getUserInfo'
4
- import getSystemData from './getSystemData'
5
- import hideFhoneTitle from './hideFhoneTitle'
6
- import logout from './logout'
7
- import share from './share'
8
- import exit from './exit'
9
- import face from './face'
10
- import getFaceResult from './getFaceResult'
11
- import init from './init'
12
- import camera from './callCamera'
13
- import jumpView from './jumpView'
14
- import statusBarHeight from './statusBarHeight'
15
- import goSetPage from './goSetPage'
16
- import faceInApp from './faceInApp'
17
- import faceTx from './faceTx'
18
- import getTxFaceResult from './getTxFaceResult'
19
- import faceH5 from './faceH5'
20
- import getH5FaceResult from './getH5FaceResult'
21
-
22
-
23
- var services = services || {}
24
-
25
- services['getToken'] = getToken
26
- services['getMenus'] = getMenus
27
- services['getUserInfo'] = getUserInfo
28
- services['getSystemData'] = getSystemData
29
- services['hideToolBar'] = hideFhoneTitle
30
- services['logout'] = logout
31
- services['share'] = share
32
- services['exit'] = exit
33
- services['face'] = face
34
- services['getFaceResult'] = getFaceResult
35
- services['init'] = init
36
- services['camera'] = camera
37
- services['jumpView'] = jumpView
38
- services['goSetPage'] = goSetPage
39
- services['statusBarHeight'] = statusBarHeight
40
- services['faceInApp'] = faceInApp
41
- services['faceTx'] = faceTx
42
- services['getTxFaceResult'] = getTxFaceResult
43
- services['faceH5'] = faceH5
44
- services['getH5FaceResult'] = getH5FaceResult
45
- export default services;
1
+ import getToken from './getToken'
2
+ import getMenus from './getMenus'
3
+ import getUserInfo from './getUserInfo'
4
+ import getSystemData from './getSystemData'
5
+ import hideFhoneTitle from './hideFhoneTitle'
6
+ import logout from './logout'
7
+ import share from './share'
8
+ import exit from './exit'
9
+ import face from './face'
10
+ import getFaceResult from './getFaceResult'
11
+ import init from './init'
12
+ import camera from './callCamera'
13
+ import jumpView from './jumpView'
14
+ import statusBarHeight from './statusBarHeight'
15
+ import goSetPage from './goSetPage'
16
+ import faceInApp from './faceInApp'
17
+ import faceTx from './faceTx'
18
+ import getTxFaceResult from './getTxFaceResult'
19
+ import faceH5 from './faceH5'
20
+ import getH5FaceResult from './getH5FaceResult'
21
+
22
+
23
+ var services = services || {}
24
+
25
+ services['getToken'] = getToken
26
+ services['getMenus'] = getMenus
27
+ services['getUserInfo'] = getUserInfo
28
+ services['getSystemData'] = getSystemData
29
+ services['hideToolBar'] = hideFhoneTitle
30
+ services['logout'] = logout
31
+ services['share'] = share
32
+ services['exit'] = exit
33
+ services['face'] = face
34
+ services['getFaceResult'] = getFaceResult
35
+ services['init'] = init
36
+ services['camera'] = camera
37
+ services['jumpView'] = jumpView
38
+ services['goSetPage'] = goSetPage
39
+ services['statusBarHeight'] = statusBarHeight
40
+ services['faceInApp'] = faceInApp
41
+ services['faceTx'] = faceTx
42
+ services['getTxFaceResult'] = getTxFaceResult
43
+ services['faceH5'] = faceH5
44
+ services['getH5FaceResult'] = getH5FaceResult
45
+ export default services;
@@ -1,35 +1,35 @@
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 inits = {
7
-
8
- eventName(){
9
- return localStorage.getItem('service.initServiceId')
10
- },
11
- getData(){
12
- return {}
13
- },
14
- invoke(){
15
-
16
- let initServiceId = localStorage.getItem('service.initServiceId')
17
- if(ak.utils.isEmpty(initServiceId)){
18
-
19
- localStorage.removeItem('service.initServiceId')
20
- localStorage.removeItem('service.initServiceData')
21
- return Promise.resolve({})
22
- }else{
23
-
24
-
25
- let data = JSON.parse(localStorage.getItem('service.initServiceData'))
26
- localStorage.removeItem('service.initServiceId')
27
- localStorage.removeItem('service.initServiceData')
28
- return Promise.resolve(data)
29
- }
30
-
31
- }
32
-
33
- }
34
-
35
- export default inits;
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 inits = {
7
+
8
+ eventName(){
9
+ return localStorage.getItem('service.initServiceId')
10
+ },
11
+ getData(){
12
+ return {}
13
+ },
14
+ invoke(){
15
+
16
+ let initServiceId = localStorage.getItem('service.initServiceId')
17
+ if(ak.utils.isEmpty(initServiceId)){
18
+
19
+ localStorage.removeItem('service.initServiceId')
20
+ localStorage.removeItem('service.initServiceData')
21
+ return Promise.resolve({})
22
+ }else{
23
+
24
+
25
+ let data = JSON.parse(localStorage.getItem('service.initServiceData'))
26
+ localStorage.removeItem('service.initServiceId')
27
+ localStorage.removeItem('service.initServiceData')
28
+ return Promise.resolve(data)
29
+ }
30
+
31
+ }
32
+
33
+ }
34
+
35
+ export default inits;
@@ -1,40 +1,42 @@
1
- import ak from '../assets/ak.js'
2
- import isp_phone from '../platform/isp_phone.js'
3
- import { ua, ua2 } from '../assets/ua.js'
4
- import { SHARE_CHANNEL, SHARE_TYPE, PARAM_FIELD } from "../assets/callNative";
5
-
6
- var service = {
7
-
8
- getData(params){
9
- return params
10
- },
11
- invoke(params){
12
- const ua2Res = ua2()
13
- if(ua2Res.isIspPhone){
14
- // if(true){
15
- return this.invoke2_isp(params)
16
- }else if(ua2Res.microMsg){
17
- return this.invoke2_microMsg(params)
18
- }else{
19
- return Promise.resolve()
20
- }
21
-
22
- },
23
- invoke2_isp(params){
24
- let requestJson = {
25
- url: params.url,
26
- pageCode: params.pageCode
27
- }
28
- isp_phone.callShell('JUMP_VIEW', requestJson)
29
- return Promise.resolve({})
30
- },
31
- invoke2_microMsg(params){
32
-
33
- return Promise.resolve({
34
-
35
- })
36
-
37
- },
38
- }
39
-
40
- export default service;
1
+ import ak from '../assets/ak.js'
2
+ import isp_phone from '../platform/isp_phone.js'
3
+ import { ua, ua2 } from '../assets/ua.js'
4
+ import { SHARE_CHANNEL, SHARE_TYPE, PARAM_FIELD } from "../assets/callNative";
5
+ import nativeUtils from '../plugins/nativeUtils'
6
+
7
+ var service = {
8
+
9
+ getData(params){
10
+ return params
11
+ },
12
+ invoke(params){
13
+ const ua2Res = ua2()
14
+ if(ua2Res.isIspPhone){
15
+ // if(true){
16
+ return this.invoke2_isp(params)
17
+ }else if(ua2Res.microMsg){
18
+ return this.invoke2_microMsg(params)
19
+ }else{
20
+ return Promise.resolve()
21
+ }
22
+
23
+ },
24
+ invoke2_isp(params){
25
+ return nativeUtils.openPage(params.url)
26
+ // let requestJson = {
27
+ // url: params.url,
28
+ // pageCode: params.pageCode
29
+ // }
30
+ // isp_phone.callShell('JUMP_VIEW', requestJson)
31
+ // return Promise.resolve({})
32
+ },
33
+ invoke2_microMsg(params){
34
+
35
+ return Promise.resolve({
36
+
37
+ })
38
+
39
+ },
40
+ }
41
+
42
+ export default service;
@@ -1,43 +1,44 @@
1
- import ak from '../assets/ak.js'
2
- import isp_phone from '../platform/isp_phone.js'
3
- import {ua} from '../assets/ua.js'
4
- import config from '../assets/config.js'
5
- import session from "../session";
6
-
7
- var service = {
8
-
9
- getData(){
10
- return {}
11
- },
12
- invoke(params){
13
-
14
- if(session.sys.isLogined){
15
- session.sys.isLogined = false
16
- }
17
-
18
- if(ua.isIspPhone){
19
- return this.invoke2_isp(params)
20
- }else if(ua.microMsg){
21
- return this.invoke2_microMsg(params)
22
- }else{
23
- return Promise.resolve()
24
- }
25
-
26
- },
27
- invoke2_isp(params){
28
-
29
- let self = this
30
- isp_phone.callShell('JUMP_TO_LOGIN', null, null)
31
- return Promise.resolve({})
32
- },
33
- invoke2_microMsg(params){
34
-
35
- window.location.href = config.sys.loginUrl
36
- return Promise.resolve({
37
-
38
- })
39
-
40
- }
41
- }
42
-
43
- export default service;
1
+ import ak from '../assets/ak.js'
2
+ import isp_phone from '../platform/isp_phone.js'
3
+ import {ua} from '../assets/ua.js'
4
+ import config from '../assets/config.js'
5
+ import session from "../session";
6
+ import nativeUtils from '../plugins/nativeUtils'
7
+
8
+ var service = {
9
+
10
+ getData(){
11
+ return {}
12
+ },
13
+ invoke(params){
14
+
15
+ if(session.sys.isLogined){
16
+ session.sys.isLogined = false
17
+ }
18
+
19
+ if(ua.isIspPhone){
20
+ return this.invoke2_isp(params)
21
+ }else if(ua.microMsg){
22
+ return this.invoke2_microMsg(params)
23
+ }else{
24
+ return Promise.resolve()
25
+ }
26
+
27
+ },
28
+ invoke2_isp(params){
29
+ nativeUtils.toLogin()
30
+ // let self = this
31
+ // isp_phone.callShell('JUMP_TO_LOGIN', null, null)
32
+ return Promise.resolve({})
33
+ },
34
+ invoke2_microMsg(params){
35
+
36
+ window.location.href = config.sys.loginUrl
37
+ return Promise.resolve({
38
+
39
+ })
40
+
41
+ }
42
+ }
43
+
44
+ export default service;