jufubao-base 1.0.132-beta3 → 1.0.133
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 +3 -4
- package/src/components/JfbBaseAddress/Attr.js +5 -11
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
- package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +19 -18
- package/src/components/JfbBaseAfterOrderDetail/Attr.js +7 -19
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +4 -6
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +19 -18
- package/src/components/JfbBaseAfterOrderList/Attr.js +16 -25
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +9 -6
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +19 -18
- package/src/components/JfbBaseBack/JfbBaseBackLess.less +19 -18
- package/src/components/JfbBaseBackground/Attr.js +8 -9
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +19 -18
- package/src/components/JfbBaseBlock/Attr.js +2 -12
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +8 -1
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +19 -18
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +19 -18
- package/src/components/JfbBaseCard/Attr.js +34 -76
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +19 -18
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +19 -18
- package/src/components/JfbBaseCardBindV2/Attr.js +4 -5
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +19 -18
- package/src/components/JfbBaseCardDetail/Attr.js +3 -4
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +19 -18
- package/src/components/JfbBaseCardDetailEntry/Attr.js +8 -10
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +19 -18
- package/src/components/JfbBaseCardDisabled/Attr.js +3 -1
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +19 -18
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +19 -18
- package/src/components/JfbBaseCardEntry/Attr.js +67 -86
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +2 -3
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +19 -18
- package/src/components/JfbBaseCardInfo/Attr.js +16 -22
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +19 -18
- package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -16
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +19 -18
- package/src/components/JfbBaseCardMerge/Attr.js +8 -21
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +30 -15
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +19 -18
- package/src/components/JfbBaseCardMergeEntry/Attr.js +6 -20
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +25 -28
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +19 -18
- package/src/components/JfbBaseCardShift/Attr.js +4 -18
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -26
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +19 -18
- package/src/components/JfbBaseCardShiftEntry/Attr.js +26 -34
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -294
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +19 -18
- package/src/components/JfbBaseCardShiftEntry/Mock.js +1 -2
- package/src/components/JfbBaseCardSweepInfo/Attr.js +3 -5
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +19 -18
- package/src/components/JfbBaseCardV2/Attr.js +15 -19
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +5 -3
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +19 -18
- package/src/components/JfbBaseCardV3/Attr.js +12 -16
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +19 -18
- package/src/components/JfbBaseCity/Attr.js +4 -2
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +19 -18
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +19 -18
- package/src/components/JfbBaseClear/JfbBaseClearMixin.js +0 -12
- package/src/components/JfbBaseConDialog/Api.js +1 -1
- package/src/components/JfbBaseConDialog/Attr.js +20 -30
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +26 -45
- package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +19 -18
- package/src/components/JfbBaseConDialog/Mock.js +1 -20
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +9 -15
- package/src/components/JfbBaseConList/Attr.js +224 -149
- package/src/components/JfbBaseConList/JfbBaseConList.vue +133 -150
- package/src/components/JfbBaseConList/JfbBaseConListLess.less +19 -18
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +19 -18
- package/src/components/JfbBaseEntry/Attr.js +21 -33
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +23 -34
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +19 -18
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +19 -18
- package/src/components/JfbBaseFastLink/Api.js +54 -1
- package/src/components/JfbBaseFastLink/Attr.js +116 -168
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +16 -12
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +19 -18
- package/src/components/JfbBaseFooter/Attr.js +22 -28
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -19
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +19 -18
- package/src/components/JfbBaseHeader/Attr.js +91 -89
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +29 -28
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +19 -18
- package/src/components/JfbBaseLine/Attr.js +59 -0
- package/src/components/JfbBaseLine/JfbBaseLine.vue +105 -0
- package/src/components/JfbBaseLine/JfbBaseLineLess.less +80 -0
- package/src/components/JfbBaseLine/JfbBaseLineMixin.js +30 -0
- package/src/components/JfbBaseLogin/Attr.js +88 -111
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +1 -0
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +19 -18
- package/src/components/JfbBaseLoginForgetPwd/Attr.js +45 -52
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +19 -18
- package/src/components/JfbBaseLoginSetPwd/Attr.js +4 -6
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +19 -18
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +19 -18
- package/src/components/JfbBaseMapSearch/Attr.js +15 -0
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +25 -1
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +19 -18
- package/src/components/JfbBaseMergeUserCard/Attr.js +3 -4
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +19 -18
- package/src/components/JfbBaseMultipleExpress/Attr.js +3 -4
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +19 -18
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +19 -18
- package/src/components/JfbBaseMySetting/Attr.js +1 -1
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +19 -18
- package/src/components/JfbBaseNotice/Attr.js +56 -97
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +52 -70
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +19 -18
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +19 -18
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +19 -18
- package/src/components/JfbBaseOrderDetail/Attr.js +193 -210
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +3 -6
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +19 -18
- package/src/components/JfbBaseOrderList/Attr.js +43 -55
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +3 -5
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +19 -18
- package/src/components/JfbBasePay/Attr.js +13 -2
- package/src/components/JfbBasePay/JfbBasePay.vue +6 -7
- package/src/components/JfbBasePay/JfbBasePayLess.less +19 -18
- package/src/components/JfbBasePay/Mock.js +1 -2
- package/src/components/JfbBasePhoneCollect/Attr.js +2 -27
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +19 -18
- package/src/components/JfbBasePhoneLogin/Attr.js +2 -27
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +19 -18
- package/src/components/JfbBasePoster/Attr.js +83 -103
- package/src/components/JfbBasePoster/JfbBasePoster.vue +141 -134
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +19 -18
- package/src/components/JfbBasePosterBigSmall/Attr.js +76 -93
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +7 -3
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +19 -18
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
- package/src/components/JfbBasePosterEntry/Attr.js +33 -44
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +49 -44
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +19 -18
- package/src/components/JfbBasePosterType/Attr.js +48 -82
- package/src/components/JfbBasePosterType/FourScreen.vue +2 -8
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +59 -36
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +19 -18
- package/src/components/JfbBasePosterType/Screen.vue +284 -0
- package/src/components/JfbBaseRecharge/Attr.js +23 -35
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +8 -54
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +19 -18
- package/src/components/JfbBaseRechargeOrder/Attr.js +22 -32
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +7 -12
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +19 -18
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +19 -18
- package/src/components/JfbBaseRechargeSuccess/Attr.js +8 -10
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +19 -18
- package/src/components/JfbBaseSearch/Api.js +60 -0
- package/src/components/JfbBaseSearch/Attr.js +148 -6
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +37 -8
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +19 -18
- package/src/components/JfbBaseSearch/Mock.js +5 -0
- package/src/components/JfbBaseSetPwd/Attr.js +147 -6
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +19 -18
- package/src/components/JfbBaseSuccess/Attr.js +17 -78
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +19 -18
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
- package/src/components/JfbBaseUserCenter/Attr.js +53 -72
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
- package/src/components/JfbBaseUserInfo/Attr.js +45 -54
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
- package/src/components/JfbBaseUserOrder/Attr.js +92 -118
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
- package/src/components/JfbBaseVideo/Attr.js +19 -72
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
- package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
- package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
- package/src/components/{JfbBaseClear → JfbBaseWalletDetail}/Attr.js +0 -1
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +12 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
- package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +26 -32
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
- package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
- package/src/components/JfbBaseCardShift/Mock.js +0 -21
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-notice__body">
|
|
17
17
|
<view class="jfb-base-notice__body-line"></view>
|
|
18
|
-
<view>
|
|
18
|
+
<view :style="{margin: marginUi}">
|
|
19
19
|
<template v-if="style === '3' && isPreview">
|
|
20
|
-
<view
|
|
20
|
+
<view
|
|
21
|
+
class="jfb-base-notice__body-pop"
|
|
22
|
+
:style="{backgroundColor:backgroundColor, color:warningColor}"
|
|
23
|
+
>弹窗模式方便编辑(占位),在线上此模块不显</view>
|
|
21
24
|
</template>
|
|
22
25
|
<template v-if="style === '2'">
|
|
23
26
|
<template v-if="contentList.length === 0 && isPreview">
|
|
@@ -28,8 +31,7 @@
|
|
|
28
31
|
class="upAndDown"
|
|
29
32
|
:style="{
|
|
30
33
|
backgroundColor:backgroundColor,
|
|
31
|
-
color:warningColor
|
|
32
|
-
margin:scrollMarginUi,
|
|
34
|
+
color:warningColor
|
|
33
35
|
}"
|
|
34
36
|
>
|
|
35
37
|
<view>
|
|
@@ -75,37 +77,36 @@
|
|
|
75
77
|
>接口无数返回,请检查是否配置成功!</view>
|
|
76
78
|
</template>
|
|
77
79
|
<template v-else>
|
|
78
|
-
<view
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
</view>
|
|
80
|
+
<view
|
|
81
|
+
class="jfb-base-notice__body-title"
|
|
82
|
+
:style="{
|
|
83
|
+
fontSize: titleFontSize + 'rpx',
|
|
84
|
+
background: bgc,
|
|
85
|
+
color:textColor,
|
|
86
|
+
borderRadius: titleRadius,
|
|
87
|
+
padding: titlePadding,
|
|
88
|
+
paddingBottom:0,
|
|
89
|
+
borderBottomColor: borderTitleColor,
|
|
90
|
+
textAlign: textAlign
|
|
91
|
+
}"
|
|
92
|
+
v-if="isTitle"
|
|
93
|
+
>{{title}}</view>
|
|
94
|
+
<view
|
|
95
|
+
class="jfb-base-notice__body-content"
|
|
96
|
+
:style="{
|
|
97
|
+
background: bgc,
|
|
98
|
+
color:textColor,
|
|
99
|
+
borderRadius: contRadius,
|
|
100
|
+
padding: paddingUi,
|
|
101
|
+
lineHeight: '50rpx'
|
|
102
|
+
}"
|
|
103
|
+
v-if="content"
|
|
104
|
+
>
|
|
105
|
+
<xd-content-xss
|
|
106
|
+
:key="contentKey"
|
|
107
|
+
:html="content"
|
|
108
|
+
:font-sizes="fontSize"
|
|
109
|
+
></xd-content-xss>
|
|
109
110
|
</view>
|
|
110
111
|
</template>
|
|
111
112
|
</template>
|
|
@@ -208,19 +209,18 @@
|
|
|
208
209
|
num: 1, //滚动记录数量
|
|
209
210
|
timer: false,
|
|
210
211
|
contentList: [],
|
|
211
|
-
scrollMargin:{},
|
|
212
212
|
|
|
213
213
|
backgroundColor: '',
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
watch: {
|
|
217
|
-
container(value
|
|
218
|
-
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
217
|
+
container(value) {
|
|
219
218
|
this.init(this.container);
|
|
220
219
|
if (this.$configProject['isPreview']) this.onJfbLoad()
|
|
221
220
|
},
|
|
222
221
|
num(){
|
|
223
222
|
if (this.$configProject['isPreview']) this.onJfbLoad()
|
|
223
|
+
|
|
224
224
|
},
|
|
225
225
|
style() {
|
|
226
226
|
if(this.$configProject['isPreview']) this.onJfbLoad()
|
|
@@ -238,35 +238,13 @@
|
|
|
238
238
|
},
|
|
239
239
|
computed:{
|
|
240
240
|
marginUi() {
|
|
241
|
-
|
|
242
|
-
str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
|
|
243
|
-
str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
|
|
244
|
-
str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
|
|
245
|
-
return str
|
|
241
|
+
return `${this.margin.top || 0}rpx ${this.margin.right || 0}rpx ${this.margin.bottom || 0}rpx ${this.margin.left || 0}rpx`
|
|
246
242
|
},
|
|
247
243
|
paddingUi() {
|
|
248
|
-
|
|
249
|
-
str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
|
|
250
|
-
str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
|
|
251
|
-
str = `${str} ${this.checkValue(this.padding.left, 20)}rpx`;
|
|
252
|
-
return str
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
scrollMarginUi(){
|
|
256
|
-
let str = `${this.checkValue(this.scrollMargin.top, 0)}rpx`;
|
|
257
|
-
str = `${str} ${this.checkValue(this.scrollMargin.right, 0)}rpx`;
|
|
258
|
-
str = `${str} ${this.checkValue(this.scrollMargin.bottom, 0)}rpx`;
|
|
259
|
-
str = `${str} ${this.checkValue(this.scrollMargin.left, 0)}rpx`;
|
|
260
|
-
return str
|
|
244
|
+
return `${this.padding.top||8}rpx ${this.padding.right || 10}rpx ${this.padding.bottom || 8}rpx ${this.padding.left || 10}rpx`
|
|
261
245
|
},
|
|
262
|
-
|
|
263
|
-
|
|
264
246
|
titlePadding() {
|
|
265
|
-
|
|
266
|
-
str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
|
|
267
|
-
str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
|
|
268
|
-
str = `${str} ${this.checkValue(this.padding.left, 20)}rpx`;
|
|
269
|
-
return str
|
|
247
|
+
return `${this.padding.top*(3/5)}rpx ${this.padding.right || 10}rpx ${this.padding.bottom * (3 / 5)}rpx ${this.padding.left || 10}rpx`
|
|
270
248
|
},
|
|
271
249
|
contRadius(){
|
|
272
250
|
if(this.isTitle) return `0rpx 0rpx ${this.radius}rpx ${this.radius}rpx`;
|
|
@@ -292,6 +270,7 @@
|
|
|
292
270
|
this.showUp = type;
|
|
293
271
|
},
|
|
294
272
|
|
|
273
|
+
|
|
295
274
|
/**
|
|
296
275
|
* @description 监听事件变化
|
|
297
276
|
* @param container {object} 业务组件对象自己
|
|
@@ -306,7 +285,6 @@
|
|
|
306
285
|
this.borderTitleColor = color(this.bgc).lighten(.15).hex();
|
|
307
286
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
|
|
308
287
|
this.padding = getContainerPropsValue(container, 'content.padding', {top: 8, left: 10, bottom: 8, right: 10});
|
|
309
|
-
this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {});
|
|
310
288
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
311
289
|
this.fontSize = Number(getContainerPropsValue(container, 'content.fontSize', '20'));
|
|
312
290
|
if (this.fontSize === 20) this.titleFontSize = 28;
|
|
@@ -344,6 +322,8 @@
|
|
|
344
322
|
},
|
|
345
323
|
})
|
|
346
324
|
.then(res => {
|
|
325
|
+
//res = {"list":[{"content_id":"YSjVvl2X6f5qYW5G7NNNr","category_id":"KNCYuDPWmmb4jUaBEOvbz","partner_id":0,"site_id":"","title":"东北地区暴雪影响","content":"<p>尊敬的用户您好!因受东北地区暴雪影响,部分订单暂停发货或包裹运输会有延迟,我们将在预警恢复后尽快安排发货,请您耐心等待,给您带来不便敬请谅解!<\/p>","sort":1,"status":"","start_time":1699200000,"end_time":1699804800,"op_user_id":"","created_time":0,"updated_time":0,"code":"","code_name":""},{"content_id":"YSjVvl2X6f5qYW5G7NNNr1","category_id":"KNCYuDPWmmb4jUaBEOvbz","partner_id":0,"site_id":"","title":"东北地区暴雪影响","content":"<p>尊敬的用户您好!因受东北地区暴雪影响,部分订单暂停发货或包裹运输会有延迟,我们将在预警恢复后尽快安排发货,请您耐心等待,给您带来不便敬请谅解!<\/p>","sort":1,"status":"","start_time":1699200000,"end_time":1699804800,"op_user_id":"","created_time":0,"updated_time":0,"code":"","code_name":""}],"request_id":"2d3b6e0f1cb184c5"};
|
|
326
|
+
|
|
347
327
|
//弹窗显示
|
|
348
328
|
if (this.style === '3') {
|
|
349
329
|
if (res.list.length > 0) {
|
|
@@ -378,6 +358,9 @@
|
|
|
378
358
|
},
|
|
379
359
|
|
|
380
360
|
onJfbLoad() {
|
|
361
|
+
let delay = 500;
|
|
362
|
+
if(!this.isPreview) delay = 10;
|
|
363
|
+
|
|
381
364
|
if(this.timer){
|
|
382
365
|
clearTimeout(this.timer);
|
|
383
366
|
this.timer = null
|
|
@@ -397,7 +380,7 @@
|
|
|
397
380
|
else {
|
|
398
381
|
this.getContent()
|
|
399
382
|
}
|
|
400
|
-
},
|
|
383
|
+
}, delay)
|
|
401
384
|
},
|
|
402
385
|
|
|
403
386
|
onJfbUpdate(data) {
|
|
@@ -414,7 +397,6 @@
|
|
|
414
397
|
@import "./JfbBaseNoticeLess.less";
|
|
415
398
|
|
|
416
399
|
.jfb-base-notice {
|
|
417
|
-
min-height: 72rpx!important;
|
|
418
400
|
&__body{
|
|
419
401
|
.content-list {
|
|
420
402
|
display: flex;
|
|
@@ -422,7 +404,7 @@
|
|
|
422
404
|
align-items: center;
|
|
423
405
|
}
|
|
424
406
|
&-line {
|
|
425
|
-
height:
|
|
407
|
+
height: 0px;
|
|
426
408
|
overflow: hidden;
|
|
427
409
|
width: 100%;
|
|
428
410
|
}
|
|
@@ -464,16 +446,16 @@
|
|
|
464
446
|
}
|
|
465
447
|
}
|
|
466
448
|
&-pop {
|
|
467
|
-
min-height:
|
|
449
|
+
min-height: 30rpx;
|
|
468
450
|
text-align: center;
|
|
469
|
-
line-height:
|
|
451
|
+
line-height: 30rpx;
|
|
470
452
|
color: #666;
|
|
471
453
|
font-size: unit(24, rpx);
|
|
472
454
|
padding:unit(20, rpx);
|
|
473
455
|
}
|
|
474
456
|
&-title {
|
|
475
457
|
border-bottom: 1px solid #fff;
|
|
476
|
-
line-height:
|
|
458
|
+
line-height: 2rem;
|
|
477
459
|
}
|
|
478
460
|
|
|
479
461
|
&-content {
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-notice {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
min-height: unit(
|
|
18
|
+
min-height: unit(50, rpx);
|
|
18
19
|
|
|
19
20
|
&__body{
|
|
20
21
|
position: relative;
|
|
@@ -22,21 +23,21 @@
|
|
|
22
23
|
z-index: 2
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
&.editx
|
|
26
|
+
&.editx {
|
|
26
27
|
position: relative;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: 4;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
39
33
|
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
|
|
@@ -71,9 +72,9 @@
|
|
|
71
72
|
|
|
72
73
|
/**notPreview**/
|
|
73
74
|
.jfb-base-notice {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/**endNotPreview**/
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-notice-bottom {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
min-height: unit(
|
|
18
|
+
min-height: unit(50, rpx);
|
|
18
19
|
|
|
19
20
|
&__body{
|
|
20
21
|
position: relative;
|
|
@@ -22,21 +23,21 @@
|
|
|
22
23
|
z-index: 2
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
&.editx
|
|
26
|
+
&.editx {
|
|
26
27
|
position: relative;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: 4;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
39
33
|
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
|
|
@@ -71,9 +72,9 @@
|
|
|
71
72
|
|
|
72
73
|
/**notPreview**/
|
|
73
74
|
.jfb-base-notice-bottom {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/**endNotPreview**/
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-notice-top {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
min-height: unit(
|
|
18
|
+
min-height: unit(50, rpx);
|
|
18
19
|
|
|
19
20
|
&__body{
|
|
20
21
|
position: relative;
|
|
@@ -22,21 +23,21 @@
|
|
|
22
23
|
z-index: 2
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
&.editx
|
|
26
|
+
&.editx {
|
|
26
27
|
position: relative;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: 4;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
39
33
|
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
|
|
@@ -71,9 +72,9 @@
|
|
|
71
72
|
|
|
72
73
|
/**notPreview**/
|
|
73
74
|
.jfb-base-notice-top {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/**endNotPreview**/
|