This commit is contained in:
2023-07-11 20:12:08 +08:00
parent 0600bc4a0d
commit 3ee952eb90
2 changed files with 43 additions and 67 deletions

View File

@@ -166,27 +166,8 @@ export default {
}
}, 10);
// const that = this
// let timer = setInterval(() => {
// let ispeed = Math.floor(-that.scrollTop / 5)
// document.documentElement.scrollTop = document.body.scrollTop = that.scrollTop + ispeed
// if (that.scrollTop === 0) {
// clearInterval(timer)
// }
// }, 16)
},
// // 为了计算距离顶部的高度当高度大于60显示回顶部图标小于60则隐藏
// scrollToTop () {
// const that = this
// let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
// that.scrollTop = scrollTop
// if (that.scrollTop > 60) {
// that.btnFlag = true
// } else {
// that.btnFlag = false
// }
// },
//滚动
// 点击切换锚点:
goAnchor(id) {
var anchor = document.getElementById(id);
@@ -233,11 +214,6 @@ export default {
initPage(){
this.MonthlyId = this.$route.query.MonethlyId;
this.selectMonly = this.MonthlyId;
// if(parseInt(this.selectMonly) == parseInt(1) || parseInt(this.MonethlyId) == parseInt(1)){
// this.$refs.LastBtn.style.display = "none"
// }else if(parseInt(this.selectMonly) == this.Monely || parseInt(this.MonethlyId) == this.Monely){
// this.$refs.NextBtn.style.display = "none"
// }
},
// test(){
// console.log(this.MonType);
@@ -272,8 +248,9 @@ export default {
that.MonTypePro=[];
Object.keys(that.MonList).forEach(key=>{
that.MonTypePro.push(that.MonList[key]);
that.MonType.push(key);
})
// console.log(that.MonTypePro);
console.log(that.MonTypePro);
})
},
// 月刊详情页面跳转