Commit 8a2bf981 authored by your yuchenglong's avatar your yuchenglong

update:信息编辑监听回显

parent bf47842e
......@@ -503,6 +503,7 @@ export default {
this.comTableData = this.addProduc;
},
},
created() {
this.getBusinessListMet();
this.marketingInfoMet();
......
......@@ -46,25 +46,24 @@
<script>
import { GOODS_URI } from "../../../../../server/config";
import { marketingInfo } from "../../../../service/Activity/index";
export default {
// props: {
// editInfo: {
// type: Object,
// required: () => {}
// }
// },
props: {
editInfo: {
type: Object,
required: () => {},
},
},
data() {
return {
infoEditForm: {
title: "", // 标题
desc: "", // 介绍
picUploadList: [], // 上传详情图片列表
picUrlList: [] // 图片回显列表
picUrlList: [], // 图片回显列表
},
isShowPopver: false, // 是否展示图片框
uploadUrl: `${GOODS_URI}/ksy/ks3apiunencrypt/ks3api_upload` // 金山云上传地址
uploadUrl: `${GOODS_URI}/ksy/ks3apiunencrypt/ks3api_upload`, // 金山云上传地址
};
},
methods: {
......@@ -87,29 +86,19 @@ export default {
}
}
},
// 获取营销活动详情
async marketingInfoMet() {
let marketingId = this.$route.query.marketing_id;
if (marketingId == undefined) {
return;
}
let params = {
marketing_id: marketingId,
marketing_type: "4"
};
const res = await marketingInfo(params);
this.infoEditForm.title = res.result.marketing_info.marketing_name;
this.infoEditForm.desc = res.result.marketing_info.pindan_desc;
for (var i in res.result.marketing_info.pindan_pic_url) {
},
watch: {
editInfo: function (newVal) {
this.infoEditForm.title = newVal.marketing_name;
this.infoEditForm.desc = newVal.pindan_desc;
for (var i in newVal.pindan_pic_url) {
this.infoEditForm.picUrlList.push({
url: res.result.marketing_info.pindan_pic_url[i]
url: newVal.pindan_pic_url[i],
});
}
}
},
created() {
this.marketingInfoMet();
}
},
created() {},
};
</script>
......
......@@ -62,7 +62,7 @@ export default {
goodsSkuIDArr: [], // 接收goods_sku_id
spellOrderSetArr:[],
startDate: "", // 开始时间
endDate: "" // 结束时间
endDate: "", // 结束时间
};
},
......
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