fstarter 2.10.56 → 2.11.1

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,397 +1,397 @@
1
- <template>
2
- <div class="uploadWrapper">
3
- <!-- v-if="model.preview" -->
4
- <van-uploader
5
-
6
- v-model="fileList"
7
- preview-size="100%"
8
- :after-read="afterRead"
9
- :max-count="model.preview ? 1 : 1000"
10
- :show-upload="true"
11
- :upload-icon="model.bgImage"
12
- :accept="model.accept"
13
- :preview-image="model.preview"
14
- @click-upload="clickUpload"
15
- @delete="deleteFn"
16
- >
17
- <van-image :src="model.bgImage"/>
18
- </van-uploader>
19
-
20
- <div
21
- v-show="showCooper"
22
- class="pop"
23
- closeable
24
- :overlay="false"
25
- :style="{
26
- width: '100%',
27
- height: '100%',
28
- zIndex: '999'
29
- }"
30
- @click-close-icon="cancel"
31
- >
32
- <vueCropper
33
- :img="cooperImage"
34
- :autoCrop="true"
35
- :canScale="false"
36
- :canMove="false"
37
- :canMoveBox="true"
38
- :fixedBox="false"
39
- :info="false"
40
- :autoCropWidth="270"
41
- :autoCropHeight="160"
42
- :fixed="true"
43
- :fixedNumber='[1.6,1]'
44
- :enlarge="1"
45
- :outputSize="1"
46
- :centerBox="false"
47
- class="cropper"
48
- ref="cropper"
49
- outputType="jpg"
50
-
51
- >
52
-
53
- </vueCropper>
54
- <div class="control">
55
- <div class="btnWrapper">
56
- <van-button
57
- type="primary"
58
- @click="right"
59
- >
60
- 旋转
61
- </van-button>
62
- </div>
63
- <div class="btnWrapper">
64
- <van-button
65
- type="info"
66
- loading-text="上传中..."
67
- :loading="loading"
68
- @click="copper"
69
- >
70
- 确定
71
- </van-button>
72
- </div>
73
- </div>
74
- </div>
75
- </div>
76
- </template>
77
-
78
- <script>
79
- import Vue from 'vue'
80
- import base2 from './base2.js'
81
- import config from '../assets/config'
82
- import { compressImg } from '../assets/compressImg'
83
-
84
- import vueCropper from 'vue-cropper' // 截图插件
85
- Vue.use(vueCropper)
86
-
87
- export default {
88
- name: "bs-upload2",
89
- mixins: [base2],
90
- props: {
91
-
92
- },
93
- data() {
94
- return {
95
- fileList:[],
96
- fileList2:[],
97
- showCooper: false,
98
- cooperImage: '',
99
- fileObj: null,
100
- loading: false,
101
- }
102
- },
103
- mounted() {
104
-
105
- },
106
- methods: {
107
- right() {
108
- this.$refs.cropper.rotateRight()
109
- },
110
- copper() {
111
- this.loading = true
112
- this.$refs.cropper.getCropData((file) => {
113
- let arr = file.split(",")
114
- let mime = arr[0].match(/:(.*?);/)[1]
115
-
116
- let bstr = atob(arr[1])
117
- let n = bstr.length
118
- let u8arr = new Uint8Array(n)
119
- while (n--) {
120
- u8arr[n] = bstr.charCodeAt(n)
121
- }
122
-
123
- var fileObj1 = new File([u8arr], this.file.file.name, { type: mime })
124
- this._upLoadFile(fileObj1)
125
- })
126
-
127
- },
128
- cancel() {
129
- debugger
130
- this.showCooper = false
131
- this.fileList.splice(0, this.fileList.length)
132
- },
133
- deleteFn() {
134
-
135
- //将废弃delete
136
- this.$emit('delete', this.model.actions)
137
- this.$emit('del',function(){
138
-
139
- },this.fullName)
140
- },
141
- createDefaultModel() {
142
- return {
143
- value:'',
144
- data:{},
145
- label:'点击上传',
146
- bgImage: 'https://img.yzcdn.cn/vant/cat.jpeg',
147
- remark:'只能上传jpg/png文件,且不超过500kb',
148
- expired : -1,
149
- buzId:'1111',
150
- buz:'SelfReturnVisit',
151
- domain:'capp',
152
- actions: '',
153
- preview:true,
154
- accept:'image/*',
155
- type:'BSUpload',
156
- needCooper: true,
157
- };
158
- },
159
- isGetRightInfo(data) {
160
- const actions = this.model.actions
161
- switch (actions) {
162
- case 'ocr_id0':
163
- if (data[actions].data.hasOwnProperty('issued_by')) {
164
- return false
165
- }
166
- break
167
- case 'ocr_id1':
168
- if (data[actions].data.hasOwnProperty('issued_by')) {
169
- return false
170
- }
171
- break
172
- case 'ocr_bc':
173
- if (data[actions].data.bank_cards.length === 0) {
174
- return false
175
- }
176
- break
177
- default: {
178
- return true
179
- }
180
- }
181
- return true
182
- },
183
- _upLoadFile(fileObj){
184
- let self = this
185
- this.$http.uploadFile(
186
- {
187
- process: function(msg){
188
-
189
- if(self.model.preview){
190
- self.fileList[0].message = msg
191
- }
192
- self.session.sys.loadmsg = msg
193
- },
194
- file: fileObj,
195
- name: this.file.file.name,
196
- domain: this.model.domain,
197
- buz: this.model.buz,
198
- buzId: this.model.buzId,
199
- expired: this.model.expired,
200
- actions: this.model.actions
201
- }, false, true, false).then((data) => {
202
-
203
- self.model.data = data
204
- self.model.value = data.fileId + '.' + data.ext
205
-
206
- this.showCooper = false
207
- if (this.isGetRightInfo(data.actions)) {
208
- self.$ak.msg.toast('上传成功')
209
- }
210
-
211
- this.loading = false
212
- self.$emit('done', function(){
213
-
214
- },self.fullName)
215
-
216
- }).catch(function(err) {
217
- console.log(err)
218
- this.loading = false
219
- self.fileList.splice(0,self.fileList.length)
220
- self.$emit('fail',function(){
221
-
222
- },self.fullName)
223
- })
224
- },
225
- clickUpload () {
226
- this.$emit('clickUpload', function(){
227
-
228
- },this.fullName)
229
- },
230
- async afterRead(file) {
231
-
232
- if(this.model.preview) this.fileList[0].status = 'uploading'
233
- this.file = file
234
- if (this.model.needCooper) {
235
- this.showCooper = true
236
- let arr = file.content.split(",")
237
- let mime = arr[0].match(/:(.*?);/)[1]
238
-
239
- // let bstr = atob(arr[1])
240
- // let n = bstr.length
241
- // let u8arr = new Uint8Array(n)
242
- // while (n--) {
243
- // u8arr[n] = bstr.charCodeAt(n)
244
- // }
245
-
246
- // var fileObj1 = new File([u8arr], file.file.name, { type: mime })
247
- console.log(file)
248
-
249
- // 下面两行为压缩代码
250
- var fileObj = await compressImg(file.file, file.file.name, mime)
251
- this.cooperImage = fileObj.base64
252
-
253
- // this.cooperImage = file.content
254
- } else {
255
- // 不需要裁剪
256
- let arr = file.content.split(",")
257
- let mime = arr[0].match(/:(.*?);/)[1]
258
-
259
- // let bstr = atob(arr[1])
260
- // let n = bstr.length
261
- // let u8arr = new Uint8Array(n)
262
- // while (n--) {
263
- // u8arr[n] = bstr.charCodeAt(n)
264
- // }
265
-
266
- // var fileObj1 = new File([u8arr], file.file.name, { type: mime })
267
- console.log(file)
268
- var fileObj = await compressImg(file.file, file.file.name, mime)
269
- this._upLoadFile(fileObj.file)
270
- }
271
-
272
-
273
- }
274
- },
275
- watch:{
276
-
277
- 'model.value':{
278
- handler(val,oldval){
279
-
280
- if(this.$ak.utils.isEmpty(val))
281
- return
282
-
283
- this.fileList.splice(0,this.fileList.length)
284
- this.fileList.push({
285
- url: config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/get/' + this.model.data.fileId + "." + this.model.data.ext,
286
- status: 'done'
287
- })
288
-
289
-
290
- this.setEventString(this.fullName,this.sname,'value',val,oldval)
291
- },
292
- deep:false
293
- }
294
- }
295
- }
296
-
297
- </script>
298
-
299
- <style scoped lang="less">
300
- /deep/ .van-uploader__preview {
301
- margin: 0;
302
- }
303
- /deep/ .van-uploader__preview-delete-icon {
304
- font-size: 20px;
305
- }
306
- /deep/ .van-uploader__preview-delete {
307
- width: 18px;
308
- height: 18px;
309
- border-radius: 0 0 0 14px;
310
- }
311
- .uploadWrapper {
312
- width: 60%;
313
- margin: 0 auto;
314
- .cropper {
315
- margin: 40% auto 0 auto;
316
- width: 260px;
317
- height: 260px;
318
- }
319
- .cropper-container{
320
- width: 100vw;
321
- height: 100vh;
322
- div{
323
- width: 100%;
324
- height: 100%;
325
- }
326
- }
327
- .cropper > :nth-child(1) {
328
- background-color: #f6f6f6 !important;
329
- }
330
- .cropper-container .footer{
331
- width: 100%;
332
- height:88px;
333
- display: flex;
334
- position: fixed;
335
- bottom: 0px;
336
- left:0px;
337
- }
338
- .cropper {
339
- width: 100%;
340
- height: 260px;
341
- }
342
- .cropper-container{
343
- width: 100vw;
344
- height: 100vh;
345
- div{
346
- width: 100%;
347
- height: 100%;
348
- }
349
- }
350
- .cropper > :nth-child(1) {
351
- background-color: #f6f6f6 !important;
352
- }
353
- .cropper-container .footer{
354
- width: 100%;
355
- height:88px;
356
- display: flex;
357
- position: fixed;
358
- bottom: 0px;
359
- left:0px;
360
- }
361
- }
362
- .van-button {
363
- width: 100%;
364
- }
365
- .control {
366
- position: fixed;
367
- bottom: 0;
368
- display: flex;
369
- justify-content: space-between;
370
- width: 100%;
371
- .btnWrapper {
372
- width: 50%;
373
- }
374
- }
375
- .pop {
376
- position: fixed;
377
- top: 50%;
378
- left:0;
379
- transform: translate3d(0,-50%,0);
380
- max-height: 100%;
381
- overflow-y: auto;
382
- background-color: #fff;
383
- }
384
- </style>
385
- <style scoped>
386
- /* .cropper-container >>> .van-button--info{
387
- width: 50%;
388
- background:rgba(54,95,170,1);
389
- box-shadow:0px 9px 24px 0px rgba(54,95,170,0.39);
390
- border: 1px solid rgba(69,104,186,1);
391
- }
392
- .cropper-container >>> .van-button{
393
- height: 88px;
394
- line-height: 88px;
395
- } */
396
-
397
- </style>
1
+ <template>
2
+ <div class="uploadWrapper">
3
+ <!-- v-if="model.preview" -->
4
+ <van-uploader
5
+
6
+ v-model="fileList"
7
+ preview-size="100%"
8
+ :after-read="afterRead"
9
+ :max-count="model.preview ? 1 : 1000"
10
+ :show-upload="true"
11
+ :upload-icon="model.bgImage"
12
+ :accept="model.accept"
13
+ :preview-image="model.preview"
14
+ @click-upload="clickUpload"
15
+ @delete="deleteFn"
16
+ >
17
+ <van-image :src="model.bgImage"/>
18
+ </van-uploader>
19
+
20
+ <div
21
+ v-show="showCooper"
22
+ class="pop"
23
+ closeable
24
+ :overlay="false"
25
+ :style="{
26
+ width: '100%',
27
+ height: '100%',
28
+ zIndex: '999'
29
+ }"
30
+ @click-close-icon="cancel"
31
+ >
32
+ <vueCropper
33
+ :img="cooperImage"
34
+ :autoCrop="true"
35
+ :canScale="false"
36
+ :canMove="false"
37
+ :canMoveBox="true"
38
+ :fixedBox="false"
39
+ :info="false"
40
+ :autoCropWidth="270"
41
+ :autoCropHeight="160"
42
+ :fixed="true"
43
+ :fixedNumber='[1.6,1]'
44
+ :enlarge="1"
45
+ :outputSize="1"
46
+ :centerBox="false"
47
+ class="cropper"
48
+ ref="cropper"
49
+ outputType="jpg"
50
+
51
+ >
52
+
53
+ </vueCropper>
54
+ <div class="control">
55
+ <div class="btnWrapper">
56
+ <van-button
57
+ type="primary"
58
+ @click="right"
59
+ >
60
+ 旋转
61
+ </van-button>
62
+ </div>
63
+ <div class="btnWrapper">
64
+ <van-button
65
+ type="info"
66
+ loading-text="上传中..."
67
+ :loading="loading"
68
+ @click="copper"
69
+ >
70
+ 确定
71
+ </van-button>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </template>
77
+
78
+ <script>
79
+ import Vue from 'vue'
80
+ import base2 from './base2.js'
81
+ import config from '../assets/config'
82
+ import { compressImg } from '../assets/compressImg'
83
+
84
+ import vueCropper from 'vue-cropper' // 截图插件
85
+ Vue.use(vueCropper)
86
+
87
+ export default {
88
+ name: "bs-upload2",
89
+ mixins: [base2],
90
+ props: {
91
+
92
+ },
93
+ data() {
94
+ return {
95
+ fileList:[],
96
+ fileList2:[],
97
+ showCooper: false,
98
+ cooperImage: '',
99
+ fileObj: null,
100
+ loading: false,
101
+ }
102
+ },
103
+ mounted() {
104
+
105
+ },
106
+ methods: {
107
+ right() {
108
+ this.$refs.cropper.rotateRight()
109
+ },
110
+ copper() {
111
+ this.loading = true
112
+ this.$refs.cropper.getCropData((file) => {
113
+ let arr = file.split(",")
114
+ let mime = arr[0].match(/:(.*?);/)[1]
115
+
116
+ let bstr = atob(arr[1])
117
+ let n = bstr.length
118
+ let u8arr = new Uint8Array(n)
119
+ while (n--) {
120
+ u8arr[n] = bstr.charCodeAt(n)
121
+ }
122
+
123
+ var fileObj1 = new File([u8arr], this.file.file.name, { type: mime })
124
+ this._upLoadFile(fileObj1)
125
+ })
126
+
127
+ },
128
+ cancel() {
129
+ debugger
130
+ this.showCooper = false
131
+ this.fileList.splice(0, this.fileList.length)
132
+ },
133
+ deleteFn() {
134
+
135
+ //将废弃delete
136
+ this.$emit('delete', this.model.actions)
137
+ this.$emit('del',function(){
138
+
139
+ },this.fullName)
140
+ },
141
+ createDefaultModel() {
142
+ return {
143
+ value:'',
144
+ data:{},
145
+ label:'点击上传',
146
+ bgImage: 'https://img.yzcdn.cn/vant/cat.jpeg',
147
+ remark:'只能上传jpg/png文件,且不超过500kb',
148
+ expired : -1,
149
+ buzId:'1111',
150
+ buz:'SelfReturnVisit',
151
+ domain:'capp',
152
+ actions: '',
153
+ preview:true,
154
+ accept:'image/*',
155
+ type:'BSUpload',
156
+ needCooper: true,
157
+ };
158
+ },
159
+ isGetRightInfo(data) {
160
+ const actions = this.model.actions
161
+ switch (actions) {
162
+ case 'ocr_id0':
163
+ if (data[actions].data.hasOwnProperty('issued_by')) {
164
+ return false
165
+ }
166
+ break
167
+ case 'ocr_id1':
168
+ if (data[actions].data.hasOwnProperty('issued_by')) {
169
+ return false
170
+ }
171
+ break
172
+ case 'ocr_bc':
173
+ if (data[actions].data.bank_cards.length === 0) {
174
+ return false
175
+ }
176
+ break
177
+ default: {
178
+ return true
179
+ }
180
+ }
181
+ return true
182
+ },
183
+ _upLoadFile(fileObj){
184
+ let self = this
185
+ this.$http.uploadFile(
186
+ {
187
+ process: function(msg){
188
+
189
+ if(self.model.preview){
190
+ self.fileList[0].message = msg
191
+ }
192
+ self.session.sys.loadmsg = msg
193
+ },
194
+ file: fileObj,
195
+ name: this.file.file.name,
196
+ domain: this.model.domain,
197
+ buz: this.model.buz,
198
+ buzId: this.model.buzId,
199
+ expired: this.model.expired,
200
+ actions: this.model.actions
201
+ }, false, true, false).then((data) => {
202
+
203
+ self.model.data = data
204
+ self.model.value = data.fileId + '.' + data.ext
205
+
206
+ this.showCooper = false
207
+ if (this.isGetRightInfo(data.actions)) {
208
+ self.$ak.msg.toast('上传成功')
209
+ }
210
+
211
+ this.loading = false
212
+ self.$emit('done', function(){
213
+
214
+ },self.fullName)
215
+
216
+ }).catch(function(err) {
217
+ console.log(err)
218
+ this.loading = false
219
+ self.fileList.splice(0,self.fileList.length)
220
+ self.$emit('fail',function(){
221
+
222
+ },self.fullName)
223
+ })
224
+ },
225
+ clickUpload () {
226
+ this.$emit('clickUpload', function(){
227
+
228
+ },this.fullName)
229
+ },
230
+ async afterRead(file) {
231
+
232
+ if(this.model.preview) this.fileList[0].status = 'uploading'
233
+ this.file = file
234
+ if (this.model.needCooper) {
235
+ this.showCooper = true
236
+ let arr = file.content.split(",")
237
+ let mime = arr[0].match(/:(.*?);/)[1]
238
+
239
+ // let bstr = atob(arr[1])
240
+ // let n = bstr.length
241
+ // let u8arr = new Uint8Array(n)
242
+ // while (n--) {
243
+ // u8arr[n] = bstr.charCodeAt(n)
244
+ // }
245
+
246
+ // var fileObj1 = new File([u8arr], file.file.name, { type: mime })
247
+ console.log(file)
248
+
249
+ // 下面两行为压缩代码
250
+ var fileObj = await compressImg(file.file, file.file.name, mime)
251
+ this.cooperImage = fileObj.base64
252
+
253
+ // this.cooperImage = file.content
254
+ } else {
255
+ // 不需要裁剪
256
+ let arr = file.content.split(",")
257
+ let mime = arr[0].match(/:(.*?);/)[1]
258
+
259
+ // let bstr = atob(arr[1])
260
+ // let n = bstr.length
261
+ // let u8arr = new Uint8Array(n)
262
+ // while (n--) {
263
+ // u8arr[n] = bstr.charCodeAt(n)
264
+ // }
265
+
266
+ // var fileObj1 = new File([u8arr], file.file.name, { type: mime })
267
+ console.log(file)
268
+ var fileObj = await compressImg(file.file, file.file.name, mime)
269
+ this._upLoadFile(fileObj.file)
270
+ }
271
+
272
+
273
+ }
274
+ },
275
+ watch:{
276
+
277
+ 'model.value':{
278
+ handler(val,oldval){
279
+
280
+ if(this.$ak.utils.isEmpty(val))
281
+ return
282
+
283
+ this.fileList.splice(0,this.fileList.length)
284
+ this.fileList.push({
285
+ url: config.file.baseURL + '/file/v1/hasl/fileAdmin/fileAdmin/get/' + this.model.data.fileId + "." + this.model.data.ext,
286
+ status: 'done'
287
+ })
288
+
289
+
290
+ this.setEventString(this.fullName,this.sname,'value',val,oldval)
291
+ },
292
+ deep:false
293
+ }
294
+ }
295
+ }
296
+
297
+ </script>
298
+
299
+ <style scoped lang="less">
300
+ /deep/ .van-uploader__preview {
301
+ margin: 0;
302
+ }
303
+ /deep/ .van-uploader__preview-delete-icon {
304
+ font-size: 20px;
305
+ }
306
+ /deep/ .van-uploader__preview-delete {
307
+ width: 18px;
308
+ height: 18px;
309
+ border-radius: 0 0 0 14px;
310
+ }
311
+ .uploadWrapper {
312
+ width: 60%;
313
+ margin: 0 auto;
314
+ .cropper {
315
+ margin: 40% auto 0 auto;
316
+ width: 260px;
317
+ height: 260px;
318
+ }
319
+ .cropper-container{
320
+ width: 100vw;
321
+ height: 100vh;
322
+ div{
323
+ width: 100%;
324
+ height: 100%;
325
+ }
326
+ }
327
+ .cropper > :nth-child(1) {
328
+ background-color: #f6f6f6 !important;
329
+ }
330
+ .cropper-container .footer{
331
+ width: 100%;
332
+ height:88px;
333
+ display: flex;
334
+ position: fixed;
335
+ bottom: 0px;
336
+ left:0px;
337
+ }
338
+ .cropper {
339
+ width: 100%;
340
+ height: 260px;
341
+ }
342
+ .cropper-container{
343
+ width: 100vw;
344
+ height: 100vh;
345
+ div{
346
+ width: 100%;
347
+ height: 100%;
348
+ }
349
+ }
350
+ .cropper > :nth-child(1) {
351
+ background-color: #f6f6f6 !important;
352
+ }
353
+ .cropper-container .footer{
354
+ width: 100%;
355
+ height:88px;
356
+ display: flex;
357
+ position: fixed;
358
+ bottom: 0px;
359
+ left:0px;
360
+ }
361
+ }
362
+ .van-button {
363
+ width: 100%;
364
+ }
365
+ .control {
366
+ position: fixed;
367
+ bottom: 0;
368
+ display: flex;
369
+ justify-content: space-between;
370
+ width: 100%;
371
+ .btnWrapper {
372
+ width: 50%;
373
+ }
374
+ }
375
+ .pop {
376
+ position: fixed;
377
+ top: 50%;
378
+ left:0;
379
+ transform: translate3d(0,-50%,0);
380
+ max-height: 100%;
381
+ overflow-y: auto;
382
+ background-color: #fff;
383
+ }
384
+ </style>
385
+ <style scoped>
386
+ /* .cropper-container >>> .van-button--info{
387
+ width: 50%;
388
+ background:rgba(54,95,170,1);
389
+ box-shadow:0px 9px 24px 0px rgba(54,95,170,0.39);
390
+ border: 1px solid rgba(69,104,186,1);
391
+ }
392
+ .cropper-container >>> .van-button{
393
+ height: 88px;
394
+ line-height: 88px;
395
+ } */
396
+
397
+ </style>