fstarter 2.10.53 → 2.10.54

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 (80) hide show
  1. package/.babelrc +6 -6
  2. package/.editorconfig +9 -9
  3. package/fstarter.iml +9 -0
  4. package/index.html +22 -22
  5. package/index.js +222 -222
  6. package/package.json +104 -104
  7. package/src/App.vue +38 -38
  8. package/src/i18n/en-US.js +35 -35
  9. package/src/i18n/zh-CN.js +35 -35
  10. package/src/main.js +95 -95
  11. package/src/plugins/assets/ak.js +948 -948
  12. package/src/plugins/assets/callNative.js +490 -490
  13. package/src/plugins/assets/compressImg.js +75 -75
  14. package/src/plugins/assets/config.js +106 -106
  15. package/src/plugins/assets/fileServer.js +469 -469
  16. package/src/plugins/assets/http.js +344 -343
  17. package/src/plugins/assets/ua.js +27 -27
  18. package/src/plugins/components/BSButton.vue +61 -61
  19. package/src/plugins/components/BSCascader.vue +465 -465
  20. package/src/plugins/components/BSCell.vue +48 -48
  21. package/src/plugins/components/BSDatePicker.vue +167 -167
  22. package/src/plugins/components/BSImage.vue +42 -42
  23. package/src/plugins/components/BSInput.vue +140 -140
  24. package/src/plugins/components/BSList.vue +81 -81
  25. package/src/plugins/components/BSPicCode.vue +96 -96
  26. package/src/plugins/components/BSPopup.vue +43 -43
  27. package/src/plugins/components/BSRadio.vue +97 -97
  28. package/src/plugins/components/BSSearch.vue +109 -109
  29. package/src/plugins/components/BSSelect.vue +144 -144
  30. package/src/plugins/components/BSSign.vue +454 -454
  31. package/src/plugins/components/BSStepper.vue +115 -115
  32. package/src/plugins/components/BSUpload.vue +92 -92
  33. package/src/plugins/components/BSUpload2.vue +398 -398
  34. package/src/plugins/components/BSVerCode.vue +128 -128
  35. package/src/plugins/components/BSViewer.vue +92 -92
  36. package/src/plugins/components/base.js +496 -496
  37. package/src/plugins/components/base2.js +489 -489
  38. package/src/plugins/lib/weixin.js +20 -20
  39. package/src/plugins/platform/index.js +7 -7
  40. package/src/plugins/platform/isp_phone.js +310 -310
  41. package/src/plugins/route/index.js +140 -140
  42. package/src/plugins/selector/index.js +342 -342
  43. package/src/plugins/service/index.js +81 -81
  44. package/src/plugins/services/callCamera.js +53 -53
  45. package/src/plugins/services/exit.js +36 -36
  46. package/src/plugins/services/face.js +69 -69
  47. package/src/plugins/services/faceH5.js +54 -54
  48. package/src/plugins/services/faceInApp.js +31 -31
  49. package/src/plugins/services/faceTx.js +61 -61
  50. package/src/plugins/services/getFaceResult.js +104 -104
  51. package/src/plugins/services/getH5FaceResult.js +62 -62
  52. package/src/plugins/services/getMenus.js +40 -40
  53. package/src/plugins/services/getSystemData.js +128 -128
  54. package/src/plugins/services/getToken.js +79 -79
  55. package/src/plugins/services/getTxFaceResult.js +83 -83
  56. package/src/plugins/services/getUserInfo.js +47 -47
  57. package/src/plugins/services/goSetPage.js +40 -40
  58. package/src/plugins/services/hideFhoneTitle.js +36 -36
  59. package/src/plugins/services/index.js +45 -45
  60. package/src/plugins/services/init.js +35 -35
  61. package/src/plugins/services/jumpView.js +40 -40
  62. package/src/plugins/services/logout.js +43 -43
  63. package/src/plugins/services/share.js +113 -113
  64. package/src/plugins/services/statusBarHeight.js +39 -39
  65. package/src/plugins/session/index.js +32 -32
  66. package/src/services/getAuthInfo.js +22 -22
  67. package/src/services/index.js +9 -9
  68. package/src/services/sendVerCode.js +23 -23
  69. package/src/views/auth.vue +367 -367
  70. package/src/views/auth2.vue +90 -90
  71. package/src/views/auth3.vue +157 -157
  72. package/src/views/auth4.vue +8979 -8979
  73. package/src/views/auth5.vue +50 -50
  74. package/src/views/authh5.vue +369 -369
  75. package/src/views/components/BankSelect.vue +55 -55
  76. package/src/views/foot.vue +140 -140
  77. package/src/views/page.vue +222 -222
  78. package/src/views/shellFunc.vue +41 -41
  79. package/themes/basic.css +1 -1
  80. package/webpack.config.js +144 -144
@@ -1,61 +1,61 @@
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 faceTx = {
7
-
8
- getData(params){
9
- let nonce = radomKey()
10
- return {
11
- 'idcard_name': params.idcard_name,
12
- 'idcard_number': params.idcard_number,
13
- 'comparison_type': '1',
14
- 'nonce': nonce
15
- }
16
- },
17
-
18
- invoke(params){
19
-
20
- if(ua.isIspPhone){
21
-
22
-
23
- }else if(ua.microMsg){
24
- debugger
25
- let apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceDomain'
26
- // if(faceType == 'wy'){
27
- // apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceDomain'
28
- // }else{
29
- // apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceTokenNew'
30
- // }
31
-
32
- return http.post(apiUrl,params,true,true).then((data)=>{
33
- const objstr = JSON.stringify(Object.assign(params, data))
34
- debugger
35
- localStorage.setItem('faceAbout', objstr)
36
- let cbUrl = ak.http.concatParams(params.cbUrl ? params.cbUrl : window.location.href,'facetoken=1')
37
- const url = `https://${data.optimalDomain}/api/web/login?webankAppId=TIDA55eC&version=1.0.0&nonce=${params.nonce}&orderNo=${data.orderNo}&h5faceId=${data.h5faceId}&url=${encodeURIComponent(cbUrl)}&from=browser&userId=${data.userId}&sign=${data.sign}&redirectType=1&resultType=1`
38
- window.location.href = url
39
- return Promise.resolve(data)
40
-
41
- })
42
-
43
- }else{
44
- Promise.reject()
45
- }
46
-
47
- }
48
-
49
- }
50
- function radomKey(length = 32, needChars = true) {
51
- let chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
52
- let num = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
53
- let final = needChars ? chars : num
54
- let nums = ''
55
- for (var i = 0; i < length; i++) {
56
- const id = parseInt(Math.random() * 61)
57
- nums += final[id]
58
- }
59
- return nums
60
- }
61
- export default faceTx;
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 faceTx = {
7
+
8
+ getData(params){
9
+ let nonce = radomKey()
10
+ return {
11
+ 'idcard_name': params.idcard_name,
12
+ 'idcard_number': params.idcard_number,
13
+ 'comparison_type': '1',
14
+ 'nonce': nonce
15
+ }
16
+ },
17
+
18
+ invoke(params){
19
+
20
+ if(ua.isIspPhone){
21
+
22
+
23
+ }else if(ua.microMsg){
24
+ debugger
25
+ let apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceDomain'
26
+ // if(faceType == 'wy'){
27
+ // apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceDomain'
28
+ // }else{
29
+ // apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceTokenNew'
30
+ // }
31
+
32
+ return http.post(apiUrl,params,true,true).then((data)=>{
33
+ const objstr = JSON.stringify(Object.assign(params, data))
34
+ debugger
35
+ localStorage.setItem('faceAbout', objstr)
36
+ let cbUrl = ak.http.concatParams(params.cbUrl ? params.cbUrl : window.location.href,'facetoken=1')
37
+ const url = `https://${data.optimalDomain}/api/web/login?webankAppId=TIDA55eC&version=1.0.0&nonce=${params.nonce}&orderNo=${data.orderNo}&h5faceId=${data.h5faceId}&url=${encodeURIComponent(cbUrl)}&from=browser&userId=${data.userId}&sign=${data.sign}&redirectType=1&resultType=1`
38
+ window.location.href = url
39
+ return Promise.resolve(data)
40
+
41
+ })
42
+
43
+ }else{
44
+ Promise.reject()
45
+ }
46
+
47
+ }
48
+
49
+ }
50
+ function radomKey(length = 32, needChars = true) {
51
+ let chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
52
+ let num = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
53
+ let final = needChars ? chars : num
54
+ let nums = ''
55
+ for (var i = 0; i < length; i++) {
56
+ const id = parseInt(Math.random() * 61)
57
+ nums += final[id]
58
+ }
59
+ return nums
60
+ }
61
+ export default faceTx;
@@ -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,62 +1,62 @@
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 getH5FaceResult = {
8
-
9
- need(){
10
- let token = ak.http.getQueryString('facetoken')
11
- if(ak.utils.isEmpty(token)){
12
- return false
13
- }else{
14
- return true
15
- }
16
- },
17
- getData(){
18
- let obj = JSON.parse(localStorage.getItem('faceAbout'))
19
- localStorage.removeItem('faceAbout')
20
- return {
21
- requestSource: obj.requestSource,
22
- orderNo: obj.orderNo,
23
- meta: obj.meta
24
- }
25
- },
26
- invoke(params){
27
- if(ua.isIspPhone){
28
-
29
- }else if(ua.microMsg){
30
- let apiUrl = config.http.gwURL + '/api/v1/hasl/preservation/service/faceResultQueryPreservation'
31
- return http.post(apiUrl,params, false, true).then((res)=>{
32
- let data = JSON.parse(res.result)
33
- console.log(data,'=====腾讯返回的结果========')
34
- if(data.resultType == 'SUCCESS') {
35
- let resData = {
36
- confidence: data.similarity,
37
- image: data.facePhotoUrl,
38
- imageFile: data.facePhotoUrl,
39
- success: true
40
- }
41
- service.saveInitService('getFaceResult', resData)
42
- let reUrl = ak.http.deleteParams(window.location.href, 'facetoken')
43
- window.location.href = reUrl
44
- return Promise.resolve(resData)
45
- } else {
46
- let failedData = {
47
- reason: data.failMessage,
48
- success: false
49
- }
50
- service.saveInitService('getFaceResult', failedData)
51
- let reUrl = ak.http.deleteParams(window.location.href, 'facetoken')
52
- window.location.href = reUrl
53
- return Promise.reject(failedData)
54
- }
55
- })
56
- }else{
57
- Promise.reject()
58
- }
59
- }
60
- }
61
-
62
- export default getH5FaceResult;
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 getH5FaceResult = {
8
+
9
+ need(){
10
+ let token = ak.http.getQueryString('facetoken')
11
+ if(ak.utils.isEmpty(token)){
12
+ return false
13
+ }else{
14
+ return true
15
+ }
16
+ },
17
+ getData(){
18
+ let obj = JSON.parse(localStorage.getItem('faceAbout'))
19
+ localStorage.removeItem('faceAbout')
20
+ return {
21
+ requestSource: obj.requestSource,
22
+ orderNo: obj.orderNo,
23
+ meta: obj.meta
24
+ }
25
+ },
26
+ invoke(params){
27
+ if(ua.isIspPhone){
28
+
29
+ }else if(ua.microMsg){
30
+ let apiUrl = config.http.gwURL + '/api/v1/hasl/preservation/service/faceResultQueryPreservation'
31
+ return http.post(apiUrl,params, false, true).then((res)=>{
32
+ let data = JSON.parse(res.result)
33
+ console.log(data,'=====腾讯返回的结果========')
34
+ if(data.resultType == 'SUCCESS') {
35
+ let resData = {
36
+ confidence: data.similarity,
37
+ image: data.facePhotoUrl,
38
+ imageFile: data.facePhotoUrl,
39
+ success: true
40
+ }
41
+ service.saveInitService('getFaceResult', resData)
42
+ let reUrl = ak.http.deleteParams(window.location.href, 'facetoken')
43
+ window.location.href = reUrl
44
+ return Promise.resolve(resData)
45
+ } else {
46
+ let failedData = {
47
+ reason: data.failMessage,
48
+ success: false
49
+ }
50
+ service.saveInitService('getFaceResult', failedData)
51
+ let reUrl = ak.http.deleteParams(window.location.href, 'facetoken')
52
+ window.location.href = reUrl
53
+ return Promise.reject(failedData)
54
+ }
55
+ })
56
+ }else{
57
+ Promise.reject()
58
+ }
59
+ }
60
+ }
61
+
62
+ export default getH5FaceResult;
@@ -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;