diff --git a/pages/watching_history/watching_history.vue b/pages/watching_history/watching_history.vue index 0505c25..6bf4a95 100644 --- a/pages/watching_history/watching_history.vue +++ b/pages/watching_history/watching_history.vue @@ -6,10 +6,12 @@ - - {{ item.title }} + + + {{ item.title }} + + 看到{{ item.courseDetailsName }} - 看到{{ item.courseDetailsName }} 更新{{ item.courseDetailsCount }}集 继续观看 @@ -17,6 +19,7 @@ + @@ -41,7 +44,8 @@ const typeList = ref([ const listData = reactive({ list: [], page: 1, - size: 10 + size: 10, + finish: false }); // 获取数据 @@ -55,6 +59,9 @@ async function selectByUserIdAjax() { console.log(res); if (res.code === 0) { listData.list = res.data.records; + if (res.data.currPage >= res.data.totalPage) { + listData.finish = true; + } } } catch (error) { console.log(error); @@ -85,7 +92,7 @@ onLoad((e) => { } .list { .item { - padding: 28upx 0; + padding-bottom: 28upx; display: flex; .cover { width: 150upx; @@ -99,14 +106,18 @@ onLoad((e) => { } } .info { + flex: 1; display: flex; flex-direction: column; - .title { - font-size: 32upx; - font-weight: bold; - } - .record { - color: $uni-zj-color-primary; + justify-content: space-between; + .top { + .title { + font-size: 32upx; + font-weight: bold; + } + .record { + color: $uni-zj-color-primary; + } } .btm { display: flex; @@ -116,7 +127,7 @@ onLoad((e) => { color: #999; } .btn { - padding: 4upx 12upx; + padding: 8upx 12upx; color: #fff; background: $uni-zj-color-primary; border-radius: 10upx;