Commit 8048f481 by chenwq

bug修复

1 parent c505fe28
...@@ -79,7 +79,8 @@ ...@@ -79,7 +79,8 @@
</div> </div>
</div> </div>
<div class="line"></div> <div class="line"></div>
<div class="flex m-b-10" v-if="editForm.activityCommoditys.length"> <div v-if="editForm.activityCommoditys.length">
<div class="flex m-b-10">
<div>商品答疑({{ editForm.activityCommoditys.length }})</div> <div>商品答疑({{ editForm.activityCommoditys.length }})</div>
<div class="sprite-icon icon-arrow"></div> <div class="sprite-icon icon-arrow"></div>
</div> </div>
...@@ -92,6 +93,7 @@ ...@@ -92,6 +93,7 @@
<span>{{ editForm.activityCommoditys[0].answer }}</span> <span>{{ editForm.activityCommoditys[0].answer }}</span>
</div> </div>
</div> </div>
</div>
<div class="p-b-6"></div> <div class="p-b-6"></div>
...@@ -100,7 +102,6 @@ ...@@ -100,7 +102,6 @@
</div> </div>
<div> <div>
<img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" /> <img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
<div class="sprite-icon icon-arrow"></div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -465,10 +465,16 @@ export default { ...@@ -465,10 +465,16 @@ export default {
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => { this.loading = true
this.$apis.common
.uploadImgApi({ file: base64, fileType: 'image' })
.then(res => {
this.editForm[targetItem.name] = res this.editForm[targetItem.name] = res
this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name) this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name)
}) })
.finally(() => {
this.loading = false
})
} }
}, },
{ {
...@@ -541,10 +547,16 @@ export default { ...@@ -541,10 +547,16 @@ export default {
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => { this.loading = true
this.$apis.common
.uploadImgApi({ file: base64, fileType: 'image' })
.then(res => {
this.editForm[targetItem.name] = res this.editForm[targetItem.name] = res
this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name) this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name)
}) })
.finally(() => {
this.loading = false
})
} }
} }
], ],
...@@ -750,7 +762,7 @@ export default { ...@@ -750,7 +762,7 @@ export default {
label: '活动分享语', label: '活动分享语',
name: 'activitySharingWords', name: 'activitySharingWords',
type: 'input', type: 'input',
maxlength: 20 maxlength: 30
}, },
{ {
label: '活动视频', label: '活动视频',
...@@ -1827,7 +1839,7 @@ export default { ...@@ -1827,7 +1839,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
.form-open { .form-open {
max-height: 2500px; max-height: 4000px;
transition: max-height 0.5s ease; transition: max-height 0.5s ease;
} }
.form-close { .form-close {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!