jufubao-base 1.0.177-beta1 → 1.0.178

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.
Files changed (24) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardDelay/Api.js +30 -19
  3. package/src/components/JfbBaseCardDelay/Attr.js +37 -227
  4. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +79 -254
  5. package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -12
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -14
  7. package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
  8. package/src/components/JfbBaseCardEntry/Attr.js +0 -121
  9. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +29 -202
  10. package/src/components/JfbBaseCardGive/Api.js +34 -18
  11. package/src/components/JfbBaseCardGive/Attr.js +36 -29
  12. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +80 -463
  13. package/src/components/JfbBaseCardGive/Mock.js +9 -2
  14. package/src/components/JfbBaseCardReceive/Api.js +36 -10
  15. package/src/components/JfbBaseCardReceive/Attr.js +39 -9
  16. package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +81 -382
  17. package/src/components/JfbBaseCardReceiveCover/Api.js +43 -5
  18. package/src/components/JfbBaseCardReceiveCover/Attr.js +32 -57
  19. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +82 -143
  20. package/src/components/JfbBasePay/Attr.js +0 -12
  21. package/src/components/JfbBasePay/JfbBasePay.vue +4 -4
  22. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +2 -2
  23. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +12 -135
  24. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.177-beta1",
3
+ "version": "1.0.178",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -6,40 +6,51 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- mapFnName: 'getCardDelayContent', //自定义方法名字(必选)
10
- title: '获取内容',
11
- path: '/cms/v1/news-content',
9
+ //设置方法名字当别忘记加上【模块名字】:Card
10
+ mapFnName: 'getCardByIdFilmSquate',
11
+ title: '获取电影广场列表',
12
+ path: '/api/account/film/list-film-square',
12
13
  isRule: false,
13
14
  params: {
14
- scene: ['使用场景', 'String', '选填'],
15
- container_id: ['插件ID', 'String', '必填'],
16
- page_id: ['页面ID', 'String', '必填'],
17
- page_size: ['记录条数', 'Number', '必填', 1],
18
- code: ['业务线id', 'String', '选填'],
15
+ last_key: ['当前页', 'Number', '必选'],
16
+ page_size: ['每页数量', 'Number', '必选'],
19
17
  },
20
18
  isConsole: true,
21
19
  disabled: true,
22
20
  },
23
21
  {
24
- mapFnName: 'getCardDelayPackageList', //自定义方法名字(必选)
25
- title: '获取可用套餐',
26
- path: '/card/v1/card-delay/list-avaliable-card-package',
22
+ //设置方法名字当别忘记加上【模块名字】:Card
23
+ mapFnName: 'updateCardFilmPaiqiDate',
24
+ title: '更新排期',
25
+ path: '/api/account/film/paiqi-date',
27
26
  isRule: false,
28
27
  params: {
29
- card_number: ['卡号', 'String', '选填'],
28
+ film_id: ['电影id', 'Number', '必选'],
29
+ cinema_id: ['影院id', 'Number', '必选'],
30
30
  },
31
31
  isConsole: true,
32
32
  disabled: true,
33
33
  },
34
34
  {
35
- mapFnName: 'confirmDelayOrder', //自定义方法名字(必选)
36
- title: '提交订单',
37
- path: '/card/v1/card-delay/create-order',
35
+ //设置方法名字当别忘记加上【模块名字】:Card
36
+ mapFnName: 'removeCardFilmAddress',
37
+ title: '删除我的配送地址',
38
+ path: '/api/account/film/paiqi-date',
38
39
  isRule: false,
39
- data: {
40
- card_number: ['卡号', 'String', '必填'],
41
- total_amount: [ '订单金额', 'Number', '必填'],
42
- package_id: ['套餐ID', 'String', '必填'],
40
+ params: {
41
+ film_id: ['电影id', 'Number', '必选'],
42
+ },
43
+ isConsole: true,
44
+ disabled: true,
45
+ },
46
+ {
47
+ //设置方法名字当别忘记加上【模块名字】:Card
48
+ mapFnName: 'addCardFilmcart',
49
+ title: '添加购物车',
50
+ path: '/api/account/film/paiqi-date',
51
+ isRule: false,
52
+ params: {
53
+ film_id: ['电影id', 'Number', '必选'],
43
54
  },
44
55
  isConsole: true,
45
56
  disabled: true,
@@ -8,239 +8,49 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '提示内容:',
12
- ele: 'xd-site-news',
13
- valueKey: 'notice',
14
- groupKey:'content',
15
- value: data.notice || null,
16
- className: 'input70',
17
- setting: {
18
- config: {
19
- sort: true,
20
- maxlen: 100,
21
- action: 'aliyun',
22
- size: 5,
23
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
24
- uploadType: 'aliyun',
25
- type: ['jpg', 'png', 'jpeg']
11
+ label: '背景颜色:',
12
+ ele: 'xd-color',
13
+ valueKey: 'bgcolor',
14
+ value: data.bgcolor || '',
15
+ placeholder: '请输入占位框背景颜色',
16
+ classNmae: 'input80',
17
+ rules: [
18
+ {
19
+ required: true,
20
+ message: '请输入占位框背景颜色',
21
+ trigger: 'blur'
26
22
  },
27
- },
28
- handleCustom({action, data}) {
29
- if (data && data.params) {
30
- //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
31
- //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
32
- }
33
-
34
- //获取返回参数(场景类型名称为必填)
35
- let loading = { close(){}}
36
-
37
- //获取显示内容
38
- if (action === 'screen') {
39
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
40
- .then(res => {
41
- loading.close();
42
- data.cb(res['list'])
43
- })
44
- .catch(error => {
45
- console.error(error);
46
- loading.close();
47
- });
48
-
49
- }
50
-
51
- //获取返回参数(广告位高度必选项)
52
- if (action === 'getNewsInfo') {
53
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
54
- .then(res => {
55
- loading.close()
56
- data.cb({list: res.list, selectId: res.selected})
57
- })
58
- .catch(error => {
59
- loading.close()
60
- console.error(error);
61
- });
62
- }
63
-
64
- //获取产品业务线列表
65
- if (action === 'namespace') {
66
- XdBus.getParentApi('getOptionsNamespaces')({})
67
- .then(res => {
68
- loading.close()
69
- data.cb(res['list'])
70
- })
71
- .catch(error => {
72
- loading.close()
73
- console.error(error);
74
- });
75
- }
76
-
77
- //使用内容分类
78
- if (action === 'cmsPublishEditxContent') {
79
- loading = XdBus.getParentApi('loading')({});
80
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
81
- .then(res => {
82
- console.log('cmsPublishEditxContent', res)
83
- loading.close();
84
- data.cb(res)
85
- })
86
- .catch(error => {
87
- loading.close();
88
- console.error(error);
89
- });
90
- }
91
-
92
- //位置列表
93
- if (action === 'getListPostion') {
94
- loading = XdBus.getParentApi('loading')({});
95
- XdBus.getParentApi('getListNewsPosition')(data.params)
96
- .then(res => {
97
- loading.close();
98
- data.cb(res)
99
- })
100
- .catch(error => {
101
- loading.close();
102
- console.error(error);
103
- });
104
- }
105
-
106
- //位置创建
107
- if (action === 'addPostion') {
108
- loading = XdBus.getParentApi('loading')({});
109
- XdBus.getParentApi('addNewsPosition')(data.params)
110
- .then(res => {
111
- loading.close();
112
- data.cb(true)
113
- })
114
- .catch(error => {
115
- console.error(error);
116
- loading.close();
117
- data.cb(false)
118
- });
119
- }
120
-
121
- //位置编辑
122
- if (action === 'editPostion') {
123
- loading = XdBus.getParentApi('loading')({});
124
- XdBus.getParentApi('updateNewsPosition')(data.params)
125
- .then(res => {
126
- loading.close();
127
- data.cb(true)
128
- })
129
- .catch(error => {
130
- console.error(error);
131
- loading.close();
132
- data.cb(false)
133
- });
134
- }
135
-
136
- //位置删除
137
- if (action === 'deleltePostion') {
138
- loading = XdBus.getParentApi('loading')({});
139
- XdBus.getParentApi('deleteNewsPosition')(data.params)
140
- .then(res => {
141
- loading.close();
142
- data.cb(true)
143
- })
144
- .catch(error => {
145
- console.error(error);
146
- loading.close();
147
- data.cb(false)
148
- });
149
- }
150
-
151
- //获取广告位内容列表
152
- if (action === 'getListContent') {
153
- loading = XdBus.getParentApi('loading')({});
154
- XdBus.getParentApi('getListNewsContent')(data.params)
155
- .then(res => {
156
- loading.close();
157
- data.cb(res)
158
- })
159
- .catch(error => {
160
- loading.close();
161
- console.error(error);
162
- });
163
- }
164
-
165
- //广告内容创建
166
- if (action === 'addContent') {
167
- loading = XdBus.getParentApi('loading')({});
168
- XdBus.getParentApi('addNewsContent')(data.params)
169
- .then(res => {
170
- loading.close();
171
- data.cb(true)
172
- })
173
- .catch(error => {
174
- console.error(error);
175
- loading.close();
176
- data.cb(false)
177
- });
178
- }
179
-
180
- //广告内容编辑
181
- if (action === 'editContent') {
182
- loading = XdBus.getParentApi('loading')({});
183
- XdBus.getParentApi('updateNewsContent')(data.params)
184
- .then(res => {
185
- loading.close();
186
- data.cb(true)
187
- })
188
- .catch(error => {
189
- console.error(error);
190
- loading.close();
191
- data.cb(false)
192
- });
193
- }
194
-
195
- //广告内容删除
196
- if (action === 'deleteContent') {
197
- loading = XdBus.getParentApi('loading')({});
198
- XdBus.getParentApi('deleteNewsContent')(data.params)
199
- .then(res => {
200
- loading.close();
201
- data.cb(true)
202
- })
203
- .catch(error => {
204
- console.error(error);
205
- loading.close();
206
- data.cb(false)
207
- });
208
- }
209
-
210
- //内容发布
211
- if (action === 'publish') {
212
- loading = XdBus.getParentApi('loading')({});
213
- console.log('publish', data.params)
214
- XdBus.getParentApi('cmsPublishContent')(data.params)
215
- .then(res => {
216
- loading.close();
217
- data.cb(res)
218
- })
219
- .catch(error => {
220
- loading.close();
221
- console.error(error);
222
- });
223
- }
224
-
225
- //通知页面进行刷新
226
- if (action === 'update') {
227
- loading = XdBus.getParentApi('loading')({});
228
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
229
- loading.close()
230
- }
231
- },
23
+ ]
232
24
  },
233
25
  {
234
- label: '票券支付路径:',
26
+ label: '选中路径:',
235
27
  ele: 'xd-select-pages-path',
236
- valueKey: 'payPath',
237
- groupKey:'advanced',
238
- placeholder: '请选择票券支付路径',
239
- value: data['payPath'] || {},
28
+ valueKey: 'select-pages-path',
29
+ value: data['select-pages-path'] || null,
240
30
  setting: {
241
- router: XdBus.getParentApi('getPagesTree'),
31
+ router: XdBus.getParentApi('getPagesTree')
242
32
  },
243
- inline: false,
33
+ },
34
+ data.bgcolor && {
35
+ label: '高度:',
36
+ ele: 'el-input',
37
+ type: 'number',
38
+ valueKey: 'height',
39
+ value: data.height || 100,
40
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
41
+ className: 'input80',
42
+ rules: [
43
+ {
44
+ required: true,
45
+ message: '请输入占位框高度',
46
+ trigger: 'blur'
47
+ },
48
+ ]
49
+ },
50
+ {
51
+ label: '', //label
52
+ ele: 'slot', //package 名称
53
+ slot: 'is_reference',
244
54
  },
245
55
  ].filter(i=>i)
246
56
  },