jufubao-base 1.0.129 → 1.0.130-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 +5 -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 +39 -34
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +51 -73
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
- package/src/components/JfbBaseRecharge/Attr.js +35 -23
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
- package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
- package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
- package/src/components/JfbBaseSearch/Attr.js +6 -148
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
- package/src/components/JfbBaseSetPwd/Attr.js +6 -147
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
- package/src/components/JfbBaseSuccess/Attr.js +78 -17
- package/src/components/JfbBaseSuccess/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
|
@@ -15,8 +15,14 @@
|
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-wx-authorize__body">
|
|
17
17
|
<view class="app-body">
|
|
18
|
-
<view
|
|
19
|
-
|
|
18
|
+
<view
|
|
19
|
+
class="app-body__bg"
|
|
20
|
+
:style="{
|
|
21
|
+
height: layoutInfo.bodyMinHeightRpx + 'rpx',
|
|
22
|
+
backgroundImage:'url('+ (bgImage ? bgImage:'none') + ')',
|
|
23
|
+
color:'#ff0'
|
|
24
|
+
}"
|
|
25
|
+
>
|
|
20
26
|
</view>
|
|
21
27
|
<view class="app-body__bottom">
|
|
22
28
|
<view class="app-body__bottom-btn">
|
|
@@ -68,7 +74,7 @@
|
|
|
68
74
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
69
75
|
import {Base64} from 'js-base64';
|
|
70
76
|
import {mapState} from 'vuex';
|
|
71
|
-
|
|
77
|
+
|
|
72
78
|
export default {
|
|
73
79
|
name: "JfbBaseWxAuthorize",
|
|
74
80
|
components: {
|
|
@@ -107,7 +113,7 @@
|
|
|
107
113
|
this.isPreview = this.$configProject.isPreview;
|
|
108
114
|
this.init(this.container);
|
|
109
115
|
},
|
|
110
|
-
|
|
116
|
+
|
|
111
117
|
methods: {
|
|
112
118
|
handlePrivacy(code) {
|
|
113
119
|
let params = `page_id=${this.pageAttr["page_id"]}`;
|
|
@@ -116,11 +122,11 @@
|
|
|
116
122
|
url: `/pages/content/content?${params}`
|
|
117
123
|
})
|
|
118
124
|
},
|
|
119
|
-
|
|
125
|
+
|
|
120
126
|
handleRadioClick(e) {
|
|
121
127
|
this.selectPolicy = !this.selectPolicy;
|
|
122
128
|
},
|
|
123
|
-
|
|
129
|
+
|
|
124
130
|
decryptPhoneNumber(e) {
|
|
125
131
|
if (e === undefined) {
|
|
126
132
|
this.$xdConfirm({
|
|
@@ -136,10 +142,10 @@
|
|
|
136
142
|
if (e.detail.errMsg.indexOf('fail') !== -1) {
|
|
137
143
|
return;
|
|
138
144
|
}
|
|
139
|
-
|
|
145
|
+
|
|
140
146
|
let {iv, encryptedData} = e.detail;
|
|
141
147
|
let raw_data = JSON.stringify({iv, encryptedData});
|
|
142
|
-
|
|
148
|
+
|
|
143
149
|
jfbRootExec("userPhoneWxLogin", {
|
|
144
150
|
vm: this,
|
|
145
151
|
data: {
|
|
@@ -177,10 +183,10 @@
|
|
|
177
183
|
zIndex: this.isPreview ? 2000 : 1400
|
|
178
184
|
});
|
|
179
185
|
})
|
|
180
|
-
|
|
186
|
+
|
|
181
187
|
},
|
|
182
|
-
|
|
183
|
-
|
|
188
|
+
|
|
189
|
+
|
|
184
190
|
/**
|
|
185
191
|
* @description 监听事件变化
|
|
186
192
|
* @param container {object} 业务组件对象自己
|
|
@@ -191,7 +197,7 @@
|
|
|
191
197
|
this.notice = getContainerPropsValue(container, 'content.notice', '');
|
|
192
198
|
this.textColor = getContainerPropsValue(container, 'content.textColor', '#fff');
|
|
193
199
|
},
|
|
194
|
-
|
|
200
|
+
|
|
195
201
|
onJfbLoad(options = {}) {
|
|
196
202
|
if(this.$xdUniHelper.checkVarType(options) === 'object') {
|
|
197
203
|
this.auth_code = options.auth_code;
|
|
@@ -224,30 +230,30 @@
|
|
|
224
230
|
height: 100%;
|
|
225
231
|
position: relative;
|
|
226
232
|
box-sizing: border-box;
|
|
227
|
-
|
|
233
|
+
|
|
228
234
|
&__bg {
|
|
229
235
|
width: 100%;
|
|
230
236
|
display: flex;
|
|
231
237
|
justify-content: center;
|
|
232
238
|
align-items: center;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
239
|
+
background-repeat: no-repeat;
|
|
240
|
+
background-size: 100% 100%;
|
|
241
|
+
background-position: top left;
|
|
242
|
+
|
|
237
243
|
}
|
|
238
|
-
|
|
244
|
+
|
|
239
245
|
&__bottom {
|
|
240
246
|
position: absolute;
|
|
241
247
|
bottom: unit(80, rpx);
|
|
242
248
|
right: unit(30, rpx);
|
|
243
249
|
left: unit(30, rpx);
|
|
244
|
-
|
|
250
|
+
|
|
245
251
|
&-btn {
|
|
246
252
|
display: flex;
|
|
247
253
|
justify-content: center;
|
|
248
254
|
align-items: center;
|
|
249
255
|
padding-bottom: unit(26, rpx);
|
|
250
|
-
|
|
256
|
+
|
|
251
257
|
& > button {
|
|
252
258
|
width: unit(400, rpx);
|
|
253
259
|
height: unit(90, rpx);
|
|
@@ -262,13 +268,13 @@
|
|
|
262
268
|
color: #fff;
|
|
263
269
|
}
|
|
264
270
|
}
|
|
265
|
-
|
|
271
|
+
|
|
266
272
|
&-tips {
|
|
267
273
|
font-size: @xd-font-size-base;
|
|
268
274
|
color: #fffbf9;
|
|
269
275
|
text-align: center;
|
|
270
276
|
}
|
|
271
|
-
|
|
277
|
+
|
|
272
278
|
&-policy {
|
|
273
279
|
padding-top: unit(50, rpx);
|
|
274
280
|
display: flex;
|
|
@@ -276,21 +282,21 @@
|
|
|
276
282
|
align-items: center;
|
|
277
283
|
font-size: @xd-font-size-base;
|
|
278
284
|
color: #fffbf9;
|
|
279
|
-
|
|
285
|
+
|
|
280
286
|
& > view:first-child {
|
|
281
287
|
transform: scale(0.7);
|
|
282
288
|
}
|
|
283
|
-
|
|
289
|
+
|
|
284
290
|
& > view:last-child {
|
|
285
291
|
display: flex;
|
|
286
292
|
justify-content: flex-start;
|
|
287
293
|
align-items: center;
|
|
288
294
|
flex-wrap: wrap;
|
|
289
|
-
|
|
295
|
+
|
|
290
296
|
& > view:first-child {
|
|
291
297
|
color: #fff;
|
|
292
298
|
}
|
|
293
|
-
|
|
299
|
+
|
|
294
300
|
.privacy_book {
|
|
295
301
|
color: #e5e5e5;
|
|
296
302
|
text-decoration: underline;
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-wx-authorize {
|
|
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-wx-authorize {
|
|
75
|
-
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
79
78
|
}
|
|
80
79
|
/**endNotPreview**/
|
|
@@ -7,33 +7,37 @@ export default {
|
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
|
-
{
|
|
11
|
-
label: '提示图片:', //label
|
|
12
|
-
ele: 'xd-upload', //package 名称
|
|
13
|
-
valueKey: 'noticeBg', //form[valueKey]
|
|
14
|
-
value: data.noticeBg || null, //v-model
|
|
15
|
-
defaultValue: data.noticeBg || null, //默认图片对象
|
|
16
|
-
slot: true, //按钮是否使用slot
|
|
17
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
|
|
18
|
-
type: ['jpg', 'png', 'jpeg'],
|
|
19
|
-
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
20
|
-
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
21
|
-
size: 5, //5M
|
|
22
|
-
action: 'aliyun',
|
|
23
|
-
},
|
|
24
10
|
{
|
|
25
11
|
label: '按钮自定义文案:',
|
|
26
12
|
ele: 'el-input',
|
|
27
13
|
type: 'text',
|
|
28
14
|
valueKey: 'btn_placeholder',
|
|
15
|
+
groupKey: 'content',
|
|
29
16
|
value: data.btn_placeholder || '',
|
|
30
17
|
placeholder: '按钮自定义文案',
|
|
31
18
|
className: 'input80'
|
|
32
19
|
},
|
|
33
20
|
{
|
|
34
|
-
label: '
|
|
35
|
-
ele: 'xd-
|
|
36
|
-
valueKey: '
|
|
21
|
+
label: '提示图片:',
|
|
22
|
+
ele: 'xd-upload',
|
|
23
|
+
valueKey: 'noticeBg',
|
|
24
|
+
groupKey: 'content',
|
|
25
|
+
value: data.noticeBg || null,
|
|
26
|
+
defaultValue: data.noticeBg || null,
|
|
27
|
+
slot: true,
|
|
28
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:200*200像素',
|
|
29
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
30
|
+
styleType: 'one',
|
|
31
|
+
uploadType: 'aliyun',
|
|
32
|
+
size: 5, //5M
|
|
33
|
+
action: 'aliyun',
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
{
|
|
37
|
+
label: '返回地址路径:',
|
|
38
|
+
ele: 'xd-select-pages-path',
|
|
39
|
+
valueKey: 'backPath',
|
|
40
|
+
groupKey: 'advanced',
|
|
37
41
|
value: data['backPath'] || {},
|
|
38
42
|
setting: {
|
|
39
43
|
router: XdBus.getParentApi('getPagesTree')
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-wx-authorize-error {
|
|
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-wx-authorize-error {
|
|
75
|
-
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
79
78
|
}
|
|
80
79
|
/**endNotPreview**/
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
style: [],
|
|
5
|
-
advanced: [],
|
|
6
|
-
content: [
|
|
7
|
-
{
|
|
8
|
-
label: '背景颜色:', //label
|
|
9
|
-
ele: 'xd-color', //package 名称
|
|
10
|
-
valueKey: 'bgcolor', //form[valueKey]
|
|
11
|
-
value: '', //v-model
|
|
12
|
-
placeholder: '请输入占位框背景颜色',
|
|
13
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
14
|
-
rules: [
|
|
15
|
-
{
|
|
16
|
-
required: true,
|
|
17
|
-
message: '请输入占位框背景颜色',
|
|
18
|
-
trigger: 'blur'
|
|
19
|
-
},
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: '分割线高度:', //label
|
|
24
|
-
ele: 'el-input', //package 名称
|
|
25
|
-
type: 'number',
|
|
26
|
-
valueKey: 'height', //form[valueKey]
|
|
27
|
-
value: 1, //v-model
|
|
28
|
-
placeholder: '请输入分割线高度,单位像素',
|
|
29
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
30
|
-
rules: [
|
|
31
|
-
{
|
|
32
|
-
required: true,
|
|
33
|
-
message: '请输入分割线高度',
|
|
34
|
-
trigger: 'blur'
|
|
35
|
-
},
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: '分割线边距:', //label
|
|
40
|
-
ele: 'xd-margin-padding', //package 名称
|
|
41
|
-
valueKey: 'margin', //form[valueKey]
|
|
42
|
-
value: null, //v-model
|
|
43
|
-
placeholder: '请输入分割线边距',
|
|
44
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
45
|
-
rules: [
|
|
46
|
-
{
|
|
47
|
-
required: true,
|
|
48
|
-
message: '请输入分割线边距,单位像素',
|
|
49
|
-
trigger: 'blur'
|
|
50
|
-
},
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: '', //label
|
|
55
|
-
ele: 'slot', //package 名称
|
|
56
|
-
slot: 'is_reference',
|
|
57
|
-
},
|
|
58
|
-
]
|
|
59
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-line"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{
|
|
6
|
-
editx : isEditx && active,
|
|
7
|
-
noBorder: noBorder
|
|
8
|
-
}"
|
|
9
|
-
>
|
|
10
|
-
<!--#ifdef H5-->
|
|
11
|
-
<view
|
|
12
|
-
class="jfb-base-line__edit"
|
|
13
|
-
:class="{ editx : isEditx && active }"
|
|
14
|
-
v-if="isEditx && active && !noBorder"
|
|
15
|
-
>
|
|
16
|
-
<view class="jfb-base-line__edit-icon" @click="delEdit">删除</view>
|
|
17
|
-
</view>
|
|
18
|
-
<!-- #endif -->
|
|
19
|
-
<view class="jfb-base-line__body">
|
|
20
|
-
<view
|
|
21
|
-
:style="{
|
|
22
|
-
height: height * 2 + 'rpx',
|
|
23
|
-
background: bgcolor,
|
|
24
|
-
marginTop: topMargin * 2 + 'rpx',
|
|
25
|
-
marginBottom: bottomMargin * 2 + 'rpx',
|
|
26
|
-
marginLeft: leftMargin * 2 + 'rpx',
|
|
27
|
-
marginRight: rightMargin * 2 + 'rpx',
|
|
28
|
-
}"
|
|
29
|
-
></view>
|
|
30
|
-
</view>
|
|
31
|
-
</view>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
36
|
-
import JfbBaseLineMixin from "./JfbBaseLineMixin";
|
|
37
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
38
|
-
import extsMixins from "@/mixins/extsMixins"
|
|
39
|
-
import {getContainerPropsValue} from "@/utils/xd.base";
|
|
40
|
-
|
|
41
|
-
export default {
|
|
42
|
-
name: "JfbBaseLine",
|
|
43
|
-
components: {
|
|
44
|
-
XdFontIcon
|
|
45
|
-
},
|
|
46
|
-
mixins: [componentsMixins,extsMixins,JfbBaseLineMixin],
|
|
47
|
-
data() {
|
|
48
|
-
return {
|
|
49
|
-
height: 1, //px
|
|
50
|
-
bgcolor: '#ececec',
|
|
51
|
-
topMargin: 2, //px
|
|
52
|
-
bottomMargin: 2,//px
|
|
53
|
-
leftMargin: 0, //px
|
|
54
|
-
rightMargin: 0 //px
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
watch: {
|
|
58
|
-
container(value) {
|
|
59
|
-
this.init(value)
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
created() {
|
|
63
|
-
this.init(this.container);
|
|
64
|
-
},
|
|
65
|
-
methods: {
|
|
66
|
-
init(value) {
|
|
67
|
-
let bgcolor = getContainerPropsValue(value, 'content.bgcolor');
|
|
68
|
-
let height = getContainerPropsValue(value, 'content.height');
|
|
69
|
-
let margin = getContainerPropsValue(value, 'content.margin');
|
|
70
|
-
if (bgcolor) this.bgcolor = bgcolor;
|
|
71
|
-
if (height) this.height = height;
|
|
72
|
-
|
|
73
|
-
if(margin) {
|
|
74
|
-
this.topMargin = margin.top;
|
|
75
|
-
this.bottomMargin = margin.bottom;
|
|
76
|
-
this.rightMargin = margin.right;
|
|
77
|
-
this.leftMargin = margin.left;
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style scoped lang="less">
|
|
86
|
-
@import "./JfbBaseLineLess.less";
|
|
87
|
-
|
|
88
|
-
.jfb-base-line {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
&__body{
|
|
92
|
-
display: flex;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
align-items: center;
|
|
95
|
-
|
|
96
|
-
& > view {
|
|
97
|
-
overflow: hidden;
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-flow: wrap;
|
|
100
|
-
width: 100%;
|
|
101
|
-
box-sizing: border-box;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
</style>
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @desc 获取绝对路径完整地址
|
|
3
|
-
* @param @path
|
|
4
|
-
**/
|
|
5
|
-
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
-
@basePath: 'business/';
|
|
7
|
-
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
-
|
|
9
|
-
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
-
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
-
background-image: url(@url);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//start
|
|
15
|
-
.jfb-base-line {
|
|
16
|
-
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
min-height: unit(50, rpx);
|
|
19
|
-
|
|
20
|
-
&__body{
|
|
21
|
-
position: relative;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
z-index: 2
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.editx {
|
|
27
|
-
position: relative;
|
|
28
|
-
border: 1px dashed blue;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
z-index: 3
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:hover {
|
|
35
|
-
border: 1px dashed blue;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.noBorder {
|
|
39
|
-
border-color: rgba(0,0,0,0);
|
|
40
|
-
border-width: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
&__edit {
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
position: absolute;
|
|
47
|
-
right: unit(0, rpx);
|
|
48
|
-
top: unit(-52, rpx);
|
|
49
|
-
height: unit(50, rpx);
|
|
50
|
-
line-height: unit(50, rpx);
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
align-items: center;
|
|
54
|
-
background: rgba(0, 0, 0, .6);
|
|
55
|
-
border-radius: unit(10, rpx);
|
|
56
|
-
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
-
color: #fff;
|
|
58
|
-
font-size: unit(22, rpx);
|
|
59
|
-
|
|
60
|
-
&-icon{
|
|
61
|
-
padding: 0 unit(20, rpx);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.editx {
|
|
65
|
-
box-sizing: border-box;
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**notPreview**/
|
|
74
|
-
.jfb-base-line {
|
|
75
|
-
&:before {
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//@AttrImport
|
|
5
|
-
import Attr from "./Attr";
|
|
6
|
-
//@EndAttrImport
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
//#ifdef H5
|
|
13
|
-
|
|
14
|
-
//@AttrData
|
|
15
|
-
Attr:{}, //对外开发编辑属性
|
|
16
|
-
//@EndAttrData
|
|
17
|
-
|
|
18
|
-
// #endif
|
|
19
|
-
cssRoot: 'jfb-base-line'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|