fstarter 2.10.56 → 2.10.57

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 (93) 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 -95
  10. package/src/plugins/assets/ak.js +948 -948
  11. package/src/plugins/assets/callNative.js +490 -490
  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 +344 -344
  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 +397 -397
  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 -310
  40. package/src/plugins/plugins/README.md +560 -0
  41. package/src/plugins/plugins/browserUtils.js +925 -0
  42. package/src/plugins/plugins/components/imageCropper.vue +299 -0
  43. package/src/plugins/plugins/components/images/bz.png +0 -0
  44. package/src/plugins/plugins/components/images/correct.png +0 -0
  45. package/src/plugins/plugins/components/images/error.png +0 -0
  46. package/src/plugins/plugins/components/images/mohu.png +0 -0
  47. package/src/plugins/plugins/components/images/qs.png +0 -0
  48. package/src/plugins/plugins/components/images/zd.png +0 -0
  49. package/src/plugins/plugins/components/pdfPreview.vue +688 -0
  50. package/src/plugins/plugins/demo.vue +832 -0
  51. package/src/plugins/plugins/native-js-sdk.js +360 -0
  52. package/src/plugins/plugins/nativeUtils.js +1444 -0
  53. package/src/plugins/route/index.js +140 -140
  54. package/src/plugins/selector/index.js +342 -342
  55. package/src/plugins/service/index.js +81 -81
  56. package/src/plugins/services/callCamera.js +53 -53
  57. package/src/plugins/services/exit.js +37 -36
  58. package/src/plugins/services/face.js +69 -69
  59. package/src/plugins/services/faceH5.js +54 -54
  60. package/src/plugins/services/faceInApp.js +31 -31
  61. package/src/plugins/services/faceTx.js +61 -61
  62. package/src/plugins/services/getFaceResult.js +104 -104
  63. package/src/plugins/services/getH5FaceResult.js +62 -62
  64. package/src/plugins/services/getMenus.js +40 -40
  65. package/src/plugins/services/getSystemData.js +144 -128
  66. package/src/plugins/services/getToken.js +93 -79
  67. package/src/plugins/services/getTxFaceResult.js +83 -83
  68. package/src/plugins/services/getUserInfo.js +47 -47
  69. package/src/plugins/services/goSetPage.js +40 -40
  70. package/src/plugins/services/hideFhoneTitle.js +36 -36
  71. package/src/plugins/services/index.js +45 -45
  72. package/src/plugins/services/init.js +35 -35
  73. package/src/plugins/services/jumpView.js +42 -40
  74. package/src/plugins/services/logout.js +44 -43
  75. package/src/plugins/services/share.js +113 -113
  76. package/src/plugins/services/statusBarHeight.js +39 -39
  77. package/src/plugins/session/index.js +32 -32
  78. package/src/services/getAuthInfo.js +22 -22
  79. package/src/services/index.js +9 -9
  80. package/src/services/sendVerCode.js +23 -23
  81. package/src/views/auth.vue +367 -367
  82. package/src/views/auth2.vue +90 -90
  83. package/src/views/auth3.vue +157 -157
  84. package/src/views/auth4.vue +8979 -8979
  85. package/src/views/auth5.vue +50 -50
  86. package/src/views/authh5.vue +369 -369
  87. package/src/views/components/BankSelect.vue +55 -55
  88. package/src/views/foot.vue +140 -140
  89. package/src/views/page.vue +222 -222
  90. package/src/views/shellFunc.vue +41 -41
  91. package/themes/basic.css +1 -1
  92. package/webpack.config.js +144 -144
  93. package/fstarter.iml +0 -9
@@ -1,128 +1,128 @@
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 }}
14
- </van-button>
15
- </van-field>
16
-
17
- </template>
18
-
19
- <script>
20
-
21
- import Rx from 'rxjs';
22
- import {filter, take} from 'rxjs/operators';
23
- import base2 from './base2.js'
24
-
25
- export default {
26
- name: "bs-vercode",
27
- mixins: [base2],
28
- props: {},
29
- data() {
30
- return {
31
- validateCtl: true,
32
- sent: false
33
- }
34
- },
35
- mounted() {
36
-
37
-
38
- },
39
- methods: {
40
- createDefaultModel() {
41
- return {
42
- type: 'BSVerCode',
43
- value: '',
44
- placeholder: 'lang.ctl.BSVerCode.placeholder',
45
- sendButtonLabel: 'lang.ctl.BSVerCode.sendButtonLabel',
46
- expiredTime: 60,
47
- expiredLabel: '{0}s'
48
- };
49
- },
50
- sendVerCode() {
51
- if (this.sent) {
52
- return
53
- }
54
- let self = this
55
- this.$emit('send-verCode', function () {
56
- self.sent = true
57
- self.model.expiredTime = self.modelData.expiredTime
58
-
59
- var source = Rx.Observable.timer(0, 1000)
60
-
61
- source = source.pipe(take(self.modelData.expiredTime)).pipe(filter(num => self.sent));
62
-
63
- source.subscribe({
64
- next: function (value) {
65
-
66
- self.model.expiredTime = self.model.expiredTime - 1
67
- self.model.sendButtonLabel = self.modelData.expiredLabel.format(self.model.expiredTime)
68
- },
69
- complete: function () {
70
-
71
- self.model.sendButtonLabel = self.modelData.sendButtonLabel
72
- self.sent = false
73
- // self.model.value = ''
74
- },
75
- error: function (error) {
76
- console.log('Throw Error: ' + error)
77
- self.sent = false
78
- }
79
- });
80
-
81
- }, this.fullName)
82
-
83
-
84
- },
85
- reset() {
86
-
87
- this.sent = false
88
- this.model.label = this.modelData.label
89
- this.model.disabled = this.modelData.disabled
90
- this.model.value = this.modelData.value
91
- this.model.placeholder = this.modelData.placeholder
92
- this.model.sendButtonLabel = this.modelData.sendButtonLabel
93
- this.model.expiredTime = this.modelData.expiredTime
94
- this.model.expiredLabel = this.modelData.expiredLabel
95
-
96
- },
97
- blur() {
98
-
99
- if (!this.model.readonly)
100
- this.model.validateToken++
101
-
102
- this.$emit('blur', function () {
103
-
104
- }, this.fullName)
105
-
106
- }
107
- },
108
- watch: {
109
- 'model.value': {
110
- handler(val, oldval) {
111
-
112
- this.setEventString(this.fullName, this.sname, 'value', val, oldval)
113
- },
114
- deep: false
115
- }
116
- }
117
-
118
- }
119
-
120
- </script>
121
-
122
- <style scoped>
123
-
124
- .BSVerCode_disabled {
125
- color: #999999;
126
- }
127
-
128
- </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 }}
14
+ </van-button>
15
+ </van-field>
16
+
17
+ </template>
18
+
19
+ <script>
20
+
21
+ import Rx from 'rxjs';
22
+ import {filter, take} from 'rxjs/operators';
23
+ import base2 from './base2.js'
24
+
25
+ export default {
26
+ name: "bs-vercode",
27
+ mixins: [base2],
28
+ props: {},
29
+ data() {
30
+ return {
31
+ validateCtl: true,
32
+ sent: false
33
+ }
34
+ },
35
+ mounted() {
36
+
37
+
38
+ },
39
+ methods: {
40
+ createDefaultModel() {
41
+ return {
42
+ type: 'BSVerCode',
43
+ value: '',
44
+ placeholder: 'lang.ctl.BSVerCode.placeholder',
45
+ sendButtonLabel: 'lang.ctl.BSVerCode.sendButtonLabel',
46
+ expiredTime: 60,
47
+ expiredLabel: '{0}s'
48
+ };
49
+ },
50
+ sendVerCode() {
51
+ if (this.sent) {
52
+ return
53
+ }
54
+ let self = this
55
+ this.$emit('send-verCode', function () {
56
+ self.sent = true
57
+ self.model.expiredTime = self.modelData.expiredTime
58
+
59
+ var source = Rx.Observable.timer(0, 1000)
60
+
61
+ source = source.pipe(take(self.modelData.expiredTime)).pipe(filter(num => self.sent));
62
+
63
+ source.subscribe({
64
+ next: function (value) {
65
+
66
+ self.model.expiredTime = self.model.expiredTime - 1
67
+ self.model.sendButtonLabel = self.modelData.expiredLabel.format(self.model.expiredTime)
68
+ },
69
+ complete: function () {
70
+
71
+ self.model.sendButtonLabel = self.modelData.sendButtonLabel
72
+ self.sent = false
73
+ // self.model.value = ''
74
+ },
75
+ error: function (error) {
76
+ console.log('Throw Error: ' + error)
77
+ self.sent = false
78
+ }
79
+ });
80
+
81
+ }, this.fullName)
82
+
83
+
84
+ },
85
+ reset() {
86
+
87
+ this.sent = false
88
+ this.model.label = this.modelData.label
89
+ this.model.disabled = this.modelData.disabled
90
+ this.model.value = this.modelData.value
91
+ this.model.placeholder = this.modelData.placeholder
92
+ this.model.sendButtonLabel = this.modelData.sendButtonLabel
93
+ this.model.expiredTime = this.modelData.expiredTime
94
+ this.model.expiredLabel = this.modelData.expiredLabel
95
+
96
+ },
97
+ blur() {
98
+
99
+ if (!this.model.readonly)
100
+ this.model.validateToken++
101
+
102
+ this.$emit('blur', function () {
103
+
104
+ }, this.fullName)
105
+
106
+ }
107
+ },
108
+ watch: {
109
+ 'model.value': {
110
+ handler(val, oldval) {
111
+
112
+ this.setEventString(this.fullName, this.sname, 'value', val, oldval)
113
+ },
114
+ deep: false
115
+ }
116
+ }
117
+
118
+ }
119
+
120
+ </script>
121
+
122
+ <style scoped>
123
+
124
+ .BSVerCode_disabled {
125
+ color: #999999;
126
+ }
127
+
128
+ </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>