fstarter 2.10.45 → 2.10.48
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/fstarter.iml +9 -0
- 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 +87 -87
- package/src/plugins/assets/ak.js +948 -948
- package/src/plugins/assets/callNative.js +488 -488
- 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 -392
- package/src/plugins/components/BSVerCode.vue +129 -135
- 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 +306 -306
- 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/faceInApp.js +31 -31
- package/src/plugins/services/faceTx.js +61 -61
- package/src/plugins/services/getFaceResult.js +104 -104
- 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 +41 -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 -361
- 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/components/BankSelect.vue +55 -55
- package/src/views/foot.vue +140 -140
- package/src/views/page.vue +219 -219
- package/src/views/shellFunc.vue +41 -41
- package/themes/basic.css +1 -1
- package/webpack.config.js +144 -144
- package/README.md +0 -18
|
@@ -1,79 +1,79 @@
|
|
|
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 session from "../session";
|
|
5
|
-
|
|
6
|
-
var service = {
|
|
7
|
-
|
|
8
|
-
getData(){
|
|
9
|
-
return {}
|
|
10
|
-
},
|
|
11
|
-
invoke(params){
|
|
12
|
-
|
|
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 Promise.resolve()
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
invoke2_isp(params){
|
|
23
|
-
|
|
24
|
-
if(!ak.utils.isEmpty(isp_phone.data.GET_TOKEN)){
|
|
25
|
-
let data = isp_phone.data.GET_TOKEN.nativeData
|
|
26
|
-
|
|
27
|
-
if(session.sys.isLogined == ak.utils.isEmpty(data.token))
|
|
28
|
-
session.sys.isLogined = !ak.utils.isEmpty(data.token)
|
|
29
|
-
|
|
30
|
-
return Promise.resolve({
|
|
31
|
-
'token':data.token,
|
|
32
|
-
'type':'Basic'
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
let self = this
|
|
37
|
-
isp_phone.callShell('GET_TOKEN', null, null)
|
|
38
|
-
var p = new Promise(function(resolve, reject){
|
|
39
|
-
self.onWait(self,resolve)
|
|
40
|
-
})
|
|
41
|
-
return p
|
|
42
|
-
},
|
|
43
|
-
invoke2_microMsg(params){
|
|
44
|
-
|
|
45
|
-
const tokenKey = 'wxjtl'
|
|
46
|
-
let token = ak.http.getCookie2(tokenKey)
|
|
47
|
-
|
|
48
|
-
if(session.sys.isLogined == ak.utils.isEmpty(token))
|
|
49
|
-
session.sys.isLogined = !ak.utils.isEmpty(token)
|
|
50
|
-
|
|
51
|
-
return Promise.resolve({
|
|
52
|
-
'token': token,
|
|
53
|
-
'type':'Inner'
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
onWait(self,resolve){
|
|
58
|
-
|
|
59
|
-
if(isp_phone.status.GET_TOKEN >= 10){
|
|
60
|
-
isp_phone.status.GET_TOKEN = 0
|
|
61
|
-
let data = isp_phone.data.GET_TOKEN.nativeData
|
|
62
|
-
|
|
63
|
-
if(session.sys.isLogined == ak.utils.isEmpty(data.token))
|
|
64
|
-
session.sys.isLogined = !ak.utils.isEmpty(data.token)
|
|
65
|
-
|
|
66
|
-
return resolve({
|
|
67
|
-
'token':data.token,
|
|
68
|
-
'type':'Basic'
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
}else{
|
|
72
|
-
isp_phone.status.GET_TOKEN++
|
|
73
|
-
setTimeout(function(){self.onWait(self,resolve)}, 500);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
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 session from "../session";
|
|
5
|
+
|
|
6
|
+
var service = {
|
|
7
|
+
|
|
8
|
+
getData(){
|
|
9
|
+
return {}
|
|
10
|
+
},
|
|
11
|
+
invoke(params){
|
|
12
|
+
|
|
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 Promise.resolve()
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
},
|
|
22
|
+
invoke2_isp(params){
|
|
23
|
+
|
|
24
|
+
if(!ak.utils.isEmpty(isp_phone.data.GET_TOKEN)){
|
|
25
|
+
let data = isp_phone.data.GET_TOKEN.nativeData
|
|
26
|
+
|
|
27
|
+
if(session.sys.isLogined == ak.utils.isEmpty(data.token))
|
|
28
|
+
session.sys.isLogined = !ak.utils.isEmpty(data.token)
|
|
29
|
+
|
|
30
|
+
return Promise.resolve({
|
|
31
|
+
'token':data.token,
|
|
32
|
+
'type':'Basic'
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
let self = this
|
|
37
|
+
isp_phone.callShell('GET_TOKEN', null, null)
|
|
38
|
+
var p = new Promise(function(resolve, reject){
|
|
39
|
+
self.onWait(self,resolve)
|
|
40
|
+
})
|
|
41
|
+
return p
|
|
42
|
+
},
|
|
43
|
+
invoke2_microMsg(params){
|
|
44
|
+
|
|
45
|
+
const tokenKey = 'wxjtl'
|
|
46
|
+
let token = ak.http.getCookie2(tokenKey)
|
|
47
|
+
|
|
48
|
+
if(session.sys.isLogined == ak.utils.isEmpty(token))
|
|
49
|
+
session.sys.isLogined = !ak.utils.isEmpty(token)
|
|
50
|
+
|
|
51
|
+
return Promise.resolve({
|
|
52
|
+
'token': token,
|
|
53
|
+
'type':'Inner'
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
},
|
|
57
|
+
onWait(self,resolve){
|
|
58
|
+
|
|
59
|
+
if(isp_phone.status.GET_TOKEN >= 10){
|
|
60
|
+
isp_phone.status.GET_TOKEN = 0
|
|
61
|
+
let data = isp_phone.data.GET_TOKEN.nativeData
|
|
62
|
+
|
|
63
|
+
if(session.sys.isLogined == ak.utils.isEmpty(data.token))
|
|
64
|
+
session.sys.isLogined = !ak.utils.isEmpty(data.token)
|
|
65
|
+
|
|
66
|
+
return resolve({
|
|
67
|
+
'token':data.token,
|
|
68
|
+
'type':'Basic'
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
}else{
|
|
72
|
+
isp_phone.status.GET_TOKEN++
|
|
73
|
+
setTimeout(function(){self.onWait(self,resolve)}, 500);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export default service;
|
|
@@ -1,83 +1,83 @@
|
|
|
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 getTxFaceResult = {
|
|
8
|
-
|
|
9
|
-
need(){
|
|
10
|
-
|
|
11
|
-
let token = ak.http.getQueryString('facetoken')
|
|
12
|
-
if(ak.utils.isEmpty(token)){
|
|
13
|
-
localStorage.removeItem('faceAbout')
|
|
14
|
-
return false
|
|
15
|
-
} else {
|
|
16
|
-
return true
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
getData(){
|
|
21
|
-
|
|
22
|
-
let obj = JSON.parse(localStorage.getItem('faceAbout'))
|
|
23
|
-
|
|
24
|
-
localStorage.removeItem('faceAbout')
|
|
25
|
-
return {
|
|
26
|
-
biz_no: obj.bizSeqNo,
|
|
27
|
-
userId: obj.userId,
|
|
28
|
-
orderNo: obj.orderNo,
|
|
29
|
-
nonce: obj.nonce,
|
|
30
|
-
expired: '-1000',
|
|
31
|
-
buz: 'POLICY_FILE',
|
|
32
|
-
domain: 'POLICY',
|
|
33
|
-
buzId: radomNum(16),
|
|
34
|
-
fileName: radomNum(16)
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
invoke(params){
|
|
40
|
-
// let faceType = params.faceType
|
|
41
|
-
// delete params.faceType
|
|
42
|
-
|
|
43
|
-
if(ua.isIspPhone){
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}else if(ua.microMsg){
|
|
47
|
-
let apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceCompareResult'
|
|
48
|
-
return http.post(apiUrl,params,true,true).then((data)=>{
|
|
49
|
-
let res = data.result
|
|
50
|
-
let resData = {
|
|
51
|
-
confidence: res.similarity,
|
|
52
|
-
imageFile: res.faceFileId,
|
|
53
|
-
success: true
|
|
54
|
-
}
|
|
55
|
-
service.saveInitService('getTxFaceResult',resData)
|
|
56
|
-
let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
|
|
57
|
-
window.location.href = reUrl
|
|
58
|
-
return Promise.resolve(resData)
|
|
59
|
-
}).catch(err => {
|
|
60
|
-
let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
|
|
61
|
-
reUrl = ak.http.deleteParams(reUrl,'orderNo')
|
|
62
|
-
reUrl = ak.http.deleteParams(reUrl,'signature')
|
|
63
|
-
reUrl = ak.http.deleteParams(reUrl,'h5faceId')
|
|
64
|
-
reUrl = ak.http.deleteParams(reUrl,'code')
|
|
65
|
-
window.location.href = reUrl
|
|
66
|
-
return Promise.reject(err)
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
}else{
|
|
70
|
-
Promise.reject()
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
function radomNum(n) {
|
|
77
|
-
var rnd = ''
|
|
78
|
-
for (var i = 0; i < n; i++) {
|
|
79
|
-
rnd += Math.floor(Math.random() * 10)
|
|
80
|
-
}
|
|
81
|
-
return rnd
|
|
82
|
-
}
|
|
83
|
-
export default getTxFaceResult;
|
|
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 getTxFaceResult = {
|
|
8
|
+
|
|
9
|
+
need(){
|
|
10
|
+
|
|
11
|
+
let token = ak.http.getQueryString('facetoken')
|
|
12
|
+
if(ak.utils.isEmpty(token)){
|
|
13
|
+
localStorage.removeItem('faceAbout')
|
|
14
|
+
return false
|
|
15
|
+
} else {
|
|
16
|
+
return true
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
},
|
|
20
|
+
getData(){
|
|
21
|
+
|
|
22
|
+
let obj = JSON.parse(localStorage.getItem('faceAbout'))
|
|
23
|
+
|
|
24
|
+
localStorage.removeItem('faceAbout')
|
|
25
|
+
return {
|
|
26
|
+
biz_no: obj.bizSeqNo,
|
|
27
|
+
userId: obj.userId,
|
|
28
|
+
orderNo: obj.orderNo,
|
|
29
|
+
nonce: obj.nonce,
|
|
30
|
+
expired: '-1000',
|
|
31
|
+
buz: 'POLICY_FILE',
|
|
32
|
+
domain: 'POLICY',
|
|
33
|
+
buzId: radomNum(16),
|
|
34
|
+
fileName: radomNum(16)
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
invoke(params){
|
|
40
|
+
// let faceType = params.faceType
|
|
41
|
+
// delete params.faceType
|
|
42
|
+
|
|
43
|
+
if(ua.isIspPhone){
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
}else if(ua.microMsg){
|
|
47
|
+
let apiUrl = config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/getTXFaceCompareResult'
|
|
48
|
+
return http.post(apiUrl,params,true,true).then((data)=>{
|
|
49
|
+
let res = data.result
|
|
50
|
+
let resData = {
|
|
51
|
+
confidence: res.similarity,
|
|
52
|
+
imageFile: res.faceFileId,
|
|
53
|
+
success: true
|
|
54
|
+
}
|
|
55
|
+
service.saveInitService('getTxFaceResult',resData)
|
|
56
|
+
let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
|
|
57
|
+
window.location.href = reUrl
|
|
58
|
+
return Promise.resolve(resData)
|
|
59
|
+
}).catch(err => {
|
|
60
|
+
let reUrl = ak.http.deleteParams(window.location.href,'facetoken')
|
|
61
|
+
reUrl = ak.http.deleteParams(reUrl,'orderNo')
|
|
62
|
+
reUrl = ak.http.deleteParams(reUrl,'signature')
|
|
63
|
+
reUrl = ak.http.deleteParams(reUrl,'h5faceId')
|
|
64
|
+
reUrl = ak.http.deleteParams(reUrl,'code')
|
|
65
|
+
window.location.href = reUrl
|
|
66
|
+
return Promise.reject(err)
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
}else{
|
|
70
|
+
Promise.reject()
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
function radomNum(n) {
|
|
77
|
+
var rnd = ''
|
|
78
|
+
for (var i = 0; i < n; i++) {
|
|
79
|
+
rnd += Math.floor(Math.random() * 10)
|
|
80
|
+
}
|
|
81
|
+
return rnd
|
|
82
|
+
}
|
|
83
|
+
export default getTxFaceResult;
|
|
@@ -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,41 +1,41 @@
|
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
var services = services || {}
|
|
22
|
-
|
|
23
|
-
services['getToken'] = getToken
|
|
24
|
-
services['getMenus'] = getMenus
|
|
25
|
-
services['getUserInfo'] = getUserInfo
|
|
26
|
-
services['getSystemData'] = getSystemData
|
|
27
|
-
services['hideToolBar'] = hideFhoneTitle
|
|
28
|
-
services['logout'] = logout
|
|
29
|
-
services['share'] = share
|
|
30
|
-
services['exit'] = exit
|
|
31
|
-
services['face'] = face
|
|
32
|
-
services['getFaceResult'] = getFaceResult
|
|
33
|
-
services['init'] = init
|
|
34
|
-
services['camera'] = camera
|
|
35
|
-
services['jumpView'] = jumpView
|
|
36
|
-
services['goSetPage'] = goSetPage
|
|
37
|
-
services['statusBarHeight'] = statusBarHeight
|
|
38
|
-
services['faceInApp'] = faceInApp
|
|
39
|
-
services['faceTx'] = faceTx
|
|
40
|
-
services['getTxFaceResult'] = getTxFaceResult
|
|
41
|
-
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
|
+
|
|
20
|
+
|
|
21
|
+
var services = services || {}
|
|
22
|
+
|
|
23
|
+
services['getToken'] = getToken
|
|
24
|
+
services['getMenus'] = getMenus
|
|
25
|
+
services['getUserInfo'] = getUserInfo
|
|
26
|
+
services['getSystemData'] = getSystemData
|
|
27
|
+
services['hideToolBar'] = hideFhoneTitle
|
|
28
|
+
services['logout'] = logout
|
|
29
|
+
services['share'] = share
|
|
30
|
+
services['exit'] = exit
|
|
31
|
+
services['face'] = face
|
|
32
|
+
services['getFaceResult'] = getFaceResult
|
|
33
|
+
services['init'] = init
|
|
34
|
+
services['camera'] = camera
|
|
35
|
+
services['jumpView'] = jumpView
|
|
36
|
+
services['goSetPage'] = goSetPage
|
|
37
|
+
services['statusBarHeight'] = statusBarHeight
|
|
38
|
+
services['faceInApp'] = faceInApp
|
|
39
|
+
services['faceTx'] = faceTx
|
|
40
|
+
services['getTxFaceResult'] = getTxFaceResult
|
|
41
|
+
export default services;
|