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