jufubao-base 1.0.232-beta3 → 1.0.232-beta4
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/JfbBaseBalance/Api.js +58 -0
- package/src/components/JfbBaseBalance/Attr.js +48 -0
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +111 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
- package/src/components/JfbBaseBalance/Mock.js +13 -0
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +30 -29
- package/src/components/JfbBaseCodeOpenVip/Attr.js +229 -27
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +111 -9
- package/src/components/JfbBaseConsumpCode/Attr.js +22 -22
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +580 -34
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +16 -7
- package/src/components/JfbBaseOpenVip/Attr.js +229 -27
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +259 -7
- package/src/components/JfbBaseOpenVip/XdVipList.vue +81 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +33 -4
- package/src/components/JfbBasePointsCard/Attr.js +199 -24
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +209 -29
- package/src/components/JfbBasePointsDetail/Api.js +8 -43
- package/src/components/JfbBasePointsDetail/Attr.js +282 -26
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +139 -29
- package/src/components/JfbBaseRechargeOrder/Api.js +3 -13
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +16 -34
- package/src/components/JfbBaseShare/JfbBaseShare.vue +108 -2
- package/src/components/JfbBaseTfkSearch/Attr.js +8 -82
- package/src/components/JfbBaseUserInfo/Attr.js +102 -10
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +301 -114
- package/src/components/JfbBaseWithDrawAgain/Api.js +58 -0
- package/src/components/JfbBaseWithDrawAgain/Attr.js +48 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +111 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
- package/src/components/JfbBaseWithDrawAgain/Mock.js +13 -0
- package/src/components/JfbBaseWithDrawRecord/Api.js +58 -0
- package/src/components/JfbBaseWithDrawRecord/Attr.js +48 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +111 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
- package/src/components/JfbBaseWithDrawRecord/Mock.js +13 -0
|
@@ -6,51 +6,16 @@
|
|
|
6
6
|
*/
|
|
7
7
|
module.exports = [
|
|
8
8
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
path: '/api/account/film/list-film-square',
|
|
9
|
+
mapFnName: 'getListBaseNewsContent', //自定义方法名字(必选)
|
|
10
|
+
title: '获取内容',
|
|
11
|
+
path: '/cms/v1/news-content',
|
|
13
12
|
isRule: false,
|
|
14
13
|
params: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
//设置方法名字当别忘记加上【模块名字】:Points
|
|
23
|
-
mapFnName: 'updatePointsFilmPaiqiDate',
|
|
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
|
-
//设置方法名字当别忘记加上【模块名字】:Points
|
|
36
|
-
mapFnName: 'removePointsFilmAddress',
|
|
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
|
-
//设置方法名字当别忘记加上【模块名字】:Points
|
|
48
|
-
mapFnName: 'addPointsFilmcart',
|
|
49
|
-
title: '添加购物车',
|
|
50
|
-
path: '/api/account/film/paiqi-date',
|
|
51
|
-
isRule: false,
|
|
52
|
-
params: {
|
|
53
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
14
|
+
scene: ['使用场景', 'String', '选填'],
|
|
15
|
+
container_id: ['插件ID', 'String', '必填'],
|
|
16
|
+
page_id: ['页面ID', 'String', '必填'],
|
|
17
|
+
page_size: ['记录条数', 'Number', '必填', 1],
|
|
18
|
+
code: ['业务线id', 'String', '选填'],
|
|
54
19
|
},
|
|
55
20
|
isConsole: true,
|
|
56
21
|
disabled: true,
|
|
@@ -8,41 +8,297 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '
|
|
12
|
-
ele: 'xd-
|
|
13
|
-
valueKey: '
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
label: '外边距:',
|
|
12
|
+
ele: 'xd-margin-padding',
|
|
13
|
+
valueKey: 'bodyMargin',
|
|
14
|
+
groupKey: 'style',
|
|
15
|
+
value: data['bodyMargin'] || null,
|
|
16
|
+
setting: {
|
|
17
|
+
type: 'margin',
|
|
18
|
+
},
|
|
19
|
+
placeholder: '请设置外边距',
|
|
20
|
+
inline: false,
|
|
21
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
17
22
|
},
|
|
18
23
|
{
|
|
19
|
-
label: '
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
value: data['select-pages-path'] || null,
|
|
24
|
+
label: '外填充:',
|
|
25
|
+
ele: 'xd-margin-padding',
|
|
26
|
+
valueKey: 'bodyPadding',
|
|
27
|
+
groupKey: 'style',
|
|
28
|
+
value: data['bodyPadding'] || null,
|
|
25
29
|
setting: {
|
|
26
|
-
|
|
30
|
+
type: 'padding',
|
|
27
31
|
},
|
|
32
|
+
placeholder: '请设置外填充',
|
|
33
|
+
inline: false,
|
|
34
|
+
notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
28
35
|
},
|
|
29
|
-
|
|
30
|
-
label: '
|
|
31
|
-
ele: '
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
placeholder: '
|
|
36
|
+
{
|
|
37
|
+
label: '圆角设置:',
|
|
38
|
+
ele: 'xd-site-select-list',
|
|
39
|
+
valueKey: 'radius',
|
|
40
|
+
value: data['radius'] || '20',
|
|
41
|
+
labelInline: true,
|
|
42
|
+
groupKey: 'style',
|
|
43
|
+
placeholder: '请选择圆角设置',
|
|
44
|
+
multiple: false,
|
|
37
45
|
className: 'input60',
|
|
46
|
+
handleCustom({ action, data }) {
|
|
47
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
48
|
+
setting_id: 'edtix_style_radius',
|
|
49
|
+
key: Date.now()
|
|
50
|
+
})
|
|
51
|
+
.then(res => {
|
|
52
|
+
data.cb(res.list)
|
|
53
|
+
})
|
|
54
|
+
.catch(error => {
|
|
55
|
+
console.error(error);
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "边框设置:",
|
|
61
|
+
ele: "xd-border",
|
|
62
|
+
valueKey: "bodyBorder",
|
|
63
|
+
value: data['bodyBorder'] || { type: 'Y', value: { color: '#eee', style: "solid", width: '1' } },
|
|
64
|
+
className: 'input80',
|
|
65
|
+
groupKey: 'style',
|
|
38
66
|
},
|
|
39
67
|
{
|
|
40
|
-
label: '',
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
68
|
+
label: '背景颜色:',
|
|
69
|
+
ele: 'xd-color',
|
|
70
|
+
valueKey: 'bgColor',
|
|
71
|
+
groupKey: 'style',
|
|
72
|
+
value: data['bgColor'] || null,
|
|
73
|
+
placeholder: '请选择背景颜色',
|
|
74
|
+
labelInline: true,
|
|
75
|
+
classNmae: 'input80',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: '公告内容:',
|
|
79
|
+
ele: 'xd-site-news',
|
|
80
|
+
valueKey: 'notice',
|
|
81
|
+
groupKey: 'content',
|
|
82
|
+
value: data.notice || null,
|
|
83
|
+
className: 'input70',
|
|
84
|
+
setting: {
|
|
85
|
+
config: {
|
|
86
|
+
sort: true,
|
|
87
|
+
maxlen: 100,
|
|
88
|
+
action: 'aliyun',
|
|
89
|
+
size: 5,
|
|
90
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
91
|
+
uploadType: 'aliyun',
|
|
92
|
+
type: ['jpg', 'png', 'jpeg']
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
handleCustom({ action, data }) {
|
|
96
|
+
if (data && data.params) {
|
|
97
|
+
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
98
|
+
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
//获取返回参数(场景类型名称为必填)
|
|
102
|
+
//获取返回参数(场景类型名称为必填)
|
|
103
|
+
let loading = { close() { } }
|
|
104
|
+
|
|
105
|
+
//获取显示内容
|
|
106
|
+
if (action === 'screen') {
|
|
107
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
|
|
108
|
+
.then(res => {
|
|
109
|
+
loading.close();
|
|
110
|
+
data.cb(res['list'])
|
|
111
|
+
})
|
|
112
|
+
.catch(error => {
|
|
113
|
+
console.error(error);
|
|
114
|
+
loading.close();
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
//获取返回参数(广告位高度必选项)
|
|
120
|
+
if (action === 'getNewsInfo') {
|
|
121
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
122
|
+
.then(res => {
|
|
123
|
+
loading.close()
|
|
124
|
+
data.cb({ list: res.list, selectId: res.selected })
|
|
125
|
+
})
|
|
126
|
+
.catch(error => {
|
|
127
|
+
loading.close()
|
|
128
|
+
console.error(error);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
//获取产品业务线列表
|
|
133
|
+
if (action === 'namespace') {
|
|
134
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
135
|
+
.then(res => {
|
|
136
|
+
loading.close()
|
|
137
|
+
data.cb(res['list'])
|
|
138
|
+
})
|
|
139
|
+
.catch(error => {
|
|
140
|
+
loading.close()
|
|
141
|
+
console.error(error);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
//使用内容分类
|
|
146
|
+
if (action === 'cmsPublishEditxContent') {
|
|
147
|
+
loading = XdBus.getParentApi('loading')({});
|
|
148
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
149
|
+
.then(res => {
|
|
150
|
+
console.log('cmsPublishEditxContent', res)
|
|
151
|
+
loading.close();
|
|
152
|
+
data.cb(res)
|
|
153
|
+
})
|
|
154
|
+
.catch(error => {
|
|
155
|
+
loading.close();
|
|
156
|
+
console.error(error);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
//位置列表
|
|
161
|
+
if (action === 'getListPostion') {
|
|
162
|
+
loading = XdBus.getParentApi('loading')({});
|
|
163
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
164
|
+
.then(res => {
|
|
165
|
+
loading.close();
|
|
166
|
+
data.cb(res)
|
|
167
|
+
})
|
|
168
|
+
.catch(error => {
|
|
169
|
+
loading.close();
|
|
170
|
+
console.error(error);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
//位置创建
|
|
175
|
+
if (action === 'addPostion') {
|
|
176
|
+
loading = XdBus.getParentApi('loading')({});
|
|
177
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
178
|
+
.then(res => {
|
|
179
|
+
loading.close();
|
|
180
|
+
data.cb(true)
|
|
181
|
+
})
|
|
182
|
+
.catch(error => {
|
|
183
|
+
console.error(error);
|
|
184
|
+
loading.close();
|
|
185
|
+
data.cb(false)
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
//位置编辑
|
|
190
|
+
if (action === 'editPostion') {
|
|
191
|
+
loading = XdBus.getParentApi('loading')({});
|
|
192
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
193
|
+
.then(res => {
|
|
194
|
+
loading.close();
|
|
195
|
+
data.cb(true)
|
|
196
|
+
})
|
|
197
|
+
.catch(error => {
|
|
198
|
+
console.error(error);
|
|
199
|
+
loading.close();
|
|
200
|
+
data.cb(false)
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
//位置删除
|
|
205
|
+
if (action === 'deleltePostion') {
|
|
206
|
+
loading = XdBus.getParentApi('loading')({});
|
|
207
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
208
|
+
.then(res => {
|
|
209
|
+
loading.close();
|
|
210
|
+
data.cb(true)
|
|
211
|
+
})
|
|
212
|
+
.catch(error => {
|
|
213
|
+
console.error(error);
|
|
214
|
+
loading.close();
|
|
215
|
+
data.cb(false)
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
//获取广告位内容列表
|
|
220
|
+
if (action === 'getListContent') {
|
|
221
|
+
loading = XdBus.getParentApi('loading')({});
|
|
222
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
223
|
+
.then(res => {
|
|
224
|
+
loading.close();
|
|
225
|
+
data.cb(res)
|
|
226
|
+
})
|
|
227
|
+
.catch(error => {
|
|
228
|
+
loading.close();
|
|
229
|
+
console.error(error);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
//广告内容创建
|
|
234
|
+
if (action === 'addContent') {
|
|
235
|
+
loading = XdBus.getParentApi('loading')({});
|
|
236
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
237
|
+
.then(res => {
|
|
238
|
+
loading.close();
|
|
239
|
+
data.cb(true)
|
|
240
|
+
})
|
|
241
|
+
.catch(error => {
|
|
242
|
+
console.error(error);
|
|
243
|
+
loading.close();
|
|
244
|
+
data.cb(false)
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
//广告内容编辑
|
|
249
|
+
if (action === 'editContent') {
|
|
250
|
+
loading = XdBus.getParentApi('loading')({});
|
|
251
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
252
|
+
.then(res => {
|
|
253
|
+
loading.close();
|
|
254
|
+
data.cb(true)
|
|
255
|
+
})
|
|
256
|
+
.catch(error => {
|
|
257
|
+
console.error(error);
|
|
258
|
+
loading.close();
|
|
259
|
+
data.cb(false)
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
//广告内容删除
|
|
264
|
+
if (action === 'deleteContent') {
|
|
265
|
+
loading = XdBus.getParentApi('loading')({});
|
|
266
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
267
|
+
.then(res => {
|
|
268
|
+
loading.close();
|
|
269
|
+
data.cb(true)
|
|
270
|
+
})
|
|
271
|
+
.catch(error => {
|
|
272
|
+
console.error(error);
|
|
273
|
+
loading.close();
|
|
274
|
+
data.cb(false)
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
//内容发布
|
|
279
|
+
if (action === 'publish') {
|
|
280
|
+
loading = XdBus.getParentApi('loading')({});
|
|
281
|
+
console.log('publish', data.params)
|
|
282
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
283
|
+
.then(res => {
|
|
284
|
+
loading.close();
|
|
285
|
+
data.cb(res)
|
|
286
|
+
})
|
|
287
|
+
.catch(error => {
|
|
288
|
+
loading.close();
|
|
289
|
+
console.error(error);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
//通知页面进行刷新
|
|
294
|
+
if (action === 'update') {
|
|
295
|
+
loading = XdBus.getParentApi('loading')({});
|
|
296
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
297
|
+
loading.close()
|
|
298
|
+
}
|
|
299
|
+
},
|
|
44
300
|
},
|
|
45
|
-
].filter(i=>i)
|
|
301
|
+
].filter(i => i)
|
|
46
302
|
},
|
|
47
303
|
advanced: [],
|
|
48
304
|
};
|
|
@@ -1,26 +1,47 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-points-detail"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
2
|
+
<view class="jfb-base-points-detail" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
|
|
7
3
|
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-points-detail__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
4
|
+
<view class="jfb-base-points-detail__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
|
|
13
5
|
<view class="jfb-base-points-detail__edit-icon" @click="delEdit">删除</view>
|
|
14
6
|
</view>
|
|
15
7
|
<!-- #endif -->
|
|
16
8
|
<view class="jfb-base-points-detail__body">
|
|
17
|
-
<view
|
|
9
|
+
<view :style="[bodyStyleComp]" class="jfb-base-points-detail__body-points">
|
|
10
|
+
<view>
|
|
11
|
+
可用积分
|
|
12
|
+
<XdFontIcon @click="showDialog=true" style="margin-left: 10rpx" size="20" icon="iconmingchengtubiao"></XdFontIcon>
|
|
13
|
+
</view>
|
|
14
|
+
<view>128.80</view>
|
|
15
|
+
</view>
|
|
16
|
+
<view :style="[bodyStyleComp]" class="jfb-base-points-detail__body-list">
|
|
17
|
+
<view class="jfb-base-points-detail__body-list-item">
|
|
18
|
+
<view class="jfb-base-points-detail__body-list-item-info">
|
|
19
|
+
<view class="jfb-base-points-detail__body-list-item-info-label">积分兑换余额</view>
|
|
20
|
+
<view :class="income?'income':'expenses'" class="jfb-base-points-detail__body-list-item-info-value">- 12:00
|
|
21
|
+
</view>
|
|
22
|
+
</view>
|
|
23
|
+
<view class="jfb-base-points-detail__body-list-item-date">2025-04-10 16:23</view>
|
|
24
|
+
</view>
|
|
25
|
+
<view class="jfb-base-points-detail__body-list-item">
|
|
26
|
+
<view class="jfb-base-points-detail__body-list-item-info">
|
|
27
|
+
<view class="jfb-base-points-detail__body-list-item-info-label">积分兑换余额</view>
|
|
28
|
+
<view :class="income?'income':'expenses'" class="jfb-base-points-detail__body-list-item-info-value">- 12:00
|
|
29
|
+
</view>
|
|
30
|
+
</view>
|
|
31
|
+
<view class="jfb-base-points-detail__body-list-item-date">2025-04-10 16:23</view>
|
|
32
|
+
</view>
|
|
33
|
+
</view>
|
|
34
|
+
<XdDailog :cancel="false" @onBtn="showDialog=false" confirmText="我知道了" title="积分说明" :show.sync="showDialog">
|
|
35
|
+
<xd-content-xss v-html="notice"></xd-content-xss>
|
|
36
|
+
</XdDailog>
|
|
18
37
|
</view>
|
|
19
38
|
</view>
|
|
20
39
|
</template>
|
|
21
40
|
|
|
22
41
|
<script>
|
|
23
42
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
43
|
+
import XdDailog from '@/components/XdDailog/XdDailog.vue'
|
|
44
|
+
import XdContentXss from '@/components/XdContentXss/XdContentXss'
|
|
24
45
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
46
|
import JfbBasePointsDetailMixin from "./JfbBasePointsDetailMixin";
|
|
26
47
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
@@ -29,17 +50,36 @@
|
|
|
29
50
|
export default {
|
|
30
51
|
name: "JfbBasePointsDetail",
|
|
31
52
|
components: {
|
|
32
|
-
XdFontIcon
|
|
53
|
+
XdFontIcon,
|
|
54
|
+
XdDailog,
|
|
55
|
+
XdContentXss
|
|
33
56
|
},
|
|
34
57
|
mixins: [
|
|
35
58
|
componentsMixins, extsMixins, JfbBasePointsDetailMixin
|
|
36
59
|
],
|
|
37
60
|
data() {
|
|
38
61
|
return {
|
|
39
|
-
|
|
40
|
-
|
|
62
|
+
income: false,
|
|
63
|
+
radius: 0,
|
|
64
|
+
margin: {},
|
|
65
|
+
padding: {},
|
|
66
|
+
bgColor: '',
|
|
67
|
+
bodyBorder: {},
|
|
68
|
+
notice: '',
|
|
69
|
+
showDialog: false
|
|
41
70
|
}
|
|
42
71
|
},
|
|
72
|
+
computed: {
|
|
73
|
+
bodyStyleComp() {
|
|
74
|
+
return {
|
|
75
|
+
borderRadius: `${this.radius}rpx`,
|
|
76
|
+
margin: this.getMarginAndPadding(this.margin, 20),
|
|
77
|
+
padding: this.getMarginAndPadding(this.padding, 40),
|
|
78
|
+
background: this.bgColor,
|
|
79
|
+
border: this.bodyBorder,
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
},
|
|
43
83
|
watch: {
|
|
44
84
|
container(value, oldValue) {
|
|
45
85
|
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
@@ -53,26 +93,41 @@
|
|
|
53
93
|
},
|
|
54
94
|
methods: {
|
|
55
95
|
onJfbLoad(options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
96
|
+
this.getContent()
|
|
97
|
+
},
|
|
98
|
+
getContent() {
|
|
99
|
+
jfbRootExec("getListBaseNewsContent", {
|
|
100
|
+
vm: this,
|
|
101
|
+
data: {
|
|
102
|
+
page_id: this.pageAttr["page_id"], //页面ID
|
|
103
|
+
container_id: this.containerId, //组件ID
|
|
104
|
+
limit: 1,
|
|
105
|
+
},
|
|
106
|
+
})
|
|
107
|
+
.then((res) => {
|
|
108
|
+
if (res.list.length > 0) {
|
|
109
|
+
if (res.list && res.list.length > 0) {
|
|
110
|
+
this.notice = this.$xdUniHelper.filterHtml(res.list[0].content);
|
|
111
|
+
}
|
|
112
|
+
this.noticeStatus = true;
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
.catch((error) => {
|
|
116
|
+
console.error(error);
|
|
117
|
+
});
|
|
66
118
|
},
|
|
67
119
|
/**
|
|
68
120
|
* @description 监听事件变化
|
|
69
121
|
* @param container {object} 业务组件对象自己
|
|
70
122
|
*/
|
|
71
123
|
init(container) {
|
|
124
|
+
this.radius = getContainerPropsValue(container, 'content.radius', '20');
|
|
125
|
+
this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
|
|
126
|
+
this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
|
|
127
|
+
this.bgColor = getContainerPropsValue(container, 'content.bgColor', '#fff');
|
|
128
|
+
this.bodyBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.bodyBorder', {}))
|
|
129
|
+
console.log(getContainerPropsValue(container, 'content.bodyBorder', {}), 'this.bgColor');
|
|
72
130
|
|
|
73
|
-
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
-
|
|
75
|
-
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
131
|
},
|
|
77
132
|
onJfbScroll(options) {
|
|
78
133
|
console.log('event.onJfbScroll', options)
|
|
@@ -104,8 +159,63 @@
|
|
|
104
159
|
@import "./JfbBasePointsDetailLess.less";
|
|
105
160
|
|
|
106
161
|
.jfb-base-points-detail {
|
|
107
|
-
&__body{
|
|
162
|
+
&__body {
|
|
163
|
+
&-points {
|
|
164
|
+
background: #fff;
|
|
165
|
+
|
|
166
|
+
&>view:first-child {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
color: #333;
|
|
170
|
+
font-size: 24rpx;
|
|
171
|
+
}
|
|
108
172
|
|
|
173
|
+
&>view:nth-child(2) {
|
|
174
|
+
color: #333;
|
|
175
|
+
font-size: 64rpx;
|
|
176
|
+
font-weight: 500;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&-list {
|
|
181
|
+
&-item {
|
|
182
|
+
margin-bottom: 40rpx;
|
|
183
|
+
|
|
184
|
+
&-info {
|
|
185
|
+
display: flex;
|
|
186
|
+
justify-content: space-between;
|
|
187
|
+
align-items: center;
|
|
188
|
+
|
|
189
|
+
&-label {
|
|
190
|
+
color: #333333;
|
|
191
|
+
font-size: 28rpx;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&-value {
|
|
195
|
+
font-size: 32rpx;
|
|
196
|
+
font-weight: 700;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.income {
|
|
200
|
+
color: #FF5A39;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.expenses {
|
|
204
|
+
color: #00C800;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&-date {
|
|
209
|
+
color: #999999;
|
|
210
|
+
font-size: 22rpx;
|
|
211
|
+
margin-top: 26rpx;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&-item:last-child {
|
|
216
|
+
margin-bottom: 0;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
109
219
|
}
|
|
110
220
|
}
|
|
111
|
-
</style>
|
|
221
|
+
</style>
|
|
@@ -17,19 +17,9 @@ module.exports = [
|
|
|
17
17
|
path: '/card/v1/card-recharge/list-order',
|
|
18
18
|
isRule: false,
|
|
19
19
|
params: {
|
|
20
|
-
page_size: ['
|
|
21
|
-
page_token: ['
|
|
22
|
-
|
|
23
|
-
isConsole: true,
|
|
24
|
-
disabled: true,
|
|
25
|
-
}, {
|
|
26
|
-
mapFnName: 'getDelayOrderList',
|
|
27
|
-
title: '获取卡延期订单列表',
|
|
28
|
-
path: '/card/v1/card-delay/list-order',
|
|
29
|
-
isRule: false,
|
|
30
|
-
params: {
|
|
31
|
-
page_size: ['page_size', 'Number', true],
|
|
32
|
-
page_token: ['page_token', 'Number', true]
|
|
20
|
+
page_size: ['每页显示记录数量', 'Number', '必选'],
|
|
21
|
+
page_token: ['页码', 'Number', '必选'],
|
|
22
|
+
source: ['来源', 'String', '必选', 'all'],
|
|
33
23
|
},
|
|
34
24
|
isConsole: true,
|
|
35
25
|
disabled: true,
|