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, //
scrollView: "",
showPoster: true, //
isChangeIcon: true, //
};
},
async onLoad() {
let stronge = uni.getStorageSync("showIndexPoster");
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;
} else {
this.$refs.noticeRef.open("center");
@ -654,6 +659,25 @@ export default {
this.funList = newFunList;
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: {
...mapGetters({
@ -687,7 +711,6 @@ export default {
uni.navigateTo({
url: `/pages/shopMallPage/shopType/index`,
});
},
//
handleGoBack() {
@ -906,8 +929,14 @@ export default {
},
});
} else if (obj.value === 15) {
//
this.handleGoShop();
if (this.isChangeIcon) {
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,
// 页面滚动距离
scrollView: "",
showPoster: true // 判断是否显示海报
showPoster: true,
// 判断是否显示海报
isChangeIcon: true // 判断是否切换商城的图表
};
},
onLoad: function onLoad() {
@ -349,7 +351,7 @@ var _default = {
case 0:
stronge = uni.getStorageSync("showIndexPoster");
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;
} else {
_this2.$refs.noticeRef.open("center");
@ -441,6 +443,25 @@ var _default = {
_this3.funList = newFunList;
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 "end":
return _context2.stop();
@ -719,8 +740,14 @@ var _default = {
}
});
} else if (obj.value === 15) {
// 商城
this.handleGoShop();
if (this.isChangeIcon) {
uni.navigateTo({
url: "/pages/shopMallPage/shopType/index"
});
} else {
// 商城
this.handleGoShop();
}
}
},
// 跳转到商城