From 1d826e993212c6abd8c8d9ebf26e75653f3676e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Wed, 29 Oct 2025 14:37:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ai=E5=AD=A6=E4=B9=A0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development_h5 | 8 + src/components/course-item/course-item.vue | 190 +-- src/pages/course/index.vue | 1634 +++++++++++--------- src/static/images/course/active-left.png | Bin 0 -> 1794 bytes src/static/images/course/tag-item.png | Bin 0 -> 1529 bytes 5 files changed, 996 insertions(+), 836 deletions(-) create mode 100644 src/static/images/course/active-left.png create mode 100644 src/static/images/course/tag-item.png diff --git a/.env.development_h5 b/.env.development_h5 index 3b50f23b..713d6e58 100644 --- a/.env.development_h5 +++ b/.env.development_h5 @@ -3,3 +3,11 @@ ENV = 'development' # 'development' VITE_APP_BASE_API_Url = '' + +VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' +# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' +# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' +# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://192.168.247.200' +# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.32.154:9602' +VITE_APP_BASE_H5_API_Url_TRAEXAM = ''http://25.64.32.154:9604' +# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.32.154:9605' \ No newline at end of file diff --git a/src/components/course-item/course-item.vue b/src/components/course-item/course-item.vue index 77c2d1c4..e31434b3 100644 --- a/src/components/course-item/course-item.vue +++ b/src/components/course-item/course-item.vue @@ -1,15 +1,17 @@ - \ No newline at end of file diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 2a48ae87..46f2fba1 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -1,766 +1,904 @@ + .my_tabs { + // 解决这个圆角的图片,开穿透 + :deep(.uv-tabs__wrapper__nav__line) { + height: 30rpx !important; + left: 50rpx; + background-size: 24rpx !important; + background-repeat: no-repeat !important; + } + } + .course-center { + position: relative; + display: flex; + flex-direction: column; + + .top-bg { + background-color: #fff; + // background: linear-gradient(16deg, rgba(234, 246, 255, 0) 0%, #c3e6ff 100%); + height: 480rpx; + width: 100%; + } + + .bot-bg { + background-color: #fff; + // background: linear-gradient(136deg, rgba(234, 246, 255, 0) 0%, #c3e6ff 100%); + width: 100%; + flex: 1; + } + + .course-center-body { + position: absolute; + overflow: hidden; + left: 0; + top: 0; + height: 100%; + width: 100%; + padding: 0; + box-sizing: border-box; + display: flex; + flex-direction: column; + padding-top: v-bind(pageTopPadding); + + // padding-top: var(--status-bar-height); + .body-title { + height: 90rpx; + // background-color: red; + text-align: center; + font-size: 33rpx; + padding-top: 10rpx; + line-height: 46rpx; + box-sizing: border-box; + font-weight: 500; + color: #000; + position: relative; + + // margin-bottom: 23rpx; + .arrow-icon { + position: absolute; + left: 36rpx; + top: 20rpx; + color: #000; + } + } + + .input-view { + padding: 0 38rpx; + } + + .tabs-view { + background: #ffffff; + margin-top: 23rpx; + border-radius: 23rpx; + padding: 6rpx 10rpx 12rpx; + margin-bottom: 15rpx; + } + + .list-view { + flex: 1; + overflow: hidden; + // margin-bottom: 15rpx; + background: #ffffff; + // border-radius: 23rpx; + display: flex; + flex-direction: column; + position: relative; + + .filter-list { + position: absolute; + top: 84rpx; + left: 0; + width: 100%; + height: 588rpx; + padding-bottom: 80rpx; + overflow-y: hidden; + z-index: 15; + background-color: #f9f9f9; + box-shadow: 0rpx 12rpx 20rpx rgba(160, 160, 160, 0.25); + border-radius: 0 0 0rpx 0rpx; + box-sizing: border-box; + position: relative; + + .scroll-box-tags { + height: 508rpx; + padding: 0rpx 25rpx; + box-sizing: border-box; + } + + .filter-type { + padding: 10rpx 0; + box-sizing: border-box; + + .filter-type-title { + font-size: 29rpx; + line-height: 40rpx; + margin-bottom: 15rpx; + color: #000; + } + + .filter-type-list { + overflow: hidden; + + .filter-type-item { + // width: calc(25% - 18rpx); + display: inline-block; + font-size: 29rpx; + box-sizing: border-box; + padding: 0 20rpx; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + text-align: center; + float: left; + margin-right: 24rpx; + height: 65rpx; + line-height: 65rpx; + background-color: #f1f3f8; + border-radius: 6rpx; + margin-bottom: 20rpx; + + &:nth-child(4n) { + margin-right: 24rpx; + } + + &.is-active { + color: #06f; + } + } + } + + &+.filter-type { + margin-top: 20rpx; + } + } + + .btns-box { + height: 80rpx; + position: absolute; + background-color: #fff; + bottom: 0; + left: 0; + width: 100%; + text-align: center; + padding-top: 10rpx; + + .btn-sub { + display: inline-block; + text-align: center; + background-color: #06f; + height: 60rpx; + line-height: 58rpx; + border: 1rpx solid #06f; + padding: 0 40rpx; + color: #fff; + border-radius: 8rpx; + + &.cencle-btn { + background-color: #fff; + color: #06f; + margin-right: 40rpx; + } + } + } + } + + .model-filter-list { + position: fixed; + width: calc(100vw - 33rpx); + height: 80vh; + overflow: hidden; + top: 500rpx; + left: 17rpx; + z-index: 1; + background-color: rgba(0, 0, 0, 0.2); + } + + .filter-list, + .model-filter-list { + display: none; + + &.show { + display: block; + } + } + + .filter-btn { + position: absolute; + right: 0; + top: 0; + height: 83rpx; + width: 120rpx; + line-height: 83rpx; + font-size: 26rpx; + background: #fff; + z-index: 2; + text-align: center; + box-shadow: -4rpx 0 6rpx rgba(0, 0, 0, 0.05); + white-space: nowrap; + padding-right: 30rpx; + box-sizing: border-box; + + .filter-icon { + // display: inline-block; + font-size: 26rpx; + position: absolute; + right: 15rpx; + top: 50%; + transform: translateY(-50%); + } + } + + .tags-view { + height: 84rpx; + display: block; + padding: 15rpx 120rpx 15rpx 20rpx; + box-sizing: border-box; + white-space: nowrap; + border-bottom: 2rpx solid #eee; + + .tags-item { + margin-right: 30rpx; + display: inline-block; + + &.active-tags-item { + position: relative; + overflow: hidden; + border-radius: 4rpx; + overflow: hidden; + + &::before { + content: ''; + display: block; + width: 40rpx; + height: 40rpx; + position: absolute; + right: -20rpx; + bottom: -20rpx; + transform: rotateZ(-45deg); + background-color: #06f; + overflow: hidden; + z-index: 10; + } + + &::after { + content: ''; + display: block; + width: 8rpx; + height: 4rpx; + position: absolute; + right: 3rpx; + bottom: 8rpx; + transform: rotateZ(-45deg); + border-left: 1px solid #fff; + border-bottom: 1px solid #fff; + z-index: 11; + } + } + + ::v-deep .uv-tags { + padding: 0 20rpx; + + .uv-tags__text { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 200rpx; + } + } + } + } + + .course-list { + display: flex; + flex: 1; + overflow: hidden; + background-color: #f1f5fa; + padding-top: 12rpx; + + .course-list-body { + height: 100%; + display: flex; + flex: 1; + overflow: hidden; + + .left-type-list { + margin-top: -10rpx; + width: 152rpx; + // border-right: 2rpx solid #eee; + overflow-y: auto; + + .type-item { + min-height: 90rpx; + line-height: 40rpx; + font-size: 22rpx; + box-sizing: border-box; + padding: 25rpx 18rpx; + overflow: hidden; + // text-overflow: ellipsis; + word-break: break-all; + text-align: center; + white-space: pre-wrap; + + &.is-active { + // background-color: rgba(44, 142, 242, 0.1); + background: url(@/static/images/course/active-left.png) no-repeat; + background-size: 100% 100%; + // margin-top: -10rpx; + color: #06f; + } + } + } + + .right-course-list { + flex: 1; + overflow-y: auto; + background-color: #fff; + border-radius: 23rpx 0 0 0; + + &.no-radius { + border-radius: 0rpx 0 0 0; + } + + .type-list { + .type-title { + font-size: 33rpx; + line-height: 43rpx; + margin: 20rpx 15rpx 5rpx; + min-height: 43rpx; + // overflow: hidden; + // text-overflow: ellipsis; + // white-space: nowrap; + word-break: break-all; + font-weight: 600; + + .left-tips { + width: 33rpx; + height: 42rpx; + margin-right: 16rpx; + float: left; + background: url(@/static/images/course/tag-item.png) no-repeat; + background-size: 33rpx 33rpx; + background-position: center; + } + + .left-color { + width: 8rpx; + height: 33rpx; + margin-top: 5rpx; + float: left; + overflow: hidden; + background-color: #06f; + margin-right: 8rpx; + } + } + } + } + + } + } + } + + .loading-box { + width: 100%; + height: 100rpx; + position: relative; + + .loading-val { + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + } + } + } + } + \ No newline at end of file diff --git a/src/static/images/course/active-left.png b/src/static/images/course/active-left.png new file mode 100644 index 0000000000000000000000000000000000000000..0303785532185cc712654e3e432e71511d611701 GIT binary patch literal 1794 zcma)7X;4#H7Jhj|Oo%`p0V0r=5W+49!XPS3=!C6RK#-7u$ruy1D2goYGDJu;MG`=S zsEARJ01haNK^(xQ6$%2_f=MWqrNIS;)))gwG0mb)JCB;G{xMZkH9yY%&b{BMb8p>q z?{_58kzvM0)8=Ll|1CL}9fdMS=_@Fc?NJMJou)z&A2k(9qcsS6 z0%%Rso*K~?BEKgRJ-#-Lp+}wi8GWAGL;g*56oW?Ti}`CScgTk({_KSE&j8=OcA~2t z? z5VY+j6~JyJ)=OkIY3{@q_d__M2q3+SX5W}WVq5*#;4GG+Bz%`1dlMj8hVADQKyd|C za=Z{nQO=0brBndQc5Xe835ps2_ojlBSABIw7o+5s3wT6IX!S^~+M^b;)i!6F|D1j( zb)eu?Who^)^9X4ffe+-oakzzXK6oy#_c3%d6e;t@WiotR!_a@4+w|ge5+R12mkvIg zI6GD+m6NC1hVb~4YRlD^TXvRQtXeKW%EBCLE1j1!O1mA zf6-n51!d^%C(cc^?+C>AUKpdUzP*Swkwq%0H@3;d(t}IVSgDQ>!+BVDo5I=-7JVvv z6S8Hxxyz2XShc>3q86Ua!S)(AO1)xMg zTXf4MDtugA%Y(VcOK5=?YP+PtF#n6UFeBeI81E&G?l`T=g_xl&i~&lN4Ha}F9sMOL zKWF083y-9n+%UYiGovf5$3T9+BF) zg%TBX<&EX7cY+4>I|qszOx*&LPQO_d_AJ8}bY^9uu_K^Uyy!nNV>i95;U2l#lK?Gr zj|Q;r?efji@w z#fmTCt>vM1nRXR7jFp5B$c0;;U4mvmIwNI?j!d1y{>_f^)R1dlg-@0YYJ2L-+`yvl z-?@nat@VQ-`MPRzEzkGmn*78+wOzNIK8Fm&;f8}*x!|)hW@%II!Fr|5=owDpd-2nP zyq3;$yaYaltkGW0ZjQ59yWQmc!NZ&Nl{sWpZtoaqgiZUcSy83sX}`A%fQy`&P;KwC zI|IC^LWug!4iEFpPWaukvqFpNDr_%PYB5kU)k5;#p-_t{)wFuL(^#1!cXOI|B>Q(f zr@OoFcmc^OcL^L#9;#T*b*a?DgXZ8Sv`GYQ|G!c&vX@5X(V6W1UBuQj^@Yg zUzv^f65#*Xfz+@2E-=xNU-a>Omy3!&uSw;^jaijl4ghbL>zGa>NHw)JAqyPW_ literal 0 HcmV?d00001 diff --git a/src/static/images/course/tag-item.png b/src/static/images/course/tag-item.png new file mode 100644 index 0000000000000000000000000000000000000000..1c89c30f69ecaa8398a0edf1a88ba275e774731a GIT binary patch literal 1529 zcmVO&Ij^~0S+iYL%FC`k^Ho>VWv)BibG}WJ%8qmS#RGO&%uY-VG~Vt5nv}iz@EF#68)- z+&aRMqXw29dS{vjT4=)Kfft@!+X7s0;CF4Vs8(iZH)q-i>67QB=_93a1Em)pmR3!Y z3dcxoQ>B_(g}?o!qOmJoR|Eht964&JrH5WL&_Z*nY2$$xo_rl)?jlWLRR~RaM0$3J z)XJ8{brd7|G%O-8@_Mz>_n*;X3uA9$IC7X%8%snEXihZkm&^kiPrSpj8?w(Uaf_ZF zL@GH3_mI5!^%_0rD}79k8qX&>7nlcL=61}>UwU=km_S4EXl!}L_u zQg*eHWAjLf{5}Gw)H;Ljisn3*=f z4tU^&1K#1#?poPCT~}nU<;7A-3*HH|@h~gliFa5uBdF++t%B4P)!(R*Uf(1w*(&{T zR62ZKI(8u*r!Ujqh){I`jhEzZuSWwdG||QbFFf&%{iF^S2HX4QXl%PQRXP*faa>yZ zoiyun>6P{IShmdy?A^MR>a*Ku44`0X;LzgW+sFH=cegC9 z$!@C(xMaY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