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.
Files changed (78) hide show
  1. package/.babelrc +6 -6
  2. package/.editorconfig +9 -9
  3. package/fstarter.iml +9 -0
  4. package/index.html +22 -22
  5. package/index.js +222 -222
  6. package/package.json +104 -104
  7. package/src/App.vue +38 -38
  8. package/src/i18n/en-US.js +35 -35
  9. package/src/i18n/zh-CN.js +35 -35
  10. package/src/main.js +87 -87
  11. package/src/plugins/assets/ak.js +948 -948
  12. package/src/plugins/assets/callNative.js +488 -488
  13. package/src/plugins/assets/compressImg.js +75 -75
  14. package/src/plugins/assets/config.js +106 -106
  15. package/src/plugins/assets/fileServer.js +469 -469
  16. package/src/plugins/assets/http.js +343 -343
  17. package/src/plugins/assets/ua.js +27 -27
  18. package/src/plugins/components/BSButton.vue +61 -61
  19. package/src/plugins/components/BSCascader.vue +465 -465
  20. package/src/plugins/components/BSCell.vue +48 -48
  21. package/src/plugins/components/BSDatePicker.vue +167 -167
  22. package/src/plugins/components/BSImage.vue +42 -42
  23. package/src/plugins/components/BSInput.vue +140 -140
  24. package/src/plugins/components/BSList.vue +81 -81
  25. package/src/plugins/components/BSPicCode.vue +96 -96
  26. package/src/plugins/components/BSPopup.vue +43 -43
  27. package/src/plugins/components/BSRadio.vue +97 -97
  28. package/src/plugins/components/BSSearch.vue +109 -109
  29. package/src/plugins/components/BSSelect.vue +144 -144
  30. package/src/plugins/components/BSSign.vue +454 -454
  31. package/src/plugins/components/BSStepper.vue +115 -115
  32. package/src/plugins/components/BSUpload.vue +92 -92
  33. package/src/plugins/components/BSUpload2.vue +398 -392
  34. package/src/plugins/components/BSVerCode.vue +129 -135
  35. package/src/plugins/components/BSViewer.vue +92 -92
  36. package/src/plugins/components/base.js +496 -496
  37. package/src/plugins/components/base2.js +489 -489
  38. package/src/plugins/lib/weixin.js +20 -20
  39. package/src/plugins/platform/index.js +7 -7
  40. package/src/plugins/platform/isp_phone.js +306 -306
  41. package/src/plugins/route/index.js +140 -140
  42. package/src/plugins/selector/index.js +342 -342
  43. package/src/plugins/service/index.js +81 -81
  44. package/src/plugins/services/callCamera.js +53 -53
  45. package/src/plugins/services/exit.js +36 -36
  46. package/src/plugins/services/face.js +69 -69
  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/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/getTxFaceResult.js +83 -83
  54. package/src/plugins/services/getUserInfo.js +47 -47
  55. package/src/plugins/services/goSetPage.js +40 -40
  56. package/src/plugins/services/hideFhoneTitle.js +36 -36
  57. package/src/plugins/services/index.js +41 -41
  58. package/src/plugins/services/init.js +35 -35
  59. package/src/plugins/services/jumpView.js +40 -40
  60. package/src/plugins/services/logout.js +43 -43
  61. package/src/plugins/services/share.js +113 -113
  62. package/src/plugins/services/statusBarHeight.js +39 -39
  63. package/src/plugins/session/index.js +32 -32
  64. package/src/services/getAuthInfo.js +22 -22
  65. package/src/services/index.js +9 -9
  66. package/src/services/sendVerCode.js +23 -23
  67. package/src/views/auth.vue +367 -361
  68. package/src/views/auth2.vue +90 -90
  69. package/src/views/auth3.vue +157 -157
  70. package/src/views/auth4.vue +8979 -8979
  71. package/src/views/auth5.vue +50 -50
  72. package/src/views/components/BankSelect.vue +55 -55
  73. package/src/views/foot.vue +140 -140
  74. package/src/views/page.vue +219 -219
  75. package/src/views/shellFunc.vue +41 -41
  76. package/themes/basic.css +1 -1
  77. package/webpack.config.js +144 -144
  78. package/README.md +0 -18
@@ -1,135 +1,129 @@
1
- <template>
2
-
3
- <van-field
4
- :label="model.label"
5
- v-model="model.value"
6
- :placeholder="sent === 'leave' ?model.placeholder:''"
7
- slot="button"
8
- @blur="blur"
9
- :class="ctlClass"
10
- :clearable="model.clearable"
11
- :error-message="model.hiddenValidate ? '': model.validateResult.message"
12
- >
13
- <van-button slot="button" @click="sendVerCode" :disabled="modelData.disabled">{{model.sendButtonLabel}}</van-button>
14
- </van-field>
15
-
16
- </template>
17
-
18
- <script>
19
-
20
- import Rx from 'rxjs';
21
- import {take} from 'rxjs/operators';
22
- import { filter } from 'rxjs/operators';
23
- import base2 from './base2.js'
24
-
25
- export default {
26
- name: "bs-vercode",
27
- mixins: [base2],
28
- props: {
29
-
30
- },
31
- data() {
32
- return {
33
- validateCtl:true,
34
- sent: 'leave'
35
- }
36
- },
37
- mounted() {
38
-
39
-
40
- },
41
- methods: {
42
- createDefaultModel() {
43
- return {
44
- type:'BSVerCode',
45
- value:'',
46
- placeholder:'lang.ctl.BSVerCode.placeholder',
47
- sendButtonLabel:'lang.ctl.BSVerCode.sendButtonLabel',
48
- expiredTime:60,
49
- expiredLabel:'{0}s',
50
- disabled: false
51
- };
52
- },
53
- sendVerCode(){
54
- debugger
55
- if(this.sent === 'sending'){
56
- return
57
- }
58
-
59
- let self = this
60
- this.$emit('send-verCode',function(){
61
-
62
- debugger
63
- self.sent = 'sending'
64
- self.model.expiredTime = self.modelData.expiredTime
65
-
66
- var source = Rx.Observable.timer(0, 1000)
67
-
68
- source = source.pipe(take(self.modelData.expiredTime)).pipe(filter(num => self.sent === 'sending'));
69
-
70
- source.subscribe({
71
- next: function(value) {
72
- // self.sent = true
73
- self.model.expiredTime = self.model.expiredTime - 1
74
- self.model.sendButtonLabel = self.modelData.expiredLabel.format(self.model.expiredTime)
75
- // self.sent = false
76
-
77
- },
78
- complete: function() {
79
-
80
- self.model.sendButtonLabel = self.modelData.sendButtonLabel
81
- self.sent = 'leave'
82
- self.model.value = ''
83
- },
84
- error: function(error) {
85
- console.log('Throw Error: ' + error)
86
- }
87
- });
88
-
89
- },this.fullName)
90
-
91
- },
92
- reset(){
93
-
94
- this.sent = 'leave'
95
- this.model.label = this.modelData.label
96
- this.model.disabled = this.modelData.disabled
97
- this.model.value = this.modelData.value
98
- this.model.placeholder = this.modelData.placeholder
99
- this.model.sendButtonLabel= this.modelData.sendButtonLabel
100
- this.model.expiredTime = this.modelData.expiredTime
101
- this.model.expiredLabel = this.modelData.expiredLabel
102
-
103
- },
104
- blur(){
105
-
106
- if(!this.model.readonly)
107
- this.model.validateToken++
108
-
109
- this.$emit('blur',function(){
110
-
111
- },this.fullName)
112
-
113
- }
114
- },
115
- watch:{
116
- 'model.value':{
117
- handler(val,oldval){
118
-
119
- this.setEventString(this.fullName,this.sname,'value',val,oldval)
120
- },
121
- deep: false
122
- }
123
- }
124
-
125
- }
126
-
127
- </script>
128
-
129
- <style scoped>
130
-
131
- .BSVerCode_disabled{
132
- color:#999999;
133
- }
134
-
135
- </style>
1
+ <template>
2
+
3
+ <van-field
4
+ :label="model.label"
5
+ v-model="model.value"
6
+ :placeholder="sent?model.placeholder:''"
7
+ slot="button"
8
+ @blur="blur"
9
+ :class="ctlClass"
10
+ :clearable="model.clearable"
11
+ :error-message="model.hiddenValidate ? '': model.validateResult.message"
12
+ >
13
+ <van-button slot="button" @click="sendVerCode" :disabled="modelData.disabled">{{model.sendButtonLabel}}</van-button>
14
+ </van-field>
15
+
16
+ </template>
17
+
18
+ <script>
19
+
20
+ import Rx from 'rxjs';
21
+ import {take} from 'rxjs/operators';
22
+ import { filter } from 'rxjs/operators';
23
+ import base2 from './base2.js'
24
+
25
+ export default {
26
+ name: "bs-vercode",
27
+ mixins: [base2],
28
+ props: {
29
+
30
+ },
31
+ data() {
32
+ return {
33
+ validateCtl:true,
34
+ sent:false
35
+ }
36
+ },
37
+ mounted() {
38
+
39
+
40
+ },
41
+ methods: {
42
+ createDefaultModel() {
43
+ return {
44
+ type:'BSVerCode',
45
+ value:'',
46
+ placeholder:'lang.ctl.BSVerCode.placeholder',
47
+ sendButtonLabel:'lang.ctl.BSVerCode.sendButtonLabel',
48
+ expiredTime:60,
49
+ expiredLabel:'{0}s'
50
+ };
51
+ },
52
+ sendVerCode(){
53
+ if(this.sent){
54
+ return
55
+ }
56
+ this.sent=true
57
+ let self = this
58
+ this.$emit('send-verCode',function(){
59
+ self.model.expiredTime = self.modelData.expiredTime
60
+
61
+ var source = Rx.Observable.timer(0, 1000)
62
+
63
+ source = source.pipe(take(self.modelData.expiredTime)).pipe(filter(num => self.sent));
64
+
65
+ source.subscribe({
66
+ next: function(value) {
67
+
68
+ self.model.expiredTime = self.model.expiredTime - 1
69
+ self.model.sendButtonLabel = self.modelData.expiredLabel.format(self.model.expiredTime)
70
+ },
71
+ complete: function() {
72
+
73
+ self.model.sendButtonLabel = self.modelData.sendButtonLabel
74
+ self.sent = false
75
+ // self.model.value = ''
76
+ },
77
+ error: function(error) {
78
+ console.log('Throw Error: ' + error)
79
+ self.sent = false
80
+ }
81
+ });
82
+
83
+ },this.fullName)
84
+
85
+ },
86
+ reset(){
87
+
88
+ this.sent = false
89
+ this.model.label = this.modelData.label
90
+ this.model.disabled = this.modelData.disabled
91
+ this.model.value = this.modelData.value
92
+ this.model.placeholder = this.modelData.placeholder
93
+ this.model.sendButtonLabel= this.modelData.sendButtonLabel
94
+ this.model.expiredTime = this.modelData.expiredTime
95
+ this.model.expiredLabel = this.modelData.expiredLabel
96
+
97
+ },
98
+ blur(){
99
+
100
+ if(!this.model.readonly)
101
+ this.model.validateToken++
102
+
103
+ this.$emit('blur',function(){
104
+
105
+ },this.fullName)
106
+
107
+ }
108
+ },
109
+ watch:{
110
+ 'model.value':{
111
+ handler(val,oldval){
112
+
113
+ this.setEventString(this.fullName,this.sname,'value',val,oldval)
114
+ },
115
+ deep: false
116
+ }
117
+ }
118
+
119
+ }
120
+
121
+ </script>
122
+
123
+ <style scoped>
124
+
125
+ .BSVerCode_disabled{
126
+ color:#999999;
127
+ }
128
+
129
+ </style>
@@ -1,92 +1,92 @@
1
- <template>
2
- <div id="viewc"></div>
3
- </template>
4
-
5
- <script>
6
-
7
- import Pdfh5 from 'pdfh5'
8
- import base2 from './base2.js'
9
- import "pdfh5/css/pdfh5.css"
10
-
11
- export default {
12
- name: "bs-viewer",
13
- mixins: [base2],
14
- props: {
15
-
16
- },
17
- data() {
18
- return {
19
- fileType:''
20
- }
21
- },
22
- mounted() {
23
-
24
- },
25
- methods: {
26
- createDefaultModel() {
27
- return {
28
- type:'BSViewer',
29
- value:''
30
- }
31
- },
32
- setPdf(pdfUrl) {
33
-
34
- if(this.pdfh5)
35
- this.pdfh5.destroy()
36
-
37
- this.pdfh5 = new Pdfh5('#viewc', {
38
- pdfurl: pdfUrl,
39
- lazy: true,
40
- renderType: 'canvas'
41
- })
42
-
43
- let self = this
44
- this.pdfh5.on('render', function(pageNum, time) {
45
- console.log('当前加载页码:' + pageNum + ',耗时:' + time + '毫秒,总页数:' + this.totalNum)
46
- })
47
- this.pdfh5.on('complete', function(status, msg, time) {
48
- self.$emit('onload',function(){
49
-
50
- },self.fullName)
51
- })
52
- },
53
- getFileType(fileUrl){
54
-
55
- if(this.$ak.utils.isEmpty(fileUrl)){
56
- return null
57
- }else{
58
- let index = fileUrl.lastIndexOf('.')
59
- if(index >= 0 ){
60
- return fileUrl.substr(index+1)
61
- }else{
62
- return null
63
- }
64
- }
65
-
66
- }
67
- },
68
- watch: {
69
- 'model.value':{
70
- handler(val,oldval){
71
-
72
- this.fileType = this.getFileType(val)
73
-
74
- if(this.fileType == 'pdf'){
75
- this.setPdf(val)
76
- }
77
-
78
- this.setEventString(this.fullName,this.sname,'value',val,oldval)
79
- },
80
- deep:false
81
- }
82
- },
83
- computed:{
84
-
85
- }
86
- }
87
-
88
- </script>
89
-
90
- <style scoped>
91
-
92
- </style>
1
+ <template>
2
+ <div id="viewc"></div>
3
+ </template>
4
+
5
+ <script>
6
+
7
+ import Pdfh5 from 'pdfh5'
8
+ import base2 from './base2.js'
9
+ import "pdfh5/css/pdfh5.css"
10
+
11
+ export default {
12
+ name: "bs-viewer",
13
+ mixins: [base2],
14
+ props: {
15
+
16
+ },
17
+ data() {
18
+ return {
19
+ fileType:''
20
+ }
21
+ },
22
+ mounted() {
23
+
24
+ },
25
+ methods: {
26
+ createDefaultModel() {
27
+ return {
28
+ type:'BSViewer',
29
+ value:''
30
+ }
31
+ },
32
+ setPdf(pdfUrl) {
33
+
34
+ if(this.pdfh5)
35
+ this.pdfh5.destroy()
36
+
37
+ this.pdfh5 = new Pdfh5('#viewc', {
38
+ pdfurl: pdfUrl,
39
+ lazy: true,
40
+ renderType: 'canvas'
41
+ })
42
+
43
+ let self = this
44
+ this.pdfh5.on('render', function(pageNum, time) {
45
+ console.log('当前加载页码:' + pageNum + ',耗时:' + time + '毫秒,总页数:' + this.totalNum)
46
+ })
47
+ this.pdfh5.on('complete', function(status, msg, time) {
48
+ self.$emit('onload',function(){
49
+
50
+ },self.fullName)
51
+ })
52
+ },
53
+ getFileType(fileUrl){
54
+
55
+ if(this.$ak.utils.isEmpty(fileUrl)){
56
+ return null
57
+ }else{
58
+ let index = fileUrl.lastIndexOf('.')
59
+ if(index >= 0 ){
60
+ return fileUrl.substr(index+1)
61
+ }else{
62
+ return null
63
+ }
64
+ }
65
+
66
+ }
67
+ },
68
+ watch: {
69
+ 'model.value':{
70
+ handler(val,oldval){
71
+
72
+ this.fileType = this.getFileType(val)
73
+
74
+ if(this.fileType == 'pdf'){
75
+ this.setPdf(val)
76
+ }
77
+
78
+ this.setEventString(this.fullName,this.sname,'value',val,oldval)
79
+ },
80
+ deep:false
81
+ }
82
+ },
83
+ computed:{
84
+
85
+ }
86
+ }
87
+
88
+ </script>
89
+
90
+ <style scoped>
91
+
92
+ </style>