jufubao-base 1.0.116-beta13 → 1.0.116-beta14
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
|
@@ -284,13 +284,16 @@
|
|
|
284
284
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-cashier"
|
|
285
285
|
>
|
|
286
286
|
<view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
287
|
-
<
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
287
|
+
<view style="position: relative">
|
|
288
|
+
<image
|
|
289
|
+
:style="{
|
|
290
|
+
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
291
|
+
width: info.codes[0].show_type === 'qrcode' ? '50vw' : '85vw',
|
|
292
|
+
}"
|
|
293
|
+
:src="info.codes[0].code_url"
|
|
294
|
+
></image>
|
|
295
|
+
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
296
|
+
</view>
|
|
294
297
|
<view class="jfb-base-order-detail__body-cashier-text">
|
|
295
298
|
{{ info.codes[0].can_read_code }}
|
|
296
299
|
</view>
|
|
@@ -751,7 +754,17 @@
|
|
|
751
754
|
height: showType === 'qrcode' ? '70vw' : '35vw',
|
|
752
755
|
}"
|
|
753
756
|
>
|
|
754
|
-
|
|
757
|
+
<view style="position: relative">
|
|
758
|
+
<image :src="codeSrc" mode="aspectFit"></image>
|
|
759
|
+
<image v-if="logo&&showType === 'qrcode'" :src="logo" style="
|
|
760
|
+
width: 100rpx;
|
|
761
|
+
height: 100rpx;
|
|
762
|
+
position: absolute;
|
|
763
|
+
top: 50%;
|
|
764
|
+
left: 50%;
|
|
765
|
+
transform: translate(-50rpx, -50rpx);">
|
|
766
|
+
</image>
|
|
767
|
+
</view>
|
|
755
768
|
</view>
|
|
756
769
|
</xd-dailog>
|
|
757
770
|
</view>
|
|
@@ -828,6 +841,7 @@ export default {
|
|
|
828
841
|
bottom: 0,
|
|
829
842
|
},
|
|
830
843
|
is_hot: "Y",
|
|
844
|
+
logo: ""
|
|
831
845
|
};
|
|
832
846
|
},
|
|
833
847
|
watch: {
|
|
@@ -980,6 +994,9 @@ export default {
|
|
|
980
994
|
res.codes =
|
|
981
995
|
res.codes &&
|
|
982
996
|
res.codes.map((item) => {
|
|
997
|
+
if(item.logo) {
|
|
998
|
+
item.logo = getServiceUrl(item.logo)
|
|
999
|
+
}
|
|
983
1000
|
if (item.show_type === "qrcode" || item.show_type === "barcode") {
|
|
984
1001
|
let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
|
|
985
1002
|
item.code_url = reg.test(item.code_url)? item.code_url:`${this.brandInfo['api_host']}${item.code_url}`
|
|
@@ -1125,6 +1142,7 @@ export default {
|
|
|
1125
1142
|
handleShowCode(item) {
|
|
1126
1143
|
this.codeSrc = item.code_url;
|
|
1127
1144
|
this.showType = item.show_type;
|
|
1145
|
+
this.logo = item.logo;
|
|
1128
1146
|
console.log(this.codeSrc, "this.codeSrc");
|
|
1129
1147
|
this.showCode = true;
|
|
1130
1148
|
},
|
|
@@ -1257,6 +1275,13 @@ export default {
|
|
|
1257
1275
|
.jfb-base-order-detail {
|
|
1258
1276
|
&__body {
|
|
1259
1277
|
color: #333;
|
|
1278
|
+
.logo-icon {
|
|
1279
|
+
width: unit(100, rpx) !important;
|
|
1280
|
+
height: unit(100, rpx) !important;
|
|
1281
|
+
position: absolute;
|
|
1282
|
+
top: 50%;
|
|
1283
|
+
transform: translate(-50rpx, -50rpx);
|
|
1284
|
+
}
|
|
1260
1285
|
&-show {
|
|
1261
1286
|
display: flex;
|
|
1262
1287
|
justify-content: center;
|
|
@@ -88,13 +88,16 @@
|
|
|
88
88
|
>
|
|
89
89
|
<view class="jfb-base-success__body-cashier-text"
|
|
90
90
|
>{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
<view style="position: relative">
|
|
92
|
+
<image
|
|
93
|
+
:style="{
|
|
94
|
+
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
95
|
+
width: info.codes[0].show_type === 'qrcode' ? '50vw' : '85vw',
|
|
96
|
+
}"
|
|
97
|
+
:src="info.codes[0].code_url"
|
|
98
|
+
></image>
|
|
99
|
+
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
100
|
+
</view>
|
|
98
101
|
<view class="jfb-base-success__body-cashier-text">
|
|
99
102
|
{{ info.codes[0].can_read_code }}
|
|
100
103
|
</view>
|
|
@@ -309,7 +312,17 @@
|
|
|
309
312
|
class="jfb-base-success__body-dialog"
|
|
310
313
|
:style="{ height: showType === 'qrcode' ? '70vw' : '35vw' }"
|
|
311
314
|
>
|
|
312
|
-
<
|
|
315
|
+
<view style="position: relative">
|
|
316
|
+
<image :src="codeSrc" mode="aspectFit"></image>
|
|
317
|
+
<image v-if="logo&&showType === 'qrcode'" :src="logo" style="
|
|
318
|
+
width: 100rpx;
|
|
319
|
+
height: 100rpx;
|
|
320
|
+
position: absolute;
|
|
321
|
+
top: 50%;
|
|
322
|
+
left: 50%;
|
|
323
|
+
transform: translate(-50rpx, -50rpx);">
|
|
324
|
+
</image>
|
|
325
|
+
</view>
|
|
313
326
|
</view>
|
|
314
327
|
</xd-dailog>
|
|
315
328
|
</view>
|
|
@@ -386,6 +399,7 @@ export default {
|
|
|
386
399
|
|
|
387
400
|
showCode: false,
|
|
388
401
|
codeSrc: "",
|
|
402
|
+
logo: "",
|
|
389
403
|
...styleForm.getDataItem(),
|
|
390
404
|
};
|
|
391
405
|
},
|
|
@@ -417,6 +431,7 @@ export default {
|
|
|
417
431
|
handleShowCode(item) {
|
|
418
432
|
this.codeSrc = item.code_url;
|
|
419
433
|
this.showType = item.show_type;
|
|
434
|
+
this.logo = item.logo;
|
|
420
435
|
this.showCode = true;
|
|
421
436
|
},
|
|
422
437
|
/**
|
|
@@ -545,6 +560,9 @@ export default {
|
|
|
545
560
|
info.codes =
|
|
546
561
|
info.codes &&
|
|
547
562
|
info.codes.map((item) => {
|
|
563
|
+
if(item.logo) {
|
|
564
|
+
item.logo = getServiceUrl(item.logo)
|
|
565
|
+
}
|
|
548
566
|
if (item.show_type === "qrcode" || item.show_type === "barcode") {
|
|
549
567
|
let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
|
|
550
568
|
if (!reg.test(item.code_url)) item.code_url = `${this.brandInfo["api_host"]}${item.code_url}`;
|
|
@@ -672,6 +690,13 @@ export default {
|
|
|
672
690
|
|
|
673
691
|
.jfb-base-success {
|
|
674
692
|
&__body {
|
|
693
|
+
.logo-icon {
|
|
694
|
+
width: unit(100, rpx) !important;
|
|
695
|
+
height: unit(100, rpx) !important;
|
|
696
|
+
position: absolute;
|
|
697
|
+
top: 50%;
|
|
698
|
+
transform: translate(-50rpx, -50rpx);
|
|
699
|
+
}
|
|
675
700
|
&-card {
|
|
676
701
|
padding: unit(30, rpx);
|
|
677
702
|
}
|