4 changed files with 208 additions and 8 deletions
-
2package.json
-
9src/api/business.js
-
150src/components/DomainSetting/index.vue
-
51src/views/business/businessList/index.vue
@ -0,0 +1,150 @@ |
|||||
|
<template> |
||||
|
<div class="comment_manage_page"> |
||||
|
<!-- ******************************************************弹框开始***************************************************************** --> |
||||
|
<!-- 新增或者编辑评论弹框 --> |
||||
|
<el-dialog |
||||
|
title="商家域名设置" |
||||
|
:visible.sync="dialogVisible" |
||||
|
:close-on-click-modal="false" |
||||
|
:before-close="handleClose" |
||||
|
width="500px" |
||||
|
center |
||||
|
> |
||||
|
<div> |
||||
|
<el-form :model="addForm" label-width="120px"> |
||||
|
<el-form-item label="PC端商城域名"> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-input v-model="addForm.pcDomain" /> |
||||
|
</template> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="移动端商城域名"> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-input v-model="addForm.mobileDomain" /> |
||||
|
</template> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
</div> |
||||
|
<span slot="footer" class="dialog-footer"> |
||||
|
<el-button @click="dialogVisible = false">取 消</el-button> |
||||
|
<el-button type="primary" @click="addForm_enter('ruleForm')">确 定</el-button> |
||||
|
</span> |
||||
|
|
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
businessDomainUpdate |
||||
|
} from '@/api/business' |
||||
|
|
||||
|
export default { |
||||
|
name: 'DomainSettingDialog', |
||||
|
data() { |
||||
|
return { |
||||
|
dialogVisible: false, |
||||
|
addForm:{ |
||||
|
businessId:0, |
||||
|
pcDomain:"", |
||||
|
mobileDomain:"", |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
computed : { |
||||
|
}, |
||||
|
created() { |
||||
|
}, |
||||
|
mounted() { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
showSetting(businessId, pcDomain, mobileDomain){ |
||||
|
this.addForm.businessId = businessId |
||||
|
this.addForm.pcDomain = pcDomain |
||||
|
this.addForm.mobileDomain = mobileDomain |
||||
|
this.dialogVisible = true |
||||
|
}, |
||||
|
addForm_enter() { |
||||
|
businessDomainUpdate({ |
||||
|
businessId: this.addForm.businessId, |
||||
|
pcDomain: this.addForm.pcDomain, |
||||
|
mobileDomain: this.addForm.mobileDomain |
||||
|
}).then(res => { |
||||
|
if (res.code === '') { |
||||
|
this.$message.success('设置成功') |
||||
|
this.$emit('onFinishSetDomain') |
||||
|
this.dialogVisible = false |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
handleClose() { |
||||
|
this.dialogVisible = false |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang='scss' scoped> |
||||
|
@import url("../../styles/elDialog.scss"); |
||||
|
.comment_manage_page { |
||||
|
padding: 20px; |
||||
|
background: #FFFFFF; |
||||
|
border-radius: 10px; |
||||
|
text-align:center; |
||||
|
} |
||||
|
.pinStyle { |
||||
|
.comment { |
||||
|
margin-bottom: 20px; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
.com_left { |
||||
|
font-size: 20px; |
||||
|
color: #333333; |
||||
|
margin-right: 20px; |
||||
|
} |
||||
|
.com_right { |
||||
|
font-size: 18px; |
||||
|
color: #333333; |
||||
|
} |
||||
|
} |
||||
|
.comment_imgList { |
||||
|
display: flex; |
||||
|
margin-bottom: 20px; |
||||
|
align-items: center; |
||||
|
.img_left { |
||||
|
font-size: 20px; |
||||
|
color: #333333; |
||||
|
margin-right: 20px; |
||||
|
width: 60px; |
||||
|
} |
||||
|
.imgList { |
||||
|
display: flex; |
||||
|
justify-content: flex-start; |
||||
|
align-items: center; |
||||
|
flex-wrap: wrap; |
||||
|
.el-image { |
||||
|
width: 200px; |
||||
|
height: 134px; |
||||
|
border-radius: 4px; |
||||
|
margin-right: 20px; |
||||
|
margin-bottom: 20px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.line { |
||||
|
width: 890px; |
||||
|
height: 1px; |
||||
|
background: #e0e5eb; |
||||
|
margin: 0 auto; |
||||
|
margin-bottom: 33px; |
||||
|
} |
||||
|
.addComment { |
||||
|
font-size: 20px; |
||||
|
color: #ff7911; |
||||
|
margin-bottom: 20px; |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
|
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue