fstarter 2.10.50 → 2.10.53
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.
- package/.babelrc +6 -6
- package/.editorconfig +9 -9
- package/index.html +22 -22
- package/index.js +222 -222
- package/package.json +104 -104
- package/src/App.vue +38 -38
- package/src/i18n/en-US.js +35 -35
- package/src/i18n/zh-CN.js +35 -35
- package/src/main.js +95 -87
- package/src/plugins/assets/ak.js +948 -948
- package/src/plugins/assets/callNative.js +490 -490
- package/src/plugins/assets/compressImg.js +75 -75
- package/src/plugins/assets/config.js +106 -106
- package/src/plugins/assets/fileServer.js +469 -469
- package/src/plugins/assets/http.js +343 -343
- package/src/plugins/assets/ua.js +27 -27
- package/src/plugins/components/BSButton.vue +61 -61
- package/src/plugins/components/BSCascader.vue +465 -465
- package/src/plugins/components/BSCell.vue +48 -48
- package/src/plugins/components/BSDatePicker.vue +167 -167
- package/src/plugins/components/BSImage.vue +42 -42
- package/src/plugins/components/BSInput.vue +140 -140
- package/src/plugins/components/BSList.vue +81 -81
- package/src/plugins/components/BSPicCode.vue +96 -96
- package/src/plugins/components/BSPopup.vue +43 -43
- package/src/plugins/components/BSRadio.vue +97 -97
- package/src/plugins/components/BSSearch.vue +109 -109
- package/src/plugins/components/BSSelect.vue +144 -144
- package/src/plugins/components/BSSign.vue +454 -454
- package/src/plugins/components/BSStepper.vue +115 -115
- package/src/plugins/components/BSUpload.vue +92 -92
- package/src/plugins/components/BSUpload2.vue +398 -398
- package/src/plugins/components/BSVerCode.vue +128 -128
- package/src/plugins/components/BSViewer.vue +92 -92
- package/src/plugins/components/base.js +496 -496
- package/src/plugins/components/base2.js +489 -489
- package/src/plugins/lib/weixin.js +20 -20
- package/src/plugins/platform/index.js +7 -7
- package/src/plugins/platform/isp_phone.js +310 -310
- package/src/plugins/route/index.js +140 -140
- package/src/plugins/selector/index.js +342 -342
- package/src/plugins/service/index.js +81 -81
- package/src/plugins/services/callCamera.js +53 -53
- package/src/plugins/services/exit.js +36 -36
- package/src/plugins/services/face.js +69 -69
- package/src/plugins/services/faceH5.js +54 -0
- package/src/plugins/services/faceInApp.js +31 -31
- package/src/plugins/services/faceTx.js +61 -61
- package/src/plugins/services/getFaceResult.js +104 -104
- package/src/plugins/services/getH5FaceResult.js +62 -0
- package/src/plugins/services/getMenus.js +40 -40
- package/src/plugins/services/getSystemData.js +128 -128
- package/src/plugins/services/getToken.js +79 -79
- package/src/plugins/services/getTxFaceResult.js +83 -83
- package/src/plugins/services/getUserInfo.js +47 -47
- package/src/plugins/services/goSetPage.js +40 -40
- package/src/plugins/services/hideFhoneTitle.js +36 -36
- package/src/plugins/services/index.js +45 -41
- package/src/plugins/services/init.js +35 -35
- package/src/plugins/services/jumpView.js +40 -40
- package/src/plugins/services/logout.js +43 -43
- package/src/plugins/services/share.js +113 -113
- package/src/plugins/services/statusBarHeight.js +39 -39
- package/src/plugins/session/index.js +32 -32
- package/src/services/getAuthInfo.js +22 -22
- package/src/services/index.js +9 -9
- package/src/services/sendVerCode.js +23 -23
- package/src/views/auth.vue +367 -367
- package/src/views/auth2.vue +90 -90
- package/src/views/auth3.vue +157 -157
- package/src/views/auth4.vue +8979 -8979
- package/src/views/auth5.vue +50 -50
- package/src/views/authh5.vue +369 -0
- package/src/views/components/BankSelect.vue +55 -55
- package/src/views/foot.vue +140 -140
- package/src/views/page.vue +222 -222
- package/src/views/shellFunc.vue +41 -41
- package/themes/basic.css +1 -1
- package/webpack.config.js +144 -144
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import session from "../session";
|
|
2
|
-
// import md5 from 'js-md5';
|
|
3
|
-
import ak from '../assets/ak.js'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var service = service || {};
|
|
7
|
-
|
|
8
|
-
service = {
|
|
9
|
-
defined:{},
|
|
10
|
-
callService(serviceId,params2 = {},sendEvent = true){
|
|
11
|
-
|
|
12
|
-
let service = this.defined[serviceId]
|
|
13
|
-
let eventName = serviceId
|
|
14
|
-
|
|
15
|
-
if(Object.prototype.toString.call(service.need) == "[object Function]"){
|
|
16
|
-
if(!service.need(params2))
|
|
17
|
-
return Promise.reject().catch((e) => {})
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if(Object.prototype.toString.call(service.eventName) == "[object Function]"){
|
|
21
|
-
eventName = service.eventName()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
let params = service.getData(params2)
|
|
25
|
-
|
|
26
|
-
return service.invoke(params).then((data)=>{
|
|
27
|
-
|
|
28
|
-
if(sendEvent)
|
|
29
|
-
this.bus.emit('porcessData', {data: data,serviceId:eventName})
|
|
30
|
-
|
|
31
|
-
return Promise.resolve(data)
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
callServices(serviceIds,params2 = [],sendEvent = true){
|
|
36
|
-
|
|
37
|
-
let serviceIds2 = []
|
|
38
|
-
let self = this
|
|
39
|
-
let promises = []
|
|
40
|
-
for(let index = 0 ; index < serviceIds.length ;index++){
|
|
41
|
-
let service = this.defined[serviceIds[index]]
|
|
42
|
-
|
|
43
|
-
if(Object.prototype.toString.call(service.need) == "[object Function]"){
|
|
44
|
-
if(service.need(params2[index])){
|
|
45
|
-
let params = service.getData(params2[index])
|
|
46
|
-
promises.push(service.invoke(params))
|
|
47
|
-
serviceIds2.push(serviceIds[index])
|
|
48
|
-
}
|
|
49
|
-
}else{
|
|
50
|
-
let params = service.getData(params2[index])
|
|
51
|
-
promises.push(service.invoke(params))
|
|
52
|
-
serviceIds2.push(serviceIds[index])
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return Promise.all(promises)
|
|
58
|
-
.then((data) => {
|
|
59
|
-
|
|
60
|
-
if(sendEvent){
|
|
61
|
-
for(let index = 0 ; index < serviceIds2.length ;index++){
|
|
62
|
-
this.bus.emit('porcessData', {data: data[index],serviceId:serviceIds2[index]})
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return Promise.resolve(data)
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
saveInitService(serviceId,data){
|
|
71
|
-
let returnData = JSON.stringify(data)
|
|
72
|
-
localStorage.setItem('service.initServiceId',serviceId)
|
|
73
|
-
localStorage.setItem('service.initServiceData',returnData)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
export default service;
|
|
1
|
+
import session from "../session";
|
|
2
|
+
// import md5 from 'js-md5';
|
|
3
|
+
import ak from '../assets/ak.js'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var service = service || {};
|
|
7
|
+
|
|
8
|
+
service = {
|
|
9
|
+
defined:{},
|
|
10
|
+
callService(serviceId,params2 = {},sendEvent = true){
|
|
11
|
+
|
|
12
|
+
let service = this.defined[serviceId]
|
|
13
|
+
let eventName = serviceId
|
|
14
|
+
|
|
15
|
+
if(Object.prototype.toString.call(service.need) == "[object Function]"){
|
|
16
|
+
if(!service.need(params2))
|
|
17
|
+
return Promise.reject().catch((e) => {})
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if(Object.prototype.toString.call(service.eventName) == "[object Function]"){
|
|
21
|
+
eventName = service.eventName()
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
let params = service.getData(params2)
|
|
25
|
+
|
|
26
|
+
return service.invoke(params).then((data)=>{
|
|
27
|
+
|
|
28
|
+
if(sendEvent)
|
|
29
|
+
this.bus.emit('porcessData', {data: data,serviceId:eventName})
|
|
30
|
+
|
|
31
|
+
return Promise.resolve(data)
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
},
|
|
35
|
+
callServices(serviceIds,params2 = [],sendEvent = true){
|
|
36
|
+
|
|
37
|
+
let serviceIds2 = []
|
|
38
|
+
let self = this
|
|
39
|
+
let promises = []
|
|
40
|
+
for(let index = 0 ; index < serviceIds.length ;index++){
|
|
41
|
+
let service = this.defined[serviceIds[index]]
|
|
42
|
+
|
|
43
|
+
if(Object.prototype.toString.call(service.need) == "[object Function]"){
|
|
44
|
+
if(service.need(params2[index])){
|
|
45
|
+
let params = service.getData(params2[index])
|
|
46
|
+
promises.push(service.invoke(params))
|
|
47
|
+
serviceIds2.push(serviceIds[index])
|
|
48
|
+
}
|
|
49
|
+
}else{
|
|
50
|
+
let params = service.getData(params2[index])
|
|
51
|
+
promises.push(service.invoke(params))
|
|
52
|
+
serviceIds2.push(serviceIds[index])
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return Promise.all(promises)
|
|
58
|
+
.then((data) => {
|
|
59
|
+
|
|
60
|
+
if(sendEvent){
|
|
61
|
+
for(let index = 0 ; index < serviceIds2.length ;index++){
|
|
62
|
+
this.bus.emit('porcessData', {data: data[index],serviceId:serviceIds2[index]})
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return Promise.resolve(data)
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
},
|
|
70
|
+
saveInitService(serviceId,data){
|
|
71
|
+
let returnData = JSON.stringify(data)
|
|
72
|
+
localStorage.setItem('service.initServiceId',serviceId)
|
|
73
|
+
localStorage.setItem('service.initServiceData',returnData)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
export default service;
|
|
@@ -1,53 +1,53 @@
|
|
|
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
|
-
return this.invoke2_isp(params)
|
|
15
|
-
}else if(ua2Res.microMsg){
|
|
16
|
-
return this.invoke2_microMsg(params)
|
|
17
|
-
}else{
|
|
18
|
-
return Promise.resolve()
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
invoke2_isp(params){
|
|
23
|
-
|
|
24
|
-
// let requestJson = {
|
|
25
|
-
// 'functionName': 'share',
|
|
26
|
-
// 'jsData':{"operType":1},
|
|
27
|
-
// 'dataObject': {
|
|
28
|
-
// 'shareChannel': params.shareChannel,
|
|
29
|
-
// 'jsFunction': ''
|
|
30
|
-
// }
|
|
31
|
-
// }
|
|
32
|
-
let requestJson = {
|
|
33
|
-
maxSizeKB: '200',
|
|
34
|
-
domain: 'POLICY',
|
|
35
|
-
buz: 'POLICY_FILE',
|
|
36
|
-
buzId: params.buzId,
|
|
37
|
-
cancelCrop: params.cancelCrop
|
|
38
|
-
}
|
|
39
|
-
if (Number(params.cropType) === 1) requestJson['cropType'] = 1
|
|
40
|
-
let isMultiple = params.multiple ? 'CALL_CAMERA_OTHER' : 'CALL_CAMERA'
|
|
41
|
-
isp_phone.callShell(isMultiple, requestJson, null, params.vnode)
|
|
42
|
-
return Promise.resolve({})
|
|
43
|
-
},
|
|
44
|
-
invoke2_microMsg(params){
|
|
45
|
-
|
|
46
|
-
return Promise.resolve({
|
|
47
|
-
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
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
|
+
const ua2Res = ua2()
|
|
13
|
+
if(ua2Res.isIspPhone){
|
|
14
|
+
return this.invoke2_isp(params)
|
|
15
|
+
}else if(ua2Res.microMsg){
|
|
16
|
+
return this.invoke2_microMsg(params)
|
|
17
|
+
}else{
|
|
18
|
+
return Promise.resolve()
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
},
|
|
22
|
+
invoke2_isp(params){
|
|
23
|
+
|
|
24
|
+
// let requestJson = {
|
|
25
|
+
// 'functionName': 'share',
|
|
26
|
+
// 'jsData':{"operType":1},
|
|
27
|
+
// 'dataObject': {
|
|
28
|
+
// 'shareChannel': params.shareChannel,
|
|
29
|
+
// 'jsFunction': ''
|
|
30
|
+
// }
|
|
31
|
+
// }
|
|
32
|
+
let requestJson = {
|
|
33
|
+
maxSizeKB: '200',
|
|
34
|
+
domain: 'POLICY',
|
|
35
|
+
buz: 'POLICY_FILE',
|
|
36
|
+
buzId: params.buzId,
|
|
37
|
+
cancelCrop: params.cancelCrop
|
|
38
|
+
}
|
|
39
|
+
if (Number(params.cropType) === 1) requestJson['cropType'] = 1
|
|
40
|
+
let isMultiple = params.multiple ? 'CALL_CAMERA_OTHER' : 'CALL_CAMERA'
|
|
41
|
+
isp_phone.callShell(isMultiple, requestJson, null, params.vnode)
|
|
42
|
+
return Promise.resolve({})
|
|
43
|
+
},
|
|
44
|
+
invoke2_microMsg(params){
|
|
45
|
+
|
|
46
|
+
return Promise.resolve({
|
|
47
|
+
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
},
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
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('POPVIEW', 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('POPVIEW', 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,69 +1,69 @@
|
|
|
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 face = {
|
|
7
|
-
|
|
8
|
-
getData(params){
|
|
9
|
-
|
|
10
|
-
let cburl = ak.http.concatParams(window.location.href,'facetoken=1')
|
|
11
|
-
if(params.cburl){
|
|
12
|
-
cburl = ak.http.concatParams(params.cburl,'facetoken=1')
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if(params.fileUrl){
|
|
16
|
-
return {
|
|
17
|
-
"return_url": cburl,
|
|
18
|
-
"notify_url": cburl,
|
|
19
|
-
"file_name": params.fileUrl,
|
|
20
|
-
"faceType": 'wy'
|
|
21
|
-
}
|
|
22
|
-
}else{
|
|
23
|
-
return {
|
|
24
|
-
"return_url": cburl,
|
|
25
|
-
"notify_url": cburl,
|
|
26
|
-
"idcard_number": params.idcard_number,
|
|
27
|
-
"idcard_name": params.idcard_name,
|
|
28
|
-
"faceType": 'yy'
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
invoke(params){
|
|
34
|
-
|
|
35
|
-
if(ua.isIspPhone){
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}else if(ua.microMsg){
|
|
39
|
-
|
|
40
|
-
let faceType = params.faceType
|
|
41
|
-
delete params.faceType
|
|
42
|
-
|
|
43
|
-
let apiUrl = ''
|
|
44
|
-
if(faceType == 'wy'){
|
|
45
|
-
apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceToken'
|
|
46
|
-
}else{
|
|
47
|
-
apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceTokenNew'
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return http.post(apiUrl,params,true,true).then((data)=>{
|
|
51
|
-
|
|
52
|
-
localStorage.setItem('face.biz_no', data.biz_id)
|
|
53
|
-
localStorage.setItem('face.face_type', faceType)
|
|
54
|
-
|
|
55
|
-
let tokenUrl = ak.http.concatParams(config.other.faceUrl,'token=' + data.token)
|
|
56
|
-
window.location.href = tokenUrl
|
|
57
|
-
return Promise.resolve(data)
|
|
58
|
-
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
}else{
|
|
62
|
-
Promise.reject()
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
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
|
+
|
|
6
|
+
var face = {
|
|
7
|
+
|
|
8
|
+
getData(params){
|
|
9
|
+
|
|
10
|
+
let cburl = ak.http.concatParams(window.location.href,'facetoken=1')
|
|
11
|
+
if(params.cburl){
|
|
12
|
+
cburl = ak.http.concatParams(params.cburl,'facetoken=1')
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if(params.fileUrl){
|
|
16
|
+
return {
|
|
17
|
+
"return_url": cburl,
|
|
18
|
+
"notify_url": cburl,
|
|
19
|
+
"file_name": params.fileUrl,
|
|
20
|
+
"faceType": 'wy'
|
|
21
|
+
}
|
|
22
|
+
}else{
|
|
23
|
+
return {
|
|
24
|
+
"return_url": cburl,
|
|
25
|
+
"notify_url": cburl,
|
|
26
|
+
"idcard_number": params.idcard_number,
|
|
27
|
+
"idcard_name": params.idcard_name,
|
|
28
|
+
"faceType": 'yy'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
invoke(params){
|
|
34
|
+
|
|
35
|
+
if(ua.isIspPhone){
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
}else if(ua.microMsg){
|
|
39
|
+
|
|
40
|
+
let faceType = params.faceType
|
|
41
|
+
delete params.faceType
|
|
42
|
+
|
|
43
|
+
let apiUrl = ''
|
|
44
|
+
if(faceType == 'wy'){
|
|
45
|
+
apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceToken'
|
|
46
|
+
}else{
|
|
47
|
+
apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getFaceTokenNew'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return http.post(apiUrl,params,true,true).then((data)=>{
|
|
51
|
+
|
|
52
|
+
localStorage.setItem('face.biz_no', data.biz_id)
|
|
53
|
+
localStorage.setItem('face.face_type', faceType)
|
|
54
|
+
|
|
55
|
+
let tokenUrl = ak.http.concatParams(config.other.faceUrl,'token=' + data.token)
|
|
56
|
+
window.location.href = tokenUrl
|
|
57
|
+
return Promise.resolve(data)
|
|
58
|
+
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
}else{
|
|
62
|
+
Promise.reject()
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export default face;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 faceH5 = {
|
|
7
|
+
getData(params){
|
|
8
|
+
// facetoken=1的作用:刷新页面
|
|
9
|
+
let cburl = ak.http.concatParams(window.location.href,'facetoken=1')
|
|
10
|
+
if(params.cburl){
|
|
11
|
+
cburl = ak.http.concatParams(params.cburl,'facetoken=1')
|
|
12
|
+
}
|
|
13
|
+
if(cburl.split('?').length - 1 == 1){
|
|
14
|
+
cburl = `${cburl}?1=1` // 路由中不带参时的特殊处理
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
"requestSource": params.requestSource,
|
|
19
|
+
"requestType": params.requestType,
|
|
20
|
+
"userName": params.idcard_name,
|
|
21
|
+
"userIdNo": params.idcard_number,
|
|
22
|
+
"bussinessNo": "",
|
|
23
|
+
"faceCompareType": "",
|
|
24
|
+
"faceComparePhotoUrl": "",
|
|
25
|
+
"faceComparePhotoQuality": "",
|
|
26
|
+
"redirectUrl": cburl,
|
|
27
|
+
"terminal": params.terminal,
|
|
28
|
+
"meta": {
|
|
29
|
+
"tenantCode": params.tenantCode,
|
|
30
|
+
"businessCode": params.businessCode,
|
|
31
|
+
"serviceType": params.serviceType
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
invoke(params){
|
|
36
|
+
if(ua.isIspPhone){
|
|
37
|
+
|
|
38
|
+
}else if(ua.microMsg){
|
|
39
|
+
let apiUrl = config.http.gwURL + '/api/v1/hasl/preservation/service/h5CreateOrderPreservation'
|
|
40
|
+
return http.post(apiUrl,params,false,true).then((data)=>{
|
|
41
|
+
let _data = JSON.parse(data.result)
|
|
42
|
+
const objstr = JSON.stringify(Object.assign(params, _data))
|
|
43
|
+
localStorage.setItem('faceAbout', objstr)
|
|
44
|
+
let cbUrl = ak.http.concatParams(_data.h5FaceUrl)
|
|
45
|
+
window.location.href = cbUrl
|
|
46
|
+
return Promise.resolve(data.result)
|
|
47
|
+
})
|
|
48
|
+
}else{
|
|
49
|
+
Promise.reject()
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export default faceH5;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { FileServerPkg } from '../assets/fileServer'
|
|
2
|
-
|
|
3
|
-
var service = {
|
|
4
|
-
|
|
5
|
-
getData(params){
|
|
6
|
-
return params
|
|
7
|
-
},
|
|
8
|
-
invoke(params){
|
|
9
|
-
this.invoke2_isp(params)
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
invoke2_isp(params){
|
|
13
|
-
const buzId = params.buzId || '123123'
|
|
14
|
-
const personKey = ''
|
|
15
|
-
const param = FileServerPkg.getCallerParam(buzId, personKey)
|
|
16
|
-
param.maxSizeKB = '200'
|
|
17
|
-
const uploadType = 'Live'
|
|
18
|
-
debugger
|
|
19
|
-
FileServerPkg.pictureUploadSaveShow(uploadType, params.vnode, param)
|
|
20
|
-
return Promise.resolve({})
|
|
21
|
-
},
|
|
22
|
-
invoke2_microMsg(params){
|
|
23
|
-
|
|
24
|
-
return Promise.resolve({
|
|
25
|
-
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default service;
|
|
1
|
+
import { FileServerPkg } from '../assets/fileServer'
|
|
2
|
+
|
|
3
|
+
var service = {
|
|
4
|
+
|
|
5
|
+
getData(params){
|
|
6
|
+
return params
|
|
7
|
+
},
|
|
8
|
+
invoke(params){
|
|
9
|
+
this.invoke2_isp(params)
|
|
10
|
+
|
|
11
|
+
},
|
|
12
|
+
invoke2_isp(params){
|
|
13
|
+
const buzId = params.buzId || '123123'
|
|
14
|
+
const personKey = ''
|
|
15
|
+
const param = FileServerPkg.getCallerParam(buzId, personKey)
|
|
16
|
+
param.maxSizeKB = '200'
|
|
17
|
+
const uploadType = 'Live'
|
|
18
|
+
debugger
|
|
19
|
+
FileServerPkg.pictureUploadSaveShow(uploadType, params.vnode, param)
|
|
20
|
+
return Promise.resolve({})
|
|
21
|
+
},
|
|
22
|
+
invoke2_microMsg(params){
|
|
23
|
+
|
|
24
|
+
return Promise.resolve({
|
|
25
|
+
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default service;
|