jufubao-base 1.0.130-beta5 → 1.0.130
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 +3 -4
- package/src/components/JfbBaseAddress/Attr.js +5 -11
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
- package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +19 -18
- package/src/components/JfbBaseAfterOrderDetail/Attr.js +7 -19
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +4 -6
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +19 -18
- package/src/components/JfbBaseAfterOrderList/Attr.js +16 -25
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +9 -6
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +19 -18
- package/src/components/JfbBaseBack/JfbBaseBackLess.less +19 -18
- package/src/components/JfbBaseBackground/Attr.js +8 -9
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +19 -18
- package/src/components/JfbBaseBlock/Attr.js +2 -12
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +8 -1
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +19 -18
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +19 -18
- package/src/components/JfbBaseCard/Attr.js +34 -76
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +19 -18
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +19 -18
- package/src/components/JfbBaseCardBindV2/Attr.js +4 -5
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +19 -18
- package/src/components/JfbBaseCardDetail/Attr.js +3 -4
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +19 -18
- package/src/components/JfbBaseCardDetailEntry/Attr.js +8 -10
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +19 -18
- package/src/components/JfbBaseCardDisabled/Attr.js +3 -1
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +19 -18
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +19 -18
- package/src/components/JfbBaseCardEntry/Attr.js +67 -86
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +2 -3
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +19 -18
- package/src/components/JfbBaseCardInfo/Attr.js +16 -22
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +19 -18
- package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -16
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +19 -18
- package/src/components/JfbBaseCardMerge/Attr.js +8 -21
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +30 -15
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +19 -18
- package/src/components/JfbBaseCardMergeEntry/Attr.js +6 -20
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +25 -28
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +19 -18
- package/src/components/JfbBaseCardShift/Attr.js +4 -18
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -26
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +19 -18
- package/src/components/JfbBaseCardShiftEntry/Attr.js +26 -34
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -294
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +19 -18
- package/src/components/JfbBaseCardShiftEntry/Mock.js +1 -2
- package/src/components/JfbBaseCardSweepInfo/Attr.js +3 -5
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +19 -18
- package/src/components/JfbBaseCardV2/Attr.js +15 -19
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +5 -3
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +19 -18
- package/src/components/JfbBaseCardV3/Attr.js +12 -16
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +19 -18
- package/src/components/JfbBaseCity/Attr.js +4 -2
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +19 -18
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +19 -18
- package/src/components/JfbBaseClear/JfbBaseClearMixin.js +0 -12
- package/src/components/JfbBaseConDialog/Api.js +1 -1
- package/src/components/JfbBaseConDialog/Attr.js +20 -30
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +26 -45
- package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +19 -18
- package/src/components/JfbBaseConDialog/Mock.js +1 -20
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +9 -15
- package/src/components/JfbBaseConList/Attr.js +224 -149
- package/src/components/JfbBaseConList/JfbBaseConList.vue +133 -150
- package/src/components/JfbBaseConList/JfbBaseConListLess.less +19 -18
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +19 -18
- package/src/components/JfbBaseEntry/Attr.js +21 -33
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +23 -34
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +19 -18
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +19 -18
- package/src/components/JfbBaseFastLink/Api.js +54 -1
- package/src/components/JfbBaseFastLink/Attr.js +116 -168
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +16 -12
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +19 -18
- package/src/components/JfbBaseFooter/Attr.js +22 -28
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -19
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +19 -18
- package/src/components/JfbBaseHeader/Attr.js +91 -89
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +29 -28
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +19 -18
- package/src/components/JfbBaseLine/Attr.js +59 -0
- package/src/components/JfbBaseLine/JfbBaseLine.vue +105 -0
- package/src/components/JfbBaseLine/JfbBaseLineLess.less +80 -0
- package/src/components/JfbBaseLine/JfbBaseLineMixin.js +30 -0
- package/src/components/JfbBaseLogin/Attr.js +88 -111
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +1 -0
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +19 -18
- package/src/components/JfbBaseLoginForgetPwd/Attr.js +45 -52
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +19 -18
- package/src/components/JfbBaseLoginSetPwd/Attr.js +4 -6
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +19 -18
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +19 -18
- package/src/components/JfbBaseMapSearch/Attr.js +15 -0
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +25 -1
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +19 -18
- package/src/components/JfbBaseMergeUserCard/Attr.js +3 -4
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +19 -18
- package/src/components/JfbBaseMultipleExpress/Attr.js +3 -4
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +19 -18
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +19 -18
- package/src/components/JfbBaseMySetting/Attr.js +1 -1
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +19 -18
- package/src/components/JfbBaseNotice/Attr.js +56 -97
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +52 -70
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +19 -18
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +19 -18
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +19 -18
- package/src/components/JfbBaseOrderDetail/Attr.js +193 -210
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +3 -6
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +19 -18
- package/src/components/JfbBaseOrderList/Attr.js +43 -55
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +3 -5
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +19 -18
- package/src/components/JfbBasePay/Attr.js +13 -2
- package/src/components/JfbBasePay/JfbBasePay.vue +6 -7
- package/src/components/JfbBasePay/JfbBasePayLess.less +19 -18
- package/src/components/JfbBasePay/Mock.js +1 -2
- package/src/components/JfbBasePhoneCollect/Attr.js +2 -27
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +19 -18
- package/src/components/JfbBasePhoneLogin/Attr.js +2 -27
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +19 -18
- package/src/components/JfbBasePoster/Attr.js +83 -103
- package/src/components/JfbBasePoster/JfbBasePoster.vue +141 -134
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +19 -18
- package/src/components/JfbBasePosterBigSmall/Attr.js +76 -93
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +7 -3
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +19 -18
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
- package/src/components/JfbBasePosterEntry/Attr.js +33 -44
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +49 -44
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +19 -18
- package/src/components/JfbBasePosterType/Attr.js +48 -82
- package/src/components/JfbBasePosterType/FourScreen.vue +2 -8
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +59 -36
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +19 -18
- package/src/components/JfbBasePosterType/Screen.vue +284 -0
- package/src/components/JfbBaseRecharge/Attr.js +23 -35
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +8 -54
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +19 -18
- package/src/components/JfbBaseRechargeOrder/Attr.js +22 -32
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +7 -12
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +19 -18
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +19 -18
- package/src/components/JfbBaseRechargeSuccess/Attr.js +8 -10
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +19 -18
- package/src/components/JfbBaseSearch/Api.js +60 -0
- package/src/components/JfbBaseSearch/Attr.js +148 -6
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +37 -8
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +19 -18
- package/src/components/JfbBaseSearch/Mock.js +5 -0
- package/src/components/JfbBaseSetPwd/Attr.js +147 -6
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +19 -18
- package/src/components/JfbBaseSuccess/Attr.js +17 -78
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +19 -18
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
- package/src/components/JfbBaseUserCenter/Attr.js +53 -72
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
- package/src/components/JfbBaseUserInfo/Attr.js +45 -54
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
- package/src/components/JfbBaseUserOrder/Attr.js +92 -118
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
- package/src/components/JfbBaseVideo/Attr.js +19 -72
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
- package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
- package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
- package/src/components/{JfbBaseClear → JfbBaseWalletDetail}/Attr.js +0 -1
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +12 -0
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
- package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +26 -32
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
- package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
- package/src/components/JfbBaseCardShift/Mock.js +0 -21
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
<view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
|
|
22
22
|
<view class="my-order__add">
|
|
23
23
|
<view :style="{color:cardNameColor}">我的订单</view>
|
|
24
|
-
<view @click="handleToLink(afterUrl)" :style="{borderColor:
|
|
24
|
+
<view @click="handleToLink(afterUrl)" :style="{borderColor:mainColor,color: mainColor}">售后订单</view>
|
|
25
25
|
</view>
|
|
26
26
|
<view
|
|
27
27
|
class="my-order__content"
|
|
28
28
|
:style="{
|
|
29
29
|
borderRadius: radius + 'rpx',
|
|
30
30
|
background: backgroundColor,
|
|
31
|
-
marginTop:
|
|
31
|
+
marginTop: margin.top ? margin.top + 'rpx': '20rpx',
|
|
32
32
|
border: borderBox,
|
|
33
33
|
}"
|
|
34
34
|
>
|
|
@@ -75,18 +75,10 @@
|
|
|
75
75
|
mixins: [componentsMixins,extsMixins,JfbBaseUserOrderMixin],
|
|
76
76
|
computed: {
|
|
77
77
|
outPadding() {
|
|
78
|
-
|
|
79
|
-
str = `${str} ${this.checkValue(this.bodyPadding.right, 0)}rpx`;
|
|
80
|
-
str = `${str} ${this.checkValue(this.bodyPadding.bottom, 0)}rpx`;
|
|
81
|
-
str = `${str} ${this.checkValue(this.bodyPadding.left, 0)}rpx`;
|
|
82
|
-
return str
|
|
78
|
+
return `${this.bodyPadding.top || 20}rpx ${this.bodyPadding.right || 20}rpx ${this.bodyPadding.bottom || 20}rpx ${this.bodyPadding.left || 20}rpx`
|
|
83
79
|
},
|
|
84
80
|
outMargin() {
|
|
85
|
-
|
|
86
|
-
str = `${str} ${this.checkValue(this.bodyMargin.right, 20)}rpx`;
|
|
87
|
-
str = `${str} ${this.checkValue(this.bodyMargin.bottom, 20)}rpx`;
|
|
88
|
-
str = `${str} ${this.checkValue(this.bodyMargin.left, 20)}rpx`;
|
|
89
|
-
return str
|
|
81
|
+
return `${this.bodyMargin.top || 0}rpx ${this.bodyMargin.right || 0}rpx ${this.bodyMargin.bottom || 0}rpx ${this.bodyMargin.left || 0}rpx`
|
|
90
82
|
},
|
|
91
83
|
borderBox() {
|
|
92
84
|
if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
|
|
@@ -103,7 +95,6 @@
|
|
|
103
95
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
104
96
|
radius: 0,
|
|
105
97
|
iconColor: '',
|
|
106
|
-
spacing:20,
|
|
107
98
|
|
|
108
99
|
//边框
|
|
109
100
|
is_border: 'Y',
|
|
@@ -120,15 +111,11 @@
|
|
|
120
111
|
bodyBackgroundColor: 'rgba(0,0,0,0)',
|
|
121
112
|
bodyMargin: {top: 0, left: 0, right: 0, bottom: 0},
|
|
122
113
|
cardNameColor: '#333',
|
|
123
|
-
subColor:'',
|
|
124
114
|
}
|
|
125
115
|
},
|
|
126
116
|
watch: {
|
|
127
117
|
container(value) {
|
|
128
|
-
this.init(value)
|
|
129
|
-
if(this.$configProject.isPreview) {
|
|
130
|
-
this.onJfbLoad( this.options)
|
|
131
|
-
}
|
|
118
|
+
this.init(value)
|
|
132
119
|
}
|
|
133
120
|
},
|
|
134
121
|
created() {
|
|
@@ -137,6 +124,7 @@
|
|
|
137
124
|
methods: {
|
|
138
125
|
onJfbLoad(options) {
|
|
139
126
|
this.options = options;
|
|
127
|
+
|
|
140
128
|
//处理方法
|
|
141
129
|
const handle = (res)=>{
|
|
142
130
|
this.list = this.list.map(item => {
|
|
@@ -158,7 +146,7 @@
|
|
|
158
146
|
'com': [0, 4, 9, 99, 888][this.$xdUniHelper.random(0, 4)],
|
|
159
147
|
};
|
|
160
148
|
handle(res)
|
|
161
|
-
},
|
|
149
|
+
}, 1000)
|
|
162
150
|
}
|
|
163
151
|
else{
|
|
164
152
|
jfbRootExec('getBaseOrderListCount', {
|
|
@@ -184,8 +172,6 @@
|
|
|
184
172
|
this.bodyBackgroundColor = getContainerPropsValue(container, 'content.bodyBackgroundColor', 'rgba(0,0,0,0)');
|
|
185
173
|
this.bodyPadding = getContainerPropsValue(container, 'content.bodyPadding', {top: 20, left: 20, right: 20, bottom: 20});
|
|
186
174
|
this.cardNameColor = getContainerPropsValue(container, 'content.cardNameColor', '#333');
|
|
187
|
-
this.subColor = getContainerPropsValue(container, 'content.cardNameColor', '');
|
|
188
|
-
this.spacing = getContainerPropsValue(container, 'content.spacing', 20);
|
|
189
175
|
|
|
190
176
|
//其他
|
|
191
177
|
this.afterUrl = getContainerPropsValue(container, 'content.after_url', {value: ''}).value;
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-user-order {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
min-height: unit(
|
|
18
|
+
min-height: unit(50, rpx);
|
|
18
19
|
|
|
19
20
|
&__body{
|
|
20
21
|
position: relative;
|
|
@@ -22,21 +23,21 @@
|
|
|
22
23
|
z-index: 2
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
&.editx
|
|
26
|
+
&.editx {
|
|
26
27
|
position: relative;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: 4;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
39
33
|
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
|
|
@@ -71,9 +72,9 @@
|
|
|
71
72
|
|
|
72
73
|
/**notPreview**/
|
|
73
74
|
.jfb-base-user-order {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/**endNotPreview**/
|
|
@@ -8,28 +8,16 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
|
|
|
8
8
|
export default {
|
|
9
9
|
style:[],
|
|
10
10
|
content:(params)=>{
|
|
11
|
-
let size = {width:750};
|
|
12
|
-
let video = {
|
|
13
|
-
size: Object.assign({},(params.video && params.video.size),size),
|
|
14
|
-
type:'1',
|
|
15
|
-
position: Object.assign({},params.video && params.video.position)
|
|
16
|
-
};
|
|
17
11
|
return [
|
|
18
12
|
{
|
|
19
|
-
label: '视频位置配置:',
|
|
20
|
-
ele: 'xd-site-poster',
|
|
21
|
-
valueKey: 'video',
|
|
22
|
-
groupKey:'content',
|
|
13
|
+
label: '视频位置配置:', //label
|
|
14
|
+
ele: 'xd-site-poster', //package 名称
|
|
15
|
+
valueKey: 'video', //form[valueKey]
|
|
23
16
|
className: 'input80',
|
|
24
|
-
value:video,
|
|
17
|
+
value: params.video || {},
|
|
25
18
|
setting: {
|
|
26
19
|
count: 1,
|
|
27
|
-
scene: {label: '视频', value: 'video'}
|
|
28
|
-
sizeDisabled: {
|
|
29
|
-
wDisabled:true,
|
|
30
|
-
hDisabled: false,
|
|
31
|
-
},
|
|
32
|
-
typeDisabled: true
|
|
20
|
+
scene: {label: '视频', value: 'video'}
|
|
33
21
|
},
|
|
34
22
|
handleCustom({action, data}) {
|
|
35
23
|
//设置场景参数
|
|
@@ -224,46 +212,32 @@ export default {
|
|
|
224
212
|
loading.close()
|
|
225
213
|
}
|
|
226
214
|
},
|
|
215
|
+
inline: false,
|
|
216
|
+
notice: '',
|
|
227
217
|
rules: [
|
|
228
|
-
{
|
|
229
|
-
required: true,
|
|
230
|
-
validator: (rule, value, callback) => {
|
|
231
|
-
let message = '请设置视频位置相关内容';
|
|
232
|
-
if(!value) {
|
|
233
|
-
callback(message);
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
if(value.size && !value.size.height){
|
|
237
|
-
callback(message);
|
|
238
|
-
return
|
|
239
|
-
}
|
|
240
|
-
// if(value.position && (!value.position['position_name'] || !value.position['position_id'])) {
|
|
241
|
-
// callback(message);
|
|
242
|
-
// return
|
|
243
|
-
// }
|
|
244
|
-
callback()
|
|
245
|
-
},trigger: ['blur', 'change']
|
|
246
|
-
}
|
|
218
|
+
{required: true, message: '请选择视频位置', trigger: 'change'},
|
|
247
219
|
],
|
|
248
220
|
},
|
|
249
221
|
{
|
|
250
|
-
label: '
|
|
251
|
-
ele: 'xd-
|
|
252
|
-
valueKey: '
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
222
|
+
label: '视频位边距设置:',
|
|
223
|
+
ele: 'xd-margin-padding',
|
|
224
|
+
valueKey: 'margin',
|
|
225
|
+
value: params.margin || null,
|
|
226
|
+
disabled: false,
|
|
227
|
+
setting: {
|
|
228
|
+
type: 'margin',
|
|
229
|
+
},
|
|
230
|
+
placeholder: '请设置视频位边距设置',
|
|
231
|
+
|
|
257
232
|
},
|
|
258
233
|
{
|
|
259
234
|
label: '内容圆角设置:',
|
|
260
235
|
ele: 'xd-site-select-list',
|
|
261
236
|
valueKey: 'radius',
|
|
262
|
-
groupKey:'style',
|
|
263
237
|
value: params['radius'] || '0',
|
|
264
238
|
placeholder: '请选择内容圆角设置',
|
|
265
239
|
multiple: false,
|
|
266
|
-
className: '
|
|
240
|
+
className: 'input80',
|
|
267
241
|
handleCustom({action, data}) {
|
|
268
242
|
XdBus.getParentApi('getOptionsSettingList')({
|
|
269
243
|
setting_id: 'edtix_style_radius',
|
|
@@ -277,33 +251,6 @@ export default {
|
|
|
277
251
|
});
|
|
278
252
|
},
|
|
279
253
|
},
|
|
280
|
-
{
|
|
281
|
-
label: '视频位边距设置:',
|
|
282
|
-
ele: 'xd-margin-padding',
|
|
283
|
-
valueKey: 'margin',
|
|
284
|
-
groupKey:'style',
|
|
285
|
-
value: params.margin || null,
|
|
286
|
-
setting: {
|
|
287
|
-
type: 'margin',
|
|
288
|
-
},
|
|
289
|
-
placeholder: '请设置视频位边距设置',
|
|
290
|
-
inline: false,
|
|
291
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
label: '视频位填充设置:',
|
|
295
|
-
ele: 'xd-margin-padding',
|
|
296
|
-
valueKey: 'padding',
|
|
297
|
-
groupKey:'style',
|
|
298
|
-
value: params.padding || null,
|
|
299
|
-
setting: {
|
|
300
|
-
type: 'padding',
|
|
301
|
-
},
|
|
302
|
-
placeholder: '请设置视频位填充设置',
|
|
303
|
-
inline: false,
|
|
304
|
-
notice: '设置填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
305
|
-
},
|
|
306
|
-
|
|
307
254
|
].filter(i=>i)
|
|
308
255
|
},
|
|
309
256
|
advanced: [
|
|
@@ -14,29 +14,16 @@
|
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-video__body">
|
|
17
|
-
<view class="
|
|
18
|
-
<view
|
|
19
|
-
class="x-video"
|
|
20
|
-
:style="{
|
|
21
|
-
backgroundColor:bgColor,
|
|
22
|
-
margin:outMargin,
|
|
23
|
-
borderRadius:radius + 'rpx',
|
|
24
|
-
padding:outPadding,
|
|
25
|
-
width: contentWidth + 'rpx',
|
|
26
|
-
height:contentHeight + 'rpx'
|
|
27
|
-
}"
|
|
28
|
-
>
|
|
29
|
-
|
|
17
|
+
<view class="float"></view>
|
|
18
|
+
<view class="video" v-if="video !== null">
|
|
30
19
|
<xd-video
|
|
31
|
-
v-if="video !== null && video !== ''"
|
|
32
20
|
:key="videoKey"
|
|
21
|
+
:margin="margin"
|
|
33
22
|
:poster="videoSetting"
|
|
34
23
|
:video="video"
|
|
24
|
+
:radius="radius"
|
|
35
25
|
:pack-this="$vm"
|
|
36
26
|
></xd-video>
|
|
37
|
-
<view class="not-video" v-if="video === ''">
|
|
38
|
-
<image :src="getVideoSrc"></image>
|
|
39
|
-
</view>
|
|
40
27
|
</view>
|
|
41
28
|
</view>
|
|
42
29
|
</view>
|
|
@@ -68,10 +55,6 @@
|
|
|
68
55
|
video: null,
|
|
69
56
|
videoSetting: null,
|
|
70
57
|
margin:{},
|
|
71
|
-
padding:{},
|
|
72
|
-
height:0,
|
|
73
|
-
width:750,
|
|
74
|
-
bgColor:'',
|
|
75
58
|
radius:0,
|
|
76
59
|
$vm: {},
|
|
77
60
|
videoKey : Date.now()
|
|
@@ -84,51 +67,39 @@
|
|
|
84
67
|
if(this.autoplay === 'R') return 'iconplayreplay';
|
|
85
68
|
},
|
|
86
69
|
contentWidth(){
|
|
87
|
-
let margin = Number(this.checkValue(this.margin.left, 0)) + Number(this.checkValue(this.margin.right, 0));
|
|
88
|
-
let padding = Number(this.checkValue(this.padding.left, 0)) + Number(this.checkValue(this.padding.right, 0));
|
|
89
70
|
let border = 0;
|
|
90
|
-
|
|
91
|
-
return
|
|
71
|
+
if(this.isPreview) border = 2;
|
|
72
|
+
return 750 - (this.margin.left + this.margin.right + border);
|
|
92
73
|
},
|
|
93
74
|
contentHeight(){
|
|
94
|
-
let margin = Number(this.checkValue(this.margin.left, 0)) + Number(this.checkValue(this.margin.right, 0));
|
|
95
|
-
let padding = Number(this.checkValue(this.padding.left, 0)) + Number(this.checkValue(this.padding.right, 0));
|
|
96
75
|
let border = 0;
|
|
97
|
-
|
|
98
|
-
let winWidth =
|
|
76
|
+
if(this.isPreview) border = 2;
|
|
77
|
+
let winWidth = 750 - ((this.margin.left||0) + (this.margin.right||0) + border);
|
|
99
78
|
return winWidth * this.height/this.width;
|
|
100
79
|
},
|
|
80
|
+
|
|
101
81
|
outMargin(){
|
|
102
|
-
let
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return
|
|
107
|
-
},
|
|
108
|
-
outPadding(){
|
|
109
|
-
let str = `${this.checkValue(this.padding.top, 0)}rpx`;
|
|
110
|
-
str = `${str} ${this.checkValue(this.padding.right, 0)}rpx`;
|
|
111
|
-
str = `${str} ${this.checkValue(this.padding.bottom, 0)}rpx`;
|
|
112
|
-
str = `${str} ${this.checkValue(this.padding.left, 0)}rpx`;
|
|
113
|
-
return str
|
|
114
|
-
},
|
|
115
|
-
getVideoSrc(){
|
|
116
|
-
let width = Math.floor(this.contentWidth * this.$rpxNum);
|
|
117
|
-
let height = Math.floor(this.contentHeight * this.$rpxNum);
|
|
118
|
-
return `//dummyimage.com/${width}x${height}`;
|
|
82
|
+
let margin = `${this.margin.top !== null ? this.margin.top : 0}rpx`;
|
|
83
|
+
margin = `${margin} ${this.margin.right !== null ? this.margin.right : 0}rpx`;
|
|
84
|
+
margin = `${margin} ${this.margin.bottom !== null ? this.margin.bottom :0}rpx`;
|
|
85
|
+
margin = `${margin} ${this.margin.left !== null ? this.margin.left : 0}rpx`;
|
|
86
|
+
return margin;
|
|
119
87
|
}
|
|
120
88
|
},
|
|
121
89
|
watch: {
|
|
122
|
-
container(value
|
|
123
|
-
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
90
|
+
container(value) {
|
|
124
91
|
this.init(value);
|
|
125
|
-
if
|
|
92
|
+
if(this.timer) clearTimeout(this.timer);
|
|
93
|
+
this.timer = setTimeout(()=>{
|
|
94
|
+
if (this.$configProject['isPreview']) this.onJfbLoad(this.options)
|
|
95
|
+
}, 400)
|
|
126
96
|
}
|
|
127
97
|
},
|
|
128
98
|
created() {
|
|
129
99
|
this.$vm = this;
|
|
130
100
|
this.isPreview = this.$configProject.isPreview;
|
|
131
101
|
this.init(this.container);
|
|
102
|
+
|
|
132
103
|
},
|
|
133
104
|
methods: {
|
|
134
105
|
|
|
@@ -138,14 +109,8 @@
|
|
|
138
109
|
*/
|
|
139
110
|
init(container) {
|
|
140
111
|
this.videoSetting = getContainerPropsValue(container, 'content.video', {size:{width: 400, height: 300}, type: '1'});
|
|
141
|
-
|
|
142
|
-
this.height = Number(this.videoSetting.size.height) || 563;
|
|
143
|
-
this.width = 750;
|
|
144
|
-
}
|
|
145
|
-
this.margin = getContainerPropsValue(container, 'content.margin', {});
|
|
146
|
-
this.padding = getContainerPropsValue(container, 'content.padding', {});
|
|
112
|
+
this.margin = getContainerPropsValue(container, 'content.margin', {top:0, bottom:0, right:0, left: 0});
|
|
147
113
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
148
|
-
this.bgColor = getContainerPropsValue(container, 'content.bgColor', 'rgba(0,0,0,0)');
|
|
149
114
|
},
|
|
150
115
|
|
|
151
116
|
onJfbLoad(options) {
|
|
@@ -162,7 +127,6 @@
|
|
|
162
127
|
if(res && res.list && res.list.length > 0) {
|
|
163
128
|
this.video = res.list[0];
|
|
164
129
|
}
|
|
165
|
-
else this.video = '';
|
|
166
130
|
this.videoKey = Date.now()
|
|
167
131
|
})
|
|
168
132
|
.catch(error => {
|
|
@@ -184,20 +148,15 @@
|
|
|
184
148
|
|
|
185
149
|
.jfb-base-video {
|
|
186
150
|
&__body{
|
|
187
|
-
.x-video {
|
|
188
|
-
overflow: hidden;
|
|
189
|
-
}
|
|
190
151
|
|
|
191
|
-
.not-video {
|
|
192
|
-
width: 100%;
|
|
193
|
-
height: 100%;
|
|
194
|
-
|
|
195
|
-
& > image {
|
|
196
|
-
width: 100%;
|
|
197
|
-
height: 100%;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
152
|
}
|
|
153
|
+
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.float {
|
|
157
|
+
height: 1px;
|
|
158
|
+
width: 100%;
|
|
159
|
+
overflow: hidden;
|
|
201
160
|
}
|
|
202
161
|
|
|
203
162
|
</style>
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-video {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
min-height: unit(
|
|
18
|
+
min-height: unit(50, rpx);
|
|
18
19
|
|
|
19
20
|
&__body{
|
|
20
21
|
position: relative;
|
|
@@ -22,21 +23,21 @@
|
|
|
22
23
|
z-index: 2
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
&.editx
|
|
26
|
+
&.editx {
|
|
26
27
|
position: relative;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: 4;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
39
33
|
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
|
|
@@ -71,9 +72,9 @@
|
|
|
71
72
|
|
|
72
73
|
/**notPreview**/
|
|
73
74
|
.jfb-base-video {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/**endNotPreview**/
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
3
|
-
|
|
2
|
+
<view
|
|
3
|
+
class="video-box"
|
|
4
|
+
:style="{
|
|
5
|
+
width: contentWidth + 'rpx',
|
|
6
|
+
height:contentHeight + 'rpx',
|
|
7
|
+
margin: outMargin
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<view
|
|
11
|
+
class="thumb"
|
|
12
|
+
:class="{noImageUrl: !imageUrl}"
|
|
13
|
+
v-if="!playStatus"
|
|
14
|
+
:style="{borderRadius: radius + 'rpx'}"
|
|
15
|
+
>
|
|
4
16
|
<image :src="imageUrl" v-if="imageUrl" />
|
|
5
17
|
<view v-if="videoUrl" @click="handlePlay()">
|
|
6
18
|
<xd-font-icon
|
|
@@ -8,6 +20,7 @@
|
|
|
8
20
|
size="100"
|
|
9
21
|
color="#fff"
|
|
10
22
|
></xd-font-icon>
|
|
23
|
+
|
|
11
24
|
</view>
|
|
12
25
|
</view>
|
|
13
26
|
<view
|
|
@@ -39,7 +52,12 @@
|
|
|
39
52
|
margin:{
|
|
40
53
|
type: Object,
|
|
41
54
|
default(){
|
|
42
|
-
return {
|
|
55
|
+
return {
|
|
56
|
+
top:0,
|
|
57
|
+
left:0,
|
|
58
|
+
right:0,
|
|
59
|
+
bottom:0
|
|
60
|
+
}
|
|
43
61
|
}
|
|
44
62
|
},
|
|
45
63
|
poster:{
|
|
@@ -63,6 +81,10 @@
|
|
|
63
81
|
return {
|
|
64
82
|
isPreview: false,
|
|
65
83
|
|
|
84
|
+
//css
|
|
85
|
+
width: 0,
|
|
86
|
+
height: 0,
|
|
87
|
+
|
|
66
88
|
//play
|
|
67
89
|
imageUrl: '',
|
|
68
90
|
videoUrl: '',
|
|
@@ -76,6 +98,25 @@
|
|
|
76
98
|
if(this.autoplay === 'E') return 'iconshibai';
|
|
77
99
|
if(this.autoplay === 'R') return 'iconplayreplay';
|
|
78
100
|
},
|
|
101
|
+
contentWidth(){
|
|
102
|
+
let border = 0;
|
|
103
|
+
if(this.isPreview) border = 2;
|
|
104
|
+
return 750 - (this.margin.left + this.margin.right + border);
|
|
105
|
+
},
|
|
106
|
+
contentHeight(){
|
|
107
|
+
let border = 0;
|
|
108
|
+
if(this.isPreview) border = 2;
|
|
109
|
+
let winWidth = 750 - ((this.margin.left||0) + (this.margin.right||0) + border);
|
|
110
|
+
return winWidth * this.height/this.width;
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
outMargin(){
|
|
114
|
+
let margin = `${this.margin.top !== null ? this.margin.top : 0}rpx`;
|
|
115
|
+
margin = `${margin} ${this.margin.right !== null ? this.margin.right : 0}rpx`;
|
|
116
|
+
margin = `${margin} ${this.margin.bottom !== null ? this.margin.bottom :0}rpx`;
|
|
117
|
+
margin = `${margin} ${this.margin.left !== null ? this.margin.left : 0}rpx`;
|
|
118
|
+
return margin;
|
|
119
|
+
}
|
|
79
120
|
},
|
|
80
121
|
watch:{
|
|
81
122
|
poster(){
|
|
@@ -132,9 +173,6 @@
|
|
|
132
173
|
|
|
133
174
|
<style scoped lang="less">
|
|
134
175
|
.video-box {
|
|
135
|
-
width: 100%;
|
|
136
|
-
height: 100%;
|
|
137
|
-
box-sizing: border-box;
|
|
138
176
|
view.noImageUrl {
|
|
139
177
|
background: rgba(0,0,0,.6);
|
|
140
178
|
}
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
15
|
.jfb-base-wallet {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
16
17
|
box-sizing: border-box;
|
|
17
|
-
min-height: unit(
|
|
18
|
+
min-height: unit(50, rpx);
|
|
18
19
|
|
|
19
20
|
&__body{
|
|
20
21
|
position: relative;
|
|
@@ -22,21 +23,21 @@
|
|
|
22
23
|
z-index: 2
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
&.editx
|
|
26
|
+
&.editx {
|
|
26
27
|
position: relative;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: 4;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
39
33
|
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
|
|
@@ -71,9 +72,9 @@
|
|
|
71
72
|
|
|
72
73
|
/**notPreview**/
|
|
73
74
|
.jfb-base-wallet {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/**endNotPreview**/
|