jufubao-base 1.0.129 → 1.0.130-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 +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 +25 -7
- 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 +136 -142
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
- package/src/components/JfbBasePoster/MoreScreen.vue +2 -1
- package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +5 -8
- 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 +46 -50
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
- package/src/components/JfbBasePosterType/Attr.js +82 -48
- package/src/components/JfbBasePosterType/FourScreen.vue +41 -35
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +51 -73
- 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/JfbBaseSuccess.vue +20 -10
- 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
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
height: (height + rpxText) + 'px'
|
|
19
19
|
}"
|
|
20
20
|
>
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
<view :style="{ height: height + 'px', width:width}">
|
|
23
23
|
<view :style="{
|
|
24
24
|
borderRadius: config.radius + 'rpx',
|
|
25
|
-
boxShadow: config.shadow === 1? `0 0 8rpx
|
|
25
|
+
boxShadow: config.shadow === 1? `0 0 8rpx ${config.shadowColor}` : '',
|
|
26
26
|
}">
|
|
27
27
|
<image :src="item.image_url"></image>
|
|
28
28
|
</view>
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
v-for="it in item"
|
|
65
65
|
:key="it['content_id']"
|
|
66
66
|
:style="{
|
|
67
|
-
height:
|
|
67
|
+
height: boxHeight + 'px'
|
|
68
68
|
}"
|
|
69
69
|
@click="handleClick(it)"
|
|
70
70
|
>
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
<script>
|
|
90
90
|
import XdSwiperDot from "./XdSwiperDot";
|
|
91
91
|
import XdSwiper from "@/components/XdSwiper/XdSwiper";
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
export default {
|
|
94
94
|
components:{
|
|
95
95
|
XdSwiperDot,
|
|
@@ -126,6 +126,9 @@
|
|
|
126
126
|
rpxText(){
|
|
127
127
|
return this.$rpxNum * this.text
|
|
128
128
|
},
|
|
129
|
+
boxHeight(){
|
|
130
|
+
return this.height + this.$rpxNum * this.text;
|
|
131
|
+
}
|
|
129
132
|
},
|
|
130
133
|
watch: {
|
|
131
134
|
config() {
|
|
@@ -134,7 +137,7 @@
|
|
|
134
137
|
content() {
|
|
135
138
|
this.init();
|
|
136
139
|
},
|
|
137
|
-
|
|
140
|
+
|
|
138
141
|
},
|
|
139
142
|
created() {
|
|
140
143
|
this.isPreview = this.$configProject.isPreview;
|
|
@@ -150,7 +153,7 @@
|
|
|
150
153
|
this.width = this.config.width;
|
|
151
154
|
this.height = this.config.height;
|
|
152
155
|
this.padding = 0;
|
|
153
|
-
|
|
156
|
+
|
|
154
157
|
//静态图显示
|
|
155
158
|
if(this.config.isCarousel === false) {
|
|
156
159
|
this.list = this.content.filter((item,index)=>{
|
|
@@ -167,11 +170,12 @@
|
|
|
167
170
|
}
|
|
168
171
|
this.list = arr;
|
|
169
172
|
}
|
|
170
|
-
|
|
171
|
-
|
|
173
|
+
|
|
174
|
+
|
|
172
175
|
}, 100)
|
|
173
176
|
},
|
|
174
177
|
handleClick(item) {
|
|
178
|
+
debugger
|
|
175
179
|
//内部链接跳转地址
|
|
176
180
|
if (item.redirect_type === 'INN') {
|
|
177
181
|
try {
|
|
@@ -209,7 +213,7 @@
|
|
|
209
213
|
let url = JSON.parse(item.redirect_data);
|
|
210
214
|
if (reg.test(url.url)) {
|
|
211
215
|
console.warn(`广告跳转外站: ${url.url}`);
|
|
212
|
-
|
|
216
|
+
this.$xdUniHelper.navigateTo(url)
|
|
213
217
|
} else {
|
|
214
218
|
throw Error('地址错误')
|
|
215
219
|
}
|
|
@@ -228,7 +232,7 @@
|
|
|
228
232
|
.sreen {
|
|
229
233
|
width: calc(100% + 2px); /**防止宽度不够问**/
|
|
230
234
|
position: relative;
|
|
231
|
-
|
|
235
|
+
|
|
232
236
|
& .carousel-mask {
|
|
233
237
|
position: absolute;
|
|
234
238
|
left: 0;
|
|
@@ -236,24 +240,25 @@
|
|
|
236
240
|
top: 0;
|
|
237
241
|
bottom: 0;
|
|
238
242
|
background: rgba(0, 0, 0, 0);
|
|
239
|
-
|
|
243
|
+
|
|
240
244
|
}
|
|
241
|
-
|
|
245
|
+
|
|
242
246
|
&__box.notCarousel {
|
|
243
247
|
width: 100%;
|
|
244
248
|
display: flex;
|
|
245
249
|
justify-content: flex-start;
|
|
246
250
|
align-items: flex-start;
|
|
251
|
+
align-content: flex-start;
|
|
247
252
|
flex-wrap: wrap;
|
|
248
253
|
overflow: hidden;
|
|
249
|
-
|
|
254
|
+
|
|
250
255
|
//行
|
|
251
256
|
&.cell4 {
|
|
252
257
|
//图片+文字外框
|
|
253
258
|
& > view {
|
|
254
259
|
width: calc(100% / 4);
|
|
255
260
|
flex-shrink: 0;
|
|
256
|
-
|
|
261
|
+
|
|
257
262
|
//图片
|
|
258
263
|
& > view:first-child {
|
|
259
264
|
overflow: hidden;
|
|
@@ -275,7 +280,7 @@
|
|
|
275
280
|
}
|
|
276
281
|
}
|
|
277
282
|
}
|
|
278
|
-
|
|
283
|
+
|
|
279
284
|
& > view:last-child {
|
|
280
285
|
text-align: center;
|
|
281
286
|
line-height: unit(36, rpx);
|
|
@@ -284,16 +289,16 @@
|
|
|
284
289
|
overflow: hidden;
|
|
285
290
|
font-size: unit(24, rpx);
|
|
286
291
|
.uni-max-cut(1, 36);
|
|
287
|
-
|
|
292
|
+
|
|
288
293
|
}
|
|
289
294
|
}
|
|
290
295
|
}
|
|
291
|
-
|
|
296
|
+
|
|
292
297
|
&.cell5 {
|
|
293
298
|
& > view {
|
|
294
299
|
width: calc(100% / 5);
|
|
295
300
|
flex-shrink: 0;
|
|
296
|
-
|
|
301
|
+
|
|
297
302
|
//图片
|
|
298
303
|
& > view:first-child {
|
|
299
304
|
overflow: hidden;
|
|
@@ -301,7 +306,7 @@
|
|
|
301
306
|
justify-content: center;
|
|
302
307
|
align-items: center;
|
|
303
308
|
width: 100%;
|
|
304
|
-
|
|
309
|
+
|
|
305
310
|
& > view {
|
|
306
311
|
width: 80%;
|
|
307
312
|
height: 80%;
|
|
@@ -310,14 +315,14 @@
|
|
|
310
315
|
justify-content: center;
|
|
311
316
|
align-items: center;
|
|
312
317
|
overflow: hidden;
|
|
313
|
-
|
|
318
|
+
|
|
314
319
|
& > image {
|
|
315
320
|
width: 100%;
|
|
316
321
|
height: 100%;
|
|
317
322
|
}
|
|
318
323
|
}
|
|
319
324
|
}
|
|
320
|
-
|
|
325
|
+
|
|
321
326
|
& > view:last-child {
|
|
322
327
|
text-align: center;
|
|
323
328
|
line-height: unit(36, rpx);
|
|
@@ -330,7 +335,7 @@
|
|
|
330
335
|
}
|
|
331
336
|
}
|
|
332
337
|
}
|
|
333
|
-
|
|
338
|
+
|
|
334
339
|
&__box.carousel {
|
|
335
340
|
display: flex;
|
|
336
341
|
justify-content: flex-start;
|
|
@@ -338,21 +343,22 @@
|
|
|
338
343
|
flex-wrap: wrap;
|
|
339
344
|
overflow: hidden;
|
|
340
345
|
}
|
|
341
|
-
|
|
346
|
+
|
|
342
347
|
& .sreen__box-list {
|
|
343
348
|
display: flex;
|
|
344
349
|
justify-content: flex-start;
|
|
345
350
|
align-items: flex-start;
|
|
351
|
+
align-content: flex-start;
|
|
346
352
|
flex-wrap: wrap;
|
|
347
353
|
overflow: hidden;
|
|
348
|
-
|
|
354
|
+
|
|
349
355
|
//行
|
|
350
356
|
&.cell4 {
|
|
351
357
|
//图片+文字外框
|
|
352
358
|
& > view {
|
|
353
359
|
width: calc(100% / 4);
|
|
354
360
|
flex-shrink: 0;
|
|
355
|
-
|
|
361
|
+
|
|
356
362
|
//图片
|
|
357
363
|
& > view:first-child {
|
|
358
364
|
overflow: hidden;
|
|
@@ -360,7 +366,7 @@
|
|
|
360
366
|
justify-content: center;
|
|
361
367
|
align-items: center;
|
|
362
368
|
width: 100%;
|
|
363
|
-
|
|
369
|
+
|
|
364
370
|
& > view {
|
|
365
371
|
width: 75%;
|
|
366
372
|
height: 75%;
|
|
@@ -369,26 +375,26 @@
|
|
|
369
375
|
justify-content: center;
|
|
370
376
|
align-items: center;
|
|
371
377
|
overflow: hidden;
|
|
372
|
-
|
|
378
|
+
|
|
373
379
|
& > image {
|
|
374
380
|
width: 100%;
|
|
375
381
|
height: 100%;
|
|
376
382
|
}
|
|
377
383
|
}
|
|
378
384
|
}
|
|
379
|
-
|
|
385
|
+
|
|
380
386
|
& > view:last-child {
|
|
381
387
|
text-align: center;
|
|
382
388
|
line-height: 15px;
|
|
383
389
|
}
|
|
384
390
|
}
|
|
385
391
|
}
|
|
386
|
-
|
|
392
|
+
|
|
387
393
|
&.cell5 {
|
|
388
394
|
& > view {
|
|
389
395
|
width: calc(100% / 5);
|
|
390
396
|
flex-shrink: 0;
|
|
391
|
-
|
|
397
|
+
|
|
392
398
|
//图片
|
|
393
399
|
& > view:first-child {
|
|
394
400
|
overflow: hidden;
|
|
@@ -396,7 +402,7 @@
|
|
|
396
402
|
justify-content: center;
|
|
397
403
|
align-items: center;
|
|
398
404
|
width: 100%;
|
|
399
|
-
|
|
405
|
+
|
|
400
406
|
& > view {
|
|
401
407
|
width: 80%;
|
|
402
408
|
height: 80%;
|
|
@@ -405,14 +411,14 @@
|
|
|
405
411
|
justify-content: center;
|
|
406
412
|
align-items: center;
|
|
407
413
|
overflow: hidden;
|
|
408
|
-
|
|
414
|
+
|
|
409
415
|
& > image {
|
|
410
416
|
width: 100%;
|
|
411
417
|
height: 100%;
|
|
412
418
|
}
|
|
413
419
|
}
|
|
414
420
|
}
|
|
415
|
-
|
|
421
|
+
|
|
416
422
|
& > view:last-child {
|
|
417
423
|
text-align: center;
|
|
418
424
|
line-height: unit(36, rpx);
|
|
@@ -425,6 +431,6 @@
|
|
|
425
431
|
}
|
|
426
432
|
}
|
|
427
433
|
}
|
|
428
|
-
|
|
429
|
-
|
|
434
|
+
|
|
435
|
+
|
|
430
436
|
</style>
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
<view class="jfb-base-poster-type__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
|
-
|
|
16
|
+
<view class="jfb-base-poster-type__body" v-if="noData">
|
|
17
|
+
<view class="x-line"></view>
|
|
18
|
+
<view
|
|
19
|
+
class="jfb-base-poster-cont"
|
|
20
|
+
:style="{
|
|
21
|
+
margin: margin,
|
|
22
|
+
backgroundColor: bgColor,
|
|
23
|
+
borderRadius: bgRadius + 'rpx'
|
|
24
|
+
}"
|
|
25
|
+
>
|
|
26
|
+
<four-screen :config="getConfig" :content="info"></four-screen>
|
|
27
|
+
</view>
|
|
28
|
+
|
|
29
29
|
</view>
|
|
30
30
|
</view>
|
|
31
31
|
</template>
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
import getServiceUrl from '@/common/getServiceUrl'
|
|
42
42
|
import XdImage from "@/components/XdImage/XdImage";
|
|
43
43
|
import XdSwiper from "@/components/XdSwiper/XdSwiper";
|
|
44
|
-
import Screen from "./Screen";
|
|
45
44
|
import FourScreen from "./FourScreen";
|
|
46
45
|
import XdSwiperDot from "./XdSwiperDot";
|
|
47
46
|
export default {
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
XdFontIcon,
|
|
51
50
|
XdImage,
|
|
52
51
|
XdSwiper,
|
|
53
|
-
Screen,
|
|
54
52
|
FourScreen,
|
|
55
53
|
XdSwiperDot
|
|
56
54
|
},
|
|
@@ -69,42 +67,18 @@
|
|
|
69
67
|
jdRows: 1, //行
|
|
70
68
|
cells: 4, //列
|
|
71
69
|
shadow: false, //是否设置阴影
|
|
70
|
+
shadowColor:'rgba(0,0,0,.3)',
|
|
72
71
|
radius: '20', //10/20/40 , 小/中/大
|
|
73
72
|
timer: null,
|
|
74
73
|
info: [],
|
|
75
|
-
mS: {
|
|
76
|
-
top: 0,
|
|
77
|
-
bottom: 0,
|
|
78
|
-
left: 0,
|
|
79
|
-
right: 0
|
|
80
|
-
},
|
|
74
|
+
mS: {},
|
|
81
75
|
isPreview: false,
|
|
82
76
|
noData:false,
|
|
83
|
-
|
|
77
|
+
|
|
84
78
|
//颜色设置
|
|
85
79
|
textColor: '#333',
|
|
86
80
|
bgColor:'rgba(0,0,0,0)',
|
|
87
81
|
bgRadius: 0,
|
|
88
|
-
|
|
89
|
-
test: {
|
|
90
|
-
"content_id": "KpBbUKdj4aBejwe7Fh1ki",
|
|
91
|
-
"position_id": "QCk3PmoyQmOWRP1SxnYR3",
|
|
92
|
-
"partner_id": 0,
|
|
93
|
-
"site_id": "",
|
|
94
|
-
"content_name": "测试.",
|
|
95
|
-
"image_url": "//dummyimage.com/200x200",
|
|
96
|
-
"redirect_type": "EMP",
|
|
97
|
-
"redirect_type_name": "无链接",
|
|
98
|
-
"redirect_data": "",
|
|
99
|
-
"sort": "",
|
|
100
|
-
"status": "",
|
|
101
|
-
"start_time": "",
|
|
102
|
-
"end_time": "",
|
|
103
|
-
"op_user_id": "",
|
|
104
|
-
"created_time": 0,
|
|
105
|
-
"updated_time": 0
|
|
106
|
-
}
|
|
107
|
-
|
|
108
82
|
}
|
|
109
83
|
},
|
|
110
84
|
computed: {
|
|
@@ -124,18 +98,24 @@
|
|
|
124
98
|
jdRows: this.jdRows,
|
|
125
99
|
cells: this.cells,
|
|
126
100
|
shadow: this.shadow,
|
|
101
|
+
shadowColor: this.shadowColor,
|
|
127
102
|
textColor: this.textColor,
|
|
128
103
|
}
|
|
129
104
|
},
|
|
130
105
|
margin(){
|
|
131
|
-
|
|
106
|
+
let str = `${this.checkValue(this.mS.top, 0)}rpx`;
|
|
107
|
+
str = `${str} ${this.checkValue(this.mS.right, 0)}rpx`;
|
|
108
|
+
str = `${str} ${this.checkValue(this.mS.bottom, 0)}rpx`;
|
|
109
|
+
str = `${str} ${this.checkValue(this.mS.left, 0)}rpx`;
|
|
110
|
+
return str
|
|
132
111
|
},
|
|
133
112
|
dotStyleData() {
|
|
134
113
|
return {}
|
|
135
114
|
}
|
|
136
115
|
},
|
|
137
116
|
watch: {
|
|
138
|
-
container(value) {
|
|
117
|
+
container(value,oloValue) {
|
|
118
|
+
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
139
119
|
this.init(value);
|
|
140
120
|
if(this.timer) clearTimeout(this.timer);
|
|
141
121
|
this.timer = setTimeout(()=>{
|
|
@@ -180,7 +160,7 @@
|
|
|
180
160
|
if (url === '') {
|
|
181
161
|
return;
|
|
182
162
|
}
|
|
183
|
-
|
|
163
|
+
|
|
184
164
|
if(url.indexOf('?') === -1) url = `${url}?vs=${new Date().getTime()}`;
|
|
185
165
|
else url = `${url}&vs=${new Date().getTime()}`;
|
|
186
166
|
this.$xdUniHelper.navigateTo({url})
|
|
@@ -196,41 +176,36 @@
|
|
|
196
176
|
},
|
|
197
177
|
handleOne(list){
|
|
198
178
|
this.info = this.handleImage(list);
|
|
199
|
-
console.log('this.info',this.info)
|
|
200
|
-
},
|
|
201
|
-
getDefualtValue(key){
|
|
202
|
-
if (key === 'margin') {
|
|
203
|
-
return {top: 0, bottom: 0, left: 0, right: 0}
|
|
204
|
-
}
|
|
205
179
|
},
|
|
206
|
-
|
|
180
|
+
|
|
207
181
|
/**
|
|
208
182
|
* @description 监听事件变化
|
|
209
183
|
* @param container {object} 业务组件对象自己
|
|
210
184
|
*/
|
|
211
185
|
init(container) {
|
|
212
186
|
this.radius = getContainerPropsValue(container, 'content.radius', '20');
|
|
213
|
-
this.padding = 0;
|
|
214
187
|
this.poster = getContainerPropsValue(container, 'content.nav', {});
|
|
215
188
|
if (this.poster.position) {
|
|
216
189
|
this.posterPosition = this.poster.position
|
|
217
190
|
}
|
|
218
191
|
this.jdRows = getContainerPropsValue(container, 'content.jdRows', 1);
|
|
219
192
|
this.cells = getContainerPropsValue(container, 'content.cells', 4);
|
|
220
|
-
|
|
193
|
+
|
|
221
194
|
//content
|
|
222
195
|
this.mode = getContainerPropsValue(container, 'content.dot_type', 'dot');
|
|
223
196
|
this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1) === 2;
|
|
224
197
|
this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
|
|
225
198
|
this.useNumber = getContainerPropsValue(container, 'content.number', 1);
|
|
226
199
|
this.shadow = getContainerPropsValue(container, 'content.shadow', 2);
|
|
227
|
-
this.
|
|
228
|
-
|
|
200
|
+
this.shadowColor = getContainerPropsValue(container, 'content.shadowColor', 'rgba(0,0,0,.3)');
|
|
201
|
+
this.mS = getContainerPropsValue(container, 'content.margin', {});
|
|
202
|
+
|
|
229
203
|
//样式设置
|
|
230
204
|
this.textColor = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
231
205
|
this.bgColor = getContainerPropsValue(container, 'content.bgColor','rgba(0,0,0,0)');
|
|
232
206
|
this.bgRadius = getContainerPropsValue(container, 'content.bgRadius', '0');
|
|
233
|
-
|
|
207
|
+
|
|
208
|
+
|
|
234
209
|
},
|
|
235
210
|
|
|
236
211
|
onJfbLoad(options) {
|
|
@@ -246,9 +221,10 @@
|
|
|
246
221
|
})
|
|
247
222
|
.then(res => {
|
|
248
223
|
if (res.list.length === 0 && this.isPreview) {
|
|
224
|
+
let testData = this.$xdUniHelper.cloneDeep(this['posterTest']);
|
|
249
225
|
let temp = [];
|
|
250
226
|
for (let i = 0; i < this.useNumber; i++) {
|
|
251
|
-
temp.push({...
|
|
227
|
+
temp.push({...testData, content_id: i, content_name: `${testData.content_name}(${i})`})
|
|
252
228
|
}
|
|
253
229
|
res.list = temp
|
|
254
230
|
}
|
|
@@ -259,12 +235,11 @@
|
|
|
259
235
|
console.error(error)
|
|
260
236
|
})
|
|
261
237
|
},
|
|
262
|
-
|
|
263
|
-
|
|
238
|
+
|
|
264
239
|
onJfbUpdate(data){
|
|
265
240
|
this.onJfbLoad(this.params);
|
|
266
241
|
}
|
|
267
|
-
|
|
242
|
+
|
|
268
243
|
}
|
|
269
244
|
}
|
|
270
245
|
|
|
@@ -275,11 +250,14 @@
|
|
|
275
250
|
|
|
276
251
|
.jfb-base-poster-type {
|
|
277
252
|
&__body{
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
253
|
+
& > view.jfb-base-poster-cont {
|
|
254
|
+
box-sizing: border-box;
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
align-items: center;
|
|
258
|
+
display: flex;
|
|
259
|
+
}
|
|
260
|
+
|
|
283
261
|
}
|
|
284
262
|
&__one.notCarousel {
|
|
285
263
|
position: relative;
|
|
@@ -288,19 +266,19 @@
|
|
|
288
266
|
justify-content: center;
|
|
289
267
|
align-items: center;
|
|
290
268
|
overflow: hidden;
|
|
291
|
-
|
|
292
|
-
|
|
269
|
+
|
|
270
|
+
|
|
293
271
|
& > view {
|
|
294
272
|
width: 100%;
|
|
295
273
|
height: 100%;
|
|
296
274
|
box-sizing: border-box;
|
|
297
|
-
|
|
275
|
+
|
|
298
276
|
& > image {
|
|
299
|
-
|
|
277
|
+
|
|
300
278
|
}
|
|
301
279
|
}
|
|
302
280
|
}
|
|
303
|
-
|
|
281
|
+
|
|
304
282
|
&__one.carousel {
|
|
305
283
|
position: relative;
|
|
306
284
|
box-sizing: border-box;
|
|
@@ -308,7 +286,7 @@
|
|
|
308
286
|
justify-content: center;
|
|
309
287
|
align-items: center;
|
|
310
288
|
overflow: hidden;
|
|
311
|
-
|
|
289
|
+
|
|
312
290
|
& .carousel-mask {
|
|
313
291
|
position: absolute;
|
|
314
292
|
left: 0;
|
|
@@ -318,6 +296,6 @@
|
|
|
318
296
|
background: rgba(0,0,0,0);
|
|
319
297
|
}
|
|
320
298
|
}
|
|
321
|
-
|
|
299
|
+
|
|
322
300
|
}
|
|
323
301
|
</style>
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-poster-type {
|
|
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-type {
|
|
75
|
-
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
79
78
|
}
|
|
80
79
|
/**endNotPreview**/
|