jufubao-base 1.0.320-beta3 → 1.0.320
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.
package/package.json
CHANGED
|
@@ -222,11 +222,16 @@
|
|
|
222
222
|
doAddImage(){
|
|
223
223
|
uni.chooseImage({
|
|
224
224
|
count: 1,
|
|
225
|
-
sourceType: ['camera'],
|
|
225
|
+
sourceType: ['camera','album'],
|
|
226
226
|
success: async (res) => {
|
|
227
227
|
console.log('chooseImage',res);
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
let file
|
|
229
|
+
// #ifdef MP-WEIXIN
|
|
230
|
+
file = res.tempFilePaths[0];
|
|
231
|
+
// #endif
|
|
232
|
+
// #ifdef H5
|
|
233
|
+
file = res.tempFiles[0];
|
|
234
|
+
// #endif
|
|
230
235
|
this.$xdShowLoading({});
|
|
231
236
|
try{
|
|
232
237
|
let image = await this.uploadImage(file);
|
|
@@ -239,7 +244,7 @@
|
|
|
239
244
|
})
|
|
240
245
|
},
|
|
241
246
|
uploadImage(file){
|
|
242
|
-
let fileName = file.name;
|
|
247
|
+
let fileName = file.name||'image.png';
|
|
243
248
|
return new Promise((resolve, reject) => {
|
|
244
249
|
jfbRootExec("getConOssSign", {
|
|
245
250
|
vm: this,
|
|
@@ -251,7 +256,12 @@
|
|
|
251
256
|
delete res['cdn_url']
|
|
252
257
|
uni.uploadFile({
|
|
253
258
|
url: res.action,
|
|
259
|
+
// #ifdef H5
|
|
254
260
|
file: file,
|
|
261
|
+
// #endif
|
|
262
|
+
// #ifdef MP-WEIXIN
|
|
263
|
+
filePath: file, // 小程序图片临时路径
|
|
264
|
+
// #endif
|
|
255
265
|
name: 'file',
|
|
256
266
|
formData: {
|
|
257
267
|
...res,
|
|
@@ -146,6 +146,7 @@ import componentsMixins from "@/mixins/componentsMixins";
|
|
|
146
146
|
import extsMixins from "@/mixins/extsMixins";
|
|
147
147
|
import {mapState} from "vuex";
|
|
148
148
|
import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer";
|
|
149
|
+
import colorCardMixins from "@/mixins/colorCardMixins";
|
|
149
150
|
|
|
150
151
|
|
|
151
152
|
export default {
|
|
@@ -156,7 +157,7 @@ export default {
|
|
|
156
157
|
XdUnit,
|
|
157
158
|
XdDownDrawer
|
|
158
159
|
},
|
|
159
|
-
mixins: [componentsMixins, extsMixins, JfbBaseCardSweepInfoMixin],
|
|
160
|
+
mixins: [componentsMixins, extsMixins, JfbBaseCardSweepInfoMixin, colorCardMixins],
|
|
160
161
|
data() {
|
|
161
162
|
return {
|
|
162
163
|
info: null,
|
|
@@ -235,6 +236,8 @@ export default {
|
|
|
235
236
|
vm: this,
|
|
236
237
|
data: {
|
|
237
238
|
card_qrcode: this.pa,
|
|
239
|
+
multiple_id: this.multiple_id,
|
|
240
|
+
multiple_scene: this.multiple_scene
|
|
238
241
|
},
|
|
239
242
|
})
|
|
240
243
|
.then((res) => {
|
|
@@ -522,6 +525,105 @@ export default {
|
|
|
522
525
|
align-items: center;
|
|
523
526
|
justify-content: center;
|
|
524
527
|
}
|
|
528
|
+
&-type-choose {
|
|
529
|
+
background: #F8F8F8;
|
|
530
|
+
display: flex;
|
|
531
|
+
flex-direction: column;
|
|
532
|
+
height: 100%;
|
|
533
|
+
|
|
534
|
+
&-header {
|
|
535
|
+
padding: unit(20, rpx) unit(20, rpx) unit(24, rpx) unit(20, rpx);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
&-title {
|
|
539
|
+
font-size: unit(28, rpx);
|
|
540
|
+
color: #333;
|
|
541
|
+
margin-bottom: unit(24, rpx);
|
|
542
|
+
text-align: center;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
&-notice {
|
|
546
|
+
font-size: unit(24, rpx);
|
|
547
|
+
text-align: center;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
&-scroll {
|
|
551
|
+
flex: 1;
|
|
552
|
+
padding: 0 unit(20, rpx) 0 unit(20, rpx);
|
|
553
|
+
overflow-y: auto;
|
|
554
|
+
max-height: 800rpx;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
&-item {
|
|
558
|
+
background: #fff;
|
|
559
|
+
border-radius: unit(16, rpx);
|
|
560
|
+
padding: unit(32, rpx);
|
|
561
|
+
margin-bottom: unit(24, rpx);
|
|
562
|
+
border: unit(2, rpx) solid #eee;
|
|
563
|
+
|
|
564
|
+
&-header {
|
|
565
|
+
display: flex;
|
|
566
|
+
align-items: center;
|
|
567
|
+
justify-content: space-between;
|
|
568
|
+
margin-bottom: unit(24, rpx);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
&-header-left {
|
|
572
|
+
display: flex;
|
|
573
|
+
align-items: center;
|
|
574
|
+
flex: 1;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
&-icon {
|
|
578
|
+
margin-right: unit(16, rpx);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
&-title {
|
|
582
|
+
font-size: unit(28, rpx);
|
|
583
|
+
color: #333;
|
|
584
|
+
flex: 1;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
&-validity {
|
|
588
|
+
font-size: unit(24, rpx);
|
|
589
|
+
color: #999;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
&-content {
|
|
593
|
+
margin-bottom: unit(24, rpx);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
&-field {
|
|
597
|
+
font-size: unit(24, rpx);
|
|
598
|
+
color: #333;
|
|
599
|
+
|
|
600
|
+
&:first-child {
|
|
601
|
+
margin-bottom: unit(24, rpx);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
&-divider {
|
|
606
|
+
height: unit(1, rpx);
|
|
607
|
+
background: #F2F2F2;
|
|
608
|
+
margin-bottom: unit(24, rpx);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
&-business {
|
|
612
|
+
font-size: unit(24, rpx);
|
|
613
|
+
color: #999;
|
|
614
|
+
line-height: unit(36, rpx);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
&-btn-wrap {
|
|
618
|
+
display: flex;
|
|
619
|
+
margin-bottom: unit(24, rpx);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
&-btn-inner {
|
|
623
|
+
margin-left: auto;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
525
627
|
}
|
|
526
628
|
}
|
|
527
629
|
</style>
|