jufubao-base 1.0.170 → 1.0.172
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
|
@@ -117,11 +117,11 @@ export default {
|
|
|
117
117
|
//当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
|
|
118
118
|
data.params = Object.assign({}, data.params, {code: 'privacy_privacy'});
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
|
|
121
121
|
//获取返回参数(场景类型名称为必填)
|
|
122
122
|
//获取返回参数(场景类型名称为必填)
|
|
123
123
|
let loading = { close(){}}
|
|
124
|
-
|
|
124
|
+
|
|
125
125
|
//获取显示内容
|
|
126
126
|
if (action === 'screen') {
|
|
127
127
|
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
@@ -133,9 +133,9 @@ export default {
|
|
|
133
133
|
console.error(error);
|
|
134
134
|
loading.close();
|
|
135
135
|
});
|
|
136
|
-
|
|
136
|
+
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
//获取返回参数(广告位高度必选项)
|
|
140
140
|
if (action === 'getNewsInfo') {
|
|
141
141
|
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
@@ -148,7 +148,7 @@ export default {
|
|
|
148
148
|
console.error(error);
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
|
|
152
152
|
//获取产品业务线列表
|
|
153
153
|
if (action === 'namespace') {
|
|
154
154
|
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
161
161
|
console.error(error);
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
|
|
165
165
|
//使用内容分类
|
|
166
166
|
if (action === 'cmsPublishEditxContent') {
|
|
167
167
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -176,7 +176,7 @@ export default {
|
|
|
176
176
|
console.error(error);
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
|
|
180
180
|
//位置列表
|
|
181
181
|
if (action === 'getListPostion') {
|
|
182
182
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -190,7 +190,7 @@ export default {
|
|
|
190
190
|
console.error(error);
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
|
|
194
194
|
//位置创建
|
|
195
195
|
if (action === 'addPostion') {
|
|
196
196
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
205
205
|
data.cb(false)
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
|
|
209
209
|
//位置编辑
|
|
210
210
|
if (action === 'editPostion') {
|
|
211
211
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -220,7 +220,7 @@ export default {
|
|
|
220
220
|
data.cb(false)
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
|
|
224
224
|
//位置删除
|
|
225
225
|
if (action === 'deleltePostion') {
|
|
226
226
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
235
235
|
data.cb(false)
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
|
|
239
239
|
//获取广告位内容列表
|
|
240
240
|
if (action === 'getListContent') {
|
|
241
241
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
249
249
|
console.error(error);
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
|
|
253
253
|
//广告内容创建
|
|
254
254
|
if (action === 'addContent') {
|
|
255
255
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
264
264
|
data.cb(false)
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
|
|
268
268
|
//广告内容编辑
|
|
269
269
|
if (action === 'editContent') {
|
|
270
270
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -279,7 +279,7 @@ export default {
|
|
|
279
279
|
data.cb(false)
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
|
|
283
283
|
//广告内容删除
|
|
284
284
|
if (action === 'deleteContent') {
|
|
285
285
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -294,7 +294,7 @@ export default {
|
|
|
294
294
|
data.cb(false)
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
|
|
297
|
+
|
|
298
298
|
//内容发布
|
|
299
299
|
if (action === 'publish') {
|
|
300
300
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -309,7 +309,7 @@ export default {
|
|
|
309
309
|
console.error(error);
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
|
|
313
313
|
//通知页面进行刷新
|
|
314
314
|
if (action === 'update') {
|
|
315
315
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -343,10 +343,10 @@ export default {
|
|
|
343
343
|
//当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
|
|
344
344
|
data.params = Object.assign({}, data.params, {code: 'privacy_service'});
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
|
|
347
347
|
//获取返回参数(场景类型名称为必填)
|
|
348
348
|
let loading = { close(){}}
|
|
349
|
-
|
|
349
|
+
|
|
350
350
|
//获取显示内容
|
|
351
351
|
if (action === 'screen') {
|
|
352
352
|
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
@@ -358,9 +358,9 @@ export default {
|
|
|
358
358
|
console.error(error);
|
|
359
359
|
loading.close();
|
|
360
360
|
});
|
|
361
|
-
|
|
361
|
+
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
|
|
364
364
|
//获取返回参数(广告位高度必选项)
|
|
365
365
|
if (action === 'getNewsInfo') {
|
|
366
366
|
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
@@ -373,7 +373,7 @@ export default {
|
|
|
373
373
|
console.error(error);
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
|
|
377
377
|
//获取产品业务线列表
|
|
378
378
|
if (action === 'namespace') {
|
|
379
379
|
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
@@ -386,7 +386,7 @@ export default {
|
|
|
386
386
|
console.error(error);
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
-
|
|
389
|
+
|
|
390
390
|
//使用内容分类
|
|
391
391
|
if (action === 'cmsPublishEditxContent') {
|
|
392
392
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -401,7 +401,7 @@ export default {
|
|
|
401
401
|
console.error(error);
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
|
|
404
|
+
|
|
405
405
|
//位置列表
|
|
406
406
|
if (action === 'getListPostion') {
|
|
407
407
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -415,7 +415,7 @@ export default {
|
|
|
415
415
|
console.error(error);
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
|
|
418
|
+
|
|
419
419
|
//位置创建
|
|
420
420
|
if (action === 'addPostion') {
|
|
421
421
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -430,7 +430,7 @@ export default {
|
|
|
430
430
|
data.cb(false)
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
|
-
|
|
433
|
+
|
|
434
434
|
//位置编辑
|
|
435
435
|
if (action === 'editPostion') {
|
|
436
436
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -445,7 +445,7 @@ export default {
|
|
|
445
445
|
data.cb(false)
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
|
|
448
|
+
|
|
449
449
|
//位置删除
|
|
450
450
|
if (action === 'deleltePostion') {
|
|
451
451
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -460,7 +460,7 @@ export default {
|
|
|
460
460
|
data.cb(false)
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
|
|
464
464
|
//获取广告位内容列表
|
|
465
465
|
if (action === 'getListContent') {
|
|
466
466
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -474,7 +474,7 @@ export default {
|
|
|
474
474
|
console.error(error);
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
|
-
|
|
477
|
+
|
|
478
478
|
//广告内容创建
|
|
479
479
|
if (action === 'addContent') {
|
|
480
480
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -489,7 +489,7 @@ export default {
|
|
|
489
489
|
data.cb(false)
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
|
-
|
|
492
|
+
|
|
493
493
|
//广告内容编辑
|
|
494
494
|
if (action === 'editContent') {
|
|
495
495
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -504,7 +504,7 @@ export default {
|
|
|
504
504
|
data.cb(false)
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
|
-
|
|
507
|
+
|
|
508
508
|
//广告内容删除
|
|
509
509
|
if (action === 'deleteContent') {
|
|
510
510
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -519,7 +519,7 @@ export default {
|
|
|
519
519
|
data.cb(false)
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
|
-
|
|
522
|
+
|
|
523
523
|
//内容发布
|
|
524
524
|
if (action === 'publish') {
|
|
525
525
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -534,7 +534,7 @@ export default {
|
|
|
534
534
|
console.error(error);
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
|
-
|
|
537
|
+
|
|
538
538
|
//通知页面进行刷新
|
|
539
539
|
if (action === 'update') {
|
|
540
540
|
loading = XdBus.getParentApi('loading')({});
|
|
@@ -937,25 +937,20 @@ export default {
|
|
|
937
937
|
groupKey:'style',
|
|
938
938
|
ele: 'xd-margin-padding',
|
|
939
939
|
valueKey: 'btnMargin',
|
|
940
|
-
value: data.btnMargin ||
|
|
941
|
-
top: 20,
|
|
942
|
-
left: 20,
|
|
943
|
-
right: 20,
|
|
944
|
-
bottom: 20
|
|
945
|
-
},
|
|
940
|
+
value: data.btnMargin || null,
|
|
946
941
|
setting: {
|
|
947
942
|
type: 'padding',
|
|
948
943
|
},
|
|
949
944
|
placeholder: '请设置边距',
|
|
950
945
|
inline: false,
|
|
951
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span
|
|
946
|
+
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:左右边距<span style="color: red">40</span>像素,上下边距<span style="color: red">20</span>像素',
|
|
952
947
|
hidden: data.previewCurrent !== "account",
|
|
953
948
|
},
|
|
954
949
|
{
|
|
955
950
|
label: "按钮圆角 - 通用",
|
|
956
951
|
ele: 'xd-site-select-list',
|
|
957
952
|
valueKey: 'btnRadius',
|
|
958
|
-
value: data['btnRadius'] || '',
|
|
953
|
+
value: data['btnRadius'] || '20',
|
|
959
954
|
groupKey:'style',
|
|
960
955
|
placeholder: '请选择内容圆角设置',
|
|
961
956
|
multiple: false,
|
|
@@ -378,7 +378,7 @@ export default {
|
|
|
378
378
|
phoneLoginBtnText: "登录", //手机号登录按钮文案
|
|
379
379
|
phoneLoginBtnIcon: "", //手机号登录按钮图标
|
|
380
380
|
btnColor: "", //按钮颜色
|
|
381
|
-
btnRadius:
|
|
381
|
+
btnRadius: 20, //按钮圆角
|
|
382
382
|
btnMargin: {},
|
|
383
383
|
|
|
384
384
|
phonePlaceholder: "", //手机号登录输入框占位符
|
|
@@ -493,9 +493,9 @@ export default {
|
|
|
493
493
|
},
|
|
494
494
|
btnWrapStyle(){
|
|
495
495
|
let padding = `${this.checkValue(this.btnMargin.top, 20)}rpx`;
|
|
496
|
-
padding = `${padding} ${this.checkValue(this.btnMargin.right,
|
|
496
|
+
padding = `${padding} ${this.checkValue(this.btnMargin.right, 40)}rpx`;
|
|
497
497
|
padding = `${padding} ${this.checkValue(this.btnMargin.bottom, 20)}rpx`;
|
|
498
|
-
padding = `${padding} ${this.checkValue(this.btnMargin.left,
|
|
498
|
+
padding = `${padding} ${this.checkValue(this.btnMargin.left, 40)}rpx`;
|
|
499
499
|
return this.styleObjectToString({
|
|
500
500
|
padding: padding,
|
|
501
501
|
})
|
|
@@ -644,7 +644,7 @@ export default {
|
|
|
644
644
|
this.phoneLoginBtnText = getContainerPropsValue(value, "content.phoneLoginBtnText", '登录');
|
|
645
645
|
this.phoneLoginBtnIcon = getContainerPropsValue(value, "content.phoneLoginBtnIcon", '');
|
|
646
646
|
this.btnColor = getContainerPropsValue(value, "content.btnColor", '');
|
|
647
|
-
this.btnRadius = getContainerPropsValue(value, "content.btnRadius", '
|
|
647
|
+
this.btnRadius = getContainerPropsValue(value, "content.btnRadius", '20');
|
|
648
648
|
this.btnMargin = getContainerPropsValue(value, "content.btnMargin", {});
|
|
649
649
|
this.previewCurrent = getContainerPropsValue(value, "content.previewCurrent", 'auth');
|
|
650
650
|
this.phonePlaceholder = getContainerPropsValue(value, "content.phonePlaceholder", '请输入手机号');
|
|
@@ -1124,7 +1124,7 @@ export default {
|
|
|
1124
1124
|
::v-deep &.uni-forms-item--border{
|
|
1125
1125
|
border: none;
|
|
1126
1126
|
}
|
|
1127
|
-
|
|
1127
|
+
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
.get_code {
|