Commit cf739d05 authored by 杨梦雪's avatar 杨梦雪

Merge remote-tracking branch 'origin/yingdi2.0' into yingdi2.0

parents 02b6df4c 9d1521f8
...@@ -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: {
......
...@@ -174,8 +174,7 @@ export function request(config) { ...@@ -174,8 +174,7 @@ export function request(config) {
(res) => { (res) => {
if (res.data.code == 400034 || if (res.data.code == 400034 ||
res.data.code == 400035 || res.data.code == 400035 ||
res.data.code == 400002 || res.data.code == 400002) {
res.data.code == 400003) {
router.push({ router.push({
path: '/' + store.state.indexIdentity, path: '/' + store.state.indexIdentity,
}) })
...@@ -214,6 +213,7 @@ export function request(config) { ...@@ -214,6 +213,7 @@ export function request(config) {
return res; return res;
}, },
(error) => { (error) => {
console.log(error)
Message.closeAll(); Message.closeAll();
if (error.msg == '请登录!') { if (error.msg == '请登录!') {
router.push({ router.push({
......
...@@ -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