index.vue
25.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
<!-- 首页设置 -->
<template>
<div class="home-set marketing p-t-20 edit-box">
<div class="container edit-container flex">
<div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container m-b-60" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<div slot="merchantQrcode" slot-scope="scope" :style="{ 'margin-left': labelWidth, width: '120px', 'text-align': 'center' }">
<p>
<img class="img-120" :src="editForm[scope.scope.name]" />
</p>
<el-button type="text" @click="handleImgDown(editForm[scope.scope.name])">下载图片</el-button>
</div>
<template slot="bannerBtn">
<el-button type="primary" :size="size" @click="handleBannerAdd">新增banner</el-button>
</template>
<div :style="{ 'margin-left': labelWidth }" slot="bannerList" slot-scope="scope">
<div v-for="(subItem, subIndex) in editForm[scope.scope.name]" :key="subIndex" class="flex">
<!-- 上传图片 -->
<div class="banner-upload-box">
<div class="">
<div class="flex">
<div v-show="!subItem.bannerImg" class="activity-img home-img-w-h" style="margin-bottom: 11px;">
<div class="add">+</div>
<span class="number">上传</span>
<input type="file" style="opacity: 0;" ref="file" class="activity-img home-img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleImgChange(e, subIndex)" />
</div>
<div v-show="!subItem.bannerImg" style="margin-left: 40px;">
<el-button type="text" class="el-icon-delete" @click="handleBannerDelete(subIndex)"></el-button>
</div>
</div>
<span v-show="subItem.bannerImg" class="muti-imgs">
<img class="home-img-w-h" :src="subItem.bannerImg" />
<span class="img-btns home-img-w-h">
<span class="btn-item">
<i class="el-icon-delete" @click="handleImgDelete(scope.scope.name, subIndex)"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.bannerImg)"></i>
</span>
</span>
</span>
</div>
</div>
<div v-if="subItem.bannerImg" class="flex-grow">
<div class="flex-default">
<span>banner链接</span>
<div class="banner-link">
<el-radio-group v-model="subItem.bannerType">
<el-radio v-for="(m, n) in bannerRadioList" :key="n" :label="m.confId">{{m.confName}}</el-radio>
</el-radio-group>
<div v-show="subItem.bannerType != '0'" class="link-block">
<div v-show="(subItem.bannerType == '1' && !subItem.goodsId) || (subItem.bannerType == '2' && !subItem.imgLinkUrl) || (subItem.bannerType == '3' && !subItem.videoLinkUrl)">
<el-button class="banner-btn" type="primary" :size="size" @click="handleBnnerLinkClick(scope.scope, subIndex)">选择
<input v-if="subItem.bannerType == '2'" type="file" ref="file" class="upload-btn" accept="image/png, image/jpeg, image/jpg" @change="e => handleUploadChange(e, item)" />
<input v-if="subItem.bannerType == '3'" type="file" ref="file" class="upload-btn" accept="video/mp4" @change="e => handleUploadVideoChange(e, item)" />
</el-button>
<p class="banner-tips-txt">点击banner后跳转{{subItem.bannerType == '1' ? '商品' : (subItem.bannerType == '2' ? '图文介绍' : '视频介绍')}}</p>
</div>
<!-- 选择商品 -->
<div v-show="subItem.bannerType == '1' && subItem.goodsId" class="flex-grow">
<div class="show-pro-box flex" v-if="subItem.goodsId">
<img class="img-56" :src="subItem.goods.goodsImage" />
<div class="flex-grow pro-txt">
<p class="one-line-ellipsis" :title="subItem.goods.goodsName">{{ subItem.goods.goodsName }}</p>
<div>
<el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleSinglePro(scope.scope, subIndex)">更换</el-button>
<el-button v-show="subItem.goodsId" type="text" class="btn-link" @click="handleProDelete(subIndex)">删除</el-button>
</div>
</div>
</div>
</div>
<!-- 图文介绍 -->
<div v-show="subItem.bannerType == '2' && subItem.imgLinkUrl" class="m-t-8">
<span class="muti-imgs">
<img class="img-56" :src="subItem.imgLinkUrl" />
<span class="img-btns img-56">
<span class="btn-item">
<i class="el-icon-delete" @click="handleBannerItemDelete(subIndex, 'imgLinkUrl')"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.imgLinkUrl)"></i>
</span>
</span>
</span>
</div>
<!-- 视频介绍 -->
<div v-show="subItem.bannerType == '3' && subItem.videoLinkUrl" class="m-t-8">
<span class="muti-imgs">
<video class="img-56 activity-img" :src="subItem.videoLinkUrl"></video>
<span class="img-btns img-56">
<span class="btn-item">
<i class="el-icon-delete" @click="handleBannerItemDelete(subIndex, 'videoLinkUrl')"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(subItem.videoLinkUrl, 'video')"></i>
</span>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="edit-tips">最多支持4张banner,图片格式仅支持JPG,PNG格式</p>
<p class="edit-tips">建议尺寸660*270px,大小10M以内</p>
</div>
<template slot="customerServerSuffix" slot-scope="scope">
<el-button v-show="!scope.scope.optionList.length" type="text"></el-button>
<p style="color: #5850ff;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
</template>
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> -->
</glsx-combi-form>
</div>
</div>
<div class="wechat-container m-r-20" style="margin-top: 59px;">
<div class="wechat-box">
<img class="w-100-per" src="@/assets/phone.png" />
<img class="wechant-back" src="@/assets/home-set.png" />
<div class="wechant-banner-img img-w-h">
<img v-if="!editForm.bannerList.length" src="@/assets/home-set-default.png" />
<el-carousel v-else height="90px">
<el-carousel-item v-for="item in editForm.bannerList" :key="item">
<img class="img-w-h" :src="item.bannerImg" />
</el-carousel-item>
</el-carousel>
</div>
<div class="wechant-notice">
<img class="img-14" src="@/assets/icon_notice.png">
<span>
<marquee width="200px" height="14px" scrolldelay="160">{{editForm.noticeContent}}</marquee>
</span>
</div>
</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
</div>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose"></select-single-pro-dialog>
<!-- 在线客服 -->
<glsx-dialog class="server-dialog" title="在线客服" width="712px" :noBtnOk="true" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose">
<div class="server-container">
<img src="@/assets/no-server.png"/>
<p class="server-txt">系统暂无已创建的在线客服</p>
</div>
<template slot="btn-middle">
<GLButton
type="primary"
:size="size"
fn="创建客服"
@click="handleConsultantConfirm"
>创建客服</GLButton>
</template>
</glsx-dialog>
<el-dialog v-if="isImgVisible" :visible.sync="isImgVisible" class="dialog-look">
<video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls>
<source :src="dialogObj.url" type="video/mp4">
</video>
<img v-else class="dialog-img" width="100%" :src="dialogObj.url" alt="" />
</el-dialog>
</div>
</template>
<script>
export default {
name: 'homeSet',
data() {
return {
footerLeft: '0',
footerWidth: '0',
size: 'small',
userInfo: {},
// 查看大图
isImgVisible: false,
dialogObj: {
url: '',
uploadType: 'img'
},
// 商品选择
isSingleSelectVisible: false,
curBanner: {
idx: '',
targetItem: {}
},
selectedProInfo: {},
// 在线客服
isConsultantVisible: false,
customerServerList: [],
// tableParams: {
// tableOption: false,
// tableColumns: [
// {
// label: '姓名',
// prop: 'customerServerName'
// },
// {
// label: '跟进专员类型',
// prop: 'customerServerUserTitle'
// }
// ]
// },
// 表单
editForm: {
merchantQrcode: '',
noticeContent: '',
// preferentialPolicy: '',
customerServerUserId: '',
bannerList: []
},
bannerItem: {
bannerImg: '',
goodsId: '',
bannerType: '0',
linkUrl: '',
videoLinkUrl: '',
imgLinkUrl: '',
goods: {
id: '',
goodsName: '',
goodsImage: ''
}
},
bannerRadioList: [
{ confId: '1', confName: '商品' },
{ confId: '2', confName: '图文介绍' },
{ confId: '3', confName: '视频介绍' }
],
labelWidth: '144px',
isEdit: true,
externalFormList: [
{
title: '门店小程序码',
// editChildRef: '',
// rules: [{}],
editFormData: [
{
// label: '',
name: 'merchantQrcode',
addHtml: 'merchantQrcode'
}
]
},
{
title: 'Banner管理',
editFormData: [
{
label: 'banner图片',
addHtml: 'bannerBtn'
},
{
label: '',
name: 'bannerList',
addHtml: 'bannerList'
}
]
},
{
title: '公告管理',
editFormData: [
{
label: '门店公告',
name: 'noticeContent',
type: 'input',
rows: '4',
inputType: 'textarea',
maxlength: '50'
}
]
},
// {
// title: '新车优惠政策',
// editFormData: [
// {
// label: '优惠政策',
// name: 'preferentialPolicy',
// type: 'input',
// rows: '4',
// inputType: 'textarea',
// maxlength: '300'
// }
// ]
// },
{
title: '在线客服',
editFormData: [
{
label: '在线客服',
name: 'customerServerUserId',
type: 'select',
optionList: [],
optionId: 'userOneid',
optionLabel: 'staffName',
optionsName: 'consultantList',
suffixSlot: 'customerServerSuffix',
isClear: true,
changeAttr: (value, targetItem) => {
var tempObj = {
customerServerName: '',
customerServerUserTitle: ''
}
this.customerServerList = []
this.editForm.customerServerId = ''
this.editForm.customerServerName = ''
this.editForm.customerServerUserTitle = ''
if (value) {
tempObj = this.baseData.consultantList.find(item => item.userOneid == value)
this.editForm.customerServerId = tempObj.id
this.editForm.customerServerName = tempObj.staffName
this.editForm.customerServerUserTitle = tempObj.staffTitle
this.customerServerList.push({
customerServerName: tempObj.staffName,
customerServerUserTitle: tempObj.staffTitle,
})
}
}
}
// {
// label: '',
// addHtml: 'serviceTable'
// }
]
}
],
// 基本信息
baseData: {
consultantList: []
}
}
},
mounted() {
this.userInfo = this.$globalState.session
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getInfo()
this.getConsultant()
},
methods: {
getInfo() {
this.$apis.homeSet.getHomeInfoListApi({}).then(res => {
// console.log(res)
this.editForm.bannerList = []
this.editForm.noticeContent = res.noticeContent
this.editForm.merchantQrcode = res.merchantQrcode
// this.editForm.preferentialPolicy = res.preferentialPolicy
this.editForm.customerServerUserId = ''
// 在线客服
this.customerServerList = []
if (res.customerServerUserId) {
this.editForm.customerServerUserId = res.customerServerUserId
this.editForm.customerServerId = res.customerServerId
this.editForm.customerServerName = res.customerServerName
this.editForm.customerServerUserTitle = res.customerServerUserTitle
this.customerServerList.push({
customerServerName: res.customerServerName,
customerServerUserTitle: res.customerServerUserTitle
})
}
if (res.bannerList && res.bannerList.length) {
res.bannerList.forEach(item => {
var params = {
bannerImg: item.bannerImg,
goodsId: item.goods ? item.goods.id : '',
bannerType: item.bannerType + '',
linkUrl: item.linkUrl,
imgLinkUrl: '',
videoLinkUrl: ''
}
if(item.bannerType == '2') {
params.imgLinkUrl = item.linkUrl
}
if(item.bannerType == '3') {
params.videoLinkUrl = item.linkUrl
}
if (item.goods) {
params.goods = {
id: item.goods.id,
goodsName: item.goods.goodsName,
goodsImage: item.goods.goodsImage
}
}
this.editForm.bannerList.push(params)
})
}
})
},
handleImgDown(src) {
// window.open(src)
var a = document.createElement('a')
a.setAttribute('href', src)
a.setAttribute('target', '_blank')
document.body.appendChild(a)
a.click()
},
// 图片删除
handleImgDelete(attrName, subIndex) {
this.$messageBox.confirm('是否删除该banner?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'error',
callback: action => {
if (action == 'confirm') {
this.editForm[attrName].splice(subIndex, 1)
}
}
})
},
// 图片查看
handleImgLook(src, uploadType) {
this.isImgVisible = true
// this.dialogImageUrl = src
this.dialogObj = {
url: src,
uploadType: uploadType || 'img'
}
},
handleBannerAdd() {
if (this.editForm.bannerList.length >= 6) {
this.$message({
message: '最多只能新增6个banner',
type: 'error'
})
return true
}
this.editForm.bannerList.push(this.$common.utils.deepClone(this.bannerItem))
},
handleBannerDelete(idx) {
this.editForm.bannerList.splice(idx, 1)
},
handleProDelete(idx) {
this.editForm.bannerList[idx].goodsId = ''
this.editForm.bannerList[idx].bannerType = '0'
this.editForm.bannerList[idx].goods = {}
},
handleImgChange(e, idx) {
var reader = new FileReader()
var file = e.srcElement.files[0]
const isLt = file.size / 1024 / 1024 < 10
const isType = ['image/jpeg', 'image/png', 'image/jpg'].includes(file.type)
if (!isType) {
this.$message.error('上传图片不是jpg、jpeg或png的格式!')
return true
}
if (!isLt) {
this.$message.error('上传图片大小不能超过10MB!')
return true
}
reader.readAsDataURL(file)
reader.onload = e => {
const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => {
this.editForm.bannerList[idx].bannerImg = res
})
}
},
handleBnnerLinkClick(targetItem, idx) {
this.curBanner.idx = idx
this.curBanner.targetItem = targetItem
switch(this.editForm.bannerList[idx].bannerType) {
case '1':
this.handleSinglePro(targetItem, idx)
break;
case '2':
break;
case '3':
break;
}
},
// banner - 图片上传
handleUploadChange(e) {
var reader = new FileReader()
var file = e.srcElement.files[0]
var uploadType = 'img'
// 默认1MB
const limitSize = 30
const isLt = file.size / 1024 / 1024 < limitSize
const isType = ['image/jpeg', 'image/png', 'image/jpg'].includes(file.type)
if (!isType) {
this.$message.error('上传图片不是jpg、jpeg或png的格式!')
return true
}
if (!isLt) {
this.$message.error('上传图片大小不能超过' + limitSize + 'MB!')
return true
}
reader.readAsDataURL(file)
reader.onload = e => {
const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => {
this.editForm.bannerList[this.curBanner.idx].imgLinkUrl = res
})
}
},
// 视频上传
handleUploadVideoChange(e) {
var reader = new FileReader()
var file = e.srcElement.files[0]
// 默认1MB
const limitSize = 200
const isLt = file.size / 1024 / 1024 < limitSize
const isType = ['video/mp4'].includes(file.type)
if (!isType) {
this.$message.error('上传视频不是MP4的格式!')
return true
}
if (!isLt) {
this.$message.error('上传视频大小不能超过' + limitSize + 'MB!')
return true
}
reader.readAsDataURL(file)
reader.onload = e => {
const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadVideoApi({ file: base64 }).then(res => {
this.editForm.bannerList[this.curBanner.idx].videoLinkUrl = res
})
}
},
handleBannerItemDelete(idx, linkName) {
this.editForm.bannerList[idx][linkName] = ''
this.editForm.bannerList[idx].bannerType = '0'
},
// 商品选择-start
handleSinglePro(targetItem, idx) {
this.curBanner.idx = idx
this.curBanner.targetItem = targetItem
this.selectedProInfo = this.editForm.bannerList[this.curBanner.idx].goods ? this.$common.utils.deepClone(this.editForm.bannerList[this.curBanner.idx].goods) : {}
this.handleSingleSelectClose()
},
handleSingleSelectConfirm(selectedProInfo) {
this.selectedProInfo = selectedProInfo
this.editForm.bannerList[this.curBanner.idx].goodsId = selectedProInfo.id
this.editForm.bannerList[this.curBanner.idx].goods = selectedProInfo
this.handleSingleSelectClose()
},
handleSingleSelectClose() {
this.isSingleSelectVisible = !this.isSingleSelectVisible
},
// 商品选择-end
// 在线客服-start
handleConsultantClose() {
this.isConsultantVisible = !this.isConsultantVisible
},
handleConsultantConfirm() {
this.$history.push('/home/followUp/index')
},
getConsultant() {
this.$apis.homeSet.getConsultantListApi({ merchantId: this.userInfo.merchantId, followTypes: [3] }).then(res => {
this.baseData.consultantList = res
var idx = this.externalFormList.findIndex(item => item.title == '在线客服')
this.externalFormList[idx].editFormData[0].optionList = res
})
},
// 没有客服列表
handleNoServer() {
this.handleConsultantClose()
},
// 在线客服-end
handleConfirm() {
var params = this.$common.utils.deepClone(this.editForm)
params.bannerList = []
this.editForm.bannerList.forEach((item, idx) => {
params.bannerList.push({
bannerImg: item.bannerImg,
goodsId: '',
bannerType: +item.bannerType,
linkUrl: '',
goods: {}
})
if(item.bannerType == '1' && item.goodsId) {
params.bannerList[idx].goodsId = item.goodsId
params.bannerList[idx].goods = {
id: item.goods.id,
goodsName: item.goods.goodsName,
goodsImage: item.goods.goodsImage
}
}
if(item.bannerType == '2' && item.imgLinkUrl) {
params.bannerList[idx].linkUrl = item.imgLinkUrl
}
if(item.bannerType == '3' && item.videoLinkUrl) {
params.bannerList[idx].linkUrl = item.videoLinkUrl
}
if((item.bannerType == '1' && !item.goodsId) || (item.bannerType == '2' && !item.imgLinkUrl) || (item.bannerType == '3' && !item.videoLinkUrl)) {
params.bannerList[idx].bannerType = 0
}
})
// console.log(params)
this.$apis.homeSet.updateHomeApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
this.getInfo()
})
}
}
}
</script>
<style>
.home-set .home-img-w-h {
width: 264px;
height: 108px;
}
.home-set .wechat-container .wechat-box .wechant-back {
width: 252px;
box-sizing: border-box;
position: absolute;
top: 56px;
left: 19px;
border: 1px solid #D8D8D8;
}
.home-set .wechat-container .wechat-box .wechant-banner-img {
position: absolute;
top: 141px;
left: 35px;
}
.img-14 {
width: 14px;
height: 14px;
margin-right: 4px;
}
.home-set .wechat-container .wechat-box .img-w-h {
width: 220px;
height: 90px;
}
.home-set .wechat-container .wechat-box .wechant-notice {
position: absolute;
top: 237px;
left: 35px;
font-size: 12px;
height: 14px;
line-height: 14px;
color: #333333;
}
.home-set .wechat-container .wechat-box .el-carousel__button {
width: 5px !important;
}
.home-set .banner-upload-box {
width: 264px;
/* margin: 0 10px 10px 0; */
margin-right: 10px;
}
.home-set .edit-tips {
line-height: 20px;
font-size: 14px;
color: #999999;
width: 338px;
}
.home-set .show-pro-box {
padding: 8px 12px;
}
.home-set .img-56 {
width: 56px;
height: 56px;
}
.home-set .m-t-8 {
margin-top: 8px;
}
.home-set .show-pro-box .pro-txt {
width: 154px;
text-align: left;
margin-left: 12px;
}
.home-set .p-t-12 {
padding-top: 12px;
}
.home-set .banner-link {
width: 246px;
margin-left: 20px;
}
.home-set .banner-link .el-radio {
margin-right: 17px;
}
.home-set .banner-link .el-radio:last-child {
margin-right: 0;
}
.home-set .link-block {
width: 100%;
height: 72px;
text-align: center;
background-color: #F7F7F7;
border: 1px solid #DCDFE6;
}
.home-set .link-block .banner-btn {
position: relative;
margin-top: 12px;
}
.home-set .link-block .upload-btn {
position: absolute;
width: 62px;
height: 32px;
left: 0;
top: 0;
opacity: 0;
cursor: pointer;
}
.home-set .link-block .banner-tips-txt {
color: #999999;
}
.home-set .server-dialog .server-container {
text-align: center;
height: 196px;
}
.home-set .server-container .server-txt {
margin-top: 13px;
height: 20px;
font-size: 16px;
}
.home-set .server-dialog .el-dialog__footer {
text-align: center;
}
</style>