Commit 0730c115 authored by 高宇's avatar 高宇

会员权益添加等级卡片和描述卡片

parent 5ab3b7c9
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
> >
<!-- <img v-if="imageUrl" :src="imageUrl" class="avatar">--> <!-- <img v-if="imageUrl" :src="imageUrl" class="avatar">-->
<div v-if="imageUrl" style="position: relative"> <div v-if="imageUrl" style="position: relative">
<i class="el-icon-error" style="position: absolute;top: 5px;right: 5px;color: #efefef;z-index: 999" @click="handleRemove" /> <i class="el-icon-error" style="position: absolute;top: 5px;right: 5px;color: #efefef;z-index: 999" @click="handleRemove" />
<el-image <el-image
class="avatar" class="avatar"
:src="imageUrl" :src="imageUrl"
...@@ -172,6 +172,7 @@ export default { ...@@ -172,6 +172,7 @@ export default {
} }
} }
return { return {
icondisable: false,
srcList: [], srcList: [],
pickoptions: { pickoptions: {
disabledDate: time => { disabledDate: time => {
...@@ -284,6 +285,7 @@ export default { ...@@ -284,6 +285,7 @@ export default {
this.imageUrl = baseURL + this.form.imgUrl this.imageUrl = baseURL + this.form.imgUrl
this.richtexttype = '2' this.richtexttype = '2'
this.formdisable = true this.formdisable = true
this.icondisable = true
// this.endtimedisable = true // this.endtimedisable = true
this.numinputdisable = true this.numinputdisable = true
this.uploaddisable = true this.uploaddisable = true
...@@ -324,11 +326,13 @@ export default { ...@@ -324,11 +326,13 @@ export default {
return isJPG && isLt2M return isJPG && isLt2M
}, },
handleRemove(file, fileList) { handleRemove(file, fileList) {
console.log(file, fileList) if (!this.icondisable){
this.imageUrl = '' console.log(file, fileList)
setTimeout(() => { this.imageUrl = ''
this.uploaddisable = false setTimeout(() => {
}, 500) this.uploaddisable = false
}, 500)
}
}, },
upload(file) { upload(file) {
const formData = new FormData() const formData = new FormData()
......
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