jufubao-base 1.0.130-beta5 → 1.0.130
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
|
@@ -6,8 +6,7 @@ import getWidthHeight from './getWidthHeight'
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: (params) => {
|
|
9
|
-
|
|
10
|
-
if(params.msMargin !== 0 && !params.msMargin) params.msMargin = 0;
|
|
9
|
+
console.log(params,'apapapap');
|
|
11
10
|
if(!params['isCarousel']) params['isCarousel'] = 1;
|
|
12
11
|
if(params.poster) {
|
|
13
12
|
let bigWidth = getWidthHeight(params.height,params.margin,params.msMargin).bigWidth
|
|
@@ -16,107 +15,101 @@ export default {
|
|
|
16
15
|
width: bigWidth,
|
|
17
16
|
height: bigHeight,
|
|
18
17
|
}
|
|
19
|
-
params.poster.type=
|
|
18
|
+
params.poster.type=1
|
|
19
|
+
console.log(params.poster,'params.posterparams.poster');
|
|
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=
|
|
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=
|
|
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;
|
|
43
39
|
return [
|
|
44
40
|
{
|
|
45
41
|
label: '广告位高度:',
|
|
46
42
|
ele: 'el-input',
|
|
47
43
|
type: 'number',
|
|
48
44
|
valueKey: 'height',
|
|
49
|
-
groupKey:'style',
|
|
50
45
|
value: params.height || 500,
|
|
51
46
|
className: 'input40',
|
|
52
47
|
placeholder: '请广告位内容间距设置',
|
|
53
|
-
|
|
54
|
-
notice: '广告位选取内容后,将无法修改,单位:像素,默认: <span style="color:red">500</span>像素',
|
|
48
|
+
notice: '单位:像素(px)',
|
|
55
49
|
inline: false,
|
|
56
50
|
},
|
|
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
|
+
},
|
|
57
64
|
{
|
|
58
65
|
label: '广告位边距设置:',
|
|
59
66
|
ele: 'xd-margin-padding',
|
|
60
|
-
groupKey:'style',
|
|
61
67
|
valueKey: 'margin',
|
|
62
|
-
value: params.margin ||
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
value: params.margin || {
|
|
69
|
+
top: 0,
|
|
70
|
+
bottom: 0,
|
|
71
|
+
left: 0,
|
|
72
|
+
right: 0,
|
|
73
|
+
},
|
|
74
|
+
disabled: false,
|
|
75
|
+
setting: {
|
|
76
|
+
type: 'margin',
|
|
77
|
+
},
|
|
65
78
|
placeholder: '请设置广告位边距设置',
|
|
66
|
-
|
|
67
|
-
inline: false,
|
|
79
|
+
|
|
68
80
|
},
|
|
69
81
|
{
|
|
70
82
|
label: '图片间距:',
|
|
71
83
|
ele: 'el-input',
|
|
72
84
|
type: 'number',
|
|
73
85
|
valueKey: 'msMargin',
|
|
74
|
-
groupKey:'style',
|
|
75
86
|
value: params.msMargin || 10,
|
|
76
87
|
className: 'input40',
|
|
77
88
|
placeholder: '请广告位内容间距设置',
|
|
78
|
-
|
|
79
|
-
notice: '广告位选取内容后,将无法修改,单位:像素,默认: <span style="color:red">10</span>像素',
|
|
89
|
+
notice: '单位:像素(px)',
|
|
80
90
|
inline: false,
|
|
81
91
|
},
|
|
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
|
-
|
|
98
92
|
{
|
|
99
93
|
ele: 'title',
|
|
100
94
|
label: '大图设置',
|
|
101
|
-
size: 'small',
|
|
102
|
-
groupKey:'content',
|
|
95
|
+
size: 'small', //default/mini/small
|
|
103
96
|
},
|
|
104
97
|
{
|
|
105
|
-
label: '大图广告位置配置:',
|
|
106
|
-
ele: 'xd-site-poster',
|
|
107
|
-
valueKey: 'poster',
|
|
108
|
-
groupKey:'content',
|
|
98
|
+
label: '大图广告位置配置:', //label
|
|
99
|
+
ele: 'xd-site-poster', //package 名称
|
|
100
|
+
valueKey: 'poster', //form[valueKey]
|
|
109
101
|
className: 'input80',
|
|
110
102
|
isKey: true,
|
|
111
103
|
key: new Date().getTime(),
|
|
112
104
|
value: params.poster || {},
|
|
113
105
|
setting: {
|
|
114
|
-
count:
|
|
106
|
+
count: 1,
|
|
115
107
|
scene: {label: '广告', value: 'normal'},
|
|
116
|
-
partDisabled: true
|
|
117
|
-
disabled: true,
|
|
108
|
+
partDisabled: true
|
|
118
109
|
},
|
|
119
110
|
handleCustom({action, data}) {
|
|
111
|
+
console.log(params.poster,'posteryyyy');
|
|
112
|
+
console.log(getWidthHeight(params.height,params.margin,params.msMargin),'getWidthHeight');
|
|
120
113
|
if (data && data.params) {
|
|
121
114
|
//当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
|
|
122
115
|
data.params = Object.assign({}, data.params, {code: 'big'});
|
|
@@ -321,11 +314,21 @@ export default {
|
|
|
321
314
|
{required: true, message: '请选择广告位置', trigger: 'change'},
|
|
322
315
|
],
|
|
323
316
|
},
|
|
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
|
+
},
|
|
324
328
|
{
|
|
325
329
|
label: '大图广告圆角设置:',
|
|
326
330
|
ele: 'xd-site-select-list',
|
|
327
331
|
valueKey: 'radius',
|
|
328
|
-
groupKey:'content',
|
|
329
332
|
value: params['radius'] || '20',
|
|
330
333
|
placeholder: '请选择广告圆角设置',
|
|
331
334
|
multiple: false,
|
|
@@ -345,7 +348,6 @@ export default {
|
|
|
345
348
|
ele: 'el-input',
|
|
346
349
|
type: 'number',
|
|
347
350
|
valueKey: 'number',
|
|
348
|
-
groupKey:'content',
|
|
349
351
|
value: params.number || 1,
|
|
350
352
|
placeholder: '请输入广告位置使用张数',
|
|
351
353
|
className: 'input40',
|
|
@@ -362,7 +364,6 @@ export default {
|
|
|
362
364
|
label: '大图广告位显示方式:',
|
|
363
365
|
ele: 'xd-radio',
|
|
364
366
|
valueKey: 'isCarousel',
|
|
365
|
-
groupKey:'content',
|
|
366
367
|
value: params['isCarousel'] || 1,
|
|
367
368
|
rules: [
|
|
368
369
|
{required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
|
|
@@ -376,7 +377,6 @@ export default {
|
|
|
376
377
|
label: '大图广告位轮播周期:',
|
|
377
378
|
ele: 'el-input',
|
|
378
379
|
type: 'number',
|
|
379
|
-
groupKey:'content',
|
|
380
380
|
isKey: true,
|
|
381
381
|
valueKey: 'carouselTime',
|
|
382
382
|
value: params.carouselTime || 5,
|
|
@@ -392,11 +392,10 @@ export default {
|
|
|
392
392
|
]
|
|
393
393
|
},
|
|
394
394
|
params['isCarousel'] === 2 && {
|
|
395
|
-
label: '大图广告显示dot类型:',
|
|
396
|
-
ele: 'xd-select-list',
|
|
397
|
-
valueKey: 'dot_type',
|
|
398
|
-
|
|
399
|
-
value: params['dot_type'] || 'dot',
|
|
395
|
+
label: '大图广告显示dot类型:', //label
|
|
396
|
+
ele: 'xd-select-list', //package 名称
|
|
397
|
+
valueKey: 'dot_type', //form[valueKey]
|
|
398
|
+
value: params['dot_type'] || 'dot', //v-model
|
|
400
399
|
placeholder: '请选择广告显示dot类型',
|
|
401
400
|
multiple: false,
|
|
402
401
|
className: 'input80',
|
|
@@ -414,23 +413,20 @@ export default {
|
|
|
414
413
|
{
|
|
415
414
|
ele: 'title',
|
|
416
415
|
label: '小图上设置',
|
|
417
|
-
size: 'small',
|
|
418
|
-
groupKey:'content',
|
|
416
|
+
size: 'small', //default/mini/small
|
|
419
417
|
},
|
|
420
418
|
{
|
|
421
|
-
label: '小图上广告位置配置:',
|
|
422
|
-
ele: 'xd-site-poster',
|
|
423
|
-
valueKey: 'topPoster',
|
|
424
|
-
groupKey:'content',
|
|
419
|
+
label: '小图上广告位置配置:', //label
|
|
420
|
+
ele: 'xd-site-poster', //package 名称
|
|
421
|
+
valueKey: 'topPoster', //form[valueKey]
|
|
425
422
|
className: 'input80',
|
|
426
|
-
value: params
|
|
423
|
+
value: params.topPoster || {},
|
|
427
424
|
isKey: true,
|
|
428
425
|
key: new Date().getTime(),
|
|
429
426
|
setting: {
|
|
430
427
|
count: 1,
|
|
431
428
|
scene: {label: '广告', value: 'normal'},
|
|
432
|
-
partDisabled: true
|
|
433
|
-
disabled: true,
|
|
429
|
+
partDisabled: true
|
|
434
430
|
},
|
|
435
431
|
handleCustom({action, data}) {
|
|
436
432
|
if (data && data.params) {
|
|
@@ -640,7 +636,6 @@ export default {
|
|
|
640
636
|
label: '小图上广告圆角设置:',
|
|
641
637
|
ele: 'xd-site-select-list',
|
|
642
638
|
valueKey: 'topRadius',
|
|
643
|
-
groupKey:'content',
|
|
644
639
|
value: params['topRadius'] || '20',
|
|
645
640
|
placeholder: '请选择广告圆角设置',
|
|
646
641
|
multiple: false,
|
|
@@ -660,7 +655,6 @@ export default {
|
|
|
660
655
|
ele: 'el-input',
|
|
661
656
|
type: 'topNumber',
|
|
662
657
|
valueKey: 'topNumber',
|
|
663
|
-
groupKey:'content',
|
|
664
658
|
value: params.topNumber || 1,
|
|
665
659
|
placeholder: '请输入广告位置使用张数',
|
|
666
660
|
className: 'input40',
|
|
@@ -677,7 +671,6 @@ export default {
|
|
|
677
671
|
label: '小图上广告位显示方式:',
|
|
678
672
|
ele: 'xd-radio',
|
|
679
673
|
valueKey: 'topIsCarousel',
|
|
680
|
-
groupKey:'content',
|
|
681
674
|
value: params['topIsCarousel'] || 1,
|
|
682
675
|
rules: [
|
|
683
676
|
{required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
|
|
@@ -691,7 +684,6 @@ export default {
|
|
|
691
684
|
label: '小图上广告位轮播周期:',
|
|
692
685
|
ele: 'el-input',
|
|
693
686
|
type: 'number',
|
|
694
|
-
groupKey:'content',
|
|
695
687
|
isKey: true,
|
|
696
688
|
valueKey: 'topCarouselTime',
|
|
697
689
|
value: params.topCarouselTime || 5,
|
|
@@ -707,11 +699,10 @@ export default {
|
|
|
707
699
|
]
|
|
708
700
|
},
|
|
709
701
|
params['topIsCarousel'] === 2 && {
|
|
710
|
-
label: '小图上广告显示dot类型:',
|
|
711
|
-
ele: 'xd-select-list',
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
value: params['top_dot_type'] || 'dot',
|
|
702
|
+
label: '小图上广告显示dot类型:', //label
|
|
703
|
+
ele: 'xd-select-list', //package 名称
|
|
704
|
+
valueKey: 'top_dot_type', //form[valueKey]
|
|
705
|
+
value: params['top_dot_type'] || 'dot', //v-model
|
|
715
706
|
placeholder: '请选择广告显示dot类型',
|
|
716
707
|
multiple: false,
|
|
717
708
|
className: 'input80',
|
|
@@ -729,23 +720,20 @@ export default {
|
|
|
729
720
|
{
|
|
730
721
|
ele: 'title',
|
|
731
722
|
label: '小图下设置',
|
|
732
|
-
size: 'small',
|
|
733
|
-
groupKey:'content',
|
|
723
|
+
size: 'small', //default/mini/small
|
|
734
724
|
},
|
|
735
725
|
{
|
|
736
|
-
label: '小图下广告位置配置:',
|
|
737
|
-
ele: 'xd-site-poster',
|
|
738
|
-
valueKey: 'bottomPoster',
|
|
726
|
+
label: '小图下广告位置配置:', //label
|
|
727
|
+
ele: 'xd-site-poster', //package 名称
|
|
728
|
+
valueKey: 'bottomPoster', //form[valueKey]
|
|
739
729
|
className: 'input80',
|
|
740
|
-
|
|
741
|
-
value: params['bottomPoster'] || {},
|
|
730
|
+
value: params.bottomPoster || {},
|
|
742
731
|
isKey: true,
|
|
743
732
|
key: new Date().getTime(),
|
|
744
733
|
setting: {
|
|
745
734
|
count: 1,
|
|
746
735
|
scene: {label: '广告', value: 'normal'},
|
|
747
|
-
partDisabled: true
|
|
748
|
-
disabled: true,
|
|
736
|
+
partDisabled: true
|
|
749
737
|
},
|
|
750
738
|
handleCustom({action, data}) {
|
|
751
739
|
if (data && data.params) {
|
|
@@ -955,7 +943,6 @@ export default {
|
|
|
955
943
|
label: '小图下广告圆角设置:',
|
|
956
944
|
ele: 'xd-site-select-list',
|
|
957
945
|
valueKey: 'bottomRadius',
|
|
958
|
-
groupKey:'content',
|
|
959
946
|
value: params['bottomRadius'] || '20',
|
|
960
947
|
placeholder: '请选择广告圆角设置',
|
|
961
948
|
multiple: false,
|
|
@@ -974,7 +961,6 @@ export default {
|
|
|
974
961
|
label: '小图下广告位置使用张数:',
|
|
975
962
|
ele: 'el-input',
|
|
976
963
|
type: 'number',
|
|
977
|
-
groupKey:'content',
|
|
978
964
|
valueKey: 'bottomNumber',
|
|
979
965
|
value: params.bottomNumber || 1,
|
|
980
966
|
placeholder: '请输入广告位置使用张数',
|
|
@@ -991,7 +977,6 @@ export default {
|
|
|
991
977
|
{
|
|
992
978
|
label: '小图下广告位显示方式:',
|
|
993
979
|
ele: 'xd-radio',
|
|
994
|
-
groupKey:'content',
|
|
995
980
|
valueKey: 'bottomIsCarousel',
|
|
996
981
|
value: params['bottomIsCarousel'] || 1,
|
|
997
982
|
rules: [
|
|
@@ -1007,7 +992,6 @@ export default {
|
|
|
1007
992
|
ele: 'el-input',
|
|
1008
993
|
type: 'number',
|
|
1009
994
|
isKey: true,
|
|
1010
|
-
groupKey:'content',
|
|
1011
995
|
valueKey: 'bottomCarouselTime',
|
|
1012
996
|
value: params.bottomCarouselTime || 5,
|
|
1013
997
|
placeholder: '请输入广告位轮播周期,单位秒',
|
|
@@ -1022,11 +1006,10 @@ export default {
|
|
|
1022
1006
|
]
|
|
1023
1007
|
},
|
|
1024
1008
|
params['bottomIsCarousel'] === 2 && {
|
|
1025
|
-
label: '小图下广告显示dot类型:',
|
|
1026
|
-
ele: 'xd-select-list',
|
|
1027
|
-
valueKey: 'bottom_dot_type',
|
|
1028
|
-
|
|
1029
|
-
value: params['bottom_dot_type'] || 'dot',
|
|
1009
|
+
label: '小图下广告显示dot类型:', //label
|
|
1010
|
+
ele: 'xd-select-list', //package 名称
|
|
1011
|
+
valueKey: 'bottom_dot_type', //form[valueKey]
|
|
1012
|
+
value: params['bottom_dot_type'] || 'dot', //v-model
|
|
1030
1013
|
placeholder: '请选择广告显示dot类型',
|
|
1031
1014
|
multiple: false,
|
|
1032
1015
|
className: 'input80',
|
|
@@ -469,8 +469,7 @@ export default {
|
|
|
469
469
|
},
|
|
470
470
|
},
|
|
471
471
|
watch: {
|
|
472
|
-
container(value
|
|
473
|
-
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
472
|
+
container(value) {
|
|
474
473
|
this.init(value);
|
|
475
474
|
if(this.timer) clearTimeout(this.timer);
|
|
476
475
|
this.timer = setTimeout(()=>{
|
|
@@ -670,7 +669,12 @@ export default {
|
|
|
670
669
|
init(container) {
|
|
671
670
|
this.height = getContainerPropsValue(container, "content.height", "500");
|
|
672
671
|
// 获取最外面间距,如果没有则设置默认值
|
|
673
|
-
this.mS = getContainerPropsValue(container, "content.margin", {
|
|
672
|
+
this.mS = getContainerPropsValue(container, "content.margin", {
|
|
673
|
+
top: 0,
|
|
674
|
+
bottom: 0,
|
|
675
|
+
left: 0,
|
|
676
|
+
right: 0,
|
|
677
|
+
});
|
|
674
678
|
this.position = getContainerPropsValue(container, "content.position", 1);
|
|
675
679
|
// 获取大小图之间间距,如果没有则设置默认值
|
|
676
680
|
this.msMargin = getContainerPropsValue(container, "content.msMargin", 10);
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-poster-big-small {
|
|
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-poster-big-small {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/**endNotPreview**/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function getWidthHeight(height, mS
|
|
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;
|
|
@@ -8,15 +8,15 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
|
|
|
8
8
|
export default {
|
|
9
9
|
style:[],
|
|
10
10
|
content:(params)=>{
|
|
11
|
-
|
|
12
|
-
if (!params['
|
|
11
|
+
console.log('params',params);
|
|
12
|
+
if (!params['number']) params['number'] = 20;
|
|
13
|
+
if (!params['radius']) params['radius'] = '20';
|
|
13
14
|
return [
|
|
14
15
|
{
|
|
15
|
-
label: '入口配置:',
|
|
16
|
-
ele: 'xd-site-poster',
|
|
17
|
-
valueKey: 'entry',
|
|
16
|
+
label: '入口配置:', //label
|
|
17
|
+
ele: 'xd-site-poster', //package 名称
|
|
18
|
+
valueKey: 'entry', //form[valueKey]
|
|
18
19
|
className: 'input80',
|
|
19
|
-
groupKey: 'content',
|
|
20
20
|
value: params.entry || {
|
|
21
21
|
size: {height: null, width: null},
|
|
22
22
|
type: '1'
|
|
@@ -223,49 +223,21 @@ 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
|
-
},
|
|
247
|
-
{
|
|
248
|
-
label: '导航内容置使用张数:',
|
|
249
|
-
ele: 'el-input',
|
|
250
|
-
type: 'number',
|
|
251
|
-
valueKey: 'number',
|
|
252
|
-
value: params.number,
|
|
253
|
-
placeholder: '请输入导航内容置使用张数',
|
|
254
|
-
className: 'input60',
|
|
255
|
-
groupKey: 'content',
|
|
256
226
|
inline: false,
|
|
257
|
-
notice:'
|
|
227
|
+
notice: '',
|
|
228
|
+
rules: [
|
|
229
|
+
{required: true, message: '请选择广告位置', trigger: 'change'},
|
|
230
|
+
],
|
|
258
231
|
},
|
|
259
232
|
{
|
|
260
233
|
label: '内容间距设置:',
|
|
261
234
|
ele: 'el-input',
|
|
262
235
|
type: 'number',
|
|
263
236
|
valueKey: 'padding',
|
|
264
|
-
value: params.padding ||
|
|
265
|
-
className: '
|
|
266
|
-
groupKey: 'style',
|
|
237
|
+
value: params.padding || 0,
|
|
238
|
+
className: 'input40',
|
|
267
239
|
placeholder: '请设置内容间距',
|
|
268
|
-
notice: '在使用二分屏显示类型时,该属性生效,单位:像素(px
|
|
240
|
+
notice: '在使用二分屏显示类型时,该属性生效,单位:像素(px)',
|
|
269
241
|
inline: false,
|
|
270
242
|
},
|
|
271
243
|
{
|
|
@@ -273,13 +245,13 @@ export default {
|
|
|
273
245
|
ele: 'xd-margin-padding',
|
|
274
246
|
valueKey: 'margin',
|
|
275
247
|
value: params.margin || null,
|
|
276
|
-
|
|
248
|
+
disabled: false,
|
|
277
249
|
setting: {
|
|
278
250
|
type: 'margin',
|
|
279
251
|
},
|
|
280
252
|
placeholder: '请设置外边距',
|
|
281
253
|
inline: false,
|
|
282
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span
|
|
254
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:0像素',
|
|
283
255
|
},
|
|
284
256
|
{
|
|
285
257
|
label: '导航ICON圆角设置:',
|
|
@@ -288,7 +260,6 @@ export default {
|
|
|
288
260
|
value: params['radius'],
|
|
289
261
|
placeholder: '请选择导航ICON圆角设置',
|
|
290
262
|
multiple: false,
|
|
291
|
-
groupKey: 'style',
|
|
292
263
|
className: 'input80',
|
|
293
264
|
handleCustom({action, data}) {
|
|
294
265
|
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
@@ -300,6 +271,24 @@ export default {
|
|
|
300
271
|
});
|
|
301
272
|
},
|
|
302
273
|
},
|
|
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
|
+
|
|
303
292
|
].filter(i=>i)
|
|
304
293
|
},
|
|
305
294
|
advanced: [
|