jufubao-base 1.0.103-beta1 → 1.0.103

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.103-beta1",
3
+ "version": "1.0.103",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -196,7 +196,7 @@
196
196
  if(dir) jumpUrl = `//${window.location.host}/${dir}${path}`;
197
197
  else jumpUrl = path;
198
198
  //#endif
199
- jumpUrl = `${jumpUrl}${bus}}`;
199
+ jumpUrl = `${jumpUrl}${bus}`;
200
200
  return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
201
201
  }
202
202
  })
@@ -22,7 +22,6 @@ export default {
22
22
  scene: {label: '广告', value: 'normal'}
23
23
  },
24
24
  handleCustom({action, data}) {
25
- console.log(params.poster,'params.poster');
26
25
  //设置场景参数
27
26
  if(data) {
28
27
  data.params = Object.assign({}, {scene: 'normal'}, data.params || {})
@@ -241,19 +240,6 @@ export default {
241
240
  sort: true,
242
241
  maxlen: 100,
243
242
  },
244
- params.poster && params.poster['type']&& params.poster['type'] !== '1' &&{
245
- label: '填充设置:',
246
- ele: 'xd-margin-padding',
247
- valueKey: 'bgImagePadding',
248
- value: params['bgImagePadding'] || null,
249
- disabled: false,
250
- setting: {
251
- type: 'padding',
252
- },
253
- placeholder: '请填充设置',
254
- inline: false,
255
- notice: '设置内填充,<span style="color: red">单位:像素</span>。默认值:0像素',
256
- },
257
243
  params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
258
244
  label: '广告位内容间距设置:',
259
245
  ele: 'el-input',
@@ -18,10 +18,9 @@
18
18
  v-if="noData"
19
19
  :style="{
20
20
  margin: margin,
21
- backgroundImage: background?`url(${getBgImage})`:'none',
22
- backgroundSize: '100%',
21
+ background: `url(${background})`,
22
+ backgroundSize: '100% 100%',
23
23
  backgroundRepeat: 'no-repeat',
24
- padding: outPadding
25
24
  }
26
25
  ">
27
26
  <!--一分屏-->
@@ -264,32 +263,6 @@
264
263
  }
265
264
  return style[this.mode]
266
265
  },
267
- getBgImage(){
268
- let bg = '';
269
- if(this.$xdUniHelper.checkVarType(this.background) === 'object'
270
- || this.$xdUniHelper.checkVarType(this.background) === 'array'
271
- ) {
272
- if(!this.$xdUniHelper.isEmpty(this.background)) {
273
- return getServiceUrl(this.background.url)
274
- }
275
- }
276
- return bg
277
- },
278
- outPadding(){
279
- try {
280
- let defaultvalue = 0;
281
- if(this.$xdUniHelper.isEmpty(this.background)) defaultvalue = 20
282
- console.log(this.bgImagePadding,'this.paddingthis.paddingthis.padding');
283
- let padding = `${this.bgImagePadding.top !== null ? this.bgImagePadding.top : defaultvalue}rpx`;
284
- padding = `${padding} ${this.bgImagePadding.right !== null ? this.bgImagePadding.right : defaultvalue}rpx`;
285
- padding = `${padding} ${this.bgImagePadding.bottom !== null ? this.bgImagePadding.bottom : defaultvalue}rpx`;
286
- padding = `${padding} ${this.bgImagePadding.left !== null ? this.bgImagePadding.left : defaultvalue}rpx`;
287
- return padding;
288
- } catch (error) {
289
- console.log(error,'amamamam');
290
- }
291
-
292
- },
293
266
  },
294
267
  watch: {
295
268
  container(value) {
@@ -474,8 +447,8 @@
474
447
  this.rows = getContainerPropsValue(container, 'content.rows', 1);
475
448
  this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
476
449
  this.mS = getContainerPropsValue(container, 'content.margin', this.getDefualtValue('margin'));
477
- this.background = getContainerPropsValue(container, "content.background", 'none');
478
- this.bgImagePadding = getContainerPropsValue(container, 'content.bgImagePadding', {top: 20, left: 20, right: 20, bottom: 20});
450
+ this.background = getContainerPropsValue(container, "content.background", {path: "",}).path;
451
+
479
452
  //content
480
453
 
481
454
  this.mode = getContainerPropsValue(container, 'content.dot_type', 'dot');
@@ -12,15 +12,47 @@
12
12
  */
13
13
  module.exports = [
14
14
  {
15
- mapFnName: 'getListPosterContent', //自定义方法名字(必选)
16
- title: '获取内容',
17
- path: '/cms/v1/ad-content',
15
+ mapFnName: 'getByIdFilmSquate', //自定义方法名字(必选)
16
+ title: '获取电影广场列表',
17
+ path: '/api/account/film/list-film-square',
18
18
  isRule: false,
19
19
  params: {
20
- scene: ['使用场景', 'String', '选填'],
21
- container_id: ['插件ID', 'String', '必填'],
22
- page_id: ['页面ID', 'String', '必填'],
23
- page_size: ['记录条数', 'Number', '必填'],
20
+ last_key: ['当前页', 'Number', '必选'],
21
+ page_size: ['每页数量', 'Number', '必选'],
22
+ },
23
+ isConsole: true,
24
+ disabled: true,
25
+ },
26
+ {
27
+ mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
28
+ title: '更新排期',
29
+ path: '/api/account/film/paiqi-date',
30
+ isRule: false,
31
+ params: {
32
+ film_id: ['电影id', 'Number', '必选'],
33
+ cinema_id: ['影院id', 'Number', '必选'],
34
+ },
35
+ isConsole: true,
36
+ disabled: true,
37
+ },
38
+ {
39
+ mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
40
+ title: '删除我的配送地址',
41
+ path: '/api/account/film/paiqi-date',
42
+ isRule: false,
43
+ params: {
44
+ film_id: ['电影id', 'Number', '必选'],
45
+ },
46
+ isConsole: true,
47
+ disabled: true,
48
+ },
49
+ {
50
+ mapFnName: 'addFilmcart', //自定义方法名字(必选)
51
+ title: '添加购物车',
52
+ path: '/api/account/film/paiqi-date',
53
+ isRule: false,
54
+ params: {
55
+ film_id: ['电影id', 'Number', '必选'],
24
56
  },
25
57
  isConsole: true,
26
58
  disabled: true,