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.
Files changed (76) hide show
  1. package/.babelrc +6 -6
  2. package/.editorconfig +9 -9
  3. package/README.md +18 -18
  4. package/fstarter.iml +9 -0
  5. package/index.html +22 -22
  6. package/index.js +222 -222
  7. package/package.json +104 -104
  8. package/src/App.vue +38 -38
  9. package/src/i18n/en-US.js +35 -35
  10. package/src/i18n/zh-CN.js +35 -35
  11. package/src/main.js +87 -87
  12. package/src/plugins/assets/ak.js +948 -948
  13. package/src/plugins/assets/callNative.js +488 -488
  14. package/src/plugins/assets/compressImg.js +75 -75
  15. package/src/plugins/assets/config.js +106 -106
  16. package/src/plugins/assets/fileServer.js +469 -469
  17. package/src/plugins/assets/http.js +343 -343
  18. package/src/plugins/assets/ua.js +27 -27
  19. package/src/plugins/components/BSButton.vue +61 -61
  20. package/src/plugins/components/BSCascader.vue +465 -465
  21. package/src/plugins/components/BSCell.vue +48 -48
  22. package/src/plugins/components/BSDatePicker.vue +167 -165
  23. package/src/plugins/components/BSImage.vue +42 -42
  24. package/src/plugins/components/BSInput.vue +140 -140
  25. package/src/plugins/components/BSList.vue +81 -81
  26. package/src/plugins/components/BSPicCode.vue +96 -96
  27. package/src/plugins/components/BSPopup.vue +43 -43
  28. package/src/plugins/components/BSRadio.vue +97 -97
  29. package/src/plugins/components/BSSearch.vue +109 -109
  30. package/src/plugins/components/BSSelect.vue +144 -144
  31. package/src/plugins/components/BSSign.vue +454 -454
  32. package/src/plugins/components/BSStepper.vue +115 -115
  33. package/src/plugins/components/BSUpload.vue +92 -92
  34. package/src/plugins/components/BSUpload2.vue +382 -382
  35. package/src/plugins/components/BSVerCode.vue +131 -134
  36. package/src/plugins/components/BSViewer.vue +92 -92
  37. package/src/plugins/components/base.js +496 -496
  38. package/src/plugins/components/base2.js +489 -489
  39. package/src/plugins/lib/weixin.js +20 -20
  40. package/src/plugins/platform/index.js +7 -7
  41. package/src/plugins/platform/isp_phone.js +306 -306
  42. package/src/plugins/route/index.js +140 -140
  43. package/src/plugins/selector/index.js +342 -342
  44. package/src/plugins/service/index.js +81 -81
  45. package/src/plugins/services/callCamera.js +53 -53
  46. package/src/plugins/services/exit.js +36 -36
  47. package/src/plugins/services/face.js +69 -69
  48. package/src/plugins/services/faceInApp.js +31 -31
  49. package/src/plugins/services/getFaceResult.js +104 -104
  50. package/src/plugins/services/getMenus.js +40 -40
  51. package/src/plugins/services/getSystemData.js +128 -128
  52. package/src/plugins/services/getToken.js +79 -79
  53. package/src/plugins/services/getUserInfo.js +47 -47
  54. package/src/plugins/services/goSetPage.js +40 -40
  55. package/src/plugins/services/hideFhoneTitle.js +36 -36
  56. package/src/plugins/services/index.js +37 -37
  57. package/src/plugins/services/init.js +35 -35
  58. package/src/plugins/services/jumpView.js +40 -40
  59. package/src/plugins/services/logout.js +43 -43
  60. package/src/plugins/services/share.js +113 -113
  61. package/src/plugins/services/statusBarHeight.js +39 -39
  62. package/src/plugins/session/index.js +32 -32
  63. package/src/services/getAuthInfo.js +22 -22
  64. package/src/services/index.js +9 -9
  65. package/src/services/sendVerCode.js +23 -23
  66. package/src/views/auth.vue +354 -353
  67. package/src/views/auth2.vue +90 -90
  68. package/src/views/auth3.vue +148 -148
  69. package/src/views/auth4.vue +8979 -8979
  70. package/src/views/auth5.vue +50 -50
  71. package/src/views/components/BankSelect.vue +55 -55
  72. package/src/views/foot.vue +140 -140
  73. package/src/views/page.vue +219 -219
  74. package/src/views/shellFunc.vue +41 -41
  75. package/themes/basic.css +1 -1
  76. package/webpack.config.js +144 -144
@@ -1,48 +1,48 @@
1
- <template>
2
-
3
- <van-cell :title="model.title" is-link :value="model.value" :label="model.label" @click="onClickItem"/>
4
-
5
- </template>
6
-
7
- <script>
8
-
9
- import base2 from './base2.js'
10
-
11
- export default {
12
- name: "bs-cell",
13
- mixins: [base2],
14
- props: {
15
-
16
- },
17
- data() {
18
- return {
19
-
20
- }
21
- },
22
- mounted() {
23
-
24
-
25
- },
26
- methods: {
27
- createDefaultModel() {
28
- return {
29
- type:'BSCell',
30
- title:'',
31
- value:''
32
- }
33
- },
34
- onClickItem(){
35
- this.model.disabled = true
36
- let self = this
37
- this.$emit('click',function(){
38
- self.model.disabled = false
39
- },this.fullName)
40
- }
41
- }
42
- }
43
-
44
- </script>
45
-
46
- <style scoped>
47
-
48
- </style>
1
+ <template>
2
+
3
+ <van-cell :title="model.title" is-link :value="model.value" :label="model.label" @click="onClickItem"/>
4
+
5
+ </template>
6
+
7
+ <script>
8
+
9
+ import base2 from './base2.js'
10
+
11
+ export default {
12
+ name: "bs-cell",
13
+ mixins: [base2],
14
+ props: {
15
+
16
+ },
17
+ data() {
18
+ return {
19
+
20
+ }
21
+ },
22
+ mounted() {
23
+
24
+
25
+ },
26
+ methods: {
27
+ createDefaultModel() {
28
+ return {
29
+ type:'BSCell',
30
+ title:'',
31
+ value:''
32
+ }
33
+ },
34
+ onClickItem(){
35
+ this.model.disabled = true
36
+ let self = this
37
+ this.$emit('click',function(){
38
+ self.model.disabled = false
39
+ },this.fullName)
40
+ }
41
+ }
42
+ }
43
+
44
+ </script>
45
+
46
+ <style scoped>
47
+
48
+ </style>
@@ -1,165 +1,167 @@
1
- <template>
2
- <div>
3
- <van-field
4
- :class="ctlClass"
5
- :label="model.label"
6
- v-model="model.text"
7
- :placeholder="model.placeholder"
8
- @click="popUp"
9
- readonly
10
- slot="label"
11
- @blur="blur"
12
- :error-message="model.hiddenValidate ? '': model.validateResult.message"
13
- >
14
- <div slot="label">
15
- <span v-if="model.needStar">{{model.required ? '*' : ''}}</span>
16
- <span>{{model.label}}</span>
17
- </div>
18
-
19
- <van-icon slot="button" v-if="!model.readonly"
20
- name="arrow"
21
- />
22
-
23
- </van-field>
24
-
25
- <van-popup v-model="isPopup" position="bottom" :overlay="true">
26
- <van-datetime-picker
27
- type="date"
28
- show-toolbar
29
- v-model="dateComponentVal"
30
- :title="model.placeholder"
31
- :min-date="minDate"
32
- :max-date="maxDate"
33
- @confirm="confirm"
34
- @cancel='cancel'
35
- />
36
- </van-popup>
37
-
38
- </div>
39
- </template>
40
-
41
- <script>
42
-
43
- import config from '../assets/config.js'
44
- import ak from '../assets/ak.js'
45
- import base2 from './base2.js'
46
-
47
- export default {
48
- name: "bs-datePicker",
49
- mixins: [base2],
50
- props: {
51
-
52
- },
53
- data() {
54
- return {
55
- validateCtl:true,
56
- isPopup:false
57
- }
58
- },
59
- mounted() {
60
-
61
-
62
- },
63
- methods: {
64
- createDefaultModel() {
65
- return {
66
- value:'',
67
- text: '',
68
- type:'BSDatePicker',
69
- placeholder:'lang.ctl.BSDatePicker.placeholder',
70
- minDate:'2011-08-01',
71
- maxDate:'2019-01-01',
72
- dateFormat:'yyyy-MM-dd',
73
- needStar: true
74
- };
75
- },
76
- popUp(){
77
-
78
- this.isPopup = true && !this.model.readonly
79
- },
80
- cancel(){
81
- this.isPopup = false
82
- },
83
- confirm(value){
84
- this.model.value = value;
85
- this.isPopup = false
86
- if(!this.model.readonly) this.model.validateToken++
87
- this.$emit('changed',function(){
88
-
89
- },this.fullName)
90
- },
91
- blur(){
92
-
93
-
94
-
95
- this.$emit('blur',function(){
96
-
97
- },this.fullName)
98
-
99
- }
100
- },
101
- computed: {
102
- minDate() {
103
-
104
- if(ak.utils.isEmpty(this.model.minDate)){
105
- return new Date()
106
- }else{
107
- return ak.utils.parserToDate(this.model.minDate,this.model.dateFormat)
108
- }
109
-
110
- },
111
- maxDate() {
112
-
113
- if(ak.utils.isEmpty(this.model.maxDate)){
114
- return new Date()
115
- }else{
116
- return ak.utils.parserToDate(this.model.maxDate,this.model.dateFormat)
117
- }
118
- },
119
- dateComponentVal: {
120
- get() {
121
- if(ak.utils.isEmpty(this.modelData.text)){
122
- return ''
123
- } else if(ak.utils.isEmpty(this.model.text)){
124
- return ''
125
- } else {
126
- return ak.utils.parserToDate(this.modelData.text, this.model.dateFormat)
127
-
128
- }
129
- },
130
- set() {}
131
-
132
- }
133
- },
134
- watch: {
135
- dateComponentVal(newVal) {
136
- if(!ak.utils.isEmpty(newVal)){
137
- this.model.text = ak.utils.dateFormat(this.model.dateFormat, newVal)
138
- }
139
- },
140
- 'model.value':{
141
-       handler(val,oldval){
142
-
143
- this.saveLocalValue(val)
144
-
145
- if(!ak.utils.isEmpty(val)){
146
- this.model.text = ak.utils.dateFormat(this.model.dateFormat,val)
147
- }
148
-
149
- this.setEventString(this.fullName,this.sname,'value',val,oldval)
150
-       },
151
-       deep:false
152
-      }
153
- }
154
- }
155
-
156
- </script>
157
-
158
- <style scoped>
159
-
160
- .BSDatePicker_readonly{
161
- color:#999999;
162
- }
163
-
164
-
165
- </style>
1
+ <template>
2
+ <div>
3
+ <van-field
4
+ :class="ctlClass"
5
+ :label="model.label"
6
+ v-model="model.text"
7
+ :placeholder="model.placeholder"
8
+ @click="popUp"
9
+ readonly
10
+ slot="label"
11
+ @blur="blur"
12
+ :error-message="model.hiddenValidate ? '': model.validateResult.message"
13
+ >
14
+ <div slot="label">
15
+ <span v-if="model.needStar">{{model.required ? '*' : ''}}</span>
16
+ <span>{{model.label}}</span>
17
+ </div>
18
+
19
+ <van-icon slot="button" v-if="!model.readonly"
20
+ name="arrow"
21
+ />
22
+
23
+ </van-field>
24
+
25
+ <van-popup v-model="isPopup" position="bottom" :overlay="true">
26
+ <van-datetime-picker
27
+ type="date"
28
+ show-toolbar
29
+ v-model="model.defaultPickerVal"
30
+ :title="model.placeholder"
31
+ :min-date="minDate"
32
+ :max-date="maxDate"
33
+ @confirm="confirm"
34
+ @cancel='cancel'
35
+ />
36
+ </van-popup>
37
+
38
+ </div>
39
+ </template>
40
+
41
+ <script>
42
+
43
+ import config from '../assets/config.js'
44
+ import ak from '../assets/ak.js'
45
+ import base2 from './base2.js'
46
+
47
+ export default {
48
+ name: "bs-datePicker",
49
+ mixins: [base2],
50
+ data() {
51
+ return {
52
+ validateCtl:true,
53
+ isPopup:false
54
+ }
55
+ },
56
+ mounted() {
57
+ if (this.mod.defaultPickerVal) {
58
+ this.model.defaultPickerVal = new Date(this.mod.defaultPickerVal)
59
+ }
60
+ },
61
+ methods: {
62
+ createDefaultModel() {
63
+ return {
64
+ value:'',
65
+ text: '',
66
+ type: 'BSDatePicker',
67
+ placeholder:' lang.ctl.BSDatePicker.placeholder',
68
+ minDate:' 2011-08-01',
69
+ maxDate: '2019-01-01',
70
+ dateFormat: 'yyyy-MM-dd',
71
+ needStar: true,
72
+ defaultPickerVal: ''
73
+ };
74
+ },
75
+ popUp(){
76
+
77
+ this.isPopup = true && !this.model.readonly
78
+ },
79
+ cancel(){
80
+ this.isPopup = false
81
+ },
82
+ confirm(value){
83
+ this.model.value = value;
84
+ this.isPopup = false
85
+ if(!this.model.readonly) this.model.validateToken++
86
+ this.$emit('changed',function(){
87
+
88
+ },this.fullName)
89
+ },
90
+ blur(){
91
+
92
+
93
+
94
+ this.$emit('blur',function(){
95
+
96
+ },this.fullName)
97
+
98
+ }
99
+ },
100
+ computed: {
101
+ minDate() {
102
+
103
+ if(ak.utils.isEmpty(this.model.minDate)){
104
+ return new Date()
105
+ }else{
106
+ return ak.utils.parserToDate(this.model.minDate,this.model.dateFormat)
107
+ }
108
+
109
+ },
110
+ maxDate() {
111
+
112
+ if(ak.utils.isEmpty(this.model.maxDate)){
113
+ return new Date()
114
+ }else{
115
+ return ak.utils.parserToDate(this.model.maxDate,this.model.dateFormat)
116
+ }
117
+ },
118
+ dateComponentVal: {
119
+ get() {
120
+ if(ak.utils.isEmpty(this.modelData.text)){
121
+ return ''
122
+ } else if(ak.utils.isEmpty(this.model.text)){
123
+ return ''
124
+ } else {
125
+ return ak.utils.parserToDate(this.modelData.text, this.model.dateFormat)
126
+
127
+ }
128
+ },
129
+ set() {
130
+ if (this.mod.defaultVal) return this.mod.defaultVal
131
+
132
+ }
133
+
134
+ }
135
+ },
136
+ watch: {
137
+ dateComponentVal(newVal) {
138
+ if(!ak.utils.isEmpty(newVal)){
139
+ this.model.text = ak.utils.dateFormat(this.model.dateFormat, newVal)
140
+ }
141
+ },
142
+ 'model.value':{
143
+       handler(val,oldval){
144
+
145
+ this.saveLocalValue(val)
146
+
147
+ if(!ak.utils.isEmpty(val)){
148
+ this.model.text = ak.utils.dateFormat(this.model.dateFormat,val)
149
+ }
150
+
151
+ this.setEventString(this.fullName,this.sname,'value',val,oldval)
152
+       },
153
+       deep:false
154
+      }
155
+ }
156
+ }
157
+
158
+ </script>
159
+
160
+ <style scoped>
161
+
162
+ .BSDatePicker_readonly{
163
+ color:#999999;
164
+ }
165
+
166
+
167
+ </style>
@@ -1,42 +1,42 @@
1
- <template>
2
-
3
- <van-image :src="model.value" />
4
-
5
- </template>
6
-
7
- <script>
8
-
9
- import config from '../assets/config.js'
10
- import base2 from './base2.js'
11
-
12
- export default {
13
- name: "bs-image",
14
- mixins: [base2],
15
- props: {
16
-
17
- },
18
- data() {
19
- return {
20
-
21
- }
22
- },
23
- mounted() {
24
-
25
-
26
- },
27
- methods: {
28
- createDefaultModel() {
29
- return {
30
- type:'BSImage',
31
- value:''
32
- };
33
- }
34
- }
35
-
36
- }
37
-
38
- </script>
39
-
40
- <style scoped>
41
-
42
- </style>
1
+ <template>
2
+
3
+ <van-image :src="model.value" />
4
+
5
+ </template>
6
+
7
+ <script>
8
+
9
+ import config from '../assets/config.js'
10
+ import base2 from './base2.js'
11
+
12
+ export default {
13
+ name: "bs-image",
14
+ mixins: [base2],
15
+ props: {
16
+
17
+ },
18
+ data() {
19
+ return {
20
+
21
+ }
22
+ },
23
+ mounted() {
24
+
25
+
26
+ },
27
+ methods: {
28
+ createDefaultModel() {
29
+ return {
30
+ type:'BSImage',
31
+ value:''
32
+ };
33
+ }
34
+ }
35
+
36
+ }
37
+
38
+ </script>
39
+
40
+ <style scoped>
41
+
42
+ </style>