jufubao-base 1.0.179 → 1.0.181-beta1

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 (37) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardDelay/Api.js +19 -30
  3. package/src/components/JfbBaseCardDelay/Attr.js +237 -35
  4. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +278 -78
  5. package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +14 -0
  7. package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
  8. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +2 -2
  9. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +8 -8
  10. package/src/components/JfbBaseCardEntry/Attr.js +121 -0
  11. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +205 -29
  12. package/src/components/JfbBaseCardGive/Api.js +18 -34
  13. package/src/components/JfbBaseCardGive/Attr.js +29 -36
  14. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +466 -80
  15. package/src/components/JfbBaseCardGive/Mock.js +2 -9
  16. package/src/components/JfbBaseCardReceive/Api.js +10 -36
  17. package/src/components/JfbBaseCardReceive/Attr.js +9 -39
  18. package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +401 -80
  19. package/src/components/JfbBaseCardReceive/Mock.js +1 -7
  20. package/src/components/JfbBaseCardReceiveCover/Api.js +5 -43
  21. package/src/components/JfbBaseCardReceiveCover/Attr.js +57 -32
  22. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +147 -82
  23. package/src/components/JfbBaseCardReceiveCover/Mock.js +1 -9
  24. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
  25. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +81 -2
  26. package/src/components/JfbBaseOrderDetail/Mock.js +5 -0
  27. package/src/components/JfbBasePay/Attr.js +12 -0
  28. package/src/components/JfbBasePay/JfbBasePay.vue +4 -4
  29. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -1
  30. package/src/components/JfbBaseRechargeOrder/Api.js +11 -0
  31. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +46 -27
  32. package/src/components/JfbBaseRechargeOrderDetail/Api.js +11 -0
  33. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +142 -13
  34. package/src/components/JfbBaseRechargeSuccess/Api.js +11 -0
  35. package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
  36. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -3
  37. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.179",
3
+ "version": "1.0.181-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -6,51 +6,40 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Card
10
- mapFnName: 'getCardByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'getCardDelayContent', //自定义方法名字(必选)
10
+ title: '获取内容',
11
+ path: '/cms/v1/news-content',
13
12
  isRule: false,
14
13
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
14
+ scene: ['使用场景', 'String', '选填'],
15
+ container_id: ['插件ID', 'String', '必填'],
16
+ page_id: ['页面ID', 'String', '必填'],
17
+ page_size: ['记录条数', 'Number', '必填', 1],
18
+ code: ['业务线id', 'String', '选填'],
17
19
  },
18
20
  isConsole: true,
19
21
  disabled: true,
20
22
  },
21
23
  {
22
- //设置方法名字当别忘记加上【模块名字】:Card
23
- mapFnName: 'updateCardFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
24
+ mapFnName: 'getCardDelayPackageList', //自定义方法名字(必选)
25
+ title: '获取可用套餐',
26
+ path: '/card/v1/card-delay/list-avaliable-card-package',
26
27
  isRule: false,
27
28
  params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
29
+ card_number: ['卡号', 'String', '选填'],
30
30
  },
31
31
  isConsole: true,
32
32
  disabled: true,
33
33
  },
34
34
  {
35
- //设置方法名字当别忘记加上【模块名字】:Card
36
- mapFnName: 'removeCardFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
35
+ mapFnName: 'confirmDelayOrder', //自定义方法名字(必选)
36
+ title: '提交订单',
37
+ path: '/card/v1/card-delay/create-order',
39
38
  isRule: false,
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', '必选'],
39
+ data: {
40
+ card_number: ['卡号', 'String', '必填'],
41
+ total_amount: [ '订单金额', 'Number', '必填'],
42
+ package_id: ['套餐ID', 'String', '必填'],
54
43
  },
55
44
  isConsole: true,
56
45
  disabled: true,
@@ -8,49 +8,251 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
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'
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']
22
26
  },
23
- ]
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
+ },
24
232
  },
25
233
  {
26
- label: '选中路径:',
234
+ label: '票券支付路径:',
27
235
  ele: 'xd-select-pages-path',
28
- valueKey: 'select-pages-path',
29
- value: data['select-pages-path'] || null,
236
+ valueKey: 'payPath',
237
+ groupKey:'advanced',
238
+ placeholder: '请选择票券支付路径',
239
+ value: data['payPath'] || {},
30
240
  setting: {
31
- router: XdBus.getParentApi('getPagesTree')
241
+ router: XdBus.getParentApi('getPagesTree'),
32
242
  },
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
- ]
243
+ inline: false,
49
244
  },
50
245
  {
51
- label: '', //label
52
- ele: 'slot', //package 名称
53
- slot: 'is_reference',
246
+ label: '0元支付成功路径:',
247
+ ele: 'xd-select-pages-path',
248
+ valueKey: 'successPath',
249
+ groupKey:'advanced',
250
+ placeholder: '请选择0元支付成功路径',
251
+ value: data['successPath'] || {},
252
+ setting: {
253
+ router: XdBus.getParentApi('getPagesTree'),
254
+ },
255
+ inline: false,
54
256
  },
55
257
  ].filter(i=>i)
56
258
  },