jufubao-base 1.0.63-beta6 → 1.0.64-beta200
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 +1 -1
- package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +1 -1
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +1 -1
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +1 -1
- package/src/components/JfbBaseBack/JfbBaseBackLess.less +1 -1
- package/src/components/JfbBaseBackground/Api.js +19 -0
- package/src/components/JfbBaseBackground/Attr.js +224 -0
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +111 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +80 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundMixin.js +30 -0
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +1 -1
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +1 -1
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +1 -1
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +1 -1
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +1 -1
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +1 -1
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +1 -1
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +1 -1
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +1 -1
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +1 -1
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +1 -1
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +1 -1
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +1 -1
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +1 -1
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +1 -1
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +1 -1
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +1 -1
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +1 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +1 -1
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +1 -1
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +1 -1
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +1 -1
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +1 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +1 -1
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +1 -1
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +1 -1
- package/src/components/JfbBaseLine/JfbBaseLineLess.less +1 -1
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +1 -1
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +1 -1
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +1 -1
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +1 -1
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +1 -1
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +1 -1
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +1 -1
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +1 -1
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +41 -26
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +1 -1
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +1 -1
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +1 -1
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +45 -29
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +1 -1
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +1 -1
- package/src/components/JfbBasePay/JfbBasePayLess.less +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +1 -1
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +1 -1
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +1 -1
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +1 -1
- package/src/components/JfbBasePosterType/Attr.js +1 -1
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +1 -1
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +1 -1
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +1 -1
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +1 -1
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +1 -1
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +1 -1
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +1 -1
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +1 -1
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +1 -1
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +1 -1
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +1 -1
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +1 -1
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +1 -1
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +1 -1
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +1 -1
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +1 -1
- package/src/components/JfbBaseVideo/Api.js +19 -0
- package/src/components/JfbBaseVideo/Attr.js +259 -0
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +159 -0
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +80 -0
- package/src/components/JfbBaseVideo/JfbBaseVideoMixin.js +30 -0
- package/src/components/JfbBaseVideo/Mock.js +3 -0
- package/src/components/JfbBaseVideo/XdVideo.vue +212 -0
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +1 -1
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +1 -1
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +1 -1
|
@@ -20,11 +20,17 @@
|
|
|
20
20
|
}"
|
|
21
21
|
>
|
|
22
22
|
<template v-if="style === '3' && isPreview">
|
|
23
|
-
<view
|
|
23
|
+
<view
|
|
24
|
+
class="jfb-base-notice__body-pop"
|
|
25
|
+
:style="{backgroundColor:backgroundColor, color:warningColor}"
|
|
26
|
+
>弹窗模式方便编辑(占位),在线上此模块不显</view>
|
|
24
27
|
</template>
|
|
25
28
|
<template v-if="style === '2'">
|
|
26
29
|
<template v-if="!content && isPreview">
|
|
27
|
-
<view
|
|
30
|
+
<view
|
|
31
|
+
class="jfb-base-notice__body-pop"
|
|
32
|
+
:style="{backgroundColor:backgroundColor, color:warningColor}"
|
|
33
|
+
>接口无数返回,请检查是否配置成功!</view>
|
|
28
34
|
</template>
|
|
29
35
|
<view v-else class="jfb-base-notice__body-scroll">
|
|
30
36
|
<xd-notice-bar
|
|
@@ -43,7 +49,10 @@
|
|
|
43
49
|
</template>
|
|
44
50
|
<template v-if="style === '1'">
|
|
45
51
|
<template v-if="!content && isPreview">
|
|
46
|
-
<view
|
|
52
|
+
<view
|
|
53
|
+
class="jfb-base-notice__body-pop"
|
|
54
|
+
:style="{backgroundColor:backgroundColor, color:warningColor}"
|
|
55
|
+
>接口无数返回,请检查是否配置成功!</view>
|
|
47
56
|
</template>
|
|
48
57
|
<template v-else>
|
|
49
58
|
<view
|
|
@@ -92,6 +101,7 @@
|
|
|
92
101
|
import extsMixins from "@/mixins/extsMixins"
|
|
93
102
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
94
103
|
import storage from "@/common/storage";
|
|
104
|
+
import Color from "color";
|
|
95
105
|
const color = require('color');
|
|
96
106
|
export default {
|
|
97
107
|
name: "JfbBaseNotice",
|
|
@@ -108,14 +118,14 @@
|
|
|
108
118
|
textAlign: 'left', //标题对其方式
|
|
109
119
|
noData: false,
|
|
110
120
|
style: '1', //显示内容(静态/弹窗/滚动)
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
|
|
122
|
+
|
|
113
123
|
bgc: '', //背景颜色
|
|
114
124
|
textColor: '', //文字颜色
|
|
115
125
|
content : '', //内容
|
|
116
126
|
contentKey: 'contentKey',
|
|
117
127
|
borderTitleColor: '#fff',
|
|
118
|
-
|
|
128
|
+
|
|
119
129
|
margin: {
|
|
120
130
|
top: 0,
|
|
121
131
|
left: 0,
|
|
@@ -133,13 +143,15 @@
|
|
|
133
143
|
titleFontSize: 26,
|
|
134
144
|
time: 3, //小时
|
|
135
145
|
isPreview: false,
|
|
136
|
-
|
|
146
|
+
|
|
137
147
|
//滚动
|
|
138
148
|
speed: 30, //滚动速度
|
|
139
149
|
speedKey: 'speedKey',
|
|
140
150
|
num: 1, //滚动记录数量
|
|
141
151
|
timer: false,
|
|
142
152
|
contentList: [],
|
|
153
|
+
|
|
154
|
+
backgroundColor: '',
|
|
143
155
|
}
|
|
144
156
|
},
|
|
145
157
|
watch: {
|
|
@@ -151,7 +163,7 @@
|
|
|
151
163
|
setTimeout(() => {
|
|
152
164
|
if (this.$configProject['isPreview']) this.onJfbLoad()
|
|
153
165
|
}, 400)
|
|
154
|
-
|
|
166
|
+
|
|
155
167
|
},
|
|
156
168
|
num(){
|
|
157
169
|
if (this.timer) {
|
|
@@ -161,7 +173,7 @@
|
|
|
161
173
|
setTimeout(() => {
|
|
162
174
|
if (this.$configProject['isPreview']) this.onJfbLoad()
|
|
163
175
|
}, 400)
|
|
164
|
-
|
|
176
|
+
|
|
165
177
|
},
|
|
166
178
|
style() {
|
|
167
179
|
if(this.$configProject['isPreview']) this.onJfbLoad()
|
|
@@ -174,7 +186,7 @@
|
|
|
174
186
|
setTimeout(()=>{
|
|
175
187
|
this.speedKey = Date.now()
|
|
176
188
|
}, 400)
|
|
177
|
-
|
|
189
|
+
|
|
178
190
|
}
|
|
179
191
|
},
|
|
180
192
|
computed:{
|
|
@@ -194,14 +206,15 @@
|
|
|
194
206
|
titleRadius() {
|
|
195
207
|
return `${this.radius}rpx ${this.radius}rpx 0rpx 0rpx `
|
|
196
208
|
},
|
|
197
|
-
|
|
209
|
+
|
|
198
210
|
},
|
|
199
211
|
created() {
|
|
212
|
+
this.backgroundColor = Color(this.warningColor).alpha(0.2).toString();
|
|
200
213
|
this.isPreview = this.$configProject['isPreview'];
|
|
201
214
|
this.init(this.container);
|
|
202
215
|
},
|
|
203
216
|
methods: {
|
|
204
|
-
|
|
217
|
+
|
|
205
218
|
/**
|
|
206
219
|
* @description 监听事件变化
|
|
207
220
|
* @param container {object} 业务组件对象自己
|
|
@@ -222,14 +235,14 @@
|
|
|
222
235
|
if (this.fontSize === 26) this.titleFontSize = 36;
|
|
223
236
|
if (this.fontSize === 36) this.titleFontSize = 44;
|
|
224
237
|
this.isTitle = getContainerPropsValue(container, 'content.isTitle', false);
|
|
225
|
-
|
|
238
|
+
|
|
226
239
|
if(this.style === '2') {
|
|
227
240
|
this.num = getContainerPropsValue(container, 'content.num', 1);
|
|
228
241
|
this.speed = Number(getContainerPropsValue(container, 'content.speed', 30));
|
|
229
242
|
}
|
|
230
243
|
else this.num = 1;
|
|
231
244
|
},
|
|
232
|
-
|
|
245
|
+
|
|
233
246
|
handlePop(){
|
|
234
247
|
console.log('this.time', this.time * 60 + '分钟');
|
|
235
248
|
storage.set(this.containerId, 1, this.time);
|
|
@@ -242,7 +255,7 @@
|
|
|
242
255
|
cancel: false,
|
|
243
256
|
});
|
|
244
257
|
},
|
|
245
|
-
|
|
258
|
+
|
|
246
259
|
getContent(){
|
|
247
260
|
jfbRootExec('getListNewsContent', {
|
|
248
261
|
vm: this,
|
|
@@ -261,16 +274,16 @@
|
|
|
261
274
|
this.handlePop()
|
|
262
275
|
}
|
|
263
276
|
}
|
|
264
|
-
|
|
277
|
+
|
|
265
278
|
else if(this.style === '2') {
|
|
266
279
|
console.log('getContent',res.list)
|
|
267
280
|
if(res.list.length > 0) {
|
|
268
281
|
this.contentList = res.list;
|
|
269
282
|
this.speedKey = Date.now()
|
|
270
283
|
}
|
|
271
|
-
|
|
284
|
+
|
|
272
285
|
}
|
|
273
|
-
|
|
286
|
+
|
|
274
287
|
//静态显示
|
|
275
288
|
else {
|
|
276
289
|
if (res.list.length > 0) {
|
|
@@ -280,13 +293,13 @@
|
|
|
280
293
|
}
|
|
281
294
|
this.noData = res.list.length > 0;
|
|
282
295
|
}
|
|
283
|
-
|
|
296
|
+
|
|
284
297
|
})
|
|
285
298
|
.catch(error => {
|
|
286
299
|
console.error(error)
|
|
287
300
|
})
|
|
288
301
|
},
|
|
289
|
-
|
|
302
|
+
|
|
290
303
|
onJfbLoad() {
|
|
291
304
|
//弹窗模式
|
|
292
305
|
if(this.style === '3') {
|
|
@@ -297,19 +310,19 @@
|
|
|
297
310
|
if(!storage.get(this.containerId)) this.getContent()
|
|
298
311
|
}
|
|
299
312
|
}
|
|
300
|
-
|
|
313
|
+
|
|
301
314
|
else {
|
|
302
315
|
this.getContent()
|
|
303
316
|
}
|
|
304
|
-
|
|
305
|
-
|
|
317
|
+
|
|
318
|
+
|
|
306
319
|
},
|
|
307
|
-
|
|
320
|
+
|
|
308
321
|
onJfbUpdate(data) {
|
|
309
322
|
storage.remove(this.containerId);
|
|
310
323
|
this.getContent()
|
|
311
324
|
}
|
|
312
|
-
|
|
325
|
+
|
|
313
326
|
}
|
|
314
327
|
}
|
|
315
328
|
|
|
@@ -326,7 +339,9 @@
|
|
|
326
339
|
}
|
|
327
340
|
}
|
|
328
341
|
&-pop {
|
|
342
|
+
min-height: 60rpx;
|
|
329
343
|
text-align: center;
|
|
344
|
+
line-height: 60rpx;
|
|
330
345
|
color: #666;
|
|
331
346
|
font-size: unit(24, rpx);
|
|
332
347
|
padding:unit(20, rpx);
|
|
@@ -334,7 +349,7 @@
|
|
|
334
349
|
&-title {
|
|
335
350
|
border-bottom: 1px solid #fff;
|
|
336
351
|
}
|
|
337
|
-
|
|
352
|
+
|
|
338
353
|
&-content {
|
|
339
354
|
padding: unit(8, rpx) unit(10, rpx);
|
|
340
355
|
}
|
|
@@ -533,6 +533,38 @@
|
|
|
533
533
|
>地址: {{ info.shop.shop_address }}
|
|
534
534
|
</view>
|
|
535
535
|
</view>
|
|
536
|
+
<view
|
|
537
|
+
:style="{
|
|
538
|
+
background: backgroundColor,
|
|
539
|
+
border: borderBox,
|
|
540
|
+
borderRadius: radius + 'rpx',
|
|
541
|
+
boxShadow: shadowBox,
|
|
542
|
+
marginBottom: padding + 'rpx',
|
|
543
|
+
}"
|
|
544
|
+
v-if="info.detail"
|
|
545
|
+
class="jfb-base-order-detail__body-card"
|
|
546
|
+
>
|
|
547
|
+
<view
|
|
548
|
+
v-for="(item, index) in info.detail"
|
|
549
|
+
:key="index"
|
|
550
|
+
class="jfb-base-order-detail__body-order"
|
|
551
|
+
>
|
|
552
|
+
<view :style="{ fontWeight: item.style }">
|
|
553
|
+
<view
|
|
554
|
+
><text v-html="item.label"></text
|
|
555
|
+
><text v-if="item.label">:</text></view
|
|
556
|
+
>
|
|
557
|
+
<view v-html="item.value"></view>
|
|
558
|
+
</view>
|
|
559
|
+
<view
|
|
560
|
+
:style="{ marginLeft: '30rpx' }"
|
|
561
|
+
v-if="item.type === 'copy'"
|
|
562
|
+
class="jfb-base-order-detail__body-order-copy"
|
|
563
|
+
@click="copy(item.value)"
|
|
564
|
+
>复制</view
|
|
565
|
+
>
|
|
566
|
+
</view>
|
|
567
|
+
</view>
|
|
536
568
|
<view
|
|
537
569
|
v-if="info.pay_info && biz_code !== 'gift'"
|
|
538
570
|
class="jfb-base-order-detail__body-card"
|
|
@@ -625,35 +657,6 @@
|
|
|
625
657
|
</view>
|
|
626
658
|
</view>
|
|
627
659
|
</view>
|
|
628
|
-
<view
|
|
629
|
-
:style="{
|
|
630
|
-
background: backgroundColor,
|
|
631
|
-
border: borderBox,
|
|
632
|
-
borderRadius: radius + 'rpx',
|
|
633
|
-
boxShadow: shadowBox,
|
|
634
|
-
marginBottom: padding + 'rpx',
|
|
635
|
-
}"
|
|
636
|
-
v-if="info.detail"
|
|
637
|
-
class="jfb-base-order-detail__body-card"
|
|
638
|
-
>
|
|
639
|
-
<view
|
|
640
|
-
v-for="(item, index) in info.detail"
|
|
641
|
-
:key="index"
|
|
642
|
-
class="jfb-base-order-detail__body-order"
|
|
643
|
-
>
|
|
644
|
-
<view :style="{ fontWeight: item.style }">
|
|
645
|
-
<view><text v-html="item.label"></text><text v-if="item.label">:</text></view>
|
|
646
|
-
<view v-html="item.value"></view>
|
|
647
|
-
</view>
|
|
648
|
-
<view
|
|
649
|
-
:style="{'marginLeft': '30rpx'}"
|
|
650
|
-
v-if="item.type === 'copy'"
|
|
651
|
-
class="jfb-base-order-detail__body-order-copy"
|
|
652
|
-
@click="copy(item.value)"
|
|
653
|
-
>复制</view
|
|
654
|
-
>
|
|
655
|
-
</view>
|
|
656
|
-
</view>
|
|
657
660
|
<view
|
|
658
661
|
v-if="info.productDetail"
|
|
659
662
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-shop"
|
|
@@ -830,6 +833,11 @@ export default {
|
|
|
830
833
|
this.getOrderDetail();
|
|
831
834
|
}
|
|
832
835
|
},
|
|
836
|
+
is_hot(n, o) {
|
|
837
|
+
if (this.isPreview) {
|
|
838
|
+
this.getOrderDetail();
|
|
839
|
+
}
|
|
840
|
+
},
|
|
833
841
|
},
|
|
834
842
|
computed: {
|
|
835
843
|
prod_bottom() {
|
|
@@ -943,6 +951,14 @@ export default {
|
|
|
943
951
|
);
|
|
944
952
|
return Sitem;
|
|
945
953
|
});
|
|
954
|
+
if (this.is_hot === "Y") {
|
|
955
|
+
item.info.push({
|
|
956
|
+
label: "客服电话",
|
|
957
|
+
style: "normal",
|
|
958
|
+
type: "text",
|
|
959
|
+
value: this.isPreview ? '010-66666' :this.siteInfo.mapping.customer_phone,
|
|
960
|
+
});
|
|
961
|
+
}
|
|
946
962
|
return item;
|
|
947
963
|
});
|
|
948
964
|
res.pay_info.cards =
|