jufubao-base 1.0.237-beta7 → 1.0.237-beta9
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/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +4 -3
- package/src/components/JfbBaseHeader/Attr.js +82 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +2 -2
- package/src/components/JfbBaseNoticeGroup/Api.js +58 -0
- package/src/components/JfbBaseNoticeGroup/Attr.js +48 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +111 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
- package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
- package/src/components/JfbBasePersonalData/Attr.js +25 -1
- package/src/components/JfbBasePointsCard/Attr.js +1 -1
- package/src/components/JfbBasePosterGroup/Attr.js +2 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +29 -6
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<text>{{plusDiscount/1000}}</text>折
|
|
60
60
|
</view>
|
|
61
61
|
</view>
|
|
62
|
-
<view class="vip-open" @click="handleToOpen">
|
|
62
|
+
<view v-if="is_vip==='N'" class="vip-open" @click="handleToOpen">
|
|
63
63
|
<xd-font-icon color="#FCBF28" size="20" icon="iconPLUShuiyuan"></xd-font-icon>
|
|
64
64
|
<text>立即开通</text>
|
|
65
65
|
<xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon>
|
|
@@ -146,7 +146,8 @@
|
|
|
146
146
|
isFlow: false,
|
|
147
147
|
xnamespace: '',
|
|
148
148
|
plusDiscount: 0,
|
|
149
|
-
userInfo: {}
|
|
149
|
+
userInfo: {},
|
|
150
|
+
is_vip: 'N',
|
|
150
151
|
}
|
|
151
152
|
},
|
|
152
153
|
watch: {
|
|
@@ -193,7 +194,7 @@
|
|
|
193
194
|
},
|
|
194
195
|
created() {
|
|
195
196
|
console.log(this.siteInfo,'configProject');
|
|
196
|
-
|
|
197
|
+
this.is_vip = this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP'?'Y':'N'
|
|
197
198
|
this.init(this.container);
|
|
198
199
|
},
|
|
199
200
|
methods: {
|
|
@@ -300,6 +300,28 @@ export default {
|
|
|
300
300
|
groupKey:'style',
|
|
301
301
|
hidden: true,
|
|
302
302
|
},
|
|
303
|
+
{
|
|
304
|
+
label: "是否展示二维码",
|
|
305
|
+
ele: "xd-radio",
|
|
306
|
+
valueKey: "showQrcode",
|
|
307
|
+
value: data.showQrcode || "N",
|
|
308
|
+
list: [
|
|
309
|
+
{label: "不显示", value: "N"},
|
|
310
|
+
{label: "显示", value: "Y"}
|
|
311
|
+
],
|
|
312
|
+
groupKey:'content',
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
label: "是否展示扫一扫",
|
|
316
|
+
ele: "xd-radio",
|
|
317
|
+
valueKey: "showScan",
|
|
318
|
+
value: data.showScan || "N",
|
|
319
|
+
list: [
|
|
320
|
+
{label: "不显示", value: "N"},
|
|
321
|
+
{label: "显示", value: "Y"}
|
|
322
|
+
],
|
|
323
|
+
groupKey:'content',
|
|
324
|
+
},
|
|
303
325
|
{
|
|
304
326
|
label: "是否展示快捷入口",
|
|
305
327
|
ele: "xd-radio",
|
|
@@ -356,6 +378,40 @@ export default {
|
|
|
356
378
|
placeholder: '请选择快捷入口背景颜色',
|
|
357
379
|
classNmae: 'input80',
|
|
358
380
|
},
|
|
381
|
+
data.showQrcode === 'Y' && {
|
|
382
|
+
ele: 'title',
|
|
383
|
+
label: '二维码样式设置',
|
|
384
|
+
size: 'small',
|
|
385
|
+
groupKey:'style',
|
|
386
|
+
},
|
|
387
|
+
data.showQrcode === 'Y' && {
|
|
388
|
+
label: "二维码大小:",
|
|
389
|
+
ele: "el-input",
|
|
390
|
+
valueKey: "qrcodeSize",
|
|
391
|
+
value: data.qrcodeSize || 32,
|
|
392
|
+
type: "number",
|
|
393
|
+
groupKey: "style",
|
|
394
|
+
},
|
|
395
|
+
data.showQrcode === 'Y' && {
|
|
396
|
+
label: "二维码图标颜色:",
|
|
397
|
+
ele: 'xd-color',
|
|
398
|
+
valueKey: "qrCodeColor",
|
|
399
|
+
groupKey:'style',
|
|
400
|
+
value: data.qrCodeColor || '',
|
|
401
|
+
},
|
|
402
|
+
data.showScan === 'Y' && {
|
|
403
|
+
ele: "title",
|
|
404
|
+
label: "扫一扫样式设置",
|
|
405
|
+
size: "small",
|
|
406
|
+
groupKey: "style",
|
|
407
|
+
},
|
|
408
|
+
data.showScan === 'Y' && {
|
|
409
|
+
label: "扫一扫图标颜色:",
|
|
410
|
+
ele: 'xd-color',
|
|
411
|
+
valueKey: "scanIconColor",
|
|
412
|
+
value: data.scanIconColor || '',
|
|
413
|
+
groupKey:'style',
|
|
414
|
+
},
|
|
359
415
|
{
|
|
360
416
|
label: '是否有边框:',
|
|
361
417
|
ele: 'xd-radio',
|
|
@@ -429,6 +485,32 @@ export default {
|
|
|
429
485
|
notice:'<div><span style="color:red">客服类型</span>不需要配置</div>',
|
|
430
486
|
inline: false,
|
|
431
487
|
},
|
|
488
|
+
{
|
|
489
|
+
label: '二维码跳转链接:',
|
|
490
|
+
ele: 'xd-select-pages-path',
|
|
491
|
+
valueKey: 'qrcodePath',
|
|
492
|
+
groupKey:'advanced',
|
|
493
|
+
placeholder: '选择二维码跳转链接',
|
|
494
|
+
value: data['qrcodePath'] || null,
|
|
495
|
+
setting: {
|
|
496
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
497
|
+
},
|
|
498
|
+
inline: false,
|
|
499
|
+
hidden: data.showQrcode === 'N'
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
label: "扫一扫跳转链接:",
|
|
503
|
+
ele: 'xd-select-pages-path',
|
|
504
|
+
valueKey: "scanPath",
|
|
505
|
+
groupKey:'advanced',
|
|
506
|
+
placeholder: '选择扫一扫跳转链接',
|
|
507
|
+
value: data['scanPath'] || null,
|
|
508
|
+
setting: {
|
|
509
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
510
|
+
},
|
|
511
|
+
inline: false,
|
|
512
|
+
hidden: data.showScan === 'N'
|
|
513
|
+
},
|
|
432
514
|
{
|
|
433
515
|
label: '',
|
|
434
516
|
ele: 'slot',
|
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
:key="showLocationKey"
|
|
61
61
|
></xd-city-show-api>
|
|
62
62
|
</view>
|
|
63
|
+
<view v-if="showScan==='Y'" class="scan_in" @click.stop="handleScanClick">
|
|
64
|
+
<xd-font-icon :size="32" :color="scanIconColor" icon="iconsaoma1"></xd-font-icon>
|
|
65
|
+
</view>
|
|
63
66
|
<xd-font-icon v-if="searchIconPosition==='left'" :icon="icon" :color="iconColor" size="32"/>
|
|
64
67
|
<input
|
|
65
68
|
v-if="useSearch==='Y'"
|
|
@@ -78,6 +81,9 @@
|
|
|
78
81
|
@click.stop="doSearch"
|
|
79
82
|
>{{searchBtnText || '搜索'}}</view>
|
|
80
83
|
</view>
|
|
84
|
+
<view v-if="showQrcode==='Y'" class="qr_code" @click.stop="handleQrCodeClick">
|
|
85
|
+
<xd-font-icon :size="qrcodeSize" icon="iconerweima" :color="qrCodeColor"></xd-font-icon>
|
|
86
|
+
</view>
|
|
81
87
|
<view v-if="showSearchBtn==='Y' && searchBtnPosition==='out'"
|
|
82
88
|
class="search_btn_out"
|
|
83
89
|
:style="[searchBtnStyle]"
|
|
@@ -196,6 +202,13 @@
|
|
|
196
202
|
searchBoxRadius: 30,
|
|
197
203
|
bottomBorder: "",
|
|
198
204
|
inputBorder: "",
|
|
205
|
+
showQrcode: "",
|
|
206
|
+
qrcodeSize: 32,
|
|
207
|
+
qrcodePath: "",
|
|
208
|
+
qrCodeColor: "",
|
|
209
|
+
showScan: "",
|
|
210
|
+
scanIconColor: "",
|
|
211
|
+
scanPath: "",
|
|
199
212
|
}
|
|
200
213
|
},
|
|
201
214
|
watch: {
|
|
@@ -226,7 +239,11 @@
|
|
|
226
239
|
this.useSearch = getContainerPropsValue(container, "content.useSearch", "Y");
|
|
227
240
|
this.searchPagePath = getContainerPropsValue(container, "content.searchPagePath", {value:""}).value;
|
|
228
241
|
this.choseCityPath = getContainerPropsValue(container, "content.choseCityPath", {value:""}).value;
|
|
229
|
-
|
|
242
|
+
this.showQrcode = getContainerPropsValue(container, "content.showQrcode", "");
|
|
243
|
+
this.qrcodeSize = getContainerPropsValue(container, "content.qrcodeSize", 32);
|
|
244
|
+
this.qrCodeColor = getContainerPropsValue(container, "content.qrCodeColor", "#333");
|
|
245
|
+
this.showScan = getContainerPropsValue(container, "content.showScan", "");
|
|
246
|
+
this.scanIconColor = getContainerPropsValue(container, "content.scanIconColor", "#333");
|
|
230
247
|
|
|
231
248
|
//基础
|
|
232
249
|
this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", '#fff');
|
|
@@ -263,6 +280,8 @@
|
|
|
263
280
|
this.showQuickEntry = getContainerPropsValue(container, 'content.showQuickEntry', "N");
|
|
264
281
|
this.quickEntryType = getContainerPropsValue(container, 'content.quickEntryType', "");
|
|
265
282
|
this.quickEntryPath = getContainerPropsValue(container, 'content.quickEntryPath', {value:""}).value;
|
|
283
|
+
this.qrcodePath = getContainerPropsValue(container, 'content.qrcodePath', {value:""}).value;
|
|
284
|
+
this.scanPath = getContainerPropsValue(container, 'content.scanPath', {value:""}).value;
|
|
266
285
|
|
|
267
286
|
let name , logo, platform_logo;
|
|
268
287
|
if (this.projectAttr['site_name']) name = this.projectAttr['site_name'];
|
|
@@ -301,6 +320,16 @@
|
|
|
301
320
|
})
|
|
302
321
|
}
|
|
303
322
|
},
|
|
323
|
+
handleQrCodeClick(){
|
|
324
|
+
this.$xdUniHelper.navigateTo({
|
|
325
|
+
url: this.qrcodePath
|
|
326
|
+
})
|
|
327
|
+
},
|
|
328
|
+
handleScanClick(){
|
|
329
|
+
this.$xdUniHelper.navigateTo({
|
|
330
|
+
url: this.scanPath
|
|
331
|
+
})
|
|
332
|
+
},
|
|
304
333
|
|
|
305
334
|
/***
|
|
306
335
|
* @description 定位完成事件
|
|
@@ -446,6 +475,20 @@
|
|
|
446
475
|
padding: 0;
|
|
447
476
|
}
|
|
448
477
|
}
|
|
478
|
+
.scan_in{
|
|
479
|
+
position: relative;
|
|
480
|
+
padding-right: 28rpx;
|
|
481
|
+
margin-right: 20rpx;
|
|
482
|
+
&::before{
|
|
483
|
+
content: " ";
|
|
484
|
+
position: absolute;
|
|
485
|
+
width: 2rpx;
|
|
486
|
+
height: 100%;
|
|
487
|
+
background-color: #CCCCCC;
|
|
488
|
+
right: -0rpx;
|
|
489
|
+
top: 0rpx;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
449
492
|
.search_input{
|
|
450
493
|
flex: 1;
|
|
451
494
|
text-align: left;
|
|
@@ -479,6 +522,9 @@
|
|
|
479
522
|
align-items: center;
|
|
480
523
|
justify-content: center;
|
|
481
524
|
}
|
|
525
|
+
.qr_code{
|
|
526
|
+
margin-left: 16rpx;
|
|
527
|
+
}
|
|
482
528
|
}
|
|
483
529
|
}
|
|
484
530
|
}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
:key="showLocationKey"
|
|
67
67
|
></xd-city-show-api>
|
|
68
68
|
</view>
|
|
69
|
-
<view v-if="showScan==='Y'" class="scan_in" @click="handleScanClick">
|
|
69
|
+
<view v-if="showScan==='Y'" class="scan_in" @click.stop="handleScanClick">
|
|
70
70
|
<xd-font-icon :size="32" :color="scanIconColor" icon="iconsaoma1"></xd-font-icon>
|
|
71
71
|
</view>
|
|
72
72
|
<xd-font-icon v-if="searchIconPosition==='left'" :icon="icon" :color="iconColor" size="32"/>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
@click.stop="doSearch"
|
|
88
88
|
>{{searchBtnText || '搜索'}}</view>
|
|
89
89
|
</view>
|
|
90
|
-
<view v-if="showQrcode==='Y'" class="qr_code" @click="handleQrCodeClick">
|
|
90
|
+
<view v-if="showQrcode==='Y'" class="qr_code" @click.stop="handleQrCodeClick">
|
|
91
91
|
<xd-font-icon :size="qrcodeSize" icon="iconerweima" :color="qrCodeColor"></xd-font-icon>
|
|
92
92
|
</view>
|
|
93
93
|
<view v-if="showSearchBtn==='Y' && searchBtnPosition==='out'"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Notice
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
//设置方法名字当别忘记加上【模块名字】:Notice
|
|
10
|
+
mapFnName: 'getNoticeByIdFilmSquate',
|
|
11
|
+
title: '获取电影广场列表',
|
|
12
|
+
path: '/api/account/film/list-film-square',
|
|
13
|
+
isRule: false,
|
|
14
|
+
params: {
|
|
15
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
+
},
|
|
18
|
+
isConsole: true,
|
|
19
|
+
disabled: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
//设置方法名字当别忘记加上【模块名字】:Notice
|
|
23
|
+
mapFnName: 'updateNoticeFilmPaiqiDate',
|
|
24
|
+
title: '更新排期',
|
|
25
|
+
path: '/api/account/film/paiqi-date',
|
|
26
|
+
isRule: false,
|
|
27
|
+
params: {
|
|
28
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
+
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
|
+
},
|
|
31
|
+
isConsole: true,
|
|
32
|
+
disabled: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
//设置方法名字当别忘记加上【模块名字】:Notice
|
|
36
|
+
mapFnName: 'removeNoticeFilmAddress',
|
|
37
|
+
title: '删除我的配送地址',
|
|
38
|
+
path: '/api/account/film/paiqi-date',
|
|
39
|
+
isRule: false,
|
|
40
|
+
params: {
|
|
41
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
42
|
+
},
|
|
43
|
+
isConsole: true,
|
|
44
|
+
disabled: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
//设置方法名字当别忘记加上【模块名字】:Notice
|
|
48
|
+
mapFnName: 'addNoticeFilmcart',
|
|
49
|
+
title: '添加购物车',
|
|
50
|
+
path: '/api/account/film/paiqi-date',
|
|
51
|
+
isRule: false,
|
|
52
|
+
params: {
|
|
53
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
54
|
+
},
|
|
55
|
+
isConsole: true,
|
|
56
|
+
disabled: true,
|
|
57
|
+
},
|
|
58
|
+
];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '背景颜色:',
|
|
12
|
+
ele: 'xd-color',
|
|
13
|
+
valueKey: 'bgColor',
|
|
14
|
+
value: data.bgColor || '',
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
groupKey:'content',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: '选中路径:',
|
|
20
|
+
groupKey:'advanced',
|
|
21
|
+
className: 'input100',
|
|
22
|
+
ele: 'xd-select-pages-path',
|
|
23
|
+
valueKey: 'select-pages-path',
|
|
24
|
+
value: data['select-pages-path'] || null,
|
|
25
|
+
setting: {
|
|
26
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
data.bgColor && {
|
|
30
|
+
label: '高度:',
|
|
31
|
+
ele: 'el-input',
|
|
32
|
+
groupKey:'style',
|
|
33
|
+
type: 'number',
|
|
34
|
+
valueKey: 'height',
|
|
35
|
+
value: data.height || 100,
|
|
36
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
37
|
+
className: 'input60',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: '', //label
|
|
41
|
+
groupKey:'advanced',
|
|
42
|
+
ele: 'slot', //package 名称
|
|
43
|
+
slot: 'is_reference',
|
|
44
|
+
},
|
|
45
|
+
].filter(i=>i)
|
|
46
|
+
},
|
|
47
|
+
advanced: [],
|
|
48
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-notice-group"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-notice-group__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-notice-group__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-notice-group__body">
|
|
17
|
+
<view>测试插件( {{containerId}} )</view>
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBaseNoticeGroupMixin from "./JfbBaseNoticeGroupMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
export default {
|
|
30
|
+
name: "JfbBaseNoticeGroup",
|
|
31
|
+
components: {
|
|
32
|
+
XdFontIcon
|
|
33
|
+
},
|
|
34
|
+
mixins: [
|
|
35
|
+
componentsMixins, extsMixins, JfbBaseNoticeGroupMixin
|
|
36
|
+
],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
//todo
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
container(value, oldValue) {
|
|
45
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
46
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
created() {
|
|
50
|
+
this.init(this.container);
|
|
51
|
+
|
|
52
|
+
//todo
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
onJfbLoad(options) {
|
|
56
|
+
|
|
57
|
+
// jfbRootExec('baiduUserLogin', {
|
|
58
|
+
|
|
59
|
+
// vm: this,// data: {
|
|
60
|
+
|
|
61
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
+
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// }).then().catch()
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @description 监听事件变化
|
|
69
|
+
* @param container {object} 业务组件对象自己
|
|
70
|
+
*/
|
|
71
|
+
init(container) {
|
|
72
|
+
|
|
73
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
+
|
|
75
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
+
},
|
|
77
|
+
onJfbScroll(options) {
|
|
78
|
+
console.log('event.onJfbScroll', options)
|
|
79
|
+
},
|
|
80
|
+
onJfbReachBottom(options) {
|
|
81
|
+
console.log('event.onJfbReachBottom', options)
|
|
82
|
+
},
|
|
83
|
+
onJfbShow(options) {
|
|
84
|
+
console.log('event.onJfbShow', options)
|
|
85
|
+
},
|
|
86
|
+
onJfbHide(options) {
|
|
87
|
+
console.log('event.onJfbHide', options)
|
|
88
|
+
},
|
|
89
|
+
onJfbBack(options) {
|
|
90
|
+
console.log('event.onJfbBack', options)
|
|
91
|
+
},
|
|
92
|
+
onJfbUpdate(...data) {
|
|
93
|
+
console.log('event.onJfbUpdate', data)
|
|
94
|
+
},
|
|
95
|
+
onJfbCustomEvent(options) {
|
|
96
|
+
console.log('event.onJfbReachBottom', options)
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style scoped lang="less">
|
|
104
|
+
@import "./JfbBaseNoticeGroupLess.less";
|
|
105
|
+
|
|
106
|
+
.jfb-base-notice-group {
|
|
107
|
+
&__body{
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
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-notice-group {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
&__body{
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
z-index: 2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.editx,&.editx:hover {
|
|
25
|
+
position: relative;
|
|
26
|
+
min-height: unit(100, rpx);
|
|
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
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&__edit {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: unit(0, rpx);
|
|
47
|
+
top: unit(-52, rpx);
|
|
48
|
+
height: unit(50, rpx);
|
|
49
|
+
line-height: unit(50, rpx);
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: rgba(0, 0, 0, .6);
|
|
54
|
+
border-radius: unit(10, rpx);
|
|
55
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
+
color: #fff;
|
|
57
|
+
font-size: unit(22, rpx);
|
|
58
|
+
|
|
59
|
+
&-icon{
|
|
60
|
+
padding: 0 unit(20, rpx);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.editx {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//end
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**notPreview**/
|
|
73
|
+
.jfb-base-notice-group {
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
78
|
+
}
|
|
79
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
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-notice-group'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -6,7 +6,31 @@
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
|
-
return [
|
|
9
|
+
return [
|
|
10
|
+
0&&{
|
|
11
|
+
label: '公告组:',
|
|
12
|
+
ele: 'xd-site-news-group',
|
|
13
|
+
valueKey: 'contentGroup',
|
|
14
|
+
groupKey: 'content',
|
|
15
|
+
value: data.contentGroup || {},
|
|
16
|
+
isKey: true,
|
|
17
|
+
key: new Date().getTime(),
|
|
18
|
+
setting: {
|
|
19
|
+
config: {
|
|
20
|
+
sort: true,
|
|
21
|
+
maxlen: 100,
|
|
22
|
+
action: 'aliyun',
|
|
23
|
+
size: 5,
|
|
24
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
25
|
+
uploadType: 'aliyun',
|
|
26
|
+
type: ['jpg', 'png', 'jpeg']
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
rules: [
|
|
30
|
+
{ required: true, message: '请选择广告位', trigger: 'change' },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
].filter(i=>i)
|
|
10
34
|
},
|
|
11
35
|
advanced: [],
|
|
12
36
|
};
|
|
@@ -163,7 +163,7 @@ export default {
|
|
|
163
163
|
valueKey: 'pointsPath',
|
|
164
164
|
groupKey:'advanced',
|
|
165
165
|
placeholder: '请选择积分详情路径',
|
|
166
|
-
value: data['
|
|
166
|
+
value: data['pointsPath'] || null,
|
|
167
167
|
setting: {
|
|
168
168
|
router: XdBus.getParentApi('getPagesTree'),
|
|
169
169
|
},
|
|
@@ -85,6 +85,8 @@
|
|
|
85
85
|
import echarts from './components/echarts.vue'
|
|
86
86
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
87
87
|
import extsMixins from "@/mixins/extsMixins";
|
|
88
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
89
|
+
|
|
88
90
|
export default {
|
|
89
91
|
name: "JfbBaseSavingDetail",
|
|
90
92
|
components: {
|
|
@@ -179,6 +181,13 @@
|
|
|
179
181
|
vm: this,
|
|
180
182
|
data: data,
|
|
181
183
|
}).then(res => {
|
|
184
|
+
let list = res.list.map(item => {
|
|
185
|
+
item["order_time"] = this.$xdUniHelper.getDate(
|
|
186
|
+
item["order_time"] * 1000
|
|
187
|
+
).fullTime;
|
|
188
|
+
item.product_image = getServiceUrl(item.product_image)
|
|
189
|
+
return item;
|
|
190
|
+
})
|
|
182
191
|
const textColor = '#999'
|
|
183
192
|
const seriesData = res.record_months.map(item => {
|
|
184
193
|
return item.value
|
|
@@ -272,9 +281,9 @@
|
|
|
272
281
|
this.saveAmount = res.save_amount
|
|
273
282
|
this.hasNext = res.next_page_token !== "";
|
|
274
283
|
if (this.page_token === 1) {
|
|
275
|
-
this.productList =
|
|
284
|
+
this.productList = list
|
|
276
285
|
} else {
|
|
277
|
-
this.productList = this.productList.concat(
|
|
286
|
+
this.productList = this.productList.concat(list);
|
|
278
287
|
}
|
|
279
288
|
})
|
|
280
289
|
},
|
|
@@ -283,6 +292,13 @@
|
|
|
283
292
|
vm: this,
|
|
284
293
|
data: {},
|
|
285
294
|
}).then(res => {
|
|
295
|
+
let list = res.list.map(item => {
|
|
296
|
+
item["order_time"] = this.$xdUniHelper.getDate(
|
|
297
|
+
item["order_time"] * 1000
|
|
298
|
+
).fullTime;
|
|
299
|
+
item.product_image = getServiceUrl(item.product_image)
|
|
300
|
+
return item;
|
|
301
|
+
})
|
|
286
302
|
// 最大值
|
|
287
303
|
let max = this.getAmout(res.total_amount);
|
|
288
304
|
// 数量
|
|
@@ -360,9 +376,9 @@
|
|
|
360
376
|
this.saveAmount = res.save_amount
|
|
361
377
|
this.hasNext = res.next_page_token !== "";
|
|
362
378
|
if (this.page_token === 1) {
|
|
363
|
-
this.productList =
|
|
379
|
+
this.productList = list
|
|
364
380
|
} else {
|
|
365
|
-
this.productList = this.productList.concat(
|
|
381
|
+
this.productList = this.productList.concat(list);
|
|
366
382
|
}
|
|
367
383
|
})
|
|
368
384
|
},
|
|
@@ -371,6 +387,13 @@
|
|
|
371
387
|
vm: this,
|
|
372
388
|
data: {},
|
|
373
389
|
}).then(res => {
|
|
390
|
+
let list = res.list.map(item => {
|
|
391
|
+
item["order_time"] = this.$xdUniHelper.getDate(
|
|
392
|
+
item["order_time"] * 1000
|
|
393
|
+
).fullTime;
|
|
394
|
+
item.product_image = getServiceUrl(item.product_image)
|
|
395
|
+
return item;
|
|
396
|
+
})
|
|
374
397
|
let max = this.getAmout(res.total_amount);
|
|
375
398
|
// 数量
|
|
376
399
|
let value = this.getAmout(res.save_amount);
|
|
@@ -447,9 +470,9 @@
|
|
|
447
470
|
this.saveAmount = res.save_amount
|
|
448
471
|
this.hasNext = res.next_page_token !== "";
|
|
449
472
|
if (this.page_token === 1) {
|
|
450
|
-
this.productList =
|
|
473
|
+
this.productList = list
|
|
451
474
|
} else {
|
|
452
|
-
this.productList = this.productList.concat(
|
|
475
|
+
this.productList = this.productList.concat(list);
|
|
453
476
|
}
|
|
454
477
|
})
|
|
455
478
|
},
|