master
chc 2022-10-25 19:22:52 +08:00
parent b9869053c2
commit b51a5e6deb
1 changed files with 37 additions and 37 deletions

View File

@ -202,21 +202,21 @@ export default {
this.IMLink = res.result; this.IMLink = res.result;
} }
}, },
getStoreMsg () { // // getStoreMsg () { //
getDetailById(this.$route.query.id).then(res => { // getDetailById(this.$route.query.id).then(res => {
if (res.success) { // if (res.success) {
this.storeMsg = res.result // this.storeMsg = res.result
document.title = this.storeMsg.storeName // document.title = this.storeMsg.storeName
if (this.Cookies.getItem('userInfo')) { // if (this.Cookies.getItem('userInfo')) {
isCollection('STORE', this.storeMsg.storeId).then(res => { // isCollection('STORE', this.storeMsg.storeId).then(res => {
if (res.success && res.result) { // if (res.success && res.result) {
this.storeCollected = true; // this.storeCollected = true;
} // }
}) // })
} // }
} // }
}) // })
}, // },
// async getListByDay() { // async getListByDay() {
// // // //
// const res = await seckillByDay(); // const res = await seckillByDay();
@ -227,28 +227,28 @@ export default {
// } // }
// }, // },
// getStoreMsg() { getStoreMsg() {
// // //
// getDetailById(this.$route.query.id).then((res) => { getDetailById(this.$route.query.id).then((res) => {
// if (res.success) { if (res.success) {
//
// this.storeMsg = res.result; this.storeMsg = res.result;
//
//
// this.getIndexData(); this.getIndexData();
// let that = this; let that = this;
// window.onscroll = function () { window.onscroll = function () {
// let top = let top =
// document.documentElement.scrollTop || document.body.scrollTop; document.documentElement.scrollTop || document.body.scrollTop;
// if (top > 300) { if (top > 300) {
// that.topSearchShow = true; that.topSearchShow = true;
// } else { } else {
// that.topSearchShow = false; that.topSearchShow = false;
// } }
// }; };
// } }
// }); });
// }, },
getCateList() { getCateList() {
// //
getCateById(this.$route.query.id).then((res) => { getCateById(this.$route.query.id).then((res) => {