From fb23d878de037c693c81130ac8376471fcb07afe Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Mon, 6 Jan 2025 18:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 236 +++++++++++++++++------------------ api/me/me.js | 3 +- pages.json | 3 +- pages/chasingDrama/index.vue | 200 ++++++++++++++--------------- pages/me/index.vue | 13 +- 5 files changed, 230 insertions(+), 225 deletions(-) diff --git a/App.vue b/App.vue index fc89215..f24642a 100644 --- a/App.vue +++ b/App.vue @@ -1,124 +1,122 @@ \ No newline at end of file +/*每个页面公共css */ +@import 'uview-plus/index.scss'; + +ul, +li { + list-style: none; +} + +.show { + display: none !important; +} + +.hidden { + display: block !important; +} + +page, +view, +scroll-view, +swiper, +swiper-item, +match-media, +movable-area, +movable-view, +cover-view, +cover-image, +icon, +text, +rich-text, +progress, +button, +checkbox-group, +editor, +form, +input, +label, +picker, +picker-view, +radio-group, +slider, +switch, +textarea, +navigator, +audio, +camera, +image, +video, +live-player, +live-pusher, +map, +canvas, +web-view { + box-sizing: border-box; + padding: 0; + margin: 0; + text-decoration: none; + outline: none; +} +image { + display: block; +} + +.initStyle { + padding: 20rpx; + background-color: #2a2a2a; + height: 100vh; + color: #fff; +} + +.fc { + color: #f4f693; +} + +.inputClass { + line-height: 80rpx; +} + +.inputClass input { + background-color: #fff; + height: 80rpx; + padding: 10rpx; + color: #000; +} + +.result { + position: absolute; + font-size: 100rpx; + left: 50%; + top: 800rpx; + transform: translateX(-50%); +} + diff --git a/api/me/me.js b/api/me/me.js index 5019cd4..3da06c2 100644 --- a/api/me/me.js +++ b/api/me/me.js @@ -6,6 +6,7 @@ import http from '@/http/http.js' export const selectByUserId = (data) => { return http.request({ url: '/courseCollect/selectByUserId', - data: data + data: data, + method: 'GET' }) } \ No newline at end of file diff --git a/pages.json b/pages.json index 3162bf3..82f18c4 100644 --- a/pages.json +++ b/pages.json @@ -31,7 +31,8 @@ "path": "pages/chasingDrama/index", "style": { "navigationBarTitleText": "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "enablePullDownRefresh": true } },{ "path": "pages/me/index", diff --git a/pages/chasingDrama/index.vue b/pages/chasingDrama/index.vue index b24d9b8..6b3509b 100644 --- a/pages/chasingDrama/index.vue +++ b/pages/chasingDrama/index.vue @@ -8,76 +8,54 @@ -
- - - 第三集 - - - 我在八十年代当后妈 - 言情 - -
+ + + 第三集 + + + 我在八十年代当后妈 + 言情 +
-
- - - 第三集 - - - 我在八十年代当后妈 - 言情 - -
+ + + 第三集 + + + 我在八十年代当后妈 + 言情 +
-
- - - 第三集 - - - 我在八十年代当后妈 - 言情 - -
+ + + 第三集 + + + 我在八十年代当后妈 + 言情 +
-
- - - 第三集 - - - 我在八十年代当后妈 - 言情 - -
+ + + 第三集 + + + 我在八十年代当后妈 + 言情 +
-
- - - 第三集 - - - 我在八十年代当后妈 - 言情 - -
-
- -
- - - 第三集 - - - 我在八十年代当后妈 - 言情 - -
+ + + 第三集 + + + 我在八十年代当后妈 + 言情 +
@@ -105,20 +83,37 @@ @@ -155,44 +150,43 @@ page { grid-row-gap: 28upx; padding: 0 28upx; .item { - .item-content { - overflow: hidden; - background-color: #fff; - border-radius: 30upx; - .cover { - height: 200upx; - position: relative; - .img { - width: 100%; - height: 100%; - } - .num { - padding: 4upx 16upx; - border-radius: 8upx; - background: rgba(0, 0, 0, 0.3); - backdrop-filter: blur(5px); - position: absolute; - right: 8upx; - bottom: 8upx; - color: #fff; - font-size: 24upx; - } + width: 100%; + overflow: hidden; + background-color: #fff; + border-radius: 20upx; + .cover { + height: 200upx; + position: relative; + .img { + width: 100%; + height: 100%; } - .intro-wrap { - padding: 20upx; - .name { - width: 180upx; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - line-height: 32upx; - font-weight: bold; - } - .t { - color: #999; - font-size: 24upx; - margin-top: 8upx; - } + .num { + padding: 4upx 16upx; + border-radius: 8upx; + background: rgba(0, 0, 0, 0.3); + backdrop-filter: blur(5px); + position: absolute; + right: 8upx; + bottom: 8upx; + color: #fff; + font-size: 24upx; + } + } + .intro-wrap { + padding: 20upx; + .name { + width: 180upx; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + line-height: 32upx; + font-weight: bold; + } + .t { + color: #999; + font-size: 24upx; + margin-top: 8upx; } } } diff --git a/pages/me/index.vue b/pages/me/index.vue index a6064a7..c938966 100644 --- a/pages/me/index.vue +++ b/pages/me/index.vue @@ -5,7 +5,9 @@ - + @@ -137,7 +139,15 @@ page { .user-info { .logo-wrap { display: flex; + align-items: center; justify-content: space-between; + .logo { + width: 160upx; + .img { + width: 100%; + display: block; + } + } .quick-menu { display: flex; gap: 20upx; @@ -151,6 +161,7 @@ page { .top { display: flex; align-items: center; + padding-top: 40upx; .avatar { $size: 94upx; width: $size;