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.
- package/.babelrc +6 -6
- package/.editorconfig +9 -9
- package/README.md +18 -18
- 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 -165
- 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 +382 -382
- package/src/plugins/components/BSVerCode.vue +131 -134
- 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/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/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 +37 -37
- 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 +354 -353
- package/src/views/auth2.vue +90 -90
- package/src/views/auth3.vue +148 -148
- 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
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import ak from "../assets/ak";
|
|
2
|
-
import session from "../session";
|
|
3
|
-
import route from "../components/base";
|
|
4
|
-
import config from "../assets/config";
|
|
5
|
-
|
|
6
|
-
var router = router || {};
|
|
7
|
-
|
|
8
|
-
router = {
|
|
9
|
-
defined:{},
|
|
10
|
-
history:[],
|
|
11
|
-
currentUrl:'',
|
|
12
|
-
addHistory(url){
|
|
13
|
-
|
|
14
|
-
let rootPath = ak.http.getRootPath(url)
|
|
15
|
-
let routeUrl = ak.http.getRouteUrl(url)
|
|
16
|
-
let url2 = rootPath + '#' + routeUrl
|
|
17
|
-
|
|
18
|
-
if(this.history[this.history.length - 1] != url2){
|
|
19
|
-
this.history.push(url2)
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
goBack(url){
|
|
24
|
-
|
|
25
|
-
if(ak.utils.isEmpty(url)){
|
|
26
|
-
|
|
27
|
-
if(config.sys.routeType == 'browser'){
|
|
28
|
-
history.back()
|
|
29
|
-
}else{
|
|
30
|
-
|
|
31
|
-
let last = this.history.pop()
|
|
32
|
-
while(last){
|
|
33
|
-
if(last == window.location.href){
|
|
34
|
-
last = this.history.pop()
|
|
35
|
-
}else{
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if(last)
|
|
41
|
-
this.redirectUrl(last)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
}else{
|
|
45
|
-
|
|
46
|
-
if(config.sys.routeType == 'browser'){
|
|
47
|
-
|
|
48
|
-
let fullUrl = url
|
|
49
|
-
if(!url.startWith('http'))
|
|
50
|
-
fullUrl = config.http.baseURL + '/#/' + url
|
|
51
|
-
|
|
52
|
-
let rootPath = ak.http.getRootPath(fullUrl)
|
|
53
|
-
let routeUrl = ak.http.getRouteUrl(fullUrl)
|
|
54
|
-
let url2 = rootPath + '#' + routeUrl
|
|
55
|
-
|
|
56
|
-
location.replace(url2)
|
|
57
|
-
}else{
|
|
58
|
-
|
|
59
|
-
let fullUrl = url
|
|
60
|
-
if(!url.startWith('http'))
|
|
61
|
-
fullUrl = config.http.baseURL + '/#/' + url
|
|
62
|
-
|
|
63
|
-
let rootPath = ak.http.getRootPath(fullUrl)
|
|
64
|
-
let routeUrl = ak.http.getRouteUrl(fullUrl)
|
|
65
|
-
let url2 = rootPath + '#' + routeUrl
|
|
66
|
-
|
|
67
|
-
let index2 = -1
|
|
68
|
-
this.history.forEach(function (element, index, array) {
|
|
69
|
-
if(element == url2 && index2 < index)
|
|
70
|
-
index2 = index
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
if(index2 >= 0){
|
|
74
|
-
this.history.splice(index2,this.history.length - index2)
|
|
75
|
-
this.redirectUrl(url2)
|
|
76
|
-
}else{
|
|
77
|
-
this.redirectUrl(url2)
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
push(url){
|
|
85
|
-
|
|
86
|
-
let fullUrl = url
|
|
87
|
-
if(!url.startWith('http')){
|
|
88
|
-
if(url.startWith('?')){
|
|
89
|
-
fullUrl = config.http.baseURL + url
|
|
90
|
-
}else if(url.startWith('/')){
|
|
91
|
-
fullUrl = config.http.baseURL + '/#' + url
|
|
92
|
-
}else{
|
|
93
|
-
fullUrl = config.http.baseURL + '/#/' + url
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
let rootPath = ak.http.getRootPath(fullUrl)
|
|
98
|
-
let routeUrl = ak.http.getRouteUrl(fullUrl)
|
|
99
|
-
let url2 = rootPath + '#' + routeUrl
|
|
100
|
-
|
|
101
|
-
let rootPath_c = ak.http.getRootPath()
|
|
102
|
-
let routeUrl_c = ak.http.getRouteUrl()
|
|
103
|
-
let url3 = rootPath_c + '#' + routeUrl_c
|
|
104
|
-
|
|
105
|
-
if(config.sys.routeType == 'browser'){
|
|
106
|
-
this.hrefUrl(url2)
|
|
107
|
-
}else{
|
|
108
|
-
this.addHistory(url3)
|
|
109
|
-
this.redirectUrl(url2)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
},
|
|
113
|
-
redirectUrl(fullUrl){
|
|
114
|
-
|
|
115
|
-
let rootPath_c = ak.http.getRootPath()
|
|
116
|
-
let index = fullUrl.indexOf(rootPath_c)
|
|
117
|
-
if(index >= 0){
|
|
118
|
-
let thisUrl = fullUrl.substr(rootPath_c.length)
|
|
119
|
-
// window.location.hash = thisUrl
|
|
120
|
-
location.replace(thisUrl)
|
|
121
|
-
}else{
|
|
122
|
-
// window.location.href = fullUrl
|
|
123
|
-
location.replace(fullUrl)
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
hrefUrl(fullUrl){
|
|
127
|
-
|
|
128
|
-
let rootPath_c = ak.http.getRootPath()
|
|
129
|
-
let index = fullUrl.indexOf(rootPath_c)
|
|
130
|
-
if(index >= 0){
|
|
131
|
-
let thisUrl = fullUrl.substr(rootPath_c.length)
|
|
132
|
-
window.location.hash = thisUrl
|
|
133
|
-
}else{
|
|
134
|
-
window.location.href = fullUrl
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export default router;
|
|
1
|
+
import ak from "../assets/ak";
|
|
2
|
+
import session from "../session";
|
|
3
|
+
import route from "../components/base";
|
|
4
|
+
import config from "../assets/config";
|
|
5
|
+
|
|
6
|
+
var router = router || {};
|
|
7
|
+
|
|
8
|
+
router = {
|
|
9
|
+
defined:{},
|
|
10
|
+
history:[],
|
|
11
|
+
currentUrl:'',
|
|
12
|
+
addHistory(url){
|
|
13
|
+
|
|
14
|
+
let rootPath = ak.http.getRootPath(url)
|
|
15
|
+
let routeUrl = ak.http.getRouteUrl(url)
|
|
16
|
+
let url2 = rootPath + '#' + routeUrl
|
|
17
|
+
|
|
18
|
+
if(this.history[this.history.length - 1] != url2){
|
|
19
|
+
this.history.push(url2)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
},
|
|
23
|
+
goBack(url){
|
|
24
|
+
|
|
25
|
+
if(ak.utils.isEmpty(url)){
|
|
26
|
+
|
|
27
|
+
if(config.sys.routeType == 'browser'){
|
|
28
|
+
history.back()
|
|
29
|
+
}else{
|
|
30
|
+
|
|
31
|
+
let last = this.history.pop()
|
|
32
|
+
while(last){
|
|
33
|
+
if(last == window.location.href){
|
|
34
|
+
last = this.history.pop()
|
|
35
|
+
}else{
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if(last)
|
|
41
|
+
this.redirectUrl(last)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}else{
|
|
45
|
+
|
|
46
|
+
if(config.sys.routeType == 'browser'){
|
|
47
|
+
|
|
48
|
+
let fullUrl = url
|
|
49
|
+
if(!url.startWith('http'))
|
|
50
|
+
fullUrl = config.http.baseURL + '/#/' + url
|
|
51
|
+
|
|
52
|
+
let rootPath = ak.http.getRootPath(fullUrl)
|
|
53
|
+
let routeUrl = ak.http.getRouteUrl(fullUrl)
|
|
54
|
+
let url2 = rootPath + '#' + routeUrl
|
|
55
|
+
|
|
56
|
+
location.replace(url2)
|
|
57
|
+
}else{
|
|
58
|
+
|
|
59
|
+
let fullUrl = url
|
|
60
|
+
if(!url.startWith('http'))
|
|
61
|
+
fullUrl = config.http.baseURL + '/#/' + url
|
|
62
|
+
|
|
63
|
+
let rootPath = ak.http.getRootPath(fullUrl)
|
|
64
|
+
let routeUrl = ak.http.getRouteUrl(fullUrl)
|
|
65
|
+
let url2 = rootPath + '#' + routeUrl
|
|
66
|
+
|
|
67
|
+
let index2 = -1
|
|
68
|
+
this.history.forEach(function (element, index, array) {
|
|
69
|
+
if(element == url2 && index2 < index)
|
|
70
|
+
index2 = index
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
if(index2 >= 0){
|
|
74
|
+
this.history.splice(index2,this.history.length - index2)
|
|
75
|
+
this.redirectUrl(url2)
|
|
76
|
+
}else{
|
|
77
|
+
this.redirectUrl(url2)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
},
|
|
84
|
+
push(url){
|
|
85
|
+
|
|
86
|
+
let fullUrl = url
|
|
87
|
+
if(!url.startWith('http')){
|
|
88
|
+
if(url.startWith('?')){
|
|
89
|
+
fullUrl = config.http.baseURL + url
|
|
90
|
+
}else if(url.startWith('/')){
|
|
91
|
+
fullUrl = config.http.baseURL + '/#' + url
|
|
92
|
+
}else{
|
|
93
|
+
fullUrl = config.http.baseURL + '/#/' + url
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
let rootPath = ak.http.getRootPath(fullUrl)
|
|
98
|
+
let routeUrl = ak.http.getRouteUrl(fullUrl)
|
|
99
|
+
let url2 = rootPath + '#' + routeUrl
|
|
100
|
+
|
|
101
|
+
let rootPath_c = ak.http.getRootPath()
|
|
102
|
+
let routeUrl_c = ak.http.getRouteUrl()
|
|
103
|
+
let url3 = rootPath_c + '#' + routeUrl_c
|
|
104
|
+
|
|
105
|
+
if(config.sys.routeType == 'browser'){
|
|
106
|
+
this.hrefUrl(url2)
|
|
107
|
+
}else{
|
|
108
|
+
this.addHistory(url3)
|
|
109
|
+
this.redirectUrl(url2)
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
},
|
|
113
|
+
redirectUrl(fullUrl){
|
|
114
|
+
|
|
115
|
+
let rootPath_c = ak.http.getRootPath()
|
|
116
|
+
let index = fullUrl.indexOf(rootPath_c)
|
|
117
|
+
if(index >= 0){
|
|
118
|
+
let thisUrl = fullUrl.substr(rootPath_c.length)
|
|
119
|
+
// window.location.hash = thisUrl
|
|
120
|
+
location.replace(thisUrl)
|
|
121
|
+
}else{
|
|
122
|
+
// window.location.href = fullUrl
|
|
123
|
+
location.replace(fullUrl)
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
hrefUrl(fullUrl){
|
|
127
|
+
|
|
128
|
+
let rootPath_c = ak.http.getRootPath()
|
|
129
|
+
let index = fullUrl.indexOf(rootPath_c)
|
|
130
|
+
if(index >= 0){
|
|
131
|
+
let thisUrl = fullUrl.substr(rootPath_c.length)
|
|
132
|
+
window.location.hash = thisUrl
|
|
133
|
+
}else{
|
|
134
|
+
window.location.href = fullUrl
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export default router;
|