jufubao-base 1.0.132-beta1 → 1.0.132-beta2
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 +76 -34
- 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/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/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/Attr.js +86 -67
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +3 -2
- 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 +19 -15
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
- package/src/components/JfbBaseCardV3/Attr.js +16 -12
- 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/{JfbBaseWalletDetail → JfbBaseClear}/Attr.js +1 -0
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
- package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
- package/src/components/JfbBaseConDialog/Api.js +1 -1
- 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/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/Attr.js +111 -88
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -1
- 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 +6 -3
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
- package/src/components/JfbBaseOrderList/Attr.js +55 -43
- 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 +44 -33
- 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 +78 -17
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
- 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 +118 -92
- 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/JfbBaseWalletLess.less +18 -19
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
- package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +32 -26
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
- package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
- 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
|
@@ -13,82 +13,77 @@
|
|
|
13
13
|
<view class="jfb-base-poster__edit-icon" @click="delEdit">删除</view>
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
|
-
<view
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
16
|
+
<view class="jfb-base-poster__body" v-if="noData">
|
|
17
|
+
<view class="x-line"></view>
|
|
18
|
+
|
|
19
|
+
<view class="jfb-base-poster-cont" :style="getBodyStyle">
|
|
20
|
+
<!--一分屏-->
|
|
21
|
+
<template v-if="posterType === '1'">
|
|
22
|
+
<view
|
|
23
|
+
v-if="isCarousel === 1"
|
|
24
|
+
class="jfb-base-poster__one notCarousel"
|
|
25
|
+
:style="{
|
|
26
|
+
width: getOneWidth + 'rpx',
|
|
27
|
+
}"
|
|
28
|
+
>
|
|
29
|
+
<view
|
|
30
|
+
:style="{
|
|
31
|
+
width: getOneWidth + 'rpx',
|
|
32
|
+
height: getOneHeight + 'rpx',
|
|
33
|
+
borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
|
|
34
|
+
marginBottom: padding + 'rpx'
|
|
35
|
+
}"
|
|
36
|
+
@click="handleClick(item)"
|
|
37
|
+
v-for="(item,index) in info"
|
|
38
|
+
:key="index"
|
|
39
|
+
>
|
|
40
|
+
<image :src="item.image_url" mode="aspectFill"></image>
|
|
41
|
+
</view>
|
|
42
|
+
</view>
|
|
43
|
+
<view
|
|
44
|
+
v-else
|
|
45
|
+
class="jfb-base-poster__one carousel"
|
|
38
46
|
:style="{
|
|
39
|
-
|
|
40
|
-
height:
|
|
47
|
+
width: getOneWidth + 'rpx',
|
|
48
|
+
height: getOneHeight + 'rpx',
|
|
41
49
|
borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
|
|
42
|
-
marginBottom: padding + 'rpx'
|
|
43
50
|
}"
|
|
44
|
-
@click="handleClick(item)"
|
|
45
|
-
v-for="(item,index) in info"
|
|
46
|
-
:key="index"
|
|
47
51
|
>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<view v-if="isPreview" class="carousel-mask"></view>
|
|
84
|
-
</view>
|
|
85
|
-
</template>
|
|
86
|
-
<!--一分屏-->
|
|
87
|
-
<more-screen
|
|
88
|
-
v-if="posterType !== '1'"
|
|
89
|
-
:config="getConfig"
|
|
90
|
-
:content="info"
|
|
91
|
-
></more-screen>
|
|
52
|
+
<xd-swiper-dot
|
|
53
|
+
v-if="pageSwiperShow"
|
|
54
|
+
:current="current"
|
|
55
|
+
:info="info"
|
|
56
|
+
field="content_name"
|
|
57
|
+
:mode="mode"
|
|
58
|
+
:dots-styles="dotStyleData"
|
|
59
|
+
>
|
|
60
|
+
<xd-swiper
|
|
61
|
+
:indicator-dots="false"
|
|
62
|
+
:list="info"
|
|
63
|
+
:current="current"
|
|
64
|
+
:width=" getOneWidth + 'rpx'"
|
|
65
|
+
:height="getOneHeight + 'rpx'"
|
|
66
|
+
:interval="carouselTime"
|
|
67
|
+
@onClickItem="handleClick"
|
|
68
|
+
@animationfinish="handleAnimationfinish"
|
|
69
|
+
>
|
|
70
|
+
<template slot-scope="{ item, index}">
|
|
71
|
+
<image :src="item['image_url']" mode="aspectFill"></image>
|
|
72
|
+
</template>
|
|
73
|
+
</xd-swiper>
|
|
74
|
+
</xd-swiper-dot>
|
|
75
|
+
<view v-if="isPreview" class="carousel-mask"></view>
|
|
76
|
+
</view>
|
|
77
|
+
</template>
|
|
78
|
+
<!--一分屏-->
|
|
79
|
+
<!--多分屏-->
|
|
80
|
+
<more-screen
|
|
81
|
+
v-if="posterType !== '1'"
|
|
82
|
+
:config="getConfig"
|
|
83
|
+
:content="info"
|
|
84
|
+
></more-screen>
|
|
85
|
+
<!--多分屏-->
|
|
86
|
+
</view>
|
|
92
87
|
</view>
|
|
93
88
|
<!--解决图片缓冲预加载问题-->
|
|
94
89
|
<view v-for="(item,index) in info" :key="index" style="position: absolute; top: -19999px; left: -100000px">
|
|
@@ -145,49 +140,47 @@
|
|
|
145
140
|
rows: 1, //四分屏起作用
|
|
146
141
|
radius: 0,
|
|
147
142
|
timer: null,
|
|
148
|
-
isSupport: '
|
|
143
|
+
isSupport: 'N',
|
|
149
144
|
currentImage: '',
|
|
150
145
|
info: [],
|
|
151
|
-
mS: {
|
|
152
|
-
|
|
153
|
-
bottom: 0,
|
|
154
|
-
left: 0,
|
|
155
|
-
right: 0
|
|
156
|
-
},
|
|
146
|
+
mS: {},//边距
|
|
147
|
+
bgImagePadding:{},//填充
|
|
157
148
|
isPreview: false,
|
|
158
149
|
noData:false,
|
|
159
150
|
background: '',
|
|
160
|
-
|
|
161
|
-
test: {
|
|
162
|
-
"content_id": "KpBbUKdj4aBejwe7Fh1ki",
|
|
163
|
-
"position_id": "QCk3PmoyQmOWRP1SxnYR3",
|
|
164
|
-
"partner_id": 0,
|
|
165
|
-
"site_id": "",
|
|
166
|
-
"content_name": "测试.",
|
|
167
|
-
"image_url": "//dummyimage.com/200x200",
|
|
168
|
-
"redirect_type": "EMP",
|
|
169
|
-
"redirect_type_name": "无链接",
|
|
170
|
-
"redirect_data": "",
|
|
171
|
-
"sort": "",
|
|
172
|
-
"status": "",
|
|
173
|
-
"start_time": "",
|
|
174
|
-
"end_time": "",
|
|
175
|
-
"op_user_id": "",
|
|
176
|
-
"created_time": 0,
|
|
177
|
-
"updated_time": 0
|
|
178
|
-
}
|
|
179
151
|
}
|
|
180
152
|
},
|
|
181
153
|
computed: {
|
|
154
|
+
getBodyStyle(){
|
|
155
|
+
let image = {};
|
|
156
|
+
if(this.background) image = {
|
|
157
|
+
backgroundImage: `url(${this.getBgImage})`,
|
|
158
|
+
backgroundSize: '100%',
|
|
159
|
+
backgroundRepeat: 'no-repeat',
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
...image,
|
|
163
|
+
margin: this.margin,
|
|
164
|
+
padding: this.outPadding
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
getOneWidth(){
|
|
168
|
+
let margin = this.checkValue(this.mS.left, 0) + this.checkValue(this.mS.right, 0);
|
|
169
|
+
let padding = this.checkValue(this.bgImagePadding.left, 20) + this.checkValue(this.bgImagePadding.right, 20);
|
|
170
|
+
return 750 - (margin + padding);
|
|
171
|
+
},
|
|
172
|
+
getOneHeight(){
|
|
173
|
+
return this.getOneWidth * this.height / this.width
|
|
174
|
+
},
|
|
182
175
|
getConfig(){
|
|
183
176
|
let cell = this.posterType === '2' ? 2: (this.posterType === '3' ? 3 : 4);
|
|
184
177
|
let spacing = Math.floor((cell - 1) * this.padding * this.$rpxNum);
|
|
185
|
-
let
|
|
186
|
-
if(this.background === 'none' || this.$xdUniHelper.isEmpty(this.background))
|
|
187
|
-
let addPadding = (
|
|
188
|
-
|
|
189
|
-
let
|
|
190
|
-
|
|
178
|
+
let paddingDefault = 0;
|
|
179
|
+
if(this.background === 'none' || this.background === '' || this.$xdUniHelper.isEmpty(this.background)) paddingDefault = 20;
|
|
180
|
+
let addPadding = this.checkValue(this.bgImagePadding.right, paddingDefault) + this.checkValue(this.bgImagePadding.left, paddingDefault);
|
|
181
|
+
addPadding = addPadding * this.$rpxNum;
|
|
182
|
+
let margin = (this.checkValue(this.mS.right, 0) + this.checkValue(this.mS.left, 0)) * this.$rpxNum;
|
|
183
|
+
let viewWidth = uni.getSystemInfoSync().safeArea.width -margin - addPadding - spacing;
|
|
191
184
|
let width = Math.floor(viewWidth / cell);
|
|
192
185
|
let height = this.height * width / this.width;
|
|
193
186
|
return {
|
|
@@ -206,8 +199,27 @@
|
|
|
206
199
|
}
|
|
207
200
|
},
|
|
208
201
|
margin(){
|
|
209
|
-
|
|
202
|
+
let str = `${this.checkValue(this.mS.top, 0)}rpx`;
|
|
203
|
+
str = `${str} ${this.checkValue(this.mS.right, 0)}rpx`;
|
|
204
|
+
str = `${str} ${this.checkValue(this.mS.bottom, 0)}rpx`;
|
|
205
|
+
str = `${str} ${this.checkValue(this.mS.left, 0)}rpx`;
|
|
206
|
+
return str;
|
|
210
207
|
},
|
|
208
|
+
outPadding(){
|
|
209
|
+
try {
|
|
210
|
+
let defaultvalue = 0;
|
|
211
|
+
if(!this.background || this.background === 'none' || this.$xdUniHelper.isEmpty(this.background)) defaultvalue = 20;
|
|
212
|
+
if(this.posterType === '1') defaultvalue = 20;
|
|
213
|
+
let str = `${this.checkValue(this.bgImagePadding.top, defaultvalue)}rpx`;
|
|
214
|
+
str = `${str} ${this.checkValue(this.bgImagePadding.right, defaultvalue)}rpx`;
|
|
215
|
+
str = `${str} ${this.checkValue(this.bgImagePadding.bottom, defaultvalue)}rpx`;
|
|
216
|
+
str = `${str} ${this.checkValue(this.bgImagePadding.left,defaultvalue)}rpx`;
|
|
217
|
+
return str;
|
|
218
|
+
} catch (error) {
|
|
219
|
+
return 0
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
},
|
|
211
223
|
getMode(){
|
|
212
224
|
let mode = this.mode;
|
|
213
225
|
if (this.posterType !== '1') {
|
|
@@ -221,9 +233,7 @@
|
|
|
221
233
|
dotStyleData(){
|
|
222
234
|
let alpha = 1;
|
|
223
235
|
if(this.posterType === '1') alpha = 0.6;
|
|
224
|
-
|
|
225
236
|
let selectedColor = `rgba(${color(this.mainColor).alpha(alpha).array().join(',')})`;
|
|
226
|
-
console.log('selectedColor',selectedColor, this.mode, this.posterType);
|
|
227
237
|
let style = {
|
|
228
238
|
dot: {
|
|
229
239
|
backgroundColor: 'rgba(166,166,166,.5)',
|
|
@@ -282,24 +292,11 @@
|
|
|
282
292
|
}
|
|
283
293
|
return bg
|
|
284
294
|
},
|
|
285
|
-
outPadding(){
|
|
286
|
-
try {
|
|
287
|
-
let defaultvalue = 0;
|
|
288
|
-
if(this.background === 'none' || this.$xdUniHelper.isEmpty(this.background)) defaultvalue = 20
|
|
289
|
-
console.log(this.bgImagePadding,'this.paddingthis.paddingthis.padding');
|
|
290
|
-
let padding = `${this.bgImagePadding.top !== null ? this.bgImagePadding.top : defaultvalue}rpx`;
|
|
291
|
-
padding = `${padding} ${this.bgImagePadding.right !== null ? this.bgImagePadding.right : defaultvalue}rpx`;
|
|
292
|
-
padding = `${padding} ${this.bgImagePadding.bottom !== null ? this.bgImagePadding.bottom : defaultvalue}rpx`;
|
|
293
|
-
padding = `${padding} ${this.bgImagePadding.left !== null ? this.bgImagePadding.left : defaultvalue}rpx`;
|
|
294
|
-
return padding;
|
|
295
|
-
} catch (error) {
|
|
296
|
-
console.log(error,'amamamam');
|
|
297
|
-
}
|
|
298
295
|
|
|
299
|
-
},
|
|
300
296
|
},
|
|
301
297
|
watch: {
|
|
302
|
-
container(value) {
|
|
298
|
+
container(value, oloValue) {
|
|
299
|
+
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
303
300
|
this.init(value);
|
|
304
301
|
if(this.timer) clearTimeout(this.timer);
|
|
305
302
|
this.timer = setTimeout(()=>{
|
|
@@ -351,7 +348,7 @@
|
|
|
351
348
|
getTestData(){
|
|
352
349
|
let temp = [];
|
|
353
350
|
for (let i = 0; i< this.useNumber; i++) {
|
|
354
|
-
let item = this.$xdUniHelper.cloneDeep(this
|
|
351
|
+
let item = this.$xdUniHelper.cloneDeep(this['posterTest']);
|
|
355
352
|
item.content_id = i;
|
|
356
353
|
item.content_name = item.content_name + i;
|
|
357
354
|
item.image_url = `//dummyimage.com/${this.width}x${this.height}`;
|
|
@@ -360,11 +357,8 @@
|
|
|
360
357
|
return temp
|
|
361
358
|
},
|
|
362
359
|
handleAnimationfinish(e) {
|
|
363
|
-
|
|
364
|
-
|
|
365
360
|
//不支持背景不处理
|
|
366
361
|
if(this.isSupport==='N') return;
|
|
367
|
-
|
|
368
362
|
console.warn(`handleAnimationfinish.start`)
|
|
369
363
|
this.pageSwiperShow = this.$root.$isShow;
|
|
370
364
|
|
|
@@ -456,11 +450,6 @@
|
|
|
456
450
|
this.currentImage = this.info[current]['image_background_url']
|
|
457
451
|
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
458
452
|
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
getDefualtValue(key){
|
|
462
|
-
if (key === 'margin') {
|
|
463
|
-
return {top: 0, bottom: 0, left: 0, right: 0}
|
|
464
453
|
}
|
|
465
454
|
},
|
|
466
455
|
|
|
@@ -476,17 +465,18 @@
|
|
|
476
465
|
if(this.poster.position) {
|
|
477
466
|
this.posterPosition = this.poster.position
|
|
478
467
|
}
|
|
468
|
+
this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
|
|
479
469
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
480
470
|
this.padding = getContainerPropsValue(container, 'content.padding', 0);
|
|
481
471
|
this.rows = getContainerPropsValue(container, 'content.rows', 1);
|
|
482
|
-
this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
|
|
483
|
-
this.mS = getContainerPropsValue(container, 'content.margin',
|
|
484
|
-
this.background = getContainerPropsValue(container, "content.background", '
|
|
485
|
-
this.bgImagePadding = getContainerPropsValue(container, 'content.bgImagePadding', {
|
|
472
|
+
if(this.posterType === '1' && this.isCarousel === 2) this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
|
|
473
|
+
this.mS = getContainerPropsValue(container, 'content.margin', {});
|
|
474
|
+
this.background = getContainerPropsValue(container, "content.background", '');
|
|
475
|
+
this.bgImagePadding = getContainerPropsValue(container, 'content.bgImagePadding', {});
|
|
486
476
|
//content
|
|
487
477
|
|
|
488
478
|
this.mode = getContainerPropsValue(container, 'content.dot_type', 'dot');
|
|
489
|
-
|
|
479
|
+
|
|
490
480
|
this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
|
|
491
481
|
this.useNumber = getContainerPropsValue(container, 'content.number', 1);
|
|
492
482
|
|
|
@@ -571,11 +561,14 @@
|
|
|
571
561
|
|
|
572
562
|
.jfb-base-poster {
|
|
573
563
|
&__body{
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
564
|
+
& > view.jfb-base-poster-cont {
|
|
565
|
+
box-sizing: border-box;
|
|
566
|
+
overflow: hidden;
|
|
567
|
+
justify-content: center;
|
|
568
|
+
align-items: center;
|
|
569
|
+
display: flex;
|
|
570
|
+
}
|
|
571
|
+
|
|
579
572
|
}
|
|
580
573
|
&__one.notCarousel {
|
|
581
574
|
position: relative;
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-poster {
|
|
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 {
|
|
75
|
-
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
79
78
|
}
|
|
80
79
|
/**endNotPreview**/
|