Commit 0dc6073a authored by lihui's avatar lihui

Merge branch 'feature/activity' of...

Merge branch 'feature/activity' of https://git.yidian-inc.com:8021/bp/op-web-service into feature/activity
parents 937fb1ae cc12a54b
......@@ -406,11 +406,18 @@ export default {
}
},
getUrlParms(path, name) {
var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i");
if (reg.test(path)) return unescape(RegExp.$2.replace(/\+/g, " "));
return "";
},
// 编辑商品详情
async editGoodsMet(goodsSkuID) {
let pic = this.picUrlList[0].url;
const res = await editGoods({
goods_name: this.commodityForm.goods_name,
desc_pic_url: this.picUploadList.join(","),
desc_pic_url:this.getUrlParms(pic,"url"),
desc: "",
inventory_add: this.commodityForm.inventory_total,
original_price: this.commodityForm.original_price,
......@@ -439,12 +446,6 @@ export default {
}
}
// for (var j in this.comLibTableData) {
// if (this.comLibTableData[j].goods_sku_id == goodsSkuID) {
// this.comTableData.push(this.comLibTableData[j]);
// }
// }
this.addCommodityPopup = false;
} else {
ElMessage.error(res.reason);
......
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