jufubao-base 1.0.21 → 1.0.23-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/commands.all.js +78 -0
- package/commands.js +60 -23
- package/commands.update.change.js +103 -0
- package/get.package.path.js +2 -2
- package/get.package.path.js.tpl +2 -2
- package/package.json +12 -8
- package/src/ICONS.js +1128 -0
- package/src/common/ICB.SDK.js +78 -0
- package/src/common/authorize.js +418 -27
- package/src/common/getBusinessImageUrl.js +4 -1
- package/src/common/getServiceUrl.js +38 -0
- package/src/common/paysdk/jweixin.js +98 -0
- package/src/components/JfbBaseAddress/Api.js +129 -0
- package/src/components/JfbBaseAddress/Attr.js +137 -0
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +802 -0
- package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +79 -0
- package/src/components/JfbBaseAddress/JfbBaseAddressMixin.js +30 -0
- package/src/components/JfbBaseAddress/Mock.js +127 -0
- package/src/components/JfbBaseAddress/XdAddress.vue +703 -0
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseAfterOrderDetail/Api.js +25 -0
- package/src/components/JfbBaseAfterOrderDetail/Attr.js +156 -0
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +433 -0
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +79 -0
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailMixin.js +30 -0
- package/src/components/JfbBaseAfterOrderDetail/Mock.js +51 -0
- package/src/components/JfbBaseAfterOrderList/Api.js +3 -39
- package/src/components/JfbBaseAfterOrderList/Attr.js +166 -146
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +359 -146
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +30 -8
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListMixin.js +3 -195
- package/src/components/JfbBaseAfterOrderList/Mock.js +448 -0
- package/src/components/JfbBaseBack/Attr.js +14 -0
- package/src/components/JfbBaseBack/JfbBaseBack.vue +150 -0
- package/src/components/{JfbBaseCardMy/JfbBaseCardMyLess.less → JfbBaseBack/JfbBaseBackLess.less} +31 -9
- package/src/components/JfbBaseBack/JfbBaseBackMixin.js +30 -0
- package/src/components/JfbBaseBackground/Api.js +19 -0
- package/src/components/JfbBaseBackground/Attr.js +224 -0
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +113 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +79 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundMixin.js +30 -0
- package/src/components/JfbBaseBlock/Attr.js +26 -37
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +17 -33
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +30 -8
- package/src/components/JfbBaseBlock/JfbBaseBlockMixin.js +3 -195
- package/src/components/JfbBaseBottomNotice/Attr.js +106 -0
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNotice.vue +105 -0
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +79 -0
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeMixin.js +30 -0
- package/src/components/JfbBaseBottomNotice/Mock.js +5 -0
- package/src/components/JfbBaseCard/Api.js +17 -2
- package/src/components/JfbBaseCard/Attr.js +465 -139
- package/src/components/JfbBaseCard/JfbBaseCard.vue +814 -318
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +30 -8
- package/src/components/JfbBaseCard/JfbBaseCardMixin.js +3 -195
- package/src/components/JfbBaseCard/Mock.js +114 -0
- package/src/components/JfbBaseCardBind/Attr.js +34 -147
- package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +139 -106
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +30 -8
- package/src/components/JfbBaseCardBind/JfbBaseCardBindMixin.js +3 -195
- package/src/components/JfbBaseCardBindV2/Api.js +37 -0
- package/src/components/JfbBaseCardBindV2/Attr.js +25 -0
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +298 -0
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +79 -0
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Mixin.js +30 -0
- package/src/components/JfbBaseCardBindV2/Mock.js +5 -0
- package/src/components/JfbBaseCardDelay/Api.js +47 -0
- package/src/components/JfbBaseCardDelay/Attr.js +260 -0
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +312 -0
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelayLess.less +79 -0
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelayMixin.js +30 -0
- package/src/components/JfbBaseCardDelay/Mock.js +13 -0
- package/src/components/JfbBaseCardDetail/Api.js +3 -3
- package/src/components/JfbBaseCardDetail/Attr.js +17 -147
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +517 -467
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +30 -8
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailMixin.js +3 -195
- package/src/components/JfbBaseCardDetail/Mock.js +6 -0
- package/src/components/JfbBaseCardDetail/XdEditPwd.vue +299 -0
- package/src/components/JfbBaseCardDetail/XdPwPay.vue +214 -0
- package/src/components/JfbBaseCardDetailEntry/Api.js +58 -0
- package/src/components/JfbBaseCardDetailEntry/Attr.js +66 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +979 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +79 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryMixin.js +30 -0
- package/src/components/JfbBaseCardDetailEntry/Mock.js +6 -0
- package/src/components/JfbBaseCardDetailEntry/XdEditPwd.vue +299 -0
- package/src/components/JfbBaseCardDetailEntry/XdPwPay.vue +214 -0
- package/src/components/JfbBaseCardDisabled/Api.js +34 -0
- package/src/components/JfbBaseCardDisabled/Attr.js +12 -0
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +324 -0
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +79 -0
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledMixin.js +30 -0
- package/src/components/JfbBaseCardDisabled/Mock.js +370 -0
- package/src/components/JfbBaseCardDisabledEntry/Api.js +39 -0
- package/src/components/JfbBaseCardDisabledEntry/Attr.js +14 -0
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +668 -0
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +79 -0
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryMixin.js +30 -0
- package/src/components/JfbBaseCardDisabledEntry/Mock.js +226 -0
- package/src/components/JfbBaseCardDisabledEntry/cardListMixins.js +157 -0
- package/src/components/JfbBaseCardEntry/Api.js +43 -0
- package/src/components/JfbBaseCardEntry/Attr.js +500 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1471 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +79 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryMixin.js +30 -0
- package/src/components/JfbBaseCardEntry/Mock.js +244 -0
- package/src/components/JfbBaseCardEntry/XdCardNew.vue +135 -0
- package/src/components/JfbBaseCardGive/Api.js +42 -0
- package/src/components/JfbBaseCardGive/Attr.js +66 -0
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +534 -0
- package/src/components/JfbBaseCardGive/JfbBaseCardGiveLess.less +79 -0
- package/src/components/JfbBaseCardGive/JfbBaseCardGiveMixin.js +30 -0
- package/src/components/JfbBaseCardGive/Mock.js +6 -0
- package/src/components/JfbBaseCardInfo/Api.js +5 -5
- package/src/components/JfbBaseCardInfo/Attr.js +60 -146
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +477 -215
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +30 -8
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoMixin.js +3 -195
- package/src/components/JfbBaseCardInfo/Mock.js +23 -0
- package/src/components/JfbBaseCardInfoEntry/Api.js +71 -0
- package/src/components/JfbBaseCardInfoEntry/Attr.js +85 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +864 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +79 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryMixin.js +30 -0
- package/src/components/JfbBaseCardInfoEntry/Mock.js +122 -0
- package/src/components/JfbBaseCardMerge/Api.js +61 -0
- package/src/components/JfbBaseCardMerge/Attr.js +250 -0
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +317 -0
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +79 -0
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeMixin.js +30 -0
- package/src/components/JfbBaseCardMerge/Mock.js +5 -0
- package/src/components/JfbBaseCardMergeEntry/Api.js +61 -0
- package/src/components/JfbBaseCardMergeEntry/Attr.js +251 -0
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +451 -0
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +79 -0
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryMixin.js +30 -0
- package/src/components/JfbBaseCardMergeEntry/Mock.js +32 -0
- package/src/components/JfbBaseCardReceive/Api.js +32 -0
- package/src/components/JfbBaseCardReceive/Attr.js +28 -0
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +434 -0
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceiveLess.less +79 -0
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceiveMixin.js +30 -0
- package/src/components/JfbBaseCardReceive/Mock.js +7 -0
- package/src/components/JfbBaseCardReceiveCover/Api.js +20 -0
- package/src/components/JfbBaseCardReceiveCover/Attr.js +147 -0
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +218 -0
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCoverLess.less +79 -0
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCoverMixin.js +30 -0
- package/src/components/JfbBaseCardReceiveCover/Mock.js +5 -0
- package/src/components/JfbBaseCardShift/Api.js +17 -2
- package/src/components/JfbBaseCardShift/Attr.js +245 -146
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +266 -182
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +30 -8
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftMixin.js +3 -195
- package/src/components/JfbBaseCardShift/Mock.js +21 -0
- package/src/components/JfbBaseCardShiftEntry/Api.js +51 -0
- package/src/components/JfbBaseCardShiftEntry/Attr.js +245 -0
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +627 -0
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +79 -0
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryMixin.js +30 -0
- package/src/components/JfbBaseCardShiftEntry/Mock.js +6 -0
- package/src/components/JfbBaseCardSweepInfo/Api.js +47 -0
- package/src/components/JfbBaseCardSweepInfo/Attr.js +31 -0
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +392 -0
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +79 -0
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoMixin.js +30 -0
- package/src/components/JfbBaseCardSweepInfo/Mock.js +19 -0
- package/src/components/JfbBaseCardV2/Api.js +35 -0
- package/src/components/JfbBaseCardV2/Attr.js +112 -0
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +432 -0
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +79 -0
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Mixin.js +30 -0
- package/src/components/JfbBaseCardV2/Mock.js +114 -0
- package/src/components/JfbBaseCardV3/Api.js +34 -0
- package/src/components/JfbBaseCardV3/Attr.js +75 -0
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +252 -0
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +79 -0
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Mixin.js +30 -0
- package/src/components/JfbBaseCardV3/Mock.js +5 -0
- package/src/components/JfbBaseCity/Api.js +49 -0
- package/src/components/JfbBaseCity/Attr.js +14 -0
- package/src/components/JfbBaseCity/JfbBaseCity.vue +146 -0
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +79 -0
- package/src/components/JfbBaseCity/JfbBaseCityMixin.js +30 -0
- package/src/components/JfbBaseCity/Mock.js +5 -0
- package/src/components/JfbBaseCity/cityData.js +7 -0
- package/src/components/JfbBaseClear/Attr.js +17 -0
- package/src/components/JfbBaseClear/JfbBaseClear.vue +141 -0
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +79 -0
- package/src/components/JfbBaseClear/JfbBaseClearMixin.js +30 -0
- package/src/components/JfbBaseConDialog/Api.js +66 -0
- package/src/components/JfbBaseConDialog/Attr.js +82 -0
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +580 -0
- package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +79 -0
- package/src/components/JfbBaseConDialog/JfbBaseConDialogMixin.js +30 -0
- package/src/components/JfbBaseConDialog/Mock.js +49 -0
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +307 -0
- package/src/components/JfbBaseConList/Api.js +70 -0
- package/src/components/JfbBaseConList/Attr.js +171 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +818 -0
- package/src/components/JfbBaseConList/JfbBaseConListLess.less +79 -0
- package/src/components/JfbBaseConList/JfbBaseConListMixin.js +30 -0
- package/src/components/JfbBaseConList/Mock.js +26 -0
- package/src/components/JfbBaseConPhone/Api.js +80 -0
- package/src/components/JfbBaseConPhone/Attr.js +10 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +707 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +79 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
- package/src/components/JfbBaseConPhone/Mock.js +26 -0
- package/src/components/JfbBaseEntry/Api.js +14 -0
- package/src/components/JfbBaseEntry/Attr.js +85 -0
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +286 -0
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +79 -0
- package/src/components/JfbBaseEntry/JfbBaseEntryMixin.js +30 -0
- package/src/components/JfbBaseEntry/Mock.js +177 -0
- package/src/components/JfbBaseExpressDetail/Api.js +25 -0
- package/src/components/JfbBaseExpressDetail/Attr.js +12 -0
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetail.vue +125 -0
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +79 -0
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailMixin.js +30 -0
- package/src/components/JfbBaseExpressDetail/Mock.js +5 -0
- package/src/components/JfbBaseExpressDetail/XdExpressTimeLine/XdExpressTimeLine.vue +310 -0
- package/src/components/JfbBaseFastLink/Api.js +7 -0
- package/src/components/JfbBaseFastLink/Attr.js +306 -0
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +292 -0
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +79 -0
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkMixin.js +30 -0
- package/src/components/JfbBaseFastLink/Mock.js +5 -0
- package/src/components/JfbBaseFastLink/XdFastNav.vue +201 -0
- package/src/components/JfbBaseFooter/Attr.js +139 -70
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +93 -34
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +30 -8
- package/src/components/JfbBaseFooter/JfbBaseFooterMixin.js +3 -195
- package/src/components/JfbBaseHeader/Api.js +38 -0
- package/src/components/JfbBaseHeader/Attr.js +372 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +425 -0
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +79 -0
- package/src/components/JfbBaseHeader/JfbBaseHeaderMixin.js +30 -0
- package/src/components/JfbBaseHeader/Mock.js +15 -0
- package/src/components/JfbBaseHeaderElephant/Api.js +22 -0
- package/src/components/JfbBaseHeaderElephant/Attr.js +510 -0
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephant.vue +464 -0
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephantLess.less +79 -0
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephantMixin.js +30 -0
- package/src/components/JfbBaseHeaderElephant/Mock.js +5 -0
- package/src/components/JfbBaseImageBlock/Attr.js +85 -0
- package/src/components/JfbBaseImageBlock/JfbBaseImageBlock.vue +126 -0
- package/src/components/JfbBaseImageBlock/JfbBaseImageBlockLess.less +79 -0
- package/src/components/JfbBaseImageBlock/JfbBaseImageBlockMixin.js +30 -0
- package/src/components/JfbBaseLogin/Api.js +30 -10
- package/src/components/JfbBaseLogin/Attr.js +1239 -16
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +1294 -554
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +30 -8
- package/src/components/JfbBaseLogin/JfbBaseLoginMixin.js +3 -195
- package/src/components/JfbBaseLogin/Mock.js +17 -0
- package/src/components/JfbBaseLogin/privacyMixins.js +0 -0
- package/src/components/JfbBaseLoginForgetPwd/Api.js +36 -0
- package/src/components/JfbBaseLoginForgetPwd/Attr.js +61 -0
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +267 -0
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +79 -0
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdMixin.js +30 -0
- package/src/components/JfbBaseLoginSetPwd/Api.js +40 -0
- package/src/components/JfbBaseLoginSetPwd/Attr.js +32 -0
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +205 -0
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +79 -0
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdMixin.js +30 -0
- package/src/components/JfbBaseMapOverlay/Api.js +17 -0
- package/src/components/JfbBaseMapOverlay/Attr.js +14 -0
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +239 -0
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +79 -0
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayMixin.js +30 -0
- package/src/components/JfbBaseMapOverlay/Mock.js +65 -0
- package/src/components/JfbBaseMapOverlay/XdBaiduOverlay.vue +345 -0
- package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +156 -0
- package/src/components/JfbBaseMapSearch/Api.js +15 -0
- package/src/components/JfbBaseMapSearch/Attr.js +14 -0
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +104 -0
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +79 -0
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchMixin.js +30 -0
- package/src/components/JfbBaseMapSearch/MapSearchH5.vue +362 -0
- package/src/components/JfbBaseMapSearch/MapSearchMp.vue +164 -0
- package/src/components/JfbBaseMapSearch/Mock.js +5 -0
- package/src/components/JfbBaseMapSearch/bmap-wx.js +195 -0
- package/src/components/JfbBaseMergeUserCard/Api.js +32 -0
- package/src/components/JfbBaseMergeUserCard/Attr.js +26 -0
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCard.vue +311 -0
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +79 -0
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardMixin.js +30 -0
- package/src/components/JfbBaseMergeUserCard/Mock.js +5 -0
- package/src/components/JfbBaseMultipleExpress/Api.js +25 -0
- package/src/components/JfbBaseMultipleExpress/Attr.js +34 -0
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +355 -0
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +79 -0
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressMixin.js +30 -0
- package/src/components/JfbBaseMultipleExpress/Mock.js +93 -0
- package/src/components/JfbBaseMy/Api.js +1 -46
- package/src/components/JfbBaseMy/Attr.js +81 -16
- package/src/components/JfbBaseMy/JfbBaseMy.vue +86 -39
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +30 -8
- package/src/components/JfbBaseMy/JfbBaseMyMixin.js +3 -195
- package/src/components/JfbBaseMySetting/Api.js +43 -0
- package/src/components/JfbBaseMySetting/Attr.js +24 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +216 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +79 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySettingMixin.js +30 -0
- package/src/components/JfbBaseMySetting/Mock.js +6 -0
- package/src/components/JfbBaseMySetting/XdListItem.vue +135 -0
- package/src/components/JfbBaseNotice/Api.js +18 -0
- package/src/components/JfbBaseNotice/Attr.js +476 -0
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +560 -0
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +79 -0
- package/src/components/JfbBaseNotice/JfbBaseNoticeMixin.js +30 -0
- package/src/components/JfbBaseNotice/Mock.js +5 -0
- package/src/components/JfbBaseNotice/XdNoticeBar.vue +535 -0
- package/src/components/JfbBaseNoticeBottom/Api.js +60 -0
- package/src/components/JfbBaseNoticeBottom/Attr.js +106 -0
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottom.vue +73 -0
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +79 -0
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomMixin.js +30 -0
- package/src/components/JfbBaseNoticeBottom/Mock.js +5 -0
- package/src/components/JfbBaseNoticeTop/Api.js +60 -0
- package/src/components/JfbBaseNoticeTop/Attr.js +106 -0
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTop.vue +106 -0
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +79 -0
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopMixin.js +30 -0
- package/src/components/JfbBaseNoticeTop/Mock.js +5 -0
- package/src/components/JfbBaseOrderDetail/Api.js +54 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +630 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +1921 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +79 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailMixin.js +30 -0
- package/src/components/JfbBaseOrderDetail/Mock.js +106 -0
- package/src/components/JfbBaseOrderDetail/bizMock.js +382 -0
- package/src/components/JfbBaseOrderList/Api.js +11 -33
- package/src/components/JfbBaseOrderList/Attr.js +262 -146
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +694 -212
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +30 -8
- package/src/components/JfbBaseOrderList/JfbBaseOrderListMixin.js +3 -195
- package/src/components/JfbBaseOrderList/Mock.js +195 -0
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
- package/src/components/JfbBasePay/Api.js +71 -0
- package/src/components/JfbBasePay/Attr.js +38 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +642 -0
- package/src/components/{JfbBaseLine/JfbBaseLineLess.less → JfbBasePay/JfbBasePayLess.less} +31 -9
- package/src/components/JfbBasePay/JfbBasePayMixin.js +30 -0
- package/src/components/JfbBasePay/Mock.js +39 -0
- package/src/components/JfbBasePhoneCollect/Api.js +39 -0
- package/src/components/JfbBasePhoneCollect/Attr.js +988 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +644 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +79 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectMixin.js +30 -0
- package/src/components/JfbBasePhoneLogin/Api.js +41 -0
- package/src/components/JfbBasePhoneLogin/Attr.js +932 -0
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +762 -0
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +79 -0
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginMixin.js +30 -0
- package/src/components/JfbBasePoster/Api.js +19 -0
- package/src/components/JfbBasePoster/Attr.js +460 -0
- package/src/components/JfbBasePoster/JfbBasePoster.vue +733 -0
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +79 -0
- package/src/components/JfbBasePoster/JfbBasePosterMixin.js +30 -0
- package/src/components/JfbBasePoster/Mock.js +5 -0
- package/src/components/JfbBasePoster/MoreScreen.vue +404 -0
- package/src/components/JfbBasePoster/XdSwiperDot.vue +234 -0
- package/src/components/JfbBasePosterBigSmall/Api.js +28 -0
- package/src/components/JfbBasePosterBigSmall/Attr.js +1046 -0
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +886 -0
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +79 -0
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallMixin.js +30 -0
- package/src/components/JfbBasePosterBigSmall/Mock.js +5 -0
- package/src/components/JfbBasePosterBigSmall/XdSwiperDot.vue +234 -0
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +16 -0
- package/src/components/JfbBasePosterEntry/Api.js +18 -0
- package/src/components/JfbBasePosterEntry/Attr.js +310 -0
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +363 -0
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +79 -0
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryMixin.js +30 -0
- package/src/components/JfbBasePosterEntry/Mock.js +5 -0
- package/src/components/JfbBasePosterType/Api.js +18 -0
- package/src/components/JfbBasePosterType/Attr.js +453 -0
- package/src/components/JfbBasePosterType/FourScreen.vue +575 -0
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +291 -0
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +79 -0
- package/src/components/JfbBasePosterType/JfbBasePosterTypeMixin.js +30 -0
- package/src/components/JfbBasePosterType/Mock.js +5 -0
- package/src/components/JfbBasePosterType/XdSwiperDot.vue +234 -0
- package/src/components/JfbBaseRecharge/Api.js +74 -0
- package/src/components/JfbBaseRecharge/Attr.js +271 -0
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +369 -0
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +79 -0
- package/src/components/JfbBaseRecharge/JfbBaseRechargeMixin.js +30 -0
- package/src/components/JfbBaseRecharge/Mock.js +5 -0
- package/src/components/JfbBaseRechargeNew/Api.js +35 -0
- package/src/components/JfbBaseRechargeNew/Attr.js +35 -0
- package/src/components/JfbBaseRechargeNew/JfbBaseRechargeNew.vue +283 -0
- package/src/components/JfbBaseRechargeNew/JfbBaseRechargeNewLess.less +79 -0
- package/src/components/JfbBaseRechargeNew/JfbBaseRechargeNewMixin.js +30 -0
- package/src/components/JfbBaseRechargeNew/Mock.js +14 -0
- package/src/components/JfbBaseRechargeOrder/Api.js +37 -0
- package/src/components/JfbBaseRechargeOrder/Attr.js +180 -0
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +388 -0
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +79 -0
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderMixin.js +30 -0
- package/src/components/JfbBaseRechargeOrder/Mock.js +5 -0
- package/src/components/JfbBaseRechargeOrderDetail/Api.js +36 -0
- package/src/components/JfbBaseRechargeOrderDetail/Attr.js +14 -0
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +319 -0
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +79 -0
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailMixin.js +30 -0
- package/src/components/JfbBaseRechargeOrderDetail/Mock.js +5 -0
- package/src/components/JfbBaseRechargeSuccess/Api.js +36 -0
- package/src/components/JfbBaseRechargeSuccess/Attr.js +38 -0
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +207 -0
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +79 -0
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessMixin.js +30 -0
- package/src/components/JfbBaseRechargeSuccess/Mock.js +5 -0
- package/src/components/JfbBaseSearch/Attr.js +12 -0
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +98 -0
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +79 -0
- package/src/components/JfbBaseSearch/JfbBaseSearchMixin.js +30 -0
- package/src/components/JfbBaseSearch/XdBaiduSearch.vue +354 -0
- package/src/components/JfbBaseSetPwd/Attr.js +6 -147
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwd.vue +63 -49
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +30 -8
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdMixin.js +3 -195
- package/src/components/JfbBaseSuccess/Api.js +35 -0
- package/src/components/JfbBaseSuccess/Attr.js +328 -60
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +911 -284
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +30 -8
- package/src/components/JfbBaseSuccess/JfbBaseSuccessMixin.js +3 -195
- package/src/components/JfbBaseSuccess/Mock.js +80 -0
- package/src/components/JfbBaseSweep/Attr.js +34 -0
- package/src/components/JfbBaseSweep/JfbBaseSweep.vue +375 -0
- package/src/components/JfbBaseSweep/JfbBaseSweepLess.less +79 -0
- package/src/components/JfbBaseSweep/JfbBaseSweepMixin.js +30 -0
- package/src/components/JfbBaseSweep/Mock.js +3 -0
- package/src/components/JfbBaseTestApi/Api.js +11 -0
- package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +85 -17
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +30 -8
- package/src/components/JfbBaseTestApi/JfbBaseTestApiMixin.js +3 -195
- package/src/components/JfbBaseTestApi/Mock.js +25 -0
- package/src/components/JfbBaseTestBody/JfbBaseTestBody.vue +9 -6
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +30 -8
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyMixin.js +3 -195
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottom.vue +9 -6
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +30 -8
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomMixin.js +3 -195
- package/src/components/JfbBaseTestNotice/Api.js +60 -0
- package/src/components/JfbBaseTestNotice/Attr.js +277 -0
- package/src/components/JfbBaseTestNotice/JfbBaseTestNotice.vue +105 -0
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +79 -0
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeMixin.js +30 -0
- package/src/components/JfbBaseTestNotice/Mock.js +5 -0
- package/src/components/JfbBaseTestTop/JfbBaseTestTop.vue +18 -9
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +30 -8
- package/src/components/JfbBaseTestTop/JfbBaseTestTopMixin.js +3 -195
- package/src/components/JfbBaseTfkCardBind/Api.js +77 -0
- package/src/components/JfbBaseTfkCardBind/Attr.js +728 -0
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +858 -0
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBindLess.less +79 -0
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBindMixin.js +30 -0
- package/src/components/JfbBaseTfkCardBind/Mock.js +23 -0
- package/src/components/JfbBaseTfkCardDetail/Api.js +45 -0
- package/src/components/JfbBaseTfkCardDetail/Attr.js +541 -0
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +734 -0
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetailLess.less +79 -0
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetailMixin.js +30 -0
- package/src/components/JfbBaseTfkCardDetail/Mock.js +155 -0
- package/src/components/JfbBaseTfkCardLogin/Api.js +43 -0
- package/src/components/JfbBaseTfkCardLogin/Attr.js +1120 -0
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +897 -0
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLoginLess.less +79 -0
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLoginMixin.js +30 -0
- package/src/components/JfbBaseTfkCardLogin/Mock.js +193 -0
- package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +275 -0
- package/src/components/JfbBaseTfkCardLogin/XdNotice.vue +550 -0
- package/src/components/JfbBaseTfkSearch/AllList.vue +347 -0
- package/src/components/JfbBaseTfkSearch/Api.js +27 -0
- package/src/components/JfbBaseTfkSearch/Attr.js +370 -0
- package/src/components/JfbBaseTfkSearch/ContentCinema.vue +159 -0
- package/src/components/JfbBaseTfkSearch/ContentFilm.vue +230 -0
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +340 -0
- package/src/components/JfbBaseTfkSearch/ContentShop.vue +199 -0
- package/src/components/JfbBaseTfkSearch/CusAttr.js +213 -0
- package/src/components/JfbBaseTfkSearch/CustomList.vue +475 -0
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +374 -0
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearchLess.less +79 -0
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearchMixin.js +30 -0
- package/src/components/JfbBaseTfkSearch/Mock.js +225 -0
- package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +45 -0
- package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +109 -0
- package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +246 -0
- package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +81 -0
- package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
- package/src/components/JfbBaseTfkSearch/listMixins.js +188 -0
- package/src/components/JfbBaseUserCenter/Api.js +60 -0
- package/src/components/JfbBaseUserCenter/Attr.js +531 -0
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +335 -0
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +79 -0
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterMixin.js +30 -0
- package/src/components/JfbBaseUserCenter/Mock.js +5 -0
- package/src/components/JfbBaseUserInfo/Api.js +18 -0
- package/src/components/JfbBaseUserInfo/Attr.js +470 -0
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +426 -0
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +79 -0
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoMixin.js +30 -0
- package/src/components/JfbBaseUserInfo/Mock.js +20 -0
- package/src/components/JfbBaseUserOrder/Api.js +19 -0
- package/src/components/JfbBaseUserOrder/Attr.js +551 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +434 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +79 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderMixin.js +30 -0
- package/src/components/JfbBaseVideo/Api.js +19 -0
- package/src/components/JfbBaseVideo/Attr.js +312 -0
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +206 -0
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +79 -0
- package/src/components/JfbBaseVideo/JfbBaseVideoMixin.js +30 -0
- package/src/components/JfbBaseVideo/Mock.js +3 -0
- package/src/components/JfbBaseVideo/XdVideo.vue +170 -0
- package/src/components/JfbBaseWallet/Api.js +60 -0
- package/src/components/JfbBaseWallet/Attr.js +479 -0
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +430 -0
- package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +79 -0
- package/src/components/JfbBaseWallet/JfbBaseWalletMixin.js +30 -0
- package/src/components/JfbBaseWallet/Mock.js +6 -0
- package/src/components/JfbBaseWalletDetail/Api.js +26 -0
- package/src/components/JfbBaseWalletDetail/Attr.js +12 -0
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +172 -0
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +79 -0
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +30 -0
- package/src/components/JfbBaseWalletDetail/Mock.js +6 -0
- package/src/components/JfbBaseWalletEffective/Api.js +27 -0
- package/src/components/JfbBaseWalletEffective/Attr.js +15 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +173 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +79 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveMixin.js +30 -0
- package/src/components/JfbBaseWalletEffective/Mock.js +21 -0
- package/src/components/JfbBaseWalletIndex/Api.js +48 -0
- package/src/components/JfbBaseWalletIndex/Attr.js +35 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +814 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +79 -0
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexMixin.js +30 -0
- package/src/components/JfbBaseWalletIndex/Mock.js +7 -0
- package/src/components/JfbBaseWalletItem/Api.js +37 -0
- package/src/components/JfbBaseWalletItem/Attr.js +35 -0
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +493 -0
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +79 -0
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemMixin.js +30 -0
- package/src/components/JfbBaseWalletItem/Mock.js +7 -0
- package/src/components/JfbBaseWebview/Attr.js +10 -0
- package/src/components/JfbBaseWebview/JfbBaseWebview.vue +102 -0
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +79 -0
- package/src/components/JfbBaseWebview/JfbBaseWebviewMixin.js +30 -0
- package/src/components/JfbBaseWxAuthorize/Api.js +45 -0
- package/src/components/JfbBaseWxAuthorize/Attr.js +526 -0
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +364 -0
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +79 -0
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeMixin.js +30 -0
- package/src/components/JfbBaseWxAuthorize/Mock.js +46 -0
- package/src/components/JfbBaseWxAuthorizeError/Api.js +29 -0
- package/src/components/JfbBaseWxAuthorizeError/Attr.js +265 -0
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +153 -0
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +79 -0
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorMixin.js +30 -0
- package/src/components/JfbBaseWxAuthorizeError/Mock.js +5 -0
- package/src/config.app.plus.js +6 -0
- package/src/config.h5.js +13 -0
- package/src/config.mp.weixin.js +13 -0
- package/src/config.project.js +15 -0
- package/src/mixins/colorCardMixins.js +122 -0
- package/src/mixins/componentsMixins.js +833 -0
- package/src/mixins/extsMixins.js +3 -0
- package/src/mixins/posterMixins.js +122 -0
- package/src/mocks.js +4 -0
- package/build.json.tpl +0 -103
- package/src/business/12121.png +0 -0
- package/src/business/base_download.png +0 -0
- package/src/business/base_icon_vip_3x.png +0 -0
- package/src/business/base_qr.png +0 -0
- package/src/business/business_store.png +0 -0
- package/src/components/JfbBaseCardMy/Attr.js +0 -150
- package/src/components/JfbBaseCardMy/JfbBaseCardMy.vue +0 -220
- package/src/components/JfbBaseCardMy/JfbBaseCardMyMixin.js +0 -222
- package/src/components/JfbBaseLine/Attr.js +0 -59
- package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -102
- package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -222
- /package/src/components/{JfbBaseCardMy → JfbBaseBottomNotice}/Api.js +0 -0
- /package/src/components/{JfbBaseCardBind → JfbBaseSweep}/Api.js +0 -0
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-poster"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-poster__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-poster__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-poster__body" v-if="noData">
|
|
17
|
+
<view class="x-line"></view>
|
|
18
|
+
<view class="jfb-base-poster-cont" :style="[getBodyStyle]">
|
|
19
|
+
<!--一分屏-->
|
|
20
|
+
<template v-if="posterType === '1'">
|
|
21
|
+
<view
|
|
22
|
+
v-if="isCarousel === 1"
|
|
23
|
+
class="jfb-base-poster__one notCarousel"
|
|
24
|
+
:style="{
|
|
25
|
+
width: getOneWidth + 'rpx',
|
|
26
|
+
}"
|
|
27
|
+
>
|
|
28
|
+
<view
|
|
29
|
+
:style="{
|
|
30
|
+
width: getOneWidth + 'rpx',
|
|
31
|
+
height: getOneHeight + 'rpx',
|
|
32
|
+
borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
|
|
33
|
+
marginBottom: padding + 'rpx'
|
|
34
|
+
}"
|
|
35
|
+
@click="handleClick(item)"
|
|
36
|
+
v-for="(item,index) in info"
|
|
37
|
+
:key="index"
|
|
38
|
+
>
|
|
39
|
+
<image :src="item.image_url" mode="aspectFill"></image>
|
|
40
|
+
</view>
|
|
41
|
+
</view>
|
|
42
|
+
<view
|
|
43
|
+
v-else
|
|
44
|
+
class="jfb-base-poster__one carousel"
|
|
45
|
+
:style="{
|
|
46
|
+
width: getOneWidth + 'rpx',
|
|
47
|
+
height: getOneHeight + 'rpx',
|
|
48
|
+
borderRadius: (posterType === '1' ? radius: 0) + 'rpx',
|
|
49
|
+
}"
|
|
50
|
+
>
|
|
51
|
+
<xd-swiper-dot
|
|
52
|
+
:style="{width: getOneWidth + 'rpx', height: getOneHeight + 'rpx'}"
|
|
53
|
+
v-if="pageSwiperShow"
|
|
54
|
+
:current="current"
|
|
55
|
+
:info="info"
|
|
56
|
+
field="content_name"
|
|
57
|
+
:mode="mode"
|
|
58
|
+
:dots-styles="dotStyleData"
|
|
59
|
+
>
|
|
60
|
+
<!--#ifdef MP-WEIXIN-->
|
|
61
|
+
<swiper
|
|
62
|
+
class="swiper xd-swiper-content"
|
|
63
|
+
:style="{width: getOneWidth + 'rpx', height: getOneHeight + 'rpx'}"
|
|
64
|
+
:indicator-dots="false"
|
|
65
|
+
:autoplay="carouselTime>0"
|
|
66
|
+
:interval="carouselTime"
|
|
67
|
+
:duration="500"
|
|
68
|
+
:current="current"
|
|
69
|
+
circular
|
|
70
|
+
@animationfinish="handleAnimationfinish"
|
|
71
|
+
>
|
|
72
|
+
<swiper-item v-for="(item,index) in info" :key="index" @click.stop="handleClick(item,index)">
|
|
73
|
+
<image :style="{width: getOneWidth + 'rpx', height: getOneHeight + 'rpx'}" :src="item['image_url']" mode="aspectFill"></image>
|
|
74
|
+
</swiper-item>
|
|
75
|
+
</swiper>
|
|
76
|
+
<!--#endif-->
|
|
77
|
+
<!--#ifdef H5-->
|
|
78
|
+
<xd-swiper
|
|
79
|
+
:indicator-dots="false"
|
|
80
|
+
:list="info"
|
|
81
|
+
:current="current"
|
|
82
|
+
:width=" getOneWidth + 'rpx'"
|
|
83
|
+
:height="getOneHeight + 'rpx'"
|
|
84
|
+
:interval="carouselTime"
|
|
85
|
+
@onClickItem="handleClick"
|
|
86
|
+
@animationfinish="handleAnimationfinish"
|
|
87
|
+
>
|
|
88
|
+
<template slot-scope="{ item, index}">
|
|
89
|
+
<image :src="item['image_url']" mode="aspectFill"></image>
|
|
90
|
+
</template>
|
|
91
|
+
</xd-swiper>
|
|
92
|
+
<!--#endif-->
|
|
93
|
+
</xd-swiper-dot>
|
|
94
|
+
<view v-if="isPreview" class="carousel-mask"></view>
|
|
95
|
+
</view>
|
|
96
|
+
</template>
|
|
97
|
+
<!--一分屏-->
|
|
98
|
+
<!--多分屏-->
|
|
99
|
+
<more-screen
|
|
100
|
+
style="width: 100%; height: 100%"
|
|
101
|
+
v-if="posterType !== '1'"
|
|
102
|
+
:config="getConfig"
|
|
103
|
+
:content="info"
|
|
104
|
+
></more-screen>
|
|
105
|
+
<!--多分屏-->
|
|
106
|
+
</view>
|
|
107
|
+
</view>
|
|
108
|
+
<!--解决图片缓冲预加载问题-->
|
|
109
|
+
<view v-if="item.image_background_url" v-for="(item,index) in info" :key="index" style="position: absolute; top: -19999px; left: -100000px">
|
|
110
|
+
<image :src="item.image_background_url" ></image>
|
|
111
|
+
</view>
|
|
112
|
+
<!--解决图片缓冲预加载问题-->
|
|
113
|
+
</view>
|
|
114
|
+
</template>
|
|
115
|
+
|
|
116
|
+
<script>
|
|
117
|
+
const color = require('color');
|
|
118
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
119
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
120
|
+
import JfbBasePosterMixin from "./JfbBasePosterMixin";
|
|
121
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
122
|
+
import extsMixins from "@/mixins/extsMixins"
|
|
123
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
124
|
+
import getServiceUrl from '@/common/getServiceUrl'
|
|
125
|
+
import XdImage from "@/components/XdImage/XdImage";
|
|
126
|
+
import XdSwiper from "@/components/XdSwiper/XdSwiper";
|
|
127
|
+
import MoreScreen from "./MoreScreen";
|
|
128
|
+
import XdSwiperDot from "./XdSwiperDot";
|
|
129
|
+
|
|
130
|
+
export default {
|
|
131
|
+
name: "JfbBasePoster",
|
|
132
|
+
components: {
|
|
133
|
+
XdFontIcon,
|
|
134
|
+
XdImage,
|
|
135
|
+
XdSwiper,
|
|
136
|
+
MoreScreen,
|
|
137
|
+
XdSwiperDot
|
|
138
|
+
},
|
|
139
|
+
mixins: [componentsMixins,extsMixins,JfbBasePosterMixin],
|
|
140
|
+
data() {
|
|
141
|
+
return {
|
|
142
|
+
selfMask: false,
|
|
143
|
+
pageSwiperShow:false,
|
|
144
|
+
params: {},
|
|
145
|
+
|
|
146
|
+
//Swiper 配置
|
|
147
|
+
mode:'round', //default 、round 、nav 、dot, indexes
|
|
148
|
+
current: 0,
|
|
149
|
+
poster: null,
|
|
150
|
+
posterPosition: null,
|
|
151
|
+
posterType: '1',//分屏模式
|
|
152
|
+
showType: '', //广告显示方式
|
|
153
|
+
isCarousel: 1, //是否轮播图
|
|
154
|
+
carouselTime: 5,//轮播图轮播周期
|
|
155
|
+
useNumber: null, //广告使用张数
|
|
156
|
+
height: 0, //广告高度
|
|
157
|
+
outOneHeight:0,//焦点图显示高度
|
|
158
|
+
width: 0, //广告高度
|
|
159
|
+
padding: 0, //广告内容之间间距
|
|
160
|
+
rows: 1, //四分屏起作用
|
|
161
|
+
radius: 0,
|
|
162
|
+
timer: null,
|
|
163
|
+
isSupport: 'N',
|
|
164
|
+
currentImage: '',
|
|
165
|
+
info: [],
|
|
166
|
+
mS: {},//边距
|
|
167
|
+
bgImagePadding:{},//填充
|
|
168
|
+
isPreview: false,
|
|
169
|
+
noData:false,
|
|
170
|
+
background: '',
|
|
171
|
+
bgColor:'rgba(0,0,0,0)'
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
computed: {
|
|
175
|
+
getBodyStyle(){
|
|
176
|
+
let image = {};
|
|
177
|
+
if(this.background) image = {
|
|
178
|
+
backgroundImage: `url(${this.getBgImage})`,
|
|
179
|
+
backgroundSize: '100%',
|
|
180
|
+
backgroundRepeat: 'no-repeat',
|
|
181
|
+
}
|
|
182
|
+
image = Object.assign({},image,{
|
|
183
|
+
margin: this.margin,
|
|
184
|
+
padding: this.outPadding,
|
|
185
|
+
backgroundColor: this.bgColor,
|
|
186
|
+
})
|
|
187
|
+
return image
|
|
188
|
+
},
|
|
189
|
+
getOneWidth(){
|
|
190
|
+
let margin = this.checkValue(this.mS.left, 0) + this.checkValue(this.mS.right, 0);
|
|
191
|
+
let padding = this.checkValue(this.bgImagePadding.left, 20) + this.checkValue(this.bgImagePadding.right, 20);
|
|
192
|
+
return 750 - (margin + padding);
|
|
193
|
+
},
|
|
194
|
+
getOneHeight(){
|
|
195
|
+
return this.getOneWidth * this.height / this.width
|
|
196
|
+
},
|
|
197
|
+
getConfig(){
|
|
198
|
+
let cell = this.posterType === '2' ? 2: (this.posterType === '3' ? 3 : 4);
|
|
199
|
+
|
|
200
|
+
//间距值
|
|
201
|
+
let spacing = Math.floor((cell - 1) * this.padding * this.$rpxNum);
|
|
202
|
+
|
|
203
|
+
//主题填充
|
|
204
|
+
let paddingDefault = 0;
|
|
205
|
+
if(this.background === 'none' || this.background === '' || this.$xdUniHelper.isEmpty(this.background)) paddingDefault = 20;
|
|
206
|
+
let outPaddingRL = this.checkValue(this.bgImagePadding.right, paddingDefault) + this.checkValue(this.bgImagePadding.left, paddingDefault);
|
|
207
|
+
outPaddingRL = outPaddingRL * this.$rpxNum;
|
|
208
|
+
|
|
209
|
+
//外边距
|
|
210
|
+
let marginRL = (this.checkValue(this.mS.right, 0) + this.checkValue(this.mS.left, 0)) * this.$rpxNum;
|
|
211
|
+
|
|
212
|
+
//总统
|
|
213
|
+
let viewWidth = uni.getSystemInfoSync().safeArea.width - marginRL - outPaddingRL - spacing;
|
|
214
|
+
let width = viewWidth / cell;
|
|
215
|
+
let height = this.height * width / this.width;
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
return {
|
|
219
|
+
mode: this.getMode,
|
|
220
|
+
dotStyleData: this.dotStyleData,
|
|
221
|
+
poster: this.poster,
|
|
222
|
+
showType: this.showType,
|
|
223
|
+
isCarousel: this.isCarousel,
|
|
224
|
+
carouselTime: this.carouselTime,
|
|
225
|
+
radius: this.radius,
|
|
226
|
+
padding: this.padding,
|
|
227
|
+
bgImagePadding: this.bgImagePadding,
|
|
228
|
+
rows: this.rows,
|
|
229
|
+
cell,
|
|
230
|
+
height,
|
|
231
|
+
width
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
margin(){
|
|
235
|
+
let str = `${this.checkValue(this.mS.top, 0)}rpx`;
|
|
236
|
+
str = `${str} ${this.checkValue(this.mS.right, 0)}rpx`;
|
|
237
|
+
str = `${str} ${this.checkValue(this.mS.bottom, 0)}rpx`;
|
|
238
|
+
str = `${str} ${this.checkValue(this.mS.left, 0)}rpx`;
|
|
239
|
+
return str;
|
|
240
|
+
},
|
|
241
|
+
outPadding(){
|
|
242
|
+
try {
|
|
243
|
+
let defaultvalue = 0;
|
|
244
|
+
if(!this.background || this.background === 'none' || this.$xdUniHelper.isEmpty(this.background)) defaultvalue = 20;
|
|
245
|
+
if(this.posterType === '1') defaultvalue = 20;
|
|
246
|
+
let str = `${this.checkValue(this.bgImagePadding.top, defaultvalue)}rpx`;
|
|
247
|
+
str = `${str} ${this.checkValue(this.bgImagePadding.right, defaultvalue)}rpx`;
|
|
248
|
+
str = `${str} ${this.checkValue(this.bgImagePadding.bottom, defaultvalue)}rpx`;
|
|
249
|
+
str = `${str} ${this.checkValue(this.bgImagePadding.left,defaultvalue)}rpx`;
|
|
250
|
+
return str;
|
|
251
|
+
} catch (error) {
|
|
252
|
+
return 0
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
},
|
|
256
|
+
getMode(){
|
|
257
|
+
let mode = this.mode;
|
|
258
|
+
if (this.posterType !== '1') {
|
|
259
|
+
if (this.mode === 'nav'
|
|
260
|
+
|| this.mode === 'indexes') {
|
|
261
|
+
mode = 'dot'
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return mode;
|
|
265
|
+
},
|
|
266
|
+
dotStyleData(){
|
|
267
|
+
let alpha = 1;
|
|
268
|
+
if(this.posterType === '1') alpha = 0.6;
|
|
269
|
+
let selectedColor = `rgba(${color(this.mainColor).alpha(alpha).array().join(',')})`;
|
|
270
|
+
let style = {
|
|
271
|
+
dot: {
|
|
272
|
+
backgroundColor: 'rgba(166,166,166,.5)',
|
|
273
|
+
border: '0px rgba(166,166,166,.5) solid',
|
|
274
|
+
color: '#fff',
|
|
275
|
+
selectedBackgroundColor: selectedColor,
|
|
276
|
+
selectedBorder: `0px this.mainColor solid`
|
|
277
|
+
},
|
|
278
|
+
default: {
|
|
279
|
+
width: 16,
|
|
280
|
+
backgroundColor: 'rgba(200,200,200,.45)',
|
|
281
|
+
border: '1px rgba(200,200,200,.45) solid',
|
|
282
|
+
color: '#fff',
|
|
283
|
+
selectedBackgroundColor: selectedColor,
|
|
284
|
+
selectedBorder: `1px this.mainColor solid`
|
|
285
|
+
},
|
|
286
|
+
round: {
|
|
287
|
+
backgroundColor: 'rgba(166,166,166,.5)',
|
|
288
|
+
border: '0px rgba(166,166,166,.5) solid',
|
|
289
|
+
color: '#fff',
|
|
290
|
+
selectedBackgroundColor: selectedColor,
|
|
291
|
+
selectedBorder: `0px this.mainColor solid`
|
|
292
|
+
},
|
|
293
|
+
nav: {
|
|
294
|
+
backgroundColor: 'rgba(0,0,0,.5)',
|
|
295
|
+
border: '1px rgba(0,0,0,.5) solid',
|
|
296
|
+
color: '#fff',
|
|
297
|
+
selectedBackgroundColor: 'rgba(255, 255, 255, 1)',
|
|
298
|
+
selectedBorder: '1px rgba(255, 255, 255 1) solid'
|
|
299
|
+
},
|
|
300
|
+
indexes: {
|
|
301
|
+
backgroundColor: 'rgba(0,0,0,.5)',
|
|
302
|
+
border: '0px rgba(0,0,0,.5) solid',
|
|
303
|
+
color: '#aaa',
|
|
304
|
+
selectedBackgroundColor: 'rgba(0,0,0,.8)',
|
|
305
|
+
selectedBorder: '0px rgba(0,0,0,.8) solid',
|
|
306
|
+
selectedColor: '#fff',
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
if(this.posterType !== '1') {
|
|
310
|
+
if(this.mode === 'nav'
|
|
311
|
+
|| this.mode === 'indexes') {
|
|
312
|
+
this.mode = 'dot'
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return style[this.mode]
|
|
316
|
+
},
|
|
317
|
+
getBgImage(){
|
|
318
|
+
let bg = '';
|
|
319
|
+
if(this.$xdUniHelper.checkVarType(this.background) === 'object'
|
|
320
|
+
|| this.$xdUniHelper.checkVarType(this.background) === 'array'
|
|
321
|
+
) {
|
|
322
|
+
if(!this.$xdUniHelper.isEmpty(this.background)) {
|
|
323
|
+
return getServiceUrl(this.background.url)
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return bg
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
},
|
|
330
|
+
watch: {
|
|
331
|
+
container(value, oloValue) {
|
|
332
|
+
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
333
|
+
this.init(value);
|
|
334
|
+
if(this.timer) clearTimeout(this.timer);
|
|
335
|
+
this.timer = setTimeout(()=>{
|
|
336
|
+
if (this.$configProject['isPreview']) this.onJfbLoad()
|
|
337
|
+
}, 400)
|
|
338
|
+
},
|
|
339
|
+
isSupport(n,o) {
|
|
340
|
+
if(this.isPreview) {
|
|
341
|
+
if(n==='N') {
|
|
342
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
343
|
+
} else {
|
|
344
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
rows(n,o) {
|
|
349
|
+
if(this.isPreview) {
|
|
350
|
+
if(n!==1) {
|
|
351
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
352
|
+
} else {
|
|
353
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
isCarousel(n,o) {
|
|
358
|
+
if(this.isPreview) {
|
|
359
|
+
if(n!==2) {
|
|
360
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
361
|
+
} else {
|
|
362
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
created() {
|
|
368
|
+
this.isPreview = this.$configProject.isPreview;
|
|
369
|
+
this.pageSwiperShow = this.$root.$isShow;
|
|
370
|
+
this.init(this.container);
|
|
371
|
+
},
|
|
372
|
+
|
|
373
|
+
destroyed() {
|
|
374
|
+
if(this.isSupport==='Y') {
|
|
375
|
+
this.$xdRoot.$emit('setLayoutPageBg',null);
|
|
376
|
+
this.pageSwiperShow = false;
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
|
|
380
|
+
methods: {
|
|
381
|
+
/**
|
|
382
|
+
* @description 过滤不可以用
|
|
383
|
+
* 当前项目未H5时,过滤所有小程序应用
|
|
384
|
+
* 当前项目未小程序时,过滤所有非当前小程序应用
|
|
385
|
+
* 站外地址直接返回
|
|
386
|
+
* 站内地址未选值直接返回
|
|
387
|
+
* 预览模式全过
|
|
388
|
+
*/
|
|
389
|
+
filterItem(list){
|
|
390
|
+
let content = list.filter(item=>{
|
|
391
|
+
//预览模式
|
|
392
|
+
if( this.$configProject.isPreview) return true;
|
|
393
|
+
|
|
394
|
+
//非内部应用
|
|
395
|
+
if(item.redirect_type !== 'INN') return true
|
|
396
|
+
|
|
397
|
+
//没有配置链接
|
|
398
|
+
if(!item.redirect_data) return true;
|
|
399
|
+
|
|
400
|
+
//内部应用
|
|
401
|
+
else {
|
|
402
|
+
let redirect_data;
|
|
403
|
+
try {
|
|
404
|
+
redirect_data = JSON.parse(item.redirect_data);
|
|
405
|
+
if(!item['app_type']) item['app_type']= 'h5';
|
|
406
|
+
|
|
407
|
+
//#ifdef H5
|
|
408
|
+
return item['app_type'] !== 'wxmp';
|
|
409
|
+
//#endif
|
|
410
|
+
|
|
411
|
+
//#ifdef MP-WEIXIN
|
|
412
|
+
let actDir = this.$parent.projectAttr.deploy_dir;
|
|
413
|
+
let dir = this.getPathDir(redirect_data.page);
|
|
414
|
+
if(item['app_type'] === 'wxmp'){
|
|
415
|
+
return actDir === dir;
|
|
416
|
+
}
|
|
417
|
+
else if(item['app_type'] === 'h5') return true;
|
|
418
|
+
else return true
|
|
419
|
+
//#endif
|
|
420
|
+
}
|
|
421
|
+
catch (e) {
|
|
422
|
+
return true
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
console.warn(`PostersList:${JSON.stringify(content.map(item=>`${item.app_type}:${item.content_name}:${item.redirect_data}`), null,2)}`)
|
|
427
|
+
return content;
|
|
428
|
+
|
|
429
|
+
},
|
|
430
|
+
|
|
431
|
+
getPathDir(pathDir){
|
|
432
|
+
if(pathDir.indexOf('@site_domain@/') === 0) {
|
|
433
|
+
return pathDir.replace('@site_domain@/','').split('/')[0]
|
|
434
|
+
}
|
|
435
|
+
return ''
|
|
436
|
+
},
|
|
437
|
+
|
|
438
|
+
getTestData(){
|
|
439
|
+
let temp = [];
|
|
440
|
+
for (let i = 0; i< this.useNumber; i++) {
|
|
441
|
+
let item = this.$xdUniHelper.cloneDeep(this['posterTest']);
|
|
442
|
+
item.content_id = i;
|
|
443
|
+
item.content_name = item.content_name + i;
|
|
444
|
+
item.image_url = `//dummyimage.com/${this.width}x${this.height}`;
|
|
445
|
+
temp.push(item)
|
|
446
|
+
}
|
|
447
|
+
return temp
|
|
448
|
+
},
|
|
449
|
+
handleAnimationfinish(e) {
|
|
450
|
+
//不支持背景不处理
|
|
451
|
+
if(this.isSupport==='N') return;
|
|
452
|
+
console.warn(`handleAnimationfinish.start`)
|
|
453
|
+
this.pageSwiperShow = this.$root.$isShow;
|
|
454
|
+
|
|
455
|
+
//当前组件已被隐藏或者轮播图记录为0条处理
|
|
456
|
+
if(this.$root.$isShow === false
|
|
457
|
+
|| this.info.length === 0
|
|
458
|
+
|| !(this.rows===1 && this.isCarousel===2) //可用模式
|
|
459
|
+
) {
|
|
460
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
461
|
+
console.warn(`handleAnimationfinish.disabel.poster`)
|
|
462
|
+
return
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
//开启背景图模式并且为轮播图模式
|
|
466
|
+
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
467
|
+
console.warn(`handleAnimationfinish.start.poster`)
|
|
468
|
+
this.currentImage = this.info[e.detail.current]['image_background_url']
|
|
469
|
+
let bg = null;
|
|
470
|
+
if(this.currentImage) bg = this.currentImage;
|
|
471
|
+
this.$xdRoot.$emit("setLayoutPageBg", bg);
|
|
472
|
+
this.current = e.detail.current;
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
|
|
476
|
+
handleClick(item) {
|
|
477
|
+
if(!item.redirect_data) {
|
|
478
|
+
console.warn(`未配置链接地址: ${item.redirect_data}`);
|
|
479
|
+
console.error(`未配置链接地址: ${item.redirect_data}`);
|
|
480
|
+
return
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
//内部链接跳转地址
|
|
484
|
+
if (item.redirect_type === 'INN') {
|
|
485
|
+
try {
|
|
486
|
+
let url = JSON.parse(item.redirect_data);
|
|
487
|
+
let params = '';
|
|
488
|
+
if(url.page) {
|
|
489
|
+
if (item['redirect_params']) params = `?${item['redirect_params']}`;
|
|
490
|
+
this.$xdUniHelper.navigateTo({url: url.page + params})
|
|
491
|
+
}
|
|
492
|
+
else {
|
|
493
|
+
console.error(`应用链接配置错误: ${url.page}`)
|
|
494
|
+
}
|
|
495
|
+
} catch (e) {
|
|
496
|
+
console.error(`应用链接配置错误: ${item.redirect_data}`)
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
//外部链接
|
|
501
|
+
if (item.redirect_type === 'URL') {
|
|
502
|
+
let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
|
|
503
|
+
let spReg = /(-apiuri\/v)/;
|
|
504
|
+
//#ifdef MP-WEIXIN
|
|
505
|
+
try {
|
|
506
|
+
let url = JSON.parse(item.redirect_data);
|
|
507
|
+
if (reg.test(url.url) || spReg.test(url.url)) {
|
|
508
|
+
console.warn(`广告跳转外站: ${url.url}`)
|
|
509
|
+
this.$xdUniHelper.navigateTo(url);
|
|
510
|
+
} else {
|
|
511
|
+
console.error(`广告跳转外站配置错误: ${url.url}`)
|
|
512
|
+
}
|
|
513
|
+
} catch (e) {
|
|
514
|
+
console.error(`广告跳转外站配置错误: ${item.redirect_data}`)
|
|
515
|
+
}
|
|
516
|
+
//#endif
|
|
517
|
+
//#ifdef H5
|
|
518
|
+
try {
|
|
519
|
+
let url = JSON.parse(item.redirect_data);
|
|
520
|
+
console.warn(`广告跳转外站: ${url.url}`);
|
|
521
|
+
this.$xdUniHelper.redirectTo(url, false)
|
|
522
|
+
} catch (e) {
|
|
523
|
+
console.error(`广告跳转外站配置错误: ${item.redirect_data}`)
|
|
524
|
+
}
|
|
525
|
+
//#endif
|
|
526
|
+
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
//无跳转地址
|
|
530
|
+
if(item.redirect_type === 'EMP') {
|
|
531
|
+
console.warn(`无跳转地址`);
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
handleImage(list){
|
|
537
|
+
list = this.filterItem(list);
|
|
538
|
+
|
|
539
|
+
return list.map((item,index) => {
|
|
540
|
+
return {
|
|
541
|
+
...item,
|
|
542
|
+
image_background_url: item.image_background_url?getServiceUrl(item.image_background_url):'',
|
|
543
|
+
image_url: item.image_url?getServiceUrl(item.image_url):''
|
|
544
|
+
}
|
|
545
|
+
})
|
|
546
|
+
},
|
|
547
|
+
handleOne(list){
|
|
548
|
+
this.info = this.handleImage(list);
|
|
549
|
+
|
|
550
|
+
//轮播图记录为0条处理
|
|
551
|
+
if( this.info.length === 0) return
|
|
552
|
+
let current = this.current || 0;
|
|
553
|
+
this.currentImage = this.info[current]['image_background_url']
|
|
554
|
+
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
555
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @description 监听事件变化
|
|
561
|
+
* @param container {object} 业务组件对象自己
|
|
562
|
+
*/
|
|
563
|
+
init(container) {
|
|
564
|
+
this.poster = getContainerPropsValue(container, 'content.poster', {size:{width: 750, height: 160}, type: '1'});
|
|
565
|
+
if (this.poster.type) {
|
|
566
|
+
this.posterType = this.poster.type
|
|
567
|
+
}
|
|
568
|
+
if(this.poster.position) {
|
|
569
|
+
this.posterPosition = this.poster.position
|
|
570
|
+
}
|
|
571
|
+
this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
|
|
572
|
+
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
573
|
+
this.padding = getContainerPropsValue(container, 'content.padding', 0);
|
|
574
|
+
|
|
575
|
+
//静态图,一分屏并且间距为0设置
|
|
576
|
+
if(this.isCarousel === 1 && this.posterType === '1' && this.padding === 0) {
|
|
577
|
+
this.padding = 20;
|
|
578
|
+
}
|
|
579
|
+
this.rows = getContainerPropsValue(container, 'content.rows', 1);
|
|
580
|
+
if(this.posterType === '1' && this.isCarousel === 2) {
|
|
581
|
+
this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
|
|
582
|
+
}
|
|
583
|
+
this.mS = getContainerPropsValue(container, 'content.margin', {});
|
|
584
|
+
this.background = getContainerPropsValue(container, "content.background", '');
|
|
585
|
+
this.bgImagePadding = getContainerPropsValue(container, 'content.bgImagePadding', {});
|
|
586
|
+
//content
|
|
587
|
+
|
|
588
|
+
this.mode = getContainerPropsValue(container, 'content.dot_type', 'dot');
|
|
589
|
+
|
|
590
|
+
this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
|
|
591
|
+
this.useNumber = getContainerPropsValue(container, 'content.number', 1);
|
|
592
|
+
this.bgColor = getContainerPropsValue(container, 'content.bgColor', 'rgba(0,0,0,0)')
|
|
593
|
+
|
|
594
|
+
if(this.poster.size) {
|
|
595
|
+
this.width = this.poster.size.width;
|
|
596
|
+
this.height = this.poster.size.height;
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
|
|
600
|
+
onJfbLoad(options) {
|
|
601
|
+
this.params = options;
|
|
602
|
+
jfbRootExec('getListPosterContent', {
|
|
603
|
+
vm: this,
|
|
604
|
+
data: {
|
|
605
|
+
page_id: this.pageAttr['page_id'], //页面ID
|
|
606
|
+
container_id: this.containerId, //组件ID
|
|
607
|
+
page_size: this.useNumber //可以不传
|
|
608
|
+
},
|
|
609
|
+
})
|
|
610
|
+
.then(res => {
|
|
611
|
+
|
|
612
|
+
//非预览模式或者预览模式返回广告列表
|
|
613
|
+
if(!this.isPreview ||
|
|
614
|
+
(this.isPreview && res.list.length > 0)
|
|
615
|
+
){
|
|
616
|
+
this.outOneHeight = this.height * Number(res.list.length) + (Number(this.padding) * (Number(this.useNumber) - 1));
|
|
617
|
+
}
|
|
618
|
+
//预览模式未返回广告列表
|
|
619
|
+
else {
|
|
620
|
+
this.outOneHeight = this.height * Number(this.useNumber) + (Number(this.padding) * (Number(this.useNumber) - 1));
|
|
621
|
+
}
|
|
622
|
+
if(res.list.length === 0 && this.isPreview) {
|
|
623
|
+
res.list = this.getTestData();
|
|
624
|
+
}
|
|
625
|
+
if (this.posterType === '1') this.handleOne(res.list);
|
|
626
|
+
if (this.posterType === '2') this.handleOne(res.list);
|
|
627
|
+
if (this.posterType === '3') this.handleOne(res.list);
|
|
628
|
+
if (this.posterType === '4') this.handleOne(res.list);
|
|
629
|
+
if(this.$configProject.isPreview) this.noData = true;
|
|
630
|
+
else this.noData = res.list.length > 0;
|
|
631
|
+
})
|
|
632
|
+
.catch(error => {
|
|
633
|
+
console.error(error)
|
|
634
|
+
})
|
|
635
|
+
},
|
|
636
|
+
|
|
637
|
+
onJfbShow(){
|
|
638
|
+
//不支持背景不处理
|
|
639
|
+
if(this.isSupport==='N') return;
|
|
640
|
+
|
|
641
|
+
//启动轮播图
|
|
642
|
+
this.pageSwiperShow = this.$root.$isShow;
|
|
643
|
+
|
|
644
|
+
//隐藏模式或者数据为0不处理
|
|
645
|
+
if(this.$root.$isShow === false || this.info.length === 0) {
|
|
646
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
651
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
|
|
655
|
+
onJfbHide(){
|
|
656
|
+
if(this.isSupport==='Y') {
|
|
657
|
+
this.$xdRoot.$emit('setLayoutPageBg',null);
|
|
658
|
+
this.pageSwiperShow = false;
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
|
|
662
|
+
onJfbUpdate(data) {
|
|
663
|
+
this.onJfbLoad(this.params);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
</script>
|
|
669
|
+
|
|
670
|
+
<style scoped lang="less">
|
|
671
|
+
@import "./JfbBasePosterLess.less";
|
|
672
|
+
|
|
673
|
+
.jfb-base-poster {
|
|
674
|
+
min-height: 60rpx!important;
|
|
675
|
+
&__body{
|
|
676
|
+
|
|
677
|
+
//#ifdef MP-WEIXIN
|
|
678
|
+
display: inline-block;
|
|
679
|
+
width: 100%;
|
|
680
|
+
//#endif
|
|
681
|
+
|
|
682
|
+
& > view.jfb-base-poster-cont {
|
|
683
|
+
box-sizing: border-box;
|
|
684
|
+
overflow: hidden;
|
|
685
|
+
justify-content: center;
|
|
686
|
+
align-items: center;
|
|
687
|
+
display: flex;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
}
|
|
691
|
+
&__one.notCarousel {
|
|
692
|
+
position: relative;
|
|
693
|
+
box-sizing: border-box;
|
|
694
|
+
display: flex;
|
|
695
|
+
justify-content: center;
|
|
696
|
+
align-items: center;
|
|
697
|
+
flex-flow: wrap;
|
|
698
|
+
|
|
699
|
+
& > view {
|
|
700
|
+
box-sizing: border-box;
|
|
701
|
+
overflow: hidden;
|
|
702
|
+
|
|
703
|
+
&:last-child {
|
|
704
|
+
margin-bottom: 0!important;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
& > image {
|
|
708
|
+
width: 100%;
|
|
709
|
+
height: 100%;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
&__one.carousel {
|
|
715
|
+
position: relative;
|
|
716
|
+
box-sizing: border-box;
|
|
717
|
+
display: flex;
|
|
718
|
+
justify-content: center;
|
|
719
|
+
align-items: center;
|
|
720
|
+
overflow: hidden;
|
|
721
|
+
|
|
722
|
+
& .carousel-mask {
|
|
723
|
+
position: absolute;
|
|
724
|
+
left: 0;
|
|
725
|
+
right: 0;
|
|
726
|
+
top: 0;
|
|
727
|
+
bottom: 0;
|
|
728
|
+
background: rgba(0,0,0,0);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
}
|
|
733
|
+
</style>
|