fix: 移动端楼层装修促销活动移除优惠券.pc端楼层装修快捷导航外部链接无法填写问题

This commit is contained in:
misworga831 2024-09-23 21:18:27 +08:00
parent 10e8e82fe4
commit 6f30949620
2 changed files with 25 additions and 22 deletions

View File

@ -339,15 +339,15 @@ export default {
this.sortGoods("SECKILL"); this.sortGoods("SECKILL");
}, },
}; };
case "COUPON": // case "COUPON":
return { // return {
title: "优惠券", // title: "",
methodsed: () => { // methodsed: () => {
this.showPromotionList = []; // this.showPromotionList = [];
this.activeColumns = this.pintuanColumns; // this.activeColumns = this.pintuanColumns;
this.sortGoods("COUPON"); // this.sortGoods("COUPON");
}, // },
}; // };
case "POINTS_GOODS": case "POINTS_GOODS":
return { return {
title: "积分商品", title: "积分商品",
@ -383,6 +383,8 @@ export default {
getPromotion(res) { getPromotion(res) {
if (res.result) { if (res.result) {
this.promotionList = res.result; this.promotionList = res.result;
//
delete this.promotionList.COUPON;
Object.keys(res.result)[0] && this.typeOption(Object.keys(res.result)[0]).methodsed(); Object.keys(res.result)[0] && this.typeOption(Object.keys(res.result)[0]).methodsed();
} }

View File

@ -134,7 +134,7 @@
<td> <td>
<Input <Input
v-model="item.url" v-model="item.url"
disabled :disabled="!item.title || item.title !== '外部链接'"
/> />
</td> </td>
<!-- <td><Input v-model="item.sort"/></td> --> <!-- <td><Input v-model="item.sort"/></td> -->
@ -201,15 +201,16 @@ export default {
bgColor: "#de000d", bgColor: "#de000d",
size: "1200*80", size: "1200*80",
}, },
currentIndex: 0,
navList: { navList: {
// nav // nav
type: "navBar", type: "navBar",
list: [ list: [
{ name: "秒杀", url: "" }, { name: "秒杀", url: "", title: "" },
{ name: "闪购", url: "" }, { name: "闪购", url: "", title: "" },
{ name: "优惠券", url: "" }, { name: "优惠券", url: "", title: "" },
{ name: "拍卖", url: "" }, { name: "拍卖", url: "", title: "" },
{ name: "服装城", url: "" }, { name: "服装城", url: "", title: "" },
], ],
}, },
}; };
@ -228,21 +229,19 @@ export default {
// //
if (item) this.selectedNav = item; if (item) this.selectedNav = item;
this.$refs.liliDialog.open("link"); this.$refs.liliDialog.open("link");
console.log(item); this.currentIndex = index;
}, },
// //
selectedLink(val) { selectedLink(val) {
if (this.showModalNav) { if (this.showModalNav) {
this.selectedNav.url = this.$options.filters.formatLinkType(val); this.selectedNav.url = this.$options.filters.formatLinkType(val);
this.selectedNav.type = this.selectedNav.type = val.___type === "other" && val.url === "" ? "link" : "other";
val.___type === "other" && val.url === "" ? "link" : "other";
} else { } else {
this.topAdvert.url = this.$options.filters.formatLinkType(val); this.topAdvert.url = this.$options.filters.formatLinkType(val);
this.topAdvert.type = this.topAdvert.type = val.___type === "other" && val.url === "" ? "link" : "other";
val.___type === "other" && val.url === "" ? "link" : "other";
} }
this.navList.list[this.currentIndex].title = val.title;
}, },
handleDelNav(index) { handleDelNav(index) {
// //
@ -250,7 +249,9 @@ export default {
}, },
handleAddNav() { handleAddNav() {
// //
this.navList.list.push({ name: "", url: "" }); this.navList.list.push({ name: "", url: "", title: "" });this.$nextTick(() => {
this.selectedNav.title = val.title;
});
}, },
// //
handleMoveEnd({ newIndex, oldIndex }) { handleMoveEnd({ newIndex, oldIndex }) {