jufubao-admin-library 1.1.196 → 1.1.198
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.
|
Binary file
|
|
@@ -161,6 +161,12 @@ export default {
|
|
|
161
161
|
if(params.cover){
|
|
162
162
|
params.cover = {url: params.cover}
|
|
163
163
|
}
|
|
164
|
+
if(params.background_image){
|
|
165
|
+
params.background_image = {url: params.background_image}
|
|
166
|
+
}
|
|
167
|
+
if(params.banner_image){
|
|
168
|
+
params.banner_image = {url: params.banner_image}
|
|
169
|
+
}
|
|
164
170
|
console.log(params);
|
|
165
171
|
}
|
|
166
172
|
let promiseAll = [this.getSmsFormSettings({base_type: this.baseType})];
|
|
@@ -374,6 +380,38 @@ export default {
|
|
|
374
380
|
{ required: true, message: '请上模版背景图片', trigger: ['blur', 'change'] },
|
|
375
381
|
]
|
|
376
382
|
},
|
|
383
|
+
{
|
|
384
|
+
label: "主页banner:",
|
|
385
|
+
ele: "xd-upload",
|
|
386
|
+
valueKey: 'banner_image',
|
|
387
|
+
value: params['banner_image']|| null,
|
|
388
|
+
defaultValue: params['banner_image']|| null,
|
|
389
|
+
slot: true,
|
|
390
|
+
oneWidth: 186,
|
|
391
|
+
oneHeight: 86,
|
|
392
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB',
|
|
393
|
+
type: ['jpg', 'png', 'jpeg', 'gif'],
|
|
394
|
+
styleType: 'one',
|
|
395
|
+
uploadType: 'aliyun',
|
|
396
|
+
size: 5, //5M
|
|
397
|
+
action: 'aliyun',
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
label: "主页背景图:",
|
|
401
|
+
ele: "xd-upload",
|
|
402
|
+
valueKey: 'background_image',
|
|
403
|
+
value: params['background_image']|| null,
|
|
404
|
+
defaultValue: params['background_image']|| null,
|
|
405
|
+
slot: true,
|
|
406
|
+
oneWidth: 86,
|
|
407
|
+
oneHeight: 186,
|
|
408
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB',
|
|
409
|
+
type: ['jpg', 'png', 'jpeg', 'gif'],
|
|
410
|
+
styleType: 'one',
|
|
411
|
+
uploadType: 'aliyun',
|
|
412
|
+
size: 5, //5M
|
|
413
|
+
action: 'aliyun',
|
|
414
|
+
},
|
|
377
415
|
{
|
|
378
416
|
label: "是否允许分享结果:",
|
|
379
417
|
ele: "xd-radio",
|
|
@@ -560,7 +598,7 @@ export default {
|
|
|
560
598
|
handleClick() {
|
|
561
599
|
this.$refs['poster'].submit().then(res => {
|
|
562
600
|
console.log(this.listValue, 'cover');
|
|
563
|
-
let { end_time, start_time, cover, page_url, ...postData } = this.listValue;
|
|
601
|
+
let { end_time, start_time, cover, background_image, banner_image, page_url, ...postData } = this.listValue;
|
|
564
602
|
postData.start_time = Math.ceil(start_time / 1000);
|
|
565
603
|
postData.end_time = Math.ceil(end_time / 1000);
|
|
566
604
|
|
|
@@ -571,6 +609,8 @@ export default {
|
|
|
571
609
|
if(cover){
|
|
572
610
|
postData.cover = cover.url;
|
|
573
611
|
}
|
|
612
|
+
if(background_image) postData.background_image = background_image.url;
|
|
613
|
+
if(banner_image) postData.banner_image = banner_image.url;
|
|
574
614
|
|
|
575
615
|
let loading = this.$loading({});
|
|
576
616
|
if(this.form_id){
|