diff --git a/pages.json b/pages.json index 616d0f6..185e3ab 100644 --- a/pages.json +++ b/pages.json @@ -510,6 +510,13 @@ "navigationBarTitleText": "医述详情", "enablePullDownRefresh": false } + }, + { + "path": "pages/course/healthMarket", + "style": { + "navigationBarTitleText": "健康超市", + "enablePullDownRefresh": false + } } ], "globalStyle": { diff --git a/pages/course/healthMarket.vue b/pages/course/healthMarket.vue new file mode 100644 index 0000000..73daed9 --- /dev/null +++ b/pages/course/healthMarket.vue @@ -0,0 +1,274 @@ + + + + \ No newline at end of file diff --git a/pages/course/myCourseLearn.vue b/pages/course/myCourseLearn.vue index 4b70ad6..212160b 100644 --- a/pages/course/myCourseLearn.vue +++ b/pages/course/myCourseLearn.vue @@ -42,16 +42,17 @@ 当前目录还未开始学习 - 课程观看有效期截止到:2025-06-14 00:00 + 课程观看有效期截止到:{{librayList[curIndex].endTime}} + {{item.title}} - - + @@ -56,6 +57,15 @@ status:0, // 0 不显示, 1 加载中,2 加载全部完成,3 暂无数据 page:1, flag:true, // 函数是否执行完 + bgiStyle: { + background: '#fff' + }, + scrollTop: 0, + iconStyle: { + fontSize: '40rpx', + fontWeight: 'bold', + color: '#258feb', + }, }; }, //第一次加载 @@ -67,8 +77,11 @@ console.log(e, '传入分类id') this.getData(); }, + onPageScroll(e) { + this.scrollTop = e.scrollTop; + }, onReachBottom() { - if(this.status != 2){ + if(this.status != 2 && this.flag){ this.page ++ this.getData() } console.log('触底加载',this.page) @@ -95,10 +108,10 @@ }); }, getData() { - if(!this.flag){ - console.log('正在执行,未完成') - return - } + // if(!this.flag){ + // console.log('正在执行,未完成') + // return + // } this.status = 1 this.flag = false $http.request({ diff --git a/pages/peanut/home.vue b/pages/peanut/home.vue index 31f3236..170b210 100644 --- a/pages/peanut/home.vue +++ b/pages/peanut/home.vue @@ -54,26 +54,9 @@ {{item.title}} - - - - - - - - - - - {{item.title}} - - - - - - + - + - + 健康超市 @@ -124,9 +107,9 @@ - + @@ -173,6 +156,24 @@ + + + + + + + + + + {{item.title}} + + + + + + + @@ -1347,7 +1348,8 @@ color: #333; margin-bottom: 0; - @include pleft_right(5px) .hn_cl_tit { + @include pleft_right(5px) + .hn_cl_tit { display: block; width: 100%; background-color: #fff; @@ -1356,6 +1358,7 @@ align-content: center; justify-content: center; margin-right: 8rpx; + border-bottom: 1px solid #fff; // box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.3); image { @@ -1384,13 +1387,20 @@ .hn_cl_tit.active { background-color: #e4eefa; - + position: relative; text { color: #3361a5; font-weight: bold; } } - + .hn_cl_tit.active::after{ + display: block; + transform: rotate(180deg); + content: ''; position: absolute; bottom: -20rpx; left: calc(50% - 16rpx); z-index: 1; + border-right: 20rpx solid transparent; + border-left: 20rpx solid transparent; + border-bottom: 20rpx solid #ffff; + } }