jufubao-base 1.0.197-beta4 → 1.0.197-beta7
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/commands.js +1 -1
- package/package.json +1 -1
- package/src/ICONS.js +1128 -0
- package/src/components/JfbBaseAddress/Attr.js +109 -1
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +164 -80
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +2 -0
- package/src/components/JfbBaseCardEntry/Mock.js +1 -0
- package/src/components/JfbBaseCardEntry/XdCardNew.vue +21 -4
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +41 -13
- package/src/components/JfbBaseFastLink/Attr.js +24 -8
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +37 -21
- package/src/components/JfbBaseFooter/Attr.js +141 -75
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
- package/src/components/JfbBaseHeader/Attr.js +20 -51
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +23 -28
- package/src/components/JfbBaseHeaderElephant/Attr.js +8 -0
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephant.vue +33 -5
- package/src/components/JfbBaseNotice/Attr.js +26 -0
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +13 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +97 -47
- package/src/components/JfbBaseOrderList/Attr.js +59 -2
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
- package/src/components/JfbBaseOrderList/Mock.js +3 -0
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +27 -29
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +13 -9
- package/src/components/JfbBaseUserCenter/Attr.js +297 -52
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +135 -44
- package/src/components/JfbBaseUserInfo/Attr.js +227 -88
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +106 -86
- package/src/components/JfbBaseUserOrder/Attr.js +332 -30
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +183 -55
- package/src/components/JfbBaseWallet/Attr.js +376 -8
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +185 -49
- package/src/mixins/componentsMixins.js +210 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
<template>
|
|
3
3
|
<view
|
|
4
4
|
class="jfb-base-poster-big-small"
|
|
@@ -17,14 +17,12 @@
|
|
|
17
17
|
<view class="jfb-base-poster-big-small__body">
|
|
18
18
|
<view
|
|
19
19
|
class="jfb-base-poster-big-small__body-wrap"
|
|
20
|
-
:style="{
|
|
21
|
-
margin: margin,
|
|
22
|
-
flexDirection: position === 1 ? 'row' : 'row-reverse',
|
|
23
|
-
}"
|
|
20
|
+
:style="{margin: margin,flexDirection: position === 1 ? 'row' : 'row-reverse'}"
|
|
24
21
|
v-if="isShowAd"
|
|
25
22
|
>
|
|
23
|
+
<!--大图-->
|
|
26
24
|
<view
|
|
27
|
-
v-if="isCarousel === 1"
|
|
25
|
+
v-if="isCarousel === 1 && bigList.length > 0"
|
|
28
26
|
:style="{
|
|
29
27
|
margin: msMarginComputed,
|
|
30
28
|
width: bigWidth + 'rpx',
|
|
@@ -40,7 +38,7 @@
|
|
|
40
38
|
borderRadius: radius + 'rpx',
|
|
41
39
|
}"
|
|
42
40
|
:src="bigList[0].image_url"
|
|
43
|
-
mode="
|
|
41
|
+
mode="scaleToFill"
|
|
44
42
|
></image>
|
|
45
43
|
</view>
|
|
46
44
|
</view>
|
|
@@ -75,7 +73,7 @@
|
|
|
75
73
|
<image
|
|
76
74
|
:style="{borderRadius: radius + 'rpx',width: bigWidth + 'rpx',height: bigHeight + 'rpx',}"
|
|
77
75
|
:src="item['image_url']"
|
|
78
|
-
mode="
|
|
76
|
+
mode="scaleToFill"></image>
|
|
79
77
|
</swiper-item>
|
|
80
78
|
</swiper>
|
|
81
79
|
<!--#endif-->
|
|
@@ -91,13 +89,15 @@
|
|
|
91
89
|
@animationfinish="handleBigAnimationfinish"
|
|
92
90
|
>
|
|
93
91
|
<template slot-scope="{ item, index }">
|
|
94
|
-
<image :style="{borderRadius: radius + 'rpx',}" :src="item['image_url']" mode="
|
|
92
|
+
<image :style="{borderRadius: radius + 'rpx',}" :src="item['image_url']" mode="scaleToFill"></image>
|
|
95
93
|
</template>
|
|
96
94
|
</xd-swiper>
|
|
97
95
|
<!--#endif-->
|
|
98
96
|
</xd-swiper-dot>
|
|
99
97
|
<view v-if="isPreview" class="carousel-mask"></view>
|
|
100
98
|
</view>
|
|
99
|
+
<!--大图-->
|
|
100
|
+
<!--小图-->
|
|
101
101
|
<view
|
|
102
102
|
:style="{
|
|
103
103
|
width: bigWidth + 'rpx',
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}"
|
|
113
113
|
>
|
|
114
114
|
<view
|
|
115
|
-
v-if="topIsCarousel === 1"
|
|
115
|
+
v-if="topIsCarousel === 1 && topList.lenght > 0"
|
|
116
116
|
:style="{
|
|
117
117
|
width: bigWidth + 'rpx',
|
|
118
118
|
height: smallHeight + 'rpx',
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
borderRadius: topRadius + 'rpx',
|
|
127
127
|
}"
|
|
128
128
|
:src="topList[0].image_url"
|
|
129
|
-
mode="
|
|
129
|
+
mode="scaleToFill"
|
|
130
130
|
></image></view
|
|
131
131
|
></view>
|
|
132
132
|
<view
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
<image
|
|
160
160
|
:style="{borderRadius: radius + 'rpx',width: bigWidth + 'rpx',height: smallHeight + 'rpx',}"
|
|
161
161
|
:src="item['image_url']"
|
|
162
|
-
mode="
|
|
162
|
+
mode="scaleToFill"></image>
|
|
163
163
|
</swiper-item>
|
|
164
164
|
</swiper>
|
|
165
165
|
<!--#endif-->
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
@animationfinish="handleTopAnimationfinish"
|
|
176
176
|
>
|
|
177
177
|
<template slot-scope="{ item, index }">
|
|
178
|
-
<image :style="{borderRadius: topRadius + 'rpx',}" :src="item['image_url']" mode="
|
|
178
|
+
<image :style="{borderRadius: topRadius + 'rpx',}" :src="item['image_url']" mode="scaleToFill"></image>
|
|
179
179
|
</template>
|
|
180
180
|
</xd-swiper>
|
|
181
181
|
<!--#endif-->
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
}"
|
|
191
191
|
>
|
|
192
192
|
<view
|
|
193
|
-
v-if="bottomIsCarousel === 1"
|
|
193
|
+
v-if="bottomIsCarousel === 1 && bottomList.lenght > 0"
|
|
194
194
|
:style="{
|
|
195
195
|
width: bigWidth + 'rpx',
|
|
196
196
|
height: smallHeight + 'rpx',
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
borderRadius: bottomRadius + 'rpx',
|
|
205
205
|
}"
|
|
206
206
|
:src="bottomList[0].image_url"
|
|
207
|
-
mode="
|
|
207
|
+
mode="scaleToFill"
|
|
208
208
|
></image> </view
|
|
209
209
|
></view>
|
|
210
210
|
<view
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
<image
|
|
238
238
|
:style="{borderRadius: radius + 'rpx',width: bigWidth + 'rpx',height: smallHeight + 'rpx',}"
|
|
239
239
|
:src="item['image_url']"
|
|
240
|
-
mode="
|
|
240
|
+
mode="scaleToFill"></image>
|
|
241
241
|
</swiper-item>
|
|
242
242
|
</swiper>
|
|
243
243
|
<!--#endif-->
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
borderRadius: bottomRadius + 'rpx',
|
|
259
259
|
}"
|
|
260
260
|
:src="item['image_url']"
|
|
261
|
-
mode="
|
|
261
|
+
mode="scaleToFill"
|
|
262
262
|
></image>
|
|
263
263
|
</template>
|
|
264
264
|
</xd-swiper>
|
|
@@ -268,6 +268,7 @@
|
|
|
268
268
|
</view>
|
|
269
269
|
</view>
|
|
270
270
|
</view>
|
|
271
|
+
<!--小图-->
|
|
271
272
|
</view>
|
|
272
273
|
</view>
|
|
273
274
|
</view>
|
|
@@ -297,12 +298,7 @@ export default {
|
|
|
297
298
|
return {
|
|
298
299
|
params:{},
|
|
299
300
|
height: 0, //组件高度
|
|
300
|
-
mS: {
|
|
301
|
-
top: 0,
|
|
302
|
-
bottom: 0,
|
|
303
|
-
left: 0,
|
|
304
|
-
right: 0,
|
|
305
|
-
}, //间距
|
|
301
|
+
mS: {}, //间距
|
|
306
302
|
isPreview: false, //是否预览
|
|
307
303
|
test: {
|
|
308
304
|
content_id: "KpBbUKdj4aBejwe7Fh1ki",
|
|
@@ -364,9 +360,7 @@ export default {
|
|
|
364
360
|
},
|
|
365
361
|
computed: {
|
|
366
362
|
margin() {
|
|
367
|
-
return
|
|
368
|
-
this.mS.bottom || 0
|
|
369
|
-
}rpx ${this.mS.left || 0}rpx`;
|
|
363
|
+
return this.getMarginAndPadding(this.mS, 0);
|
|
370
364
|
},
|
|
371
365
|
msMarginComputed() {
|
|
372
366
|
if (this.position === 1) {
|
|
@@ -793,10 +787,11 @@ export default {
|
|
|
793
787
|
// 获取大小图之间间距,如果没有则设置默认值
|
|
794
788
|
this.msMargin = getContainerPropsValue(container, "content.msMargin", 10);
|
|
795
789
|
// 获取安全区域宽度,减去margin的值,再除以2,获取大图宽度
|
|
796
|
-
this.bigWidth = getWidthHeight(this.height,this.mS,this.msMargin).bigWidth;
|
|
797
|
-
this.bigHeight = getWidthHeight(this.height,this.mS,this.msMargin).bigHeight;
|
|
790
|
+
this.bigWidth = getWidthHeight(this.height,this.mS,this.msMargin , this).bigWidth;
|
|
791
|
+
this.bigHeight = getWidthHeight(this.height,this.mS,this.msMargin, this).bigHeight;
|
|
798
792
|
// 获取容器高度,减去margin的值,再除以2,获取小图高度
|
|
799
|
-
this.smallHeight = getWidthHeight(this.height,this.mS,this.msMargin).smallHeight;
|
|
793
|
+
this.smallHeight = getWidthHeight(this.height, this.mS, this.msMargin, this).smallHeight;
|
|
794
|
+
|
|
800
795
|
// 获取大图数据
|
|
801
796
|
this.isCarousel = getContainerPropsValue(
|
|
802
797
|
container,
|
|
@@ -882,6 +877,9 @@ export default {
|
|
|
882
877
|
&__body {
|
|
883
878
|
&-wrap {
|
|
884
879
|
display: flex;
|
|
880
|
+
justify-content: space-between;
|
|
881
|
+
align-items: flex-start;
|
|
882
|
+
overflow: hidden;
|
|
885
883
|
}
|
|
886
884
|
}
|
|
887
885
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
|
|
2
|
+
function checkValue(value, dValue = 0){
|
|
3
|
+
if(value === undefined || value === '' || value === null) return dValue;
|
|
4
|
+
return Number(value || 0);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export default (height, mS= {}, msMargin={}, $vm) =>{
|
|
8
|
+
let marginRL = checkValue(mS.left, 0) + checkValue(mS.right, 0);
|
|
9
|
+
let marginTB = checkValue(mS.top, 0) + checkValue(mS.bottom, 0);
|
|
10
|
+
let bigWidth = (750 - (marginRL + Number(msMargin)))/2;
|
|
11
|
+
let bigHeight = height - marginTB;
|
|
6
12
|
// 获取容器高度,减去margin的值,再除以2,获取小图高度
|
|
7
|
-
let smallHeight =
|
|
8
|
-
(height - (mS.top + mS.bottom + Number(msMargin))) /
|
|
9
|
-
2;
|
|
13
|
+
let smallHeight = (height - (marginTB + Number(msMargin)))/2;
|
|
10
14
|
return { bigWidth, bigHeight, smallHeight };
|
|
11
15
|
}
|
|
12
|
-
|
|
16
|
+
|