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

update:信息编辑监听回显

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