Commit 67760205 authored by wuwangwolihui's avatar wuwangwolihui

营地2.0-修改

parent e942d41c
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
}, },
// 去个人中心 // 去个人中心
toCenter() { toCenter() {
this.$router.replace("/myInfo/signUpList"); this.$router.push("/myInfo/signUpList");
}, },
// 立即报名 // 立即报名
toSignUp() { toSignUp() {
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
toRecruit() { toRecruit() {
// 清除本地缓存除了大学logo // 清除本地缓存除了大学logo
let code = this.$store.state.indexIdentity; let code = this.$store.state.indexIdentity;
this.$router.replace("/" + code); this.$router.push("/" + code);
}, },
}, },
watch: { watch: {
......
...@@ -110,7 +110,6 @@ ...@@ -110,7 +110,6 @@
<div class="active-list-item-cont-txt2">{{formatYMD(item.activityStartTime)}} (共{{item.activityTime}}天) <div class="active-list-item-cont-txt2">{{formatYMD(item.activityStartTime)}} (共{{item.activityTime}}天)
</div> </div>
<div class="active-list-item-cont-txt3">报名截止时间:{{formatYMDChina(item.bmEndTime)}}</div> <div class="active-list-item-cont-txt3">报名截止时间:{{formatYMDChina(item.bmEndTime)}}</div>
</div> </div>
<div class="active-list-item-bottom" @click="$router.push('/active/'+item.id)"> <div class="active-list-item-bottom" @click="$router.push('/active/'+item.id)">
<div>查看详情</div> <div>查看详情</div>
...@@ -197,9 +196,7 @@ ...@@ -197,9 +196,7 @@
let timer = '' let timer = ''
return function (func, wait) { return function (func, wait) {
let context = this; let context = this;
if (timer) { timer && clearTimeout(timer);
clearTimeout(timer);
}
timer = setTimeout(() => { timer = setTimeout(() => {
func.apply(context); func.apply(context);
}, wait) }, wait)
...@@ -230,7 +227,8 @@ ...@@ -230,7 +227,8 @@
let windowHeight = window.innerHeight; let windowHeight = window.innerHeight;
//获取页面内容总高度 //获取页面内容总高度
let scrollHeight = document.querySelector('.active-container').scrollHeight; let scrollHeight = document.querySelector('.active-container').scrollHeight;
if (scrollTop + windowHeight + 100 >= scrollHeight) { // 滚动到指定位置 并且当前显示的数量小于总数
if ((scrollTop + windowHeight + 100 >= scrollHeight) && (this.pageSize < this.activeList.length)) {
this.pageSize += this.baseSize; this.pageSize += this.baseSize;
this.loadData() this.loadData()
} }
...@@ -480,6 +478,7 @@ ...@@ -480,6 +478,7 @@
.btn-area { .btn-area {
display: inline-block; display: inline-block;
.el-button { .el-button {
height: 36px; height: 36px;
color: #333333; color: #333333;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment