jufubao-base 1.0.133 → 1.0.134-beta3
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/JfbBaseAddress/Attr.js +11 -5
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
- package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +18 -19
- package/src/components/JfbBaseAfterOrderDetail/Attr.js +19 -7
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +6 -4
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +18 -19
- package/src/components/JfbBaseAfterOrderList/Attr.js +25 -16
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +6 -9
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +18 -19
- package/src/components/JfbBaseBack/JfbBaseBackLess.less +18 -19
- package/src/components/JfbBaseBackground/Attr.js +9 -8
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +0 -3
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +18 -19
- package/src/components/JfbBaseBlock/Attr.js +12 -2
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +1 -8
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +18 -19
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +18 -19
- package/src/components/JfbBaseCard/Attr.js +78 -36
- package/src/components/JfbBaseCard/JfbBaseCard.vue +2 -2
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
- package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +6 -1
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
- package/src/components/JfbBaseCardDetail/Attr.js +4 -3
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
- package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -13
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
- package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
- package/src/components/JfbBaseCardEntry/Api.js +1 -1
- package/src/components/JfbBaseCardEntry/Attr.js +86 -67
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -5
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
- package/src/components/JfbBaseCardInfo/Attr.js +22 -16
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
- package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
- package/src/components/JfbBaseCardMerge/Attr.js +21 -8
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
- package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
- package/src/components/JfbBaseCardShift/Attr.js +18 -4
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
- package/src/components/JfbBaseCardShift/Mock.js +21 -0
- package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
- package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
- package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
- package/src/components/JfbBaseCardV2/Attr.js +21 -17
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
- package/src/components/JfbBaseCardV3/Attr.js +18 -14
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
- package/src/components/JfbBaseCity/Attr.js +2 -4
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
- package/src/components/JfbBaseClear/Attr.js +17 -0
- package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
- package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
- package/src/components/JfbBaseConDialog/Api.js +2 -2
- package/src/components/JfbBaseConDialog/Attr.js +30 -20
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +45 -26
- package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
- package/src/components/JfbBaseConDialog/Mock.js +20 -1
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
- package/src/components/JfbBaseConList/Api.js +1 -1
- package/src/components/JfbBaseConList/Attr.js +149 -224
- package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
- package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
- package/src/components/JfbBaseEntry/Attr.js +33 -21
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
- package/src/components/JfbBaseFastLink/Api.js +1 -54
- package/src/components/JfbBaseFastLink/Attr.js +168 -116
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
- package/src/components/JfbBaseFooter/Attr.js +28 -22
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
- package/src/components/JfbBaseHeader/Attr.js +89 -91
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
- package/src/components/JfbBaseLogin/Api.js +1 -1
- package/src/components/JfbBaseLogin/Attr.js +111 -88
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +4 -5
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
- package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
- package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
- package/src/components/JfbBaseMapSearch/Attr.js +0 -15
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
- package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
- package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
- package/src/components/JfbBaseMySetting/Attr.js +1 -1
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
- package/src/components/JfbBaseNotice/Attr.js +97 -56
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +70 -52
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
- package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +5 -3
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
- package/src/components/JfbBaseOrderList/Attr.js +56 -44
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +5 -3
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
- package/src/components/JfbBasePay/Attr.js +2 -13
- package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
- package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
- package/src/components/JfbBasePay/Mock.js +2 -1
- package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
- package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
- package/src/components/JfbBasePoster/Attr.js +103 -83
- package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
- package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
- package/src/components/JfbBasePosterEntry/Attr.js +47 -34
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
- package/src/components/JfbBasePosterType/Attr.js +82 -48
- package/src/components/JfbBasePosterType/FourScreen.vue +8 -2
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
- package/src/components/JfbBaseRecharge/Attr.js +35 -23
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
- package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
- package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
- package/src/components/JfbBaseSearch/Attr.js +6 -148
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
- package/src/components/JfbBaseSetPwd/Attr.js +6 -147
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
- package/src/components/JfbBaseSuccess/Attr.js +89 -19
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +46 -24
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
- package/src/components/JfbBaseSuccess/Mock.js +8 -0
- package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
- package/src/components/JfbBaseUserCenter/Attr.js +72 -53
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
- package/src/components/JfbBaseUserInfo/Attr.js +54 -45
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
- package/src/components/JfbBaseUserOrder/Attr.js +119 -94
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
- package/src/components/JfbBaseVideo/Attr.js +72 -19
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
- package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
- package/src/components/JfbBaseWallet/Attr.js +27 -19
- package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
- package/src/components/JfbBaseWalletDetail/Attr.js +2 -6
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
- package/src/components/JfbBaseWalletIndex/Attr.js +3 -1
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
- package/src/components/JfbBaseWalletItem/Attr.js +3 -1
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
- package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
- package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +34 -28
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
- package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
- package/src/components/JfbBaseLine/Attr.js +0 -59
- package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
- package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
- package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
- package/src/components/JfbBasePosterType/Screen.vue +0 -284
- package/src/components/JfbBaseSearch/Api.js +0 -60
- package/src/components/JfbBaseSearch/Mock.js +0 -5
|
@@ -6,7 +6,8 @@ import getWidthHeight from './getWidthHeight'
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: (params) => {
|
|
9
|
-
|
|
9
|
+
if(!params.margin) params.margin = {};
|
|
10
|
+
if(params.msMargin !== 0 && !params.msMargin) params.msMargin = 0;
|
|
10
11
|
if(!params['isCarousel']) params['isCarousel'] = 1;
|
|
11
12
|
if(params.poster) {
|
|
12
13
|
let bigWidth = getWidthHeight(params.height,params.margin,params.msMargin).bigWidth
|
|
@@ -15,101 +16,107 @@ export default {
|
|
|
15
16
|
width: bigWidth,
|
|
16
17
|
height: bigHeight,
|
|
17
18
|
}
|
|
18
|
-
params.poster.type=1
|
|
19
|
-
console.log(params.poster,'params.posterparams.poster');
|
|
19
|
+
params.poster.type='1'
|
|
20
20
|
}
|
|
21
|
-
if(params
|
|
21
|
+
if(params['topPoster']) {
|
|
22
22
|
let bigWidth = getWidthHeight(params.height,params.margin,params.msMargin).bigWidth
|
|
23
23
|
let smallHeight = getWidthHeight(params.height,params.margin,params.msMargin).smallHeight
|
|
24
24
|
params.topPoster.size={
|
|
25
25
|
width: bigWidth,
|
|
26
26
|
height: smallHeight,
|
|
27
27
|
}
|
|
28
|
-
params.topPoster.type=1
|
|
28
|
+
params.topPoster.type='1'
|
|
29
29
|
}
|
|
30
|
-
if(params
|
|
30
|
+
if(params['bottomPoster']) {
|
|
31
31
|
let bigWidth = getWidthHeight(params.height,params.margin,params.msMargin).bigWidth
|
|
32
32
|
let smallHeight = getWidthHeight(params.height,params.margin,params.msMargin).smallHeight
|
|
33
33
|
params.bottomPoster.size={
|
|
34
34
|
width: bigWidth,
|
|
35
35
|
height: smallHeight,
|
|
36
36
|
}
|
|
37
|
-
params.bottomPoster.type=1
|
|
37
|
+
params.bottomPoster.type='1'
|
|
38
38
|
}
|
|
39
|
+
let xiugai = false;
|
|
40
|
+
if(params.poster && params.poster.position && params.poster.position.position_id) xiugai = true;
|
|
41
|
+
if(params['topPoster'] && params['topPoster'].position && params['topPoster'].position.position_id) xiugai = true;
|
|
42
|
+
if(params['bottomPoster'] && params['bottomPoster'].position && params['bottomPoster'].position.position_id) xiugai = true;
|
|
39
43
|
return [
|
|
40
44
|
{
|
|
41
45
|
label: '广告位高度:',
|
|
42
46
|
ele: 'el-input',
|
|
43
47
|
type: 'number',
|
|
44
48
|
valueKey: 'height',
|
|
49
|
+
groupKey:'style',
|
|
45
50
|
value: params.height || 500,
|
|
46
51
|
className: 'input40',
|
|
47
52
|
placeholder: '请广告位内容间距设置',
|
|
48
|
-
|
|
53
|
+
disabled:xiugai,
|
|
54
|
+
notice: '广告位选取内容后,将无法修改,单位:像素,默认: <span style="color:red">500</span>像素',
|
|
49
55
|
inline: false,
|
|
50
56
|
},
|
|
51
|
-
{
|
|
52
|
-
label: '样式:',
|
|
53
|
-
ele: 'xd-radio',
|
|
54
|
-
valueKey: 'position',
|
|
55
|
-
value: params['position'] || 1,
|
|
56
|
-
rules: [
|
|
57
|
-
{required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
|
|
58
|
-
],
|
|
59
|
-
list: [
|
|
60
|
-
{"label": "大图靠左", "value": 1},
|
|
61
|
-
{"label": "大图靠右", "value": 2},
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
57
|
{
|
|
65
58
|
label: '广告位边距设置:',
|
|
66
59
|
ele: 'xd-margin-padding',
|
|
60
|
+
groupKey:'style',
|
|
67
61
|
valueKey: 'margin',
|
|
68
|
-
value: params.margin ||
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
left: 0,
|
|
72
|
-
right: 0,
|
|
73
|
-
},
|
|
74
|
-
disabled: false,
|
|
75
|
-
setting: {
|
|
76
|
-
type: 'margin',
|
|
77
|
-
},
|
|
62
|
+
value: params.margin || null,
|
|
63
|
+
disabled: xiugai,
|
|
64
|
+
setting: { type: 'margin'},
|
|
78
65
|
placeholder: '请设置广告位边距设置',
|
|
79
|
-
|
|
66
|
+
notice: '广告位选取内容后,将无法修改,单位:像素',
|
|
67
|
+
inline: false,
|
|
80
68
|
},
|
|
81
69
|
{
|
|
82
70
|
label: '图片间距:',
|
|
83
71
|
ele: 'el-input',
|
|
84
72
|
type: 'number',
|
|
85
73
|
valueKey: 'msMargin',
|
|
74
|
+
groupKey:'style',
|
|
86
75
|
value: params.msMargin || 10,
|
|
87
76
|
className: 'input40',
|
|
88
77
|
placeholder: '请广告位内容间距设置',
|
|
89
|
-
|
|
78
|
+
disabled: xiugai,
|
|
79
|
+
notice: '广告位选取内容后,将无法修改,单位:像素,默认: <span style="color:red">10</span>像素',
|
|
90
80
|
inline: false,
|
|
91
81
|
},
|
|
82
|
+
{
|
|
83
|
+
label: '样式:',
|
|
84
|
+
ele: 'xd-radio',
|
|
85
|
+
valueKey: 'position',
|
|
86
|
+
groupKey:'content',
|
|
87
|
+
value: params['position'] || 1,
|
|
88
|
+
rules: [
|
|
89
|
+
{required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
|
|
90
|
+
],
|
|
91
|
+
list: [
|
|
92
|
+
{"label": "大图靠左", "value": 1},
|
|
93
|
+
{"label": "大图靠右", "value": 2},
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
|
|
92
98
|
{
|
|
93
99
|
ele: 'title',
|
|
94
100
|
label: '大图设置',
|
|
95
|
-
size: 'small',
|
|
101
|
+
size: 'small',
|
|
102
|
+
groupKey:'content',
|
|
96
103
|
},
|
|
97
104
|
{
|
|
98
|
-
label: '大图广告位置配置:',
|
|
99
|
-
ele: 'xd-site-poster',
|
|
100
|
-
valueKey: 'poster',
|
|
105
|
+
label: '大图广告位置配置:',
|
|
106
|
+
ele: 'xd-site-poster',
|
|
107
|
+
valueKey: 'poster',
|
|
108
|
+
groupKey:'content',
|
|
101
109
|
className: 'input80',
|
|
102
110
|
isKey: true,
|
|
103
111
|
key: new Date().getTime(),
|
|
104
112
|
value: params.poster || {},
|
|
105
113
|
setting: {
|
|
106
|
-
count: 1,
|
|
114
|
+
count: '1',
|
|
107
115
|
scene: {label: '广告', value: 'normal'},
|
|
108
|
-
partDisabled: true
|
|
116
|
+
partDisabled: true,
|
|
117
|
+
disabled: true,
|
|
109
118
|
},
|
|
110
119
|
handleCustom({action, data}) {
|
|
111
|
-
console.log(params.poster,'posteryyyy');
|
|
112
|
-
console.log(getWidthHeight(params.height,params.margin,params.msMargin),'getWidthHeight');
|
|
113
120
|
if (data && data.params) {
|
|
114
121
|
//当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
|
|
115
122
|
data.params = Object.assign({}, data.params, {code: 'big'});
|
|
@@ -314,21 +321,11 @@ export default {
|
|
|
314
321
|
{required: true, message: '请选择广告位置', trigger: 'change'},
|
|
315
322
|
],
|
|
316
323
|
},
|
|
317
|
-
params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
|
|
318
|
-
label: '广告位内容间距设置:',
|
|
319
|
-
ele: 'el-input',
|
|
320
|
-
type: 'number',
|
|
321
|
-
valueKey: 'padding',
|
|
322
|
-
value: params.padding || 0,
|
|
323
|
-
className: 'input40',
|
|
324
|
-
placeholder: '请广告位内容间距设置',
|
|
325
|
-
notice: '在使用通屏显示类型广告位之外的样式时,该属性生效,单位:像素(px)',
|
|
326
|
-
inline: false,
|
|
327
|
-
},
|
|
328
324
|
{
|
|
329
325
|
label: '大图广告圆角设置:',
|
|
330
326
|
ele: 'xd-site-select-list',
|
|
331
327
|
valueKey: 'radius',
|
|
328
|
+
groupKey:'content',
|
|
332
329
|
value: params['radius'] || '20',
|
|
333
330
|
placeholder: '请选择广告圆角设置',
|
|
334
331
|
multiple: false,
|
|
@@ -348,6 +345,7 @@ export default {
|
|
|
348
345
|
ele: 'el-input',
|
|
349
346
|
type: 'number',
|
|
350
347
|
valueKey: 'number',
|
|
348
|
+
groupKey:'content',
|
|
351
349
|
value: params.number || 1,
|
|
352
350
|
placeholder: '请输入广告位置使用张数',
|
|
353
351
|
className: 'input40',
|
|
@@ -364,6 +362,7 @@ export default {
|
|
|
364
362
|
label: '大图广告位显示方式:',
|
|
365
363
|
ele: 'xd-radio',
|
|
366
364
|
valueKey: 'isCarousel',
|
|
365
|
+
groupKey:'content',
|
|
367
366
|
value: params['isCarousel'] || 1,
|
|
368
367
|
rules: [
|
|
369
368
|
{required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
|
|
@@ -377,6 +376,7 @@ export default {
|
|
|
377
376
|
label: '大图广告位轮播周期:',
|
|
378
377
|
ele: 'el-input',
|
|
379
378
|
type: 'number',
|
|
379
|
+
groupKey:'content',
|
|
380
380
|
isKey: true,
|
|
381
381
|
valueKey: 'carouselTime',
|
|
382
382
|
value: params.carouselTime || 5,
|
|
@@ -392,10 +392,11 @@ export default {
|
|
|
392
392
|
]
|
|
393
393
|
},
|
|
394
394
|
params['isCarousel'] === 2 && {
|
|
395
|
-
label: '大图广告显示dot类型:',
|
|
396
|
-
ele: 'xd-select-list',
|
|
397
|
-
valueKey: 'dot_type',
|
|
398
|
-
|
|
395
|
+
label: '大图广告显示dot类型:',
|
|
396
|
+
ele: 'xd-select-list',
|
|
397
|
+
valueKey: 'dot_type',
|
|
398
|
+
groupKey:'content',
|
|
399
|
+
value: params['dot_type'] || 'dot',
|
|
399
400
|
placeholder: '请选择广告显示dot类型',
|
|
400
401
|
multiple: false,
|
|
401
402
|
className: 'input80',
|
|
@@ -413,20 +414,23 @@ export default {
|
|
|
413
414
|
{
|
|
414
415
|
ele: 'title',
|
|
415
416
|
label: '小图上设置',
|
|
416
|
-
size: 'small',
|
|
417
|
+
size: 'small',
|
|
418
|
+
groupKey:'content',
|
|
417
419
|
},
|
|
418
420
|
{
|
|
419
|
-
label: '小图上广告位置配置:',
|
|
420
|
-
ele: 'xd-site-poster',
|
|
421
|
-
valueKey: 'topPoster',
|
|
421
|
+
label: '小图上广告位置配置:',
|
|
422
|
+
ele: 'xd-site-poster',
|
|
423
|
+
valueKey: 'topPoster',
|
|
424
|
+
groupKey:'content',
|
|
422
425
|
className: 'input80',
|
|
423
|
-
value: params
|
|
426
|
+
value: params['topPoster'] || {},
|
|
424
427
|
isKey: true,
|
|
425
428
|
key: new Date().getTime(),
|
|
426
429
|
setting: {
|
|
427
430
|
count: 1,
|
|
428
431
|
scene: {label: '广告', value: 'normal'},
|
|
429
|
-
partDisabled: true
|
|
432
|
+
partDisabled: true,
|
|
433
|
+
disabled: true,
|
|
430
434
|
},
|
|
431
435
|
handleCustom({action, data}) {
|
|
432
436
|
if (data && data.params) {
|
|
@@ -636,6 +640,7 @@ export default {
|
|
|
636
640
|
label: '小图上广告圆角设置:',
|
|
637
641
|
ele: 'xd-site-select-list',
|
|
638
642
|
valueKey: 'topRadius',
|
|
643
|
+
groupKey:'content',
|
|
639
644
|
value: params['topRadius'] || '20',
|
|
640
645
|
placeholder: '请选择广告圆角设置',
|
|
641
646
|
multiple: false,
|
|
@@ -655,6 +660,7 @@ export default {
|
|
|
655
660
|
ele: 'el-input',
|
|
656
661
|
type: 'topNumber',
|
|
657
662
|
valueKey: 'topNumber',
|
|
663
|
+
groupKey:'content',
|
|
658
664
|
value: params.topNumber || 1,
|
|
659
665
|
placeholder: '请输入广告位置使用张数',
|
|
660
666
|
className: 'input40',
|
|
@@ -671,6 +677,7 @@ export default {
|
|
|
671
677
|
label: '小图上广告位显示方式:',
|
|
672
678
|
ele: 'xd-radio',
|
|
673
679
|
valueKey: 'topIsCarousel',
|
|
680
|
+
groupKey:'content',
|
|
674
681
|
value: params['topIsCarousel'] || 1,
|
|
675
682
|
rules: [
|
|
676
683
|
{required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
|
|
@@ -684,6 +691,7 @@ export default {
|
|
|
684
691
|
label: '小图上广告位轮播周期:',
|
|
685
692
|
ele: 'el-input',
|
|
686
693
|
type: 'number',
|
|
694
|
+
groupKey:'content',
|
|
687
695
|
isKey: true,
|
|
688
696
|
valueKey: 'topCarouselTime',
|
|
689
697
|
value: params.topCarouselTime || 5,
|
|
@@ -699,10 +707,11 @@ export default {
|
|
|
699
707
|
]
|
|
700
708
|
},
|
|
701
709
|
params['topIsCarousel'] === 2 && {
|
|
702
|
-
label: '小图上广告显示dot类型:',
|
|
703
|
-
ele: 'xd-select-list',
|
|
704
|
-
|
|
705
|
-
|
|
710
|
+
label: '小图上广告显示dot类型:',
|
|
711
|
+
ele: 'xd-select-list',
|
|
712
|
+
groupKey:'content',
|
|
713
|
+
valueKey: 'top_dot_type',
|
|
714
|
+
value: params['top_dot_type'] || 'dot',
|
|
706
715
|
placeholder: '请选择广告显示dot类型',
|
|
707
716
|
multiple: false,
|
|
708
717
|
className: 'input80',
|
|
@@ -720,20 +729,23 @@ export default {
|
|
|
720
729
|
{
|
|
721
730
|
ele: 'title',
|
|
722
731
|
label: '小图下设置',
|
|
723
|
-
size: 'small',
|
|
732
|
+
size: 'small',
|
|
733
|
+
groupKey:'content',
|
|
724
734
|
},
|
|
725
735
|
{
|
|
726
|
-
label: '小图下广告位置配置:',
|
|
727
|
-
ele: 'xd-site-poster',
|
|
728
|
-
valueKey: 'bottomPoster',
|
|
736
|
+
label: '小图下广告位置配置:',
|
|
737
|
+
ele: 'xd-site-poster',
|
|
738
|
+
valueKey: 'bottomPoster',
|
|
729
739
|
className: 'input80',
|
|
730
|
-
|
|
740
|
+
groupKey:'content',
|
|
741
|
+
value: params['bottomPoster'] || {},
|
|
731
742
|
isKey: true,
|
|
732
743
|
key: new Date().getTime(),
|
|
733
744
|
setting: {
|
|
734
745
|
count: 1,
|
|
735
746
|
scene: {label: '广告', value: 'normal'},
|
|
736
|
-
partDisabled: true
|
|
747
|
+
partDisabled: true,
|
|
748
|
+
disabled: true,
|
|
737
749
|
},
|
|
738
750
|
handleCustom({action, data}) {
|
|
739
751
|
if (data && data.params) {
|
|
@@ -943,6 +955,7 @@ export default {
|
|
|
943
955
|
label: '小图下广告圆角设置:',
|
|
944
956
|
ele: 'xd-site-select-list',
|
|
945
957
|
valueKey: 'bottomRadius',
|
|
958
|
+
groupKey:'content',
|
|
946
959
|
value: params['bottomRadius'] || '20',
|
|
947
960
|
placeholder: '请选择广告圆角设置',
|
|
948
961
|
multiple: false,
|
|
@@ -961,6 +974,7 @@ export default {
|
|
|
961
974
|
label: '小图下广告位置使用张数:',
|
|
962
975
|
ele: 'el-input',
|
|
963
976
|
type: 'number',
|
|
977
|
+
groupKey:'content',
|
|
964
978
|
valueKey: 'bottomNumber',
|
|
965
979
|
value: params.bottomNumber || 1,
|
|
966
980
|
placeholder: '请输入广告位置使用张数',
|
|
@@ -977,6 +991,7 @@ export default {
|
|
|
977
991
|
{
|
|
978
992
|
label: '小图下广告位显示方式:',
|
|
979
993
|
ele: 'xd-radio',
|
|
994
|
+
groupKey:'content',
|
|
980
995
|
valueKey: 'bottomIsCarousel',
|
|
981
996
|
value: params['bottomIsCarousel'] || 1,
|
|
982
997
|
rules: [
|
|
@@ -992,6 +1007,7 @@ export default {
|
|
|
992
1007
|
ele: 'el-input',
|
|
993
1008
|
type: 'number',
|
|
994
1009
|
isKey: true,
|
|
1010
|
+
groupKey:'content',
|
|
995
1011
|
valueKey: 'bottomCarouselTime',
|
|
996
1012
|
value: params.bottomCarouselTime || 5,
|
|
997
1013
|
placeholder: '请输入广告位轮播周期,单位秒',
|
|
@@ -1006,10 +1022,11 @@ export default {
|
|
|
1006
1022
|
]
|
|
1007
1023
|
},
|
|
1008
1024
|
params['bottomIsCarousel'] === 2 && {
|
|
1009
|
-
label: '小图下广告显示dot类型:',
|
|
1010
|
-
ele: 'xd-select-list',
|
|
1011
|
-
valueKey: 'bottom_dot_type',
|
|
1012
|
-
|
|
1025
|
+
label: '小图下广告显示dot类型:',
|
|
1026
|
+
ele: 'xd-select-list',
|
|
1027
|
+
valueKey: 'bottom_dot_type',
|
|
1028
|
+
groupKey:'content',
|
|
1029
|
+
value: params['bottom_dot_type'] || 'dot',
|
|
1013
1030
|
placeholder: '请选择广告显示dot类型',
|
|
1014
1031
|
multiple: false,
|
|
1015
1032
|
className: 'input80',
|
|
@@ -469,7 +469,8 @@ export default {
|
|
|
469
469
|
},
|
|
470
470
|
},
|
|
471
471
|
watch: {
|
|
472
|
-
container(value) {
|
|
472
|
+
container(value,oloValue) {
|
|
473
|
+
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
473
474
|
this.init(value);
|
|
474
475
|
if(this.timer) clearTimeout(this.timer);
|
|
475
476
|
this.timer = setTimeout(()=>{
|
|
@@ -669,12 +670,7 @@ export default {
|
|
|
669
670
|
init(container) {
|
|
670
671
|
this.height = getContainerPropsValue(container, "content.height", "500");
|
|
671
672
|
// 获取最外面间距,如果没有则设置默认值
|
|
672
|
-
this.mS = getContainerPropsValue(container, "content.margin", {
|
|
673
|
-
top: 0,
|
|
674
|
-
bottom: 0,
|
|
675
|
-
left: 0,
|
|
676
|
-
right: 0,
|
|
677
|
-
});
|
|
673
|
+
this.mS = getContainerPropsValue(container, "content.margin", {top: 0, bottom: 0,left: 0, right: 0});
|
|
678
674
|
this.position = getContainerPropsValue(container, "content.position", 1);
|
|
679
675
|
// 获取大小图之间间距,如果没有则设置默认值
|
|
680
676
|
this.msMargin = getContainerPropsValue(container, "content.msMargin", 10);
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-poster-big-small {
|
|
16
|
-
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
16
|
box-sizing: border-box;
|
|
18
|
-
min-height: unit(
|
|
17
|
+
min-height: unit(100, rpx);
|
|
19
18
|
|
|
20
19
|
&__body{
|
|
21
20
|
position: relative;
|
|
@@ -23,21 +22,21 @@
|
|
|
23
22
|
z-index: 2
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
&.editx {
|
|
25
|
+
&.editx,&:hover {
|
|
27
26
|
position: relative;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
z-index: 3;
|
|
28
|
+
&::after {
|
|
29
|
+
border: 2rpx dashed blue;
|
|
30
|
+
content: " ";
|
|
31
|
+
position: absolute;
|
|
32
|
+
top:0;
|
|
33
|
+
left:0;
|
|
34
|
+
bottom:0;
|
|
35
|
+
right:0;
|
|
36
|
+
z-index: 4;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
37
39
|
|
|
38
|
-
&.noBorder {
|
|
39
|
-
border-color: rgba(0,0,0,0);
|
|
40
|
-
border-width: 0;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
|
|
@@ -72,9 +71,9 @@
|
|
|
72
71
|
|
|
73
72
|
/**notPreview**/
|
|
74
73
|
.jfb-base-poster-big-small {
|
|
75
|
-
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
79
78
|
}
|
|
80
79
|
/**endNotPreview**/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function getWidthHeight(height, mS, msMargin) {
|
|
1
|
+
function getWidthHeight(height, mS= {}, msMargin={}) {
|
|
2
2
|
let bigWidth =
|
|
3
3
|
uni.getSystemInfoSync().safeArea.width -
|
|
4
4
|
(mS.left + mS.right + Number(msMargin)) / 2;
|
|
@@ -9,4 +9,4 @@ function getWidthHeight(height, mS, msMargin) {
|
|
|
9
9
|
2;
|
|
10
10
|
return { bigWidth, bigHeight, smallHeight };
|
|
11
11
|
}
|
|
12
|
-
export default getWidthHeight;
|
|
12
|
+
export default getWidthHeight;
|
|
@@ -7,16 +7,16 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
|
|
|
7
7
|
*/
|
|
8
8
|
export default {
|
|
9
9
|
style:[],
|
|
10
|
-
content:(params)=>{
|
|
11
|
-
|
|
12
|
-
if (!params['
|
|
13
|
-
if (!params['radius']) params['radius'] = '20';
|
|
10
|
+
content:(params={})=>{
|
|
11
|
+
if (!params['number']) params['number'] = '1';
|
|
12
|
+
if (!params['radius']) params['radius'] = '';
|
|
14
13
|
return [
|
|
15
14
|
{
|
|
16
|
-
label: '入口配置:',
|
|
17
|
-
ele: 'xd-site-poster',
|
|
18
|
-
valueKey: 'entry',
|
|
15
|
+
label: '入口配置:',
|
|
16
|
+
ele: 'xd-site-poster',
|
|
17
|
+
valueKey: 'entry',
|
|
19
18
|
className: 'input80',
|
|
19
|
+
groupKey: 'content',
|
|
20
20
|
value: params.entry || {
|
|
21
21
|
size: {height: null, width: null},
|
|
22
22
|
type: '1'
|
|
@@ -223,21 +223,51 @@ export default {
|
|
|
223
223
|
loading.close()
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
|
+
rules: [{
|
|
227
|
+
required: true,
|
|
228
|
+
validator: (rule, value, callback) => {
|
|
229
|
+
let message = '请设置综合福利入口置相关内容';
|
|
230
|
+
if(!value) {
|
|
231
|
+
callback(message);
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
if(value.size && !value.size.height){
|
|
235
|
+
callback(message);
|
|
236
|
+
return
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if(value.size && !value.size.width){
|
|
240
|
+
callback(message);
|
|
241
|
+
return
|
|
242
|
+
}
|
|
243
|
+
callback()
|
|
244
|
+
},trigger: ['blur', 'change']
|
|
245
|
+
}],
|
|
246
|
+
inline: false,
|
|
247
|
+
notice:`当使用<span style="color:red">通屏</span>时,建议尺寸为:<span style="color:red">750*320</span>像素,<br/>当使用<span style="color:red">通屏/二分屏</span>时,建议尺寸为:<span style="color:red">346*376</span>像素`
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
label: '导航内容置使用张数:',
|
|
251
|
+
ele: 'el-input',
|
|
252
|
+
type: 'number',
|
|
253
|
+
valueKey: 'number',
|
|
254
|
+
value: params.number,
|
|
255
|
+
placeholder: '请输入导航内容置使用张数',
|
|
256
|
+
className: 'input60',
|
|
257
|
+
groupKey: 'content',
|
|
226
258
|
inline: false,
|
|
227
|
-
notice:
|
|
228
|
-
rules: [
|
|
229
|
-
{required: true, message: '请选择广告位置', trigger: 'change'},
|
|
230
|
-
],
|
|
259
|
+
notice:'导航内容默认显示使用张数:5张'
|
|
231
260
|
},
|
|
232
261
|
{
|
|
233
262
|
label: '内容间距设置:',
|
|
234
263
|
ele: 'el-input',
|
|
235
264
|
type: 'number',
|
|
236
265
|
valueKey: 'padding',
|
|
237
|
-
value: params.padding ||
|
|
238
|
-
className: '
|
|
266
|
+
value: params.padding || '',
|
|
267
|
+
className: 'input60',
|
|
268
|
+
groupKey: 'style',
|
|
239
269
|
placeholder: '请设置内容间距',
|
|
240
|
-
notice: '在使用二分屏显示类型时,该属性生效,单位:像素(px
|
|
270
|
+
notice: '在使用二分屏显示类型时,该属性生效,单位:像素(px)。默认值:<span style="color: red">20</span> 像素',
|
|
241
271
|
inline: false,
|
|
242
272
|
},
|
|
243
273
|
{
|
|
@@ -245,13 +275,13 @@ export default {
|
|
|
245
275
|
ele: 'xd-margin-padding',
|
|
246
276
|
valueKey: 'margin',
|
|
247
277
|
value: params.margin || null,
|
|
248
|
-
|
|
278
|
+
groupKey: 'style',
|
|
249
279
|
setting: {
|
|
250
280
|
type: 'margin',
|
|
251
281
|
},
|
|
252
282
|
placeholder: '请设置外边距',
|
|
253
283
|
inline: false,
|
|
254
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span
|
|
284
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span> 像素',
|
|
255
285
|
},
|
|
256
286
|
{
|
|
257
287
|
label: '导航ICON圆角设置:',
|
|
@@ -260,6 +290,7 @@ export default {
|
|
|
260
290
|
value: params['radius'],
|
|
261
291
|
placeholder: '请选择导航ICON圆角设置',
|
|
262
292
|
multiple: false,
|
|
293
|
+
groupKey: 'style',
|
|
263
294
|
className: 'input80',
|
|
264
295
|
handleCustom({action, data}) {
|
|
265
296
|
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
@@ -271,24 +302,6 @@ export default {
|
|
|
271
302
|
});
|
|
272
303
|
},
|
|
273
304
|
},
|
|
274
|
-
{
|
|
275
|
-
label: '导航内容置使用张数:',
|
|
276
|
-
ele: 'el-input',
|
|
277
|
-
type: 'number',
|
|
278
|
-
valueKey: 'number',
|
|
279
|
-
value: params.number,
|
|
280
|
-
placeholder: '请输入导航内容置使用张数',
|
|
281
|
-
className: 'input40',
|
|
282
|
-
unit:'张',
|
|
283
|
-
rules: [
|
|
284
|
-
{
|
|
285
|
-
required: true,
|
|
286
|
-
message: '请输入导航内容置使用张数',
|
|
287
|
-
trigger: 'blur'
|
|
288
|
-
},
|
|
289
|
-
]
|
|
290
|
-
},
|
|
291
|
-
|
|
292
305
|
].filter(i=>i)
|
|
293
306
|
},
|
|
294
307
|
advanced: [
|