jufubao-base 1.0.117 → 1.0.119-beta10
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 +4 -3
- package/src/components/JfbBaseCard/Attr.js +380 -287
- package/src/components/JfbBaseCard/JfbBaseCard.vue +51 -2
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +95 -18
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -1
- package/src/components/JfbBaseCardInfo/Attr.js +21 -0
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +40 -4
- package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +33 -4
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +10 -9
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +10 -10
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
- package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
- package/src/components/JfbBaseConPhone/Api.js +70 -0
- package/src/components/JfbBaseConPhone/Attr.js +10 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +495 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
- package/src/components/JfbBaseConPhone/Mock.js +26 -0
- package/src/components/JfbBaseMySetting/Api.js +43 -0
- package/src/components/JfbBaseMySetting/Attr.js +23 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +236 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +80 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySettingMixin.js +30 -0
- package/src/components/JfbBaseMySetting/Mock.js +5 -0
- package/src/components/JfbBaseMySetting/XdListItem.vue +135 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +33 -8
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +34 -8
|
@@ -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>
|
|
@@ -329,6 +342,7 @@ import XdSuccess from "@/components/XdSuccess/XdSuccess";
|
|
|
329
342
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
330
343
|
import XdContentXss from "@/components/XdContentXss/XdContentXss";
|
|
331
344
|
import StyleForm from "@/utils/StyleForm";
|
|
345
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
332
346
|
import { Base64 } from "js-base64";
|
|
333
347
|
import { getNoUrl } from "@/utils/nourl";
|
|
334
348
|
import { mapState } from "vuex";
|
|
@@ -386,6 +400,7 @@ export default {
|
|
|
386
400
|
|
|
387
401
|
showCode: false,
|
|
388
402
|
codeSrc: "",
|
|
403
|
+
logo: "",
|
|
389
404
|
...styleForm.getDataItem(),
|
|
390
405
|
};
|
|
391
406
|
},
|
|
@@ -417,6 +432,7 @@ export default {
|
|
|
417
432
|
handleShowCode(item) {
|
|
418
433
|
this.codeSrc = item.code_url;
|
|
419
434
|
this.showType = item.show_type;
|
|
435
|
+
this.logo = item.logo;
|
|
420
436
|
this.showCode = true;
|
|
421
437
|
},
|
|
422
438
|
/**
|
|
@@ -545,6 +561,9 @@ export default {
|
|
|
545
561
|
info.codes =
|
|
546
562
|
info.codes &&
|
|
547
563
|
info.codes.map((item) => {
|
|
564
|
+
if(item.logo) {
|
|
565
|
+
item.logo = getServiceUrl(item.logo)
|
|
566
|
+
}
|
|
548
567
|
if (item.show_type === "qrcode" || item.show_type === "barcode") {
|
|
549
568
|
let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
|
|
550
569
|
if (!reg.test(item.code_url)) item.code_url = `${this.brandInfo["api_host"]}${item.code_url}`;
|
|
@@ -672,6 +691,13 @@ export default {
|
|
|
672
691
|
|
|
673
692
|
.jfb-base-success {
|
|
674
693
|
&__body {
|
|
694
|
+
.logo-icon {
|
|
695
|
+
width: unit(100, rpx) !important;
|
|
696
|
+
height: unit(100, rpx) !important;
|
|
697
|
+
position: absolute;
|
|
698
|
+
top: 50%;
|
|
699
|
+
transform: translate(-50rpx, -50rpx);
|
|
700
|
+
}
|
|
675
701
|
&-card {
|
|
676
702
|
padding: unit(30, rpx);
|
|
677
703
|
}
|