fstarter 2.10.55 → 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 -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 -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
@@ -0,0 +1,299 @@
1
+ <template>
2
+ <div class="image-cropper-container">
3
+ <!-- 示例图 如果身份证 银行卡则显示 -->
4
+ <div style="background-color: #fff; padding: 5px 10px;"
5
+ v-if="actions === 'ocr_id0' || actions === 'ocr_id1' || actions === 'ocr_bc'">
6
+ <div class="errorList">
7
+ <div class="picture" v-for="item in errorLists" :key="'error-' + item.label">
8
+ <div>
9
+ <img class="img1" :src="item.img1" />
10
+ <img class="imgIcon" :src="item.imgIcon" />
11
+ </div>
12
+ {{ item.label }}
13
+ </div>
14
+ </div>
15
+ <div class="tips-text">
16
+ 请将证件的四条边缘与示例图中的虚线框完全重合,确保边缘清晰、无多余背景。若图片方向不正,请先使用旋转工具将证件旋转至水平。
17
+ </div>
18
+ </div>
19
+ <div class="cropper-wrapper">
20
+ <vue-cropper ref="cropper" class="cropper-container" :img="imgSrc" :autoCrop="autoCrop" :canScale="canScale"
21
+ :canMove="canMove" :canMoveBox="canMoveBox" :fixedBox="fixedBox" :info="info" :autoCropWidth="autoCropWidth"
22
+ :autoCropHeight="autoCropHeight" :fixed="fixed" :fixedNumber="fixedNumber" :enlarge="enlarge"
23
+ :outputSize="outputSize" :centerBox="centerBox" :outputType="outputType" :fullscreen="true"></vue-cropper>
24
+ <div class="toolbar-btn">
25
+ <svg @click="rotateRight" t="1760325619986" viewBox="0 0 1024 1024" version="1.1"
26
+ xmlns="http://www.w3.org/2000/svg" p-id="6974" width="40" height="40">
27
+ <path
28
+ d="M1023.977013 511.699911a30.10888 30.10888 0 0 1-60.217759 0c-0.120035-230.342933-173.53718-423.701959-402.508709-448.796359S121.097734 189.016745 71.089986 413.867058s77.178762 451.312102 295.199061 525.633021 457.048794-27.308054 554.788619-235.886568a30.115882 30.115882 0 0 1 54.521079 25.596549C864.824076 965.588773 593.935184 1080.758739 346.851314 996.526898S-44.366065 655.642363 12.310651 400.822211 308.315949-25.36148 567.81248 3.078908s456.026492 247.573015 456.164533 508.621003z"
29
+ fill="#ffffff" p-id="6975"></path>
30
+ <path
31
+ d="M1023.977013 503.700552c0 22.077511-14.334227 39.994795-31.996436 39.994796s-31.996436-17.918284-31.996437-39.994796V199.736907c0-22.077511 14.334227-39.994795 31.996437-39.994796s31.996436 17.918284 31.996436 39.994796v303.963645z"
32
+ fill="#ffffff" p-id="6976"></path>
33
+ <path
34
+ d="M415.038424 490.344613a75.331217 75.331217 0 1 1 75.329216-75.329216 74.86708 74.86708 0 0 1-75.329216 75.329216z m0-107.615738c-18.294395 0-32.284521 13.990126-32.284522 32.284522s13.990126 32.284521 32.284522 32.284521 32.284521-13.990126 32.284521-32.284521-13.990126-32.282521-32.284521-32.282521z m312.086041 408.941606H296.660512a64.759099 64.759099 0 0 1-64.569043-64.569043V296.637485A64.759099 64.759099 0 0 1 296.660512 232.068442h430.463953a64.759099 64.759099 0 0 1 64.569043 64.569043v430.463953a64.759099 64.759099 0 0 1-64.569043 64.569043zM296.660512 275.115137a21.586366 21.586366 0 0 0-21.523348 21.523348v430.462953A21.586366 21.586366 0 0 0 296.660512 748.620785h430.463953a21.586366 21.586366 0 0 0 21.519346-21.519347V296.637485a21.586366 21.586366 0 0 0-21.523347-21.523348z m174.338416 374.502449c-17.219078 0-34.437156-7.533222-47.350965-20.44703l-25.827617-26.907936a22.083513 22.083513 0 0 0-31.209204 0l-33.360839 35.510473a21.806431 21.806431 0 0 1-30.132887 1.076318c-8.609539-7.533222-8.609539-21.523348-1.076317-30.132887l33.360838-35.510473a63.618763 63.618763 0 0 1 46.275648-20.443029c17.218078 0 34.437156 7.533222 47.350965 20.44703l25.827617 26.907936a22.083513 22.083513 0 0 0 31.209204 0l107.614738-113.000326a64.206936 64.206936 0 0 1 47.350965-20.447031c18.294395 0 34.437156 7.533222 47.350965 20.447031l97.928881 103.311468a21.320288 21.320288 0 0 1-31.209204 29.05657l-97.928881-103.311469a22.083513 22.083513 0 0 0-31.209205 0L518.349893 630.246874c-12.913809 11.837491-30.132887 19.370713-47.350965 19.370712z"
35
+ fill="#ffffff" p-id="6977"></path>
36
+ </svg>
37
+ <div>图片旋转</div>
38
+ </div>
39
+ </div>
40
+ <div class="cropper-actions">
41
+ <button class="cancel-btn0" @click="handleCancel">取消</button>
42
+ <button class="confirm-btn" @click="handleConfirm">使用照片</button>
43
+ </div>
44
+ </div>
45
+ </template>
46
+
47
+ <script>
48
+ import { VueCropper } from 'vue-cropper'
49
+ import bzImg from './images/bz.png'
50
+ import qsImg from './images/qs.png'
51
+ import mohuImg from './images/mohu.png'
52
+ import zdImg from './images/zd.png'
53
+ import correctImg from './images/correct.png'
54
+ import errImg from './images/error.png'
55
+ export default {
56
+ name: 'ImageCropper',
57
+ components: {
58
+ VueCropper
59
+ },
60
+ props: {
61
+ actions: {
62
+ type: String,
63
+ required: false,
64
+ default: ''
65
+ },
66
+ imgSrc: {
67
+ type: String,
68
+ required: true
69
+ },
70
+ autoCrop: { // 是否开启自动截图
71
+ type: Boolean,
72
+ default: true
73
+ },
74
+ canScale: { // 是否可缩放
75
+ type: Boolean,
76
+ default: true
77
+ },
78
+ canMove: { // 移动图片
79
+ type: Boolean,
80
+ default: true
81
+ },
82
+ canMoveBox: { // 移动框 是否可拖动
83
+ type: Boolean,
84
+ default: false
85
+ },
86
+ fixedBox: { // 固定宽高比
87
+ type: Boolean,
88
+ default: false
89
+ },
90
+ info: { // 是否显示图片信息
91
+ type: Boolean,
92
+ default: false
93
+ },
94
+ autoCropWidth: { // 输出图片的宽高
95
+ type: Number,
96
+ default: 320
97
+ },
98
+ autoCropHeight: { // 输出图片的宽高
99
+ type: Number,
100
+ default: 210
101
+ },
102
+ fixed: { // 固定宽高比
103
+ type: Boolean,
104
+ default: true
105
+ },
106
+ fixedNumber: { // 固定宽高比
107
+ type: Array,
108
+ default: () => [1.6, 1]
109
+ },
110
+ enlarge: {
111
+ type: Number,
112
+ default: 1
113
+ },
114
+ outputSize: {
115
+ type: Number,
116
+ default: 1
117
+ },
118
+ centerBox: {
119
+ type: Boolean,
120
+ default: false
121
+ },
122
+ outputType: {
123
+ type: String,
124
+ default: 'jpg'
125
+ }
126
+ },
127
+ data() {
128
+ return {
129
+ errorLists: [
130
+ {
131
+ img1: bzImg,
132
+ imgIcon: correctImg,
133
+ label: '标准照片'
134
+ },
135
+ {
136
+ img1: qsImg,
137
+ imgIcon: errImg,
138
+ label: '边框缺失'
139
+ },
140
+ {
141
+ img1: mohuImg,
142
+ imgIcon: errImg,
143
+ label: '照片模糊'
144
+ },
145
+ {
146
+ img1: zdImg,
147
+ imgIcon: errImg,
148
+ label: '照片遮挡'
149
+ }
150
+ ],
151
+ }
152
+ },
153
+ methods: {
154
+ handleConfirm() {
155
+ console.log('confirm')
156
+ this.$refs.cropper.getCropData(data => {
157
+ this.$emit('confirm', data)
158
+ })
159
+ },
160
+ handleCancel() {
161
+ console.log('cancel', '99999999999999999999999999999')
162
+ this.$emit('cancel')
163
+ },
164
+ // 向左旋转
165
+ rotateLeft() {
166
+ this.$refs.cropper.rotateLeft();
167
+ },
168
+ // 向右旋转
169
+ rotateRight() {
170
+ this.$refs.cropper.rotateRight();
171
+ },
172
+ // 重置缩放和旋转
173
+ scaleReset() {
174
+ this.$refs.cropper.refresh();
175
+ }
176
+ }
177
+ }
178
+ </script>
179
+
180
+ <style scoped>
181
+ .cropper-container {
182
+ background-color: #e3e3e3;
183
+ background-image: none;
184
+ }
185
+
186
+ .image-cropper-container {
187
+ position: fixed;
188
+ top: 0;
189
+ left: 0;
190
+ width: 100%;
191
+ height: 100%;
192
+ background: rgba(0, 0, 0, 0.9);
193
+ z-index: 9;
194
+ display: flex;
195
+ flex-direction: column;
196
+ }
197
+
198
+ .cropper-wrapper {
199
+ flex: 1;
200
+ display: flex;
201
+ justify-content: center;
202
+ align-items: center;
203
+ position: relative;
204
+ }
205
+
206
+ .cropper-actions {
207
+ padding: 10px 15px;
208
+ display: flex;
209
+ justify-content: space-between;
210
+ align-items: center;
211
+ background: #ffffff;
212
+ backdrop-filter: blur(10px);
213
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
214
+ gap: 15px;
215
+ }
216
+
217
+ .cancel-btn0,
218
+ .confirm-btn {
219
+ display: inline-block;
220
+ padding: 12px 0;
221
+ border: none;
222
+ border-radius: 30px;
223
+ font-size: 16px;
224
+ font-weight: 500;
225
+ transition: all 0.3s ease;
226
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
227
+ flex: 1;
228
+ }
229
+
230
+ .cancel-btn0 {
231
+ border: 1px solid #4A6BBE;
232
+ color: #4A6BBE;
233
+ background: #ffffff;
234
+ width: 45%;
235
+ }
236
+
237
+ .confirm-btn {
238
+ background: #4A6BBE;
239
+ color: white;
240
+ width: 45%;
241
+ }
242
+
243
+ .errorList {
244
+ display: flex;
245
+ justify-content: space-around;
246
+ }
247
+
248
+ .errorList .picture {
249
+ position: relative;
250
+ width: 78px;
251
+ height: 78px;
252
+ margin: 20px 0 30px;
253
+ text-align: center;
254
+ font-size: 13px;
255
+ }
256
+
257
+ .picture div {
258
+ height: 51px;
259
+ background: #FFFAF2;
260
+ padding: 7px 11px;
261
+ margin-bottom: 15px;
262
+ display: flex;
263
+ flex-direction: column;
264
+ align-items: center;
265
+ }
266
+
267
+ .picture .img1 {
268
+ width: 56px;
269
+ height: 36px;
270
+ margin-bottom: 5px;
271
+ }
272
+
273
+ .picture:nth-of-type(2) .img1 {
274
+ width: 64px;
275
+ height: 47px;
276
+ margin-top: -9px;
277
+ margin-bottom: 5px;
278
+ }
279
+
280
+ .picture .imgIcon {
281
+ width: 13px;
282
+ height: 13px;
283
+ position: relative;
284
+ top: -1px;
285
+ }
286
+
287
+ .tips-text {
288
+ color: #666666;
289
+ font-size: 14px;
290
+ margin: 10px;
291
+ }
292
+
293
+ .toolbar-btn {
294
+ position: absolute;
295
+ bottom: 20px;
296
+ text-align: center;
297
+ color: #ffffff;
298
+ }
299
+ </style>