修改移动端楼层装修bug

master
lemon橪 2021-08-11 11:57:02 +08:00
parent 9213aed8e0
commit e521e723d5
1 changed files with 10 additions and 8 deletions

View File

@ -146,7 +146,7 @@ import { modelData } from "./config";
import ways from "@/views/lili-dialog/wap.js"; // import ways from "@/views/lili-dialog/wap.js"; //
export default { export default {
components: { components: {
ossManage ossManage,
}, },
data() { data() {
return { return {
@ -179,16 +179,18 @@ export default {
}, },
// //
selectedGoodsData(val) { selectedGoodsData(val) {
if (!val) return false; if (!val) return false;
val.forEach((item) => { let data = val.map((item) => {
delete item.selected; delete item.selected;
item.img = item.thumbnail; return {
item.title = item.goodsName; img: item.thumbnail,
item.type = this.selectedGoods.title; title: item.goodsName,
type: this.selectedGoods.title,
...item
};
}); });
this.res.options.list[0].listWay = this.res.options.list[0].listWay.concat( this.res.options.list[0].listWay.push(...data);
val
);
this.linkType = ""; this.linkType = "";
}, },
// //