Commit a30ce925 authored by Facius's avatar Facius

fix: 学练记录页面跳转位置,做题不过10道不算签到

parent f7dc9a02
...@@ -197,6 +197,9 @@ export default { ...@@ -197,6 +197,9 @@ export default {
if (e && e.key) { if (e && e.key) {
this.$nextTick(() => { this.$nextTick(() => {
// setTimeout(() => { // setTimeout(() => {
if (e.key == 'today') {
e.key = 'total'
}
this.scrollId = 'part-' + e.key this.scrollId = 'part-' + e.key
// }, 500) // }, 500)
}) })
...@@ -222,7 +225,9 @@ export default { ...@@ -222,7 +225,9 @@ export default {
.then((res) => { .then((res) => {
this.days = [] this.days = []
for (var item of res) { for (var item of res) {
this.days.push(item.time.replace(/\-0/g, '\-')) if (item.count >= 10) {
this.days.push(item.time.replace(/\-0/g, '\-'))
}
} }
}) })
.catch((err) => { .catch((err) => {
...@@ -475,7 +480,7 @@ export default { ...@@ -475,7 +480,7 @@ export default {
} }
.list-view { .list-view {
padding-bottom: 44rpx; padding-bottom: 44rpx;
min-height: 960rpx; min-height: 240rpx;
.list-content { .list-content {
padding: 0 30rpx 20rpx 30rpx; padding: 0 30rpx 20rpx 30rpx;
min-height: 44rpx; min-height: 44rpx;
......
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