Commit 60ab8d0a authored by your yuchenglong's avatar your yuchenglong

update:添加商品图片显示修改

parent 607d440b
......@@ -263,7 +263,6 @@ export default {
addCommodityPopup: false, // 添加商品弹窗状态
addCommodityTitle: "", // 标题
commodityForm: {
picUrlList: [],
goods_name: "",
price: "",
original_price: "",
......@@ -272,6 +271,7 @@ export default {
business1: "",
},
picUrlList: [],
picUploadList: [], // 上传详情图片列表
isShowPopver: false, // 是否展示图片框
uploadUrl: `${GOODS_URI}/ksy/ks3apiunencrypt/ks3api_upload`, // 金山云上传地址
......@@ -357,17 +357,16 @@ export default {
// 查看商品详情
async markGoodsInfoMet(goodSkuID) {
this.picUrlList = [];
let params = { goods_sku_id: goodSkuID, marketing_type: "4" };
const res = await markGoodsInfo(params);
this.commodityForm = res.result.goods_info;
this.commodityForm.business1 = res.result.goods_info.ota_id;
this.commodityForm.picUrlList = [];
for (var i in res.result.goods_info.desc_pic_url_list) {
this.commodityForm.picUrlList.push({
this.picUrlList.push({
url: res.result.goods_info.desc_pic_url_list[i],
});
}
console.log(this.commodityForm.picUrlList);
},
// 编辑商品详情
......
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