fstarter 2.10.49 → 2.10.52

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/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 -87
  10. package/src/plugins/assets/ak.js +948 -948
  11. package/src/plugins/assets/callNative.js +490 -488
  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 +343 -343
  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 +398 -398
  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 -306
  40. package/src/plugins/route/index.js +140 -140
  41. package/src/plugins/selector/index.js +342 -342
  42. package/src/plugins/service/index.js +81 -81
  43. package/src/plugins/services/callCamera.js +53 -53
  44. package/src/plugins/services/exit.js +36 -36
  45. package/src/plugins/services/face.js +69 -69
  46. package/src/plugins/services/faceH5.js +54 -0
  47. package/src/plugins/services/faceInApp.js +31 -31
  48. package/src/plugins/services/faceTx.js +61 -61
  49. package/src/plugins/services/getFaceResult.js +104 -104
  50. package/src/plugins/services/getH5FaceResult.js +62 -0
  51. package/src/plugins/services/getMenus.js +40 -40
  52. package/src/plugins/services/getSystemData.js +128 -128
  53. package/src/plugins/services/getToken.js +79 -79
  54. package/src/plugins/services/getTxFaceResult.js +83 -83
  55. package/src/plugins/services/getUserInfo.js +47 -47
  56. package/src/plugins/services/goSetPage.js +40 -40
  57. package/src/plugins/services/hideFhoneTitle.js +36 -36
  58. package/src/plugins/services/index.js +45 -41
  59. package/src/plugins/services/init.js +35 -35
  60. package/src/plugins/services/jumpView.js +40 -40
  61. package/src/plugins/services/logout.js +43 -43
  62. package/src/plugins/services/share.js +113 -113
  63. package/src/plugins/services/statusBarHeight.js +39 -39
  64. package/src/plugins/session/index.js +32 -32
  65. package/src/services/getAuthInfo.js +22 -22
  66. package/src/services/index.js +9 -9
  67. package/src/services/sendVerCode.js +23 -23
  68. package/src/views/auth.vue +367 -370
  69. package/src/views/auth2.vue +90 -90
  70. package/src/views/auth3.vue +157 -157
  71. package/src/views/auth4.vue +8979 -8979
  72. package/src/views/auth5.vue +50 -50
  73. package/src/views/authh5.vue +369 -0
  74. package/src/views/components/BankSelect.vue +55 -55
  75. package/src/views/foot.vue +140 -140
  76. package/src/views/page.vue +222 -219
  77. package/src/views/shellFunc.vue +41 -41
  78. package/themes/basic.css +1 -1
  79. package/webpack.config.js +144 -144
  80. package/fstarter.iml +0 -9
@@ -1,219 +1,222 @@
1
- <template>
2
- <div class="out-box">
3
- <div class="m-header" v-show="session.sys.toolbar.isShow">
4
- <van-nav-bar v-show="session.sys.toolbar.isShow" :title="session.sys.toolbar.title" fixed @click-right="onClickRight">
5
- <template #left>
6
- <van-icon name="arrow-left" size="18" v-show="showBack" @click="onClickLeft"/>
7
- </template>
8
- <template #right >
9
- <van-icon name="share" size="18" v-show="session.sys.toolbar.isShowRight"/>
10
- </template>
11
- </van-nav-bar>
12
- </div>
13
-
14
- <router-view/>
15
-
16
- <van-tabbar v-model="active" v-show="session.sys.menu.isShow">
17
- <van-tabbar-item v-for="(item,index) in menu" :name="item.url" icon="home-o" :addr="item.url" @click="routeInvoke(item.url)">
18
- <span>{{item.title}}</span>
19
- <template #icon="props">
20
- <img :src="isActive(item.url) ? item.imUrlActive : item.imUrl" />
21
- </template>
22
- </van-tabbar-item>
23
- </van-tabbar>
24
-
25
- <van-overlay :show="session.sys.showLoading && session.sys.loadcnt != 0" z-index="2400">
26
- <van-loading >{{session.sys.loadmsg}}</van-loading>
27
- </van-overlay>
28
- </div>
29
- </template>
30
-
31
- <script>
32
-
33
- import Vue from 'vue'
34
- import { Overlay } from 'vant';
35
- import auth from './auth';
36
- import foot from './foot';
37
-
38
- Vue.use(Overlay);
39
- import base from '../plugins/components/base.js'
40
- import {ua} from "../plugins/assets/ua";
41
- import weixin from "../plugins/lib/weixin"
42
-
43
- export default {
44
- name: "page",
45
- mixins: [base],
46
- components: { auth,foot },
47
- props: {
48
-
49
- },
50
- data() {
51
- return {
52
- needLoadData: true,
53
- vname:'page',
54
- menugs:[],
55
- }
56
- },
57
- data() {
58
- return {
59
- vname:'page',
60
- active:"0",
61
- show: false,
62
- menu:[]
63
- }
64
- },
65
- mounted() {
66
-
67
- weixin.hideWxMenu()
68
- this.$service.callServices(['hideToolBar','getToken','getSystemData'])
69
-
70
- },
71
- computed: {
72
-
73
- showBack(){
74
- if(this.config.sys.autoShowGoBack){
75
- if(ua.isIspPhone){
76
- return true
77
- }else{
78
- return this.route.history.length >= 0
79
- }
80
- }else{
81
- return this.session.sys.isShowLeft
82
- }
83
- },
84
- },
85
- methods: {
86
- isActive(url){
87
-
88
- let routeUrl_cur = this.$ak.http.getRouteUrl()
89
- let routeUrl_menu = this.$ak.http.getRouteUrl(url)
90
-
91
- if(routeUrl_cur.includes(routeUrl_menu)){
92
- return true
93
- }else {
94
- return false
95
- }
96
-
97
- },
98
- createDefaultModel() {
99
- return {
100
-
101
- };
102
- },
103
- loadData(res){
104
-
105
- if(res.serviceId == 'getMenus'){
106
-
107
- let data = res.data
108
- // console.log(JSON.stringify(data))
109
- let menusData = []
110
- for(let j = 0; j < data.length; j++) {
111
-
112
- let children = data[j]
113
- let ims = children.imUrl.split(',')
114
- let menuData = {
115
- title:children.privName,
116
- url:children.url,
117
- id:children.id,
118
- imUrl:ims[0],
119
- imUrlActive:ims.length > 1 ? ims[1] : ims[0]
120
- }
121
-
122
- menusData.push(menuData)
123
- }
124
- this.menu = menusData
125
- // console.log(JSON.stringify(this.menugs))
126
-
127
- }else if(res.serviceId == 'getUserInfo'){
128
-
129
- let data = res.data
130
- this.session.userInfo.userId = data.userId
131
- this.session.userInfo.userName = data.name
132
- this.session.userInfo.roles = data.roles
133
- this.session.userInfo.attrs = data.attrs
134
- }
135
-
136
- },
137
- onClickLeft(){
138
-
139
- let reUrl = this.session.sys.toolbar.goBackUrl
140
- this.session.sys.toolbar.goBackUrl = ''
141
- if(!this.$ak.utils.isEmpty(reUrl)){
142
- this.route.goBack(reUrl)
143
- return
144
- }
145
-
146
- if(this.route.history.length > 0){
147
- this.route.goBack()
148
- }else{
149
- if(ua.isIspPhone){
150
- this.$service.callService('exit')
151
- }else{
152
- history.back()
153
- }
154
- }
155
- },
156
- onClickRight(){
157
-
158
- this.$bus.$emit('clickRight')
159
- },
160
- routeInvoke(url){
161
-
162
- this.route.push(url)
163
- }
164
- },
165
- watch: {
166
-
167
- 'route.currentUrl':{
168
- handler(val) {
169
-
170
- let res = this.menu.find((onemenu) =>{
171
- return onemenu.url == val
172
- })
173
-
174
- if(res){
175
- this.active = res.url
176
- this.route.history.splice(0,this.route.history.length);
177
- }else{
178
- this.active = ''
179
- }
180
- }
181
- },
182
- 'session.sys.isLogined':{
183
- handler(val,oldval){
184
-
185
- if(this.session.sys.isLogined){
186
- this.$service.callService('getMenus')
187
- this.$service.callService('getUserInfo')
188
- }else{
189
- this.session.userInfo.userId = ''
190
- this.session.userInfo.userName = ''
191
- this.session.userInfo.roles = []
192
- }
193
-
194
- },
195
- deep: false
196
- },
197
- 'session.sys.title':{
198
- handler(val,oldval){
199
- document.title = val
200
- },
201
- deep: false
202
- }
203
- }
204
-
205
- }
206
-
207
- </script>
208
-
209
-
210
- <style scoped>
211
-
212
- .m-header {
213
- height: 50px;
214
- line-height: 0px;
215
- background: #ffffff;
216
- color: #fff;
217
- }
218
-
219
- </style>
1
+ <template>
2
+ <div class="out-box">
3
+ <div class="m-header" v-show="session.sys.toolbar.isShow">
4
+ <van-nav-bar v-show="session.sys.toolbar.isShow" :title="session.sys.toolbar.title" fixed @click-right="onClickRight">
5
+ <template #left>
6
+ <van-icon name="arrow-left" size="18" v-show="showBack" @click="onClickLeft"/>
7
+ </template>
8
+ <template #right >
9
+ <van-icon name="share" size="18" v-show="session.sys.toolbar.isShowRight"/>
10
+ </template>
11
+ </van-nav-bar>
12
+ </div>
13
+
14
+ <router-view/>
15
+
16
+ <van-tabbar v-model="active" v-show="session.sys.menu.isShow">
17
+ <van-tabbar-item v-for="(item,index) in menu" :name="item.url" icon="home-o" :addr="item.url" @click="routeInvoke(item.url)">
18
+ <span>{{item.title}}</span>
19
+ <template #icon="props">
20
+ <img :src="isActive(item.url) ? item.imUrlActive : item.imUrl" />
21
+ </template>
22
+ </van-tabbar-item>
23
+ </van-tabbar>
24
+
25
+ <van-overlay :show="session.sys.showLoading && session.sys.loadcnt != 0" z-index="2400">
26
+ <van-loading >{{session.sys.loadmsg}}</van-loading>
27
+ </van-overlay>
28
+ </div>
29
+ </template>
30
+
31
+ <script>
32
+
33
+ import Vue from 'vue'
34
+ import { Overlay } from 'vant';
35
+ import auth from './auth';
36
+ import foot from './foot';
37
+
38
+ Vue.use(Overlay);
39
+ import base from '../plugins/components/base.js'
40
+ import {ua} from "../plugins/assets/ua";
41
+ import weixin from "../plugins/lib/weixin"
42
+
43
+ export default {
44
+ name: "page",
45
+ mixins: [base],
46
+ components: { auth,foot },
47
+ props: {
48
+
49
+ },
50
+ data() {
51
+ return {
52
+ needLoadData: true,
53
+ vname:'page',
54
+ menugs:[],
55
+ }
56
+ },
57
+ data() {
58
+ return {
59
+ vname:'page',
60
+ active:"0",
61
+ show: false,
62
+ menu:[]
63
+ }
64
+ },
65
+ created() {
66
+ //把基础参数的获取从mounted提前到created中,避免业务代码大量的请求基础参数导致的一些问题
67
+ this.$service.callServices(['hideToolBar','getToken','getSystemData'])
68
+ },
69
+ mounted() {
70
+
71
+ weixin.hideWxMenu()
72
+
73
+ },
74
+ computed: {
75
+
76
+ showBack(){
77
+ if(this.config.sys.autoShowGoBack){
78
+ if(ua.isIspPhone){
79
+ return true
80
+ }else{
81
+ return this.route.history.length >= 0
82
+ }
83
+ }else{
84
+ return this.session.sys.isShowLeft
85
+ }
86
+ },
87
+ },
88
+ methods: {
89
+ isActive(url){
90
+
91
+ let routeUrl_cur = this.$ak.http.getRouteUrl()
92
+ let routeUrl_menu = this.$ak.http.getRouteUrl(url)
93
+
94
+ if(routeUrl_cur.includes(routeUrl_menu)){
95
+ return true
96
+ }else {
97
+ return false
98
+ }
99
+
100
+ },
101
+ createDefaultModel() {
102
+ return {
103
+
104
+ };
105
+ },
106
+ loadData(res){
107
+
108
+ if(res.serviceId == 'getMenus'){
109
+
110
+ let data = res.data
111
+ // console.log(JSON.stringify(data))
112
+ let menusData = []
113
+ for(let j = 0; j < data.length; j++) {
114
+
115
+ let children = data[j]
116
+ let ims = children.imUrl.split(',')
117
+ let menuData = {
118
+ title:children.privName,
119
+ url:children.url,
120
+ id:children.id,
121
+ imUrl:ims[0],
122
+ imUrlActive:ims.length > 1 ? ims[1] : ims[0]
123
+ }
124
+
125
+ menusData.push(menuData)
126
+ }
127
+ this.menu = menusData
128
+ // console.log(JSON.stringify(this.menugs))
129
+
130
+ }else if(res.serviceId == 'getUserInfo'){
131
+
132
+ let data = res.data
133
+ this.session.userInfo.userId = data.userId
134
+ this.session.userInfo.userName = data.name
135
+ this.session.userInfo.roles = data.roles
136
+ this.session.userInfo.attrs = data.attrs
137
+ }
138
+
139
+ },
140
+ onClickLeft(){
141
+
142
+ let reUrl = this.session.sys.toolbar.goBackUrl
143
+ this.session.sys.toolbar.goBackUrl = ''
144
+ if(!this.$ak.utils.isEmpty(reUrl)){
145
+ this.route.goBack(reUrl)
146
+ return
147
+ }
148
+
149
+ if(this.route.history.length > 0){
150
+ this.route.goBack()
151
+ }else{
152
+ if(ua.isIspPhone){
153
+ this.$service.callService('exit')
154
+ }else{
155
+ history.back()
156
+ }
157
+ }
158
+ },
159
+ onClickRight(){
160
+
161
+ this.$bus.$emit('clickRight')
162
+ },
163
+ routeInvoke(url){
164
+
165
+ this.route.push(url)
166
+ }
167
+ },
168
+ watch: {
169
+
170
+ 'route.currentUrl':{
171
+ handler(val) {
172
+
173
+ let res = this.menu.find((onemenu) =>{
174
+ return onemenu.url == val
175
+ })
176
+
177
+ if(res){
178
+ this.active = res.url
179
+ this.route.history.splice(0,this.route.history.length);
180
+ }else{
181
+ this.active = ''
182
+ }
183
+ }
184
+ },
185
+ 'session.sys.isLogined':{
186
+ handler(val,oldval){
187
+
188
+ if(this.session.sys.isLogined){
189
+ this.$service.callService('getMenus')
190
+ this.$service.callService('getUserInfo')
191
+ }else{
192
+ this.session.userInfo.userId = ''
193
+ this.session.userInfo.userName = ''
194
+ this.session.userInfo.roles = []
195
+ }
196
+
197
+ },
198
+ deep: false
199
+ },
200
+ 'session.sys.title':{
201
+ handler(val,oldval){
202
+ document.title = val
203
+ },
204
+ deep: false
205
+ }
206
+ }
207
+
208
+ }
209
+
210
+ </script>
211
+
212
+
213
+ <style scoped>
214
+
215
+ .m-header {
216
+ height: 50px;
217
+ line-height: 0px;
218
+ background: #ffffff;
219
+ color: #fff;
220
+ }
221
+
222
+ </style>
@@ -1,41 +1,41 @@
1
- <template>
2
- <div id="phone">
3
- <div>
4
- <button @click="getToken">获取token</button>
5
- <p>{{tokenInfo}}</p>
6
- </div>
7
- </div>
8
- </template>
9
-
10
- <script>
11
-
12
- export default {
13
- name: 'shell',
14
- components: {
15
-
16
- },
17
- data() {
18
- return {
19
- tokenInfo: ''
20
- }
21
- },
22
- mounted() {
23
-
24
- this.$service.callService('getToken').then((data)=>{
25
- console.log(data)
26
- }
27
- )
28
-
29
-
30
-
31
- },
32
- methods: {
33
-
34
- }
35
- }
36
- </script>
37
- <style>
38
- button{
39
- margin: 10px;
40
- }
41
- </style>
1
+ <template>
2
+ <div id="phone">
3
+ <div>
4
+ <button @click="getToken">获取token</button>
5
+ <p>{{tokenInfo}}</p>
6
+ </div>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+
12
+ export default {
13
+ name: 'shell',
14
+ components: {
15
+
16
+ },
17
+ data() {
18
+ return {
19
+ tokenInfo: ''
20
+ }
21
+ },
22
+ mounted() {
23
+
24
+ this.$service.callService('getToken').then((data)=>{
25
+ console.log(data)
26
+ }
27
+ )
28
+
29
+
30
+
31
+ },
32
+ methods: {
33
+
34
+ }
35
+ }
36
+ </script>
37
+ <style>
38
+ button{
39
+ margin: 10px;
40
+ }
41
+ </style>