jufubao-base 1.0.132-beta1 → 1.0.132-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -3
- package/src/components/JfbBaseAddress/Attr.js +11 -5
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
- package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +18 -19
- package/src/components/JfbBaseAfterOrderDetail/Attr.js +19 -7
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +6 -4
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +18 -19
- package/src/components/JfbBaseAfterOrderList/Attr.js +25 -16
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +6 -9
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +18 -19
- package/src/components/JfbBaseBack/JfbBaseBackLess.less +18 -19
- package/src/components/JfbBaseBackground/Attr.js +9 -8
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +0 -3
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +18 -19
- package/src/components/JfbBaseBlock/Attr.js +12 -2
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +1 -8
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +18 -19
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +18 -19
- package/src/components/JfbBaseCard/Attr.js +76 -34
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
- package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
- package/src/components/JfbBaseCardDetail/Attr.js +4 -3
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
- package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
- package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
- package/src/components/JfbBaseCardEntry/Attr.js +86 -67
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +3 -2
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
- package/src/components/JfbBaseCardInfo/Attr.js +22 -16
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
- package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
- package/src/components/JfbBaseCardMerge/Attr.js +21 -8
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
- package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
- package/src/components/JfbBaseCardShift/Attr.js +18 -4
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
- package/src/components/JfbBaseCardShift/Mock.js +21 -0
- package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
- package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
- package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
- package/src/components/JfbBaseCardV2/Attr.js +19 -15
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
- package/src/components/JfbBaseCardV3/Attr.js +16 -12
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
- package/src/components/JfbBaseCity/Attr.js +2 -4
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
- package/src/components/{JfbBaseWalletDetail → JfbBaseClear}/Attr.js +1 -0
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
- package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
- package/src/components/JfbBaseConDialog/Api.js +1 -1
- package/src/components/JfbBaseConDialog/Attr.js +30 -20
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +45 -26
- package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
- package/src/components/JfbBaseConDialog/Mock.js +20 -1
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
- package/src/components/JfbBaseConList/Attr.js +149 -224
- package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
- package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
- package/src/components/JfbBaseEntry/Attr.js +33 -21
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
- package/src/components/JfbBaseFastLink/Api.js +1 -54
- package/src/components/JfbBaseFastLink/Attr.js +168 -116
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
- package/src/components/JfbBaseFooter/Attr.js +28 -22
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
- package/src/components/JfbBaseHeader/Attr.js +89 -91
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
- package/src/components/JfbBaseLogin/Attr.js +111 -88
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -1
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
- package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
- package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
- package/src/components/JfbBaseMapSearch/Attr.js +0 -15
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
- package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
- package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
- package/src/components/JfbBaseMySetting/Attr.js +1 -1
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
- package/src/components/JfbBaseNotice/Attr.js +97 -56
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +70 -52
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
- package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +6 -3
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
- package/src/components/JfbBaseOrderList/Attr.js +55 -43
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +5 -3
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
- package/src/components/JfbBasePay/Attr.js +2 -13
- package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
- package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
- package/src/components/JfbBasePay/Mock.js +2 -1
- package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
- package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
- package/src/components/JfbBasePoster/Attr.js +103 -83
- package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
- package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
- package/src/components/JfbBasePosterEntry/Attr.js +44 -33
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
- package/src/components/JfbBasePosterType/Attr.js +82 -48
- package/src/components/JfbBasePosterType/FourScreen.vue +8 -2
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
- package/src/components/JfbBaseRecharge/Attr.js +35 -23
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
- package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
- package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
- package/src/components/JfbBaseSearch/Attr.js +6 -148
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
- package/src/components/JfbBaseSetPwd/Attr.js +6 -147
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
- package/src/components/JfbBaseSuccess/Attr.js +78 -17
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
- package/src/components/JfbBaseUserCenter/Attr.js +72 -53
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
- package/src/components/JfbBaseUserInfo/Attr.js +54 -45
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
- package/src/components/JfbBaseUserOrder/Attr.js +118 -92
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
- package/src/components/JfbBaseVideo/Attr.js +72 -19
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
- package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
- package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
- package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +32 -26
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
- package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
- package/src/components/JfbBaseLine/Attr.js +0 -59
- package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
- package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
- package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
- package/src/components/JfbBasePosterType/Screen.vue +0 -284
- package/src/components/JfbBaseSearch/Api.js +0 -60
- package/src/components/JfbBaseSearch/Mock.js +0 -5
|
@@ -13,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,15 +67,11 @@
|
|
|
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
|
|
|
@@ -85,26 +79,6 @@
|
|
|
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(()=>{
|
|
@@ -152,7 +132,6 @@
|
|
|
152
132
|
this.current = e.detail.current;
|
|
153
133
|
},
|
|
154
134
|
handleClick(item, index){
|
|
155
|
-
debugger
|
|
156
135
|
this.current = index;
|
|
157
136
|
const handle = (data) => {
|
|
158
137
|
try {
|
|
@@ -197,12 +176,6 @@
|
|
|
197
176
|
},
|
|
198
177
|
handleOne(list){
|
|
199
178
|
this.info = this.handleImage(list);
|
|
200
|
-
console.log('this.info',this.info)
|
|
201
|
-
},
|
|
202
|
-
getDefualtValue(key){
|
|
203
|
-
if (key === 'margin') {
|
|
204
|
-
return {top: 0, bottom: 0, left: 0, right: 0}
|
|
205
|
-
}
|
|
206
179
|
},
|
|
207
180
|
|
|
208
181
|
/**
|
|
@@ -211,7 +184,6 @@
|
|
|
211
184
|
*/
|
|
212
185
|
init(container) {
|
|
213
186
|
this.radius = getContainerPropsValue(container, 'content.radius', '20');
|
|
214
|
-
this.padding = 0;
|
|
215
187
|
this.poster = getContainerPropsValue(container, 'content.nav', {});
|
|
216
188
|
if (this.poster.position) {
|
|
217
189
|
this.posterPosition = this.poster.position
|
|
@@ -225,13 +197,15 @@
|
|
|
225
197
|
this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
|
|
226
198
|
this.useNumber = getContainerPropsValue(container, 'content.number', 1);
|
|
227
199
|
this.shadow = getContainerPropsValue(container, 'content.shadow', 2);
|
|
228
|
-
this.
|
|
200
|
+
this.shadowColor = getContainerPropsValue(container, 'content.shadowColor', 'rgba(0,0,0,.3)');
|
|
201
|
+
this.mS = getContainerPropsValue(container, 'content.margin', {});
|
|
229
202
|
|
|
230
203
|
//样式设置
|
|
231
204
|
this.textColor = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
232
205
|
this.bgColor = getContainerPropsValue(container, 'content.bgColor','rgba(0,0,0,0)');
|
|
233
206
|
this.bgRadius = getContainerPropsValue(container, 'content.bgRadius', '0');
|
|
234
207
|
|
|
208
|
+
|
|
235
209
|
},
|
|
236
210
|
|
|
237
211
|
onJfbLoad(options) {
|
|
@@ -247,9 +221,10 @@
|
|
|
247
221
|
})
|
|
248
222
|
.then(res => {
|
|
249
223
|
if (res.list.length === 0 && this.isPreview) {
|
|
224
|
+
let testData = this.$xdUniHelper.cloneDeep(this['posterTest']);
|
|
250
225
|
let temp = [];
|
|
251
226
|
for (let i = 0; i < this.useNumber; i++) {
|
|
252
|
-
temp.push({...
|
|
227
|
+
temp.push({...testData, content_id: i, content_name: `${testData.content_name}(${i})`})
|
|
253
228
|
}
|
|
254
229
|
res.list = temp
|
|
255
230
|
}
|
|
@@ -261,7 +236,6 @@
|
|
|
261
236
|
})
|
|
262
237
|
},
|
|
263
238
|
|
|
264
|
-
|
|
265
239
|
onJfbUpdate(data){
|
|
266
240
|
this.onJfbLoad(this.params);
|
|
267
241
|
}
|
|
@@ -276,11 +250,14 @@
|
|
|
276
250
|
|
|
277
251
|
.jfb-base-poster-type {
|
|
278
252
|
&__body{
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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
|
+
|
|
284
261
|
}
|
|
285
262
|
&__one.notCarousel {
|
|
286
263
|
position: relative;
|
|
@@ -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**/
|
|
@@ -8,38 +8,31 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '
|
|
11
|
+
label: '票券框自定义文案:',
|
|
12
12
|
ele: 'el-input',
|
|
13
13
|
type: 'text',
|
|
14
14
|
valueKey: 'card_num_placeholder',
|
|
15
|
+
groupKey:'content',
|
|
15
16
|
value: data.card_num_placeholder||'',
|
|
16
|
-
placeholder: '
|
|
17
|
+
placeholder: '请输入票券框自定义文案',
|
|
17
18
|
className: 'input80'
|
|
18
19
|
},
|
|
19
20
|
{
|
|
20
|
-
label: '
|
|
21
|
+
label: '票券充值点数自定义文案:',
|
|
21
22
|
ele: 'el-input',
|
|
22
23
|
type: 'text',
|
|
23
24
|
valueKey: 'point_placeholder',
|
|
25
|
+
groupKey:'content',
|
|
24
26
|
value: data.point_placeholder || '',
|
|
25
|
-
placeholder: '
|
|
27
|
+
placeholder: '请输入票券充值点数自定义文案',
|
|
26
28
|
className: 'input80'
|
|
27
29
|
},
|
|
28
|
-
|
|
29
|
-
label: '支付路径:', //label
|
|
30
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
31
|
-
valueKey: 'payPath', //form[valueKey]
|
|
32
|
-
placeholder: '请选择支付路径',
|
|
33
|
-
value: data['payPath'] || {},
|
|
34
|
-
setting: {
|
|
35
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
36
|
-
},
|
|
37
|
-
inline: false,
|
|
38
|
-
},
|
|
30
|
+
|
|
39
31
|
{
|
|
40
32
|
label: '注意事项:',
|
|
41
33
|
ele: 'xd-site-news',
|
|
42
34
|
valueKey: 'notice',
|
|
35
|
+
groupKey:'content',
|
|
43
36
|
value: data.notice || null,
|
|
44
37
|
className: 'input70',
|
|
45
38
|
setting: {
|
|
@@ -60,7 +53,10 @@ export default {
|
|
|
60
53
|
}
|
|
61
54
|
|
|
62
55
|
//获取返回参数(场景类型名称为必填)
|
|
63
|
-
let loading = XdBus.getParentApi('loading')({});
|
|
56
|
+
//let loading = XdBus.getParentApi('loading')({});
|
|
57
|
+
|
|
58
|
+
//获取返回参数(场景类型名称为必填)
|
|
59
|
+
let loading = { close(){}}
|
|
64
60
|
|
|
65
61
|
//获取显示内容
|
|
66
62
|
if (action === 'screen') {
|
|
@@ -104,6 +100,7 @@ export default {
|
|
|
104
100
|
|
|
105
101
|
//使用内容分类
|
|
106
102
|
if (action === 'cmsPublishEditxContent') {
|
|
103
|
+
loading = XdBus.getParentApi('loading')({});
|
|
107
104
|
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
108
105
|
.then(res => {
|
|
109
106
|
console.log('cmsPublishEditxContent', res)
|
|
@@ -118,6 +115,7 @@ export default {
|
|
|
118
115
|
|
|
119
116
|
//位置列表
|
|
120
117
|
if (action === 'getListPostion') {
|
|
118
|
+
loading = XdBus.getParentApi('loading')({});
|
|
121
119
|
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
122
120
|
.then(res => {
|
|
123
121
|
loading.close();
|
|
@@ -131,6 +129,7 @@ export default {
|
|
|
131
129
|
|
|
132
130
|
//位置创建
|
|
133
131
|
if (action === 'addPostion') {
|
|
132
|
+
loading = XdBus.getParentApi('loading')({});
|
|
134
133
|
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
135
134
|
.then(res => {
|
|
136
135
|
loading.close();
|
|
@@ -145,6 +144,7 @@ export default {
|
|
|
145
144
|
|
|
146
145
|
//位置编辑
|
|
147
146
|
if (action === 'editPostion') {
|
|
147
|
+
loading = XdBus.getParentApi('loading')({});
|
|
148
148
|
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
149
149
|
.then(res => {
|
|
150
150
|
loading.close();
|
|
@@ -159,6 +159,7 @@ export default {
|
|
|
159
159
|
|
|
160
160
|
//位置删除
|
|
161
161
|
if (action === 'deleltePostion') {
|
|
162
|
+
loading = XdBus.getParentApi('loading')({});
|
|
162
163
|
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
163
164
|
.then(res => {
|
|
164
165
|
loading.close();
|
|
@@ -173,6 +174,7 @@ export default {
|
|
|
173
174
|
|
|
174
175
|
//获取广告位内容列表
|
|
175
176
|
if (action === 'getListContent') {
|
|
177
|
+
loading = XdBus.getParentApi('loading')({});
|
|
176
178
|
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
177
179
|
.then(res => {
|
|
178
180
|
loading.close();
|
|
@@ -186,6 +188,7 @@ export default {
|
|
|
186
188
|
|
|
187
189
|
//广告内容创建
|
|
188
190
|
if (action === 'addContent') {
|
|
191
|
+
loading = XdBus.getParentApi('loading')({});
|
|
189
192
|
XdBus.getParentApi('addNewsContent')(data.params)
|
|
190
193
|
.then(res => {
|
|
191
194
|
loading.close();
|
|
@@ -200,6 +203,7 @@ export default {
|
|
|
200
203
|
|
|
201
204
|
//广告内容编辑
|
|
202
205
|
if (action === 'editContent') {
|
|
206
|
+
loading = XdBus.getParentApi('loading')({});
|
|
203
207
|
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
204
208
|
.then(res => {
|
|
205
209
|
loading.close();
|
|
@@ -214,6 +218,7 @@ export default {
|
|
|
214
218
|
|
|
215
219
|
//广告内容删除
|
|
216
220
|
if (action === 'deleteContent') {
|
|
221
|
+
loading = XdBus.getParentApi('loading')({});
|
|
217
222
|
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
218
223
|
.then(res => {
|
|
219
224
|
loading.close();
|
|
@@ -228,6 +233,7 @@ export default {
|
|
|
228
233
|
|
|
229
234
|
//内容发布
|
|
230
235
|
if (action === 'publish') {
|
|
236
|
+
loading = XdBus.getParentApi('loading')({});
|
|
231
237
|
console.log('publish', data.params)
|
|
232
238
|
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
233
239
|
.then(res => {
|
|
@@ -242,19 +248,25 @@ export default {
|
|
|
242
248
|
|
|
243
249
|
//通知页面进行刷新
|
|
244
250
|
if (action === 'update') {
|
|
251
|
+
loading = XdBus.getParentApi('loading')({});
|
|
245
252
|
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
246
253
|
loading.close()
|
|
247
254
|
}
|
|
248
255
|
},
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
label: '票券支付路径:',
|
|
259
|
+
ele: 'xd-select-pages-path',
|
|
260
|
+
valueKey: 'payPath',
|
|
261
|
+
groupKey:'advanced',
|
|
262
|
+
placeholder: '请选择票券支付路径',
|
|
263
|
+
value: data['payPath'] || {},
|
|
264
|
+
setting: {
|
|
265
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
266
|
+
},
|
|
249
267
|
inline: false,
|
|
250
|
-
notice: '',
|
|
251
|
-
rules: [
|
|
252
|
-
{required: true, message: '请配置温馨提示内容', trigger: 'change'},
|
|
253
|
-
],
|
|
254
268
|
},
|
|
255
269
|
].filter(i=>i)
|
|
256
270
|
},
|
|
257
|
-
advanced: [
|
|
258
|
-
|
|
259
|
-
],
|
|
271
|
+
advanced: [ ],
|
|
260
272
|
};
|
|
@@ -42,10 +42,16 @@
|
|
|
42
42
|
>
|
|
43
43
|
</view>
|
|
44
44
|
</view>
|
|
45
|
-
<view
|
|
46
|
-
<view
|
|
47
|
-
<view v-html="content"></view>
|
|
45
|
+
<view class="xd-notice-content" v-if="content">
|
|
46
|
+
<view>注意事项:</view>
|
|
47
|
+
<view v-html="content" class="prod_info"></view>
|
|
48
48
|
</view>
|
|
49
|
+
<view
|
|
50
|
+
v-if="isPreview && statusContent === true && content === '' "
|
|
51
|
+
class="xd-notice"
|
|
52
|
+
:style="{ color: dangerColor,fontSize: 24 + 'rpx',backgroundColor:noticeBgc }"
|
|
53
|
+
>注意事项未配置数据,因此改模块在正式环境将不显示</view>
|
|
54
|
+
<view class="bottom_btn-mask"></view>
|
|
49
55
|
</view>
|
|
50
56
|
</view>
|
|
51
57
|
</template>
|
|
@@ -58,6 +64,7 @@ import JfbBaseRechargeMixin from "./JfbBaseRechargeMixin";
|
|
|
58
64
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
59
65
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
60
66
|
import extsMixins from "@/mixins/extsMixins";
|
|
67
|
+
import Color from "color";
|
|
61
68
|
export default {
|
|
62
69
|
name: "JfbBaseRecharge",
|
|
63
70
|
components: {
|
|
@@ -68,13 +75,19 @@ export default {
|
|
|
68
75
|
data() {
|
|
69
76
|
return {
|
|
70
77
|
card_num_placeholder: "",
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
point_placeholder: "",
|
|
79
|
+
|
|
73
80
|
cardNumber: "",
|
|
74
81
|
card_point: "",
|
|
75
82
|
payPath: "",
|
|
76
83
|
amount: "",
|
|
77
|
-
timer:null
|
|
84
|
+
timer:null,
|
|
85
|
+
|
|
86
|
+
//提示文案
|
|
87
|
+
isPreview: false,
|
|
88
|
+
content: "",
|
|
89
|
+
statusContent: false,
|
|
90
|
+
noticeBgc:'',
|
|
78
91
|
};
|
|
79
92
|
},
|
|
80
93
|
watch: {
|
|
@@ -91,6 +104,8 @@ export default {
|
|
|
91
104
|
},
|
|
92
105
|
},
|
|
93
106
|
created() {
|
|
107
|
+
this.isPreview = this.$configProject.isPreview;
|
|
108
|
+
this.noticeBgc = Color(this.dangerColor).alpha(0.1).toString();
|
|
94
109
|
this.init(this.container);
|
|
95
110
|
},
|
|
96
111
|
methods: {
|
|
@@ -125,8 +140,10 @@ export default {
|
|
|
125
140
|
},
|
|
126
141
|
})
|
|
127
142
|
.then((res) => {
|
|
128
|
-
|
|
129
|
-
|
|
143
|
+
if(res && res.list && res.list.length > 0) {
|
|
144
|
+
this.content = res.list[0].content;
|
|
145
|
+
}
|
|
146
|
+
this.statusContent = true;
|
|
130
147
|
})
|
|
131
148
|
.catch((error) => {
|
|
132
149
|
console.error(error);
|
|
@@ -216,6 +233,35 @@ export default {
|
|
|
216
233
|
margin-bottom: unit(30, rpx);
|
|
217
234
|
}
|
|
218
235
|
}
|
|
236
|
+
|
|
237
|
+
.xd-notice-content {
|
|
238
|
+
padding: 0 40rpx 40rpx 40rpx;
|
|
239
|
+
& > view:first-child {
|
|
240
|
+
font-size: 32rpx;
|
|
241
|
+
font-weight: 500;
|
|
242
|
+
color: #333;
|
|
243
|
+
margin-bottom: 20rpx;
|
|
244
|
+
}
|
|
245
|
+
& > view:last-child {
|
|
246
|
+
line-height: 44rpx;
|
|
247
|
+
font-size: 26rpx;
|
|
248
|
+
color: #666;
|
|
249
|
+
/deep/ img, /deep/ image{
|
|
250
|
+
max-width: 100% !important;
|
|
251
|
+
height: auto !important;
|
|
252
|
+
margin: 22rpx 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/deep/ *{
|
|
256
|
+
max-width: 100% !important;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
.xd-notice {
|
|
261
|
+
margin-top: unit(20, rpx);
|
|
262
|
+
padding: unit(40, rpx);
|
|
263
|
+
border-radius: unit(15, rpx)
|
|
264
|
+
}
|
|
219
265
|
}
|
|
220
266
|
}
|
|
221
267
|
</style>
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-recharge {
|
|
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-recharge {
|
|
75
|
-
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
79
78
|
}
|
|
80
79
|
/**endNotPreview**/
|