jufubao-base 1.0.237-beta7 → 1.0.237-beta8
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/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: {
|
|
@@ -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
|
},
|