Commit 61a347f9 authored by 高宇's avatar 高宇

会员权益

parent 77db558d
...@@ -47,11 +47,12 @@ ...@@ -47,11 +47,12 @@
:limit="1" :limit="1"
list-type="picture" list-type="picture"
> >
<img v-if="imgUrl" :src="imgUrl" class="avatar">
<!-- <el-button size="small" type="primary">点击上传</el-button>--> <!-- <el-button size="small" type="primary">点击上传</el-button>-->
<div class="upload-trademark"> <div v-if="!imgUrl" class="upload-trademark">
<i class="el-icon-plus" style="width: 20px;height: 20px;margin-top: 10px;" /> <i class="el-icon-plus" style="width: 20px;height: 20px;margin-top: 10px;" />
<div class="upload-trademark-title">上传竖版封面</div></div> <div class="upload-trademark-title">上传竖版封面</div></div>
<div slot="tip" class="el-upload__tip">支持文件格式:.jpg .gpeg .png.单个文件不能超过4M</div> <div v-if="!imgUrl" slot="tip" class="el-upload__tip">支持文件格式:.jpg .gpeg .png.单个文件不能超过4M</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item label="封面" prop="image"> <el-form-item label="封面" prop="image">
...@@ -135,7 +136,7 @@ export default { ...@@ -135,7 +136,7 @@ export default {
} }
}, },
created() { created() {
// const baseURL = 'http://192.144.239.97:20043/file/' const baseURL = 'http://192.144.239.97:20043/file/'
if (this.type === 0) { if (this.type === 0) {
this.form = {} this.form = {}
} else if (this.type === 1) { } else if (this.type === 1) {
...@@ -144,6 +145,8 @@ export default { ...@@ -144,6 +145,8 @@ export default {
queryDetailById(id).then(res => { queryDetailById(id).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.form = res.data this.form = res.data
this.imgUrl = baseURL + this.form.imgUrl
this.imgageUrl = baseURL + this.form.imageUrl
console.log('form', this.form) console.log('form', this.form)
} }
}) })
......
...@@ -110,6 +110,7 @@ ...@@ -110,6 +110,7 @@
:inactive-value="0" :inactive-value="0"
active-text="启用" active-text="启用"
inactive-text="停用" inactive-text="停用"
@change="handleChangeStatus(scope.row)"
/> />
</template> </template>
</el-table-column> </el-table-column>
...@@ -344,7 +345,7 @@ import { ...@@ -344,7 +345,7 @@ import {
clearCache clearCache
} from '@/api/system/dict/type' } from '@/api/system/dict/type'
import dictCons from '@/utils/dictCons' import dictCons from '@/utils/dictCons'
import { queryBussinessAll, queryDetailById, deleteBussiness, BingBussinss, UnBingBussiness } from '@/api/bussiness/bussiness' import { queryBussinessAll, queryDetailById, deleteBussiness, BingBussinss, UnBingBussiness, updataBussinessInfo } from '@/api/bussiness/bussiness'
import { queryMemberList } from '@/api/member/member' import { queryMemberList } from '@/api/member/member'
export default { export default {
...@@ -467,6 +468,19 @@ export default { ...@@ -467,6 +468,19 @@ export default {
// }) // })
}, },
methods: { methods: {
handleChangeStatus(row) {
console.log('状态的变化', row)
const obj = {
businessId: row.businessId,
status: row.status
}
updataBussinessInfo(obj).then(res => {
if (res.code === 200) {
this.$message.success('操作成功')
}
})
console.log('obj', obj)
},
replaceImg(value) { replaceImg(value) {
console.log('img', value) console.log('img', value)
if (value === '') { if (value === '') {
...@@ -785,6 +799,9 @@ export default { ...@@ -785,6 +799,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.memberDialog{ .memberDialog{
::v-deep .el-table tr{
height: 48px;
}
::v-deep .el-table__header-wrapper .el-checkbox { ::v-deep .el-table__header-wrapper .el-checkbox {
display: none display: none
} }
......
...@@ -549,6 +549,9 @@ export default { ...@@ -549,6 +549,9 @@ export default {
.el-switch .el-switch__label { .el-switch .el-switch__label {
width: 57px!important; width: 57px!important;
} }
::v-deep .el-table td .cell{
height: 48px;
}
</style> </style>
<style lang="scss"> <style lang="scss">
.app-container-dict { .app-container-dict {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment