update
This commit is contained in:
parent
8060406bef
commit
aa577627b6
@ -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,9 +929,15 @@ export default {
|
||||
},
|
||||
});
|
||||
} else if (obj.value === 15) {
|
||||
if (this.isChangeIcon) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/shopMallPage/shopType/index`,
|
||||
});
|
||||
} else {
|
||||
// 商城
|
||||
this.handleGoShop();
|
||||
}
|
||||
}
|
||||
},
|
||||
// 跳转到商城
|
||||
handleGoShop() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -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,9 +740,15 @@ var _default = {
|
||||
}
|
||||
});
|
||||
} else if (obj.value === 15) {
|
||||
if (this.isChangeIcon) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/shopMallPage/shopType/index"
|
||||
});
|
||||
} else {
|
||||
// 商城
|
||||
this.handleGoShop();
|
||||
}
|
||||
}
|
||||
},
|
||||
// 跳转到商城
|
||||
handleGoShop: function handleGoShop() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user