From 700eb98db0151940cc91abcc5b3149ce23ec42de Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期四, 08 八月 2024 08:55:49 +0800 Subject: [PATCH] 提交 --- pages/tabBar/current/current.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/tabBar/current/current.vue b/pages/tabBar/current/current.vue index 5c08ff9..44bedb3 100644 --- a/pages/tabBar/current/current.vue +++ b/pages/tabBar/current/current.vue @@ -30,7 +30,7 @@ </view> <view class="card-i-r-b"> <u-tag icon="clock" :text="secondsToHms(item.course.period)" type="success" size="mini" shape="circle" plain plainFill></u-tag> - <u-button class="study-button" type="primary" text="开始学习" shape="circle" size="small" @click="toStudy(item.id)"></u-button> + <u-button class="study-button" type="primary" text="开始学习" shape="circle" size="small" @click="toStudy(item)"></u-button> </view> </view> </view> @@ -93,7 +93,7 @@ getClassList(this.classParams).then(res => { if(res.code == 200) { let list = res.data.list?res.data.list: []; - if (res.pageNum != 1) { + if (res.data.pageNum != 1) { this.classList = this.classList.concat(list) } else { this.classList = res.data.list @@ -109,10 +109,10 @@ return logo ? VUE_APP_BASE_URL + '/api/' + logo : '/static/defaultCover.jpg'; }, - toStudy(id) { + toStudy(item) { uni.setStorageSync("prevPage", '/pages/tabBar/current/current'); uni.navigateTo({ - url: `/pages/tabBar/current/detail?phase_id=` + encodeURIComponent(JSON.stringify(id)) + url: `/pages/tabBar/current/detail?bank=` + encodeURIComponent(JSON.stringify(item)) }) }, -- Gitblit v1.9.2