This commit is contained in:
cclu 2025-02-27 19:44:56 +08:00
parent 8060406bef
commit aa577627b6
3 changed files with 65 additions and 9 deletions

View File

@ -571,13 +571,18 @@ export default {
showBackTop: false, // showBackTop: false, //
scrollView: "", scrollView: "",
showPoster: true, // showPoster: true, //
isChangeIcon: true, //
}; };
}, },
async onLoad() { async onLoad() {
let stronge = uni.getStorageSync("showIndexPoster"); let stronge = uni.getStorageSync("showIndexPoster");
console.log("stronge", stronge); console.log("stronge", stronge);
if (stronge === 1 || stronge === "1") { if (
stronge === 1 ||
stronge === "1" ||
new Date("2025-03-02 8:00:00").getTime() < new Date().getTime()
) {
this.showPoster = false; this.showPoster = false;
} else { } else {
this.$refs.noticeRef.open("center"); this.$refs.noticeRef.open("center");
@ -654,6 +659,25 @@ export default {
this.funList = newFunList; this.funList = newFunList;
console.log("this.funList", this.funList); console.log("this.funList", this.funList);
} }
// if (new Date("2025-03-02 8:00:00").getTime() < new Date().getTime()) {
// this.isChangeIcon = false;
// }
// if (this.isChangeIcon) {
// let fun = this.funList;
// fun.forEach((item) => {
// if (item.value === 15) {
// item.label = "";
// item.src = "https://eshangtech.com/minTestImg/GoddessFestival.png";
// item.springSrc =
// "https://eshangtech.com/minTestImg/GoddessFestival.png";
// }
// });
// console.log("fun", fun);
// this.funList = fun;
// this.$forceUpdate();
// }
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
@ -687,7 +711,6 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: `/pages/shopMallPage/shopType/index`, url: `/pages/shopMallPage/shopType/index`,
}); });
}, },
// //
handleGoBack() { handleGoBack() {
@ -906,8 +929,14 @@ export default {
}, },
}); });
} else if (obj.value === 15) { } else if (obj.value === 15) {
// if (this.isChangeIcon) {
this.handleGoShop(); uni.navigateTo({
url: `/pages/shopMallPage/shopType/index`,
});
} else {
//
this.handleGoShop();
}
} }
}, },
// //

File diff suppressed because one or more lines are too long

View File

@ -336,7 +336,9 @@ var _default = {
showBackTop: false, showBackTop: false,
// 页面滚动距离 // 页面滚动距离
scrollView: "", scrollView: "",
showPoster: true // 判断是否显示海报 showPoster: true,
// 判断是否显示海报
isChangeIcon: true // 判断是否切换商城的图表
}; };
}, },
onLoad: function onLoad() { onLoad: function onLoad() {
@ -349,7 +351,7 @@ var _default = {
case 0: case 0:
stronge = uni.getStorageSync("showIndexPoster"); stronge = uni.getStorageSync("showIndexPoster");
console.log("stronge", stronge); console.log("stronge", stronge);
if (stronge === 1 || stronge === "1") { if (stronge === 1 || stronge === "1" || new Date("2025-03-02 8:00:00").getTime() < new Date().getTime()) {
_this2.showPoster = false; _this2.showPoster = false;
} else { } else {
_this2.$refs.noticeRef.open("center"); _this2.$refs.noticeRef.open("center");
@ -441,6 +443,25 @@ var _default = {
_this3.funList = newFunList; _this3.funList = newFunList;
console.log("this.funList", _this3.funList); console.log("this.funList", _this3.funList);
} }
// if (new Date("2025-03-02 8:00:00").getTime() < new Date().getTime()) {
// this.isChangeIcon = false;
// }
// if (this.isChangeIcon) {
// let fun = this.funList;
// fun.forEach((item) => {
// if (item.value === 15) {
// item.label = "女神活动";
// item.src = "https://eshangtech.com/minTestImg/GoddessFestival.png";
// item.springSrc =
// "https://eshangtech.com/minTestImg/GoddessFestival.png";
// }
// });
// console.log("fun", fun);
// this.funList = fun;
// this.$forceUpdate();
// }
case 8: case 8:
case "end": case "end":
return _context2.stop(); return _context2.stop();
@ -719,8 +740,14 @@ var _default = {
} }
}); });
} else if (obj.value === 15) { } else if (obj.value === 15) {
// 商城 if (this.isChangeIcon) {
this.handleGoShop(); uni.navigateTo({
url: "/pages/shopMallPage/shopType/index"
});
} else {
// 商城
this.handleGoShop();
}
} }
}, },
// 跳转到商城 // 跳转到商城