From d742560fb265c69ea3e23b0f24010de0d75f337f Mon Sep 17 00:00:00 2001 From: king <2229249788@qq.com> Date: Wed, 30 Aug 2023 16:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=A4=B4=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/image/image.tsx | 2 +- .../business/history/history.module.scss | 5 --- src/pages/business/history/history.tsx | 35 +++++++++--------- .../videoInfo/components/catalogue.tsx | 6 +-- src/pages/home/home.config.ts | 2 +- src/pages/home/home.module.scss | 9 +++++ src/pages/home/home.tsx | 8 +++- src/static/img/logo.png | Bin 0 -> 4932 bytes 8 files changed, 38 insertions(+), 29 deletions(-) create mode 100644 src/static/img/logo.png diff --git a/src/components/image/image.tsx b/src/components/image/image.tsx index 9651106..2071e52 100644 --- a/src/components/image/image.tsx +++ b/src/components/image/image.tsx @@ -38,7 +38,7 @@ const Img: FC = ({src, mode = 'aspectFill', width, height, fallback = sha return ( + className={`${props?.className} ${styles.imgBox}`}> {!isError && { const [data, setData] = useState([]) @@ -25,24 +26,22 @@ const History = () => { }, []) return ( - - - {data.length ? data.map((d, index) => - jump(d.userCourseRecord.course_id)}> - - - 共{d.userCourseRecord.hour_count}节/已学{d.userCourseRecord.finished_count}节 + + {data.length ? data.map((d, index) => + jump(d.userCourseRecord.course_id)}> + + + 共{d.userCourseRecord.hour_count}节/已学{d.userCourseRecord.finished_count}节 + + + {d.title} + + 观看{formatMinute(durations[d.id])} + 学习进度:{(d.userCourseRecord.finished_count / d.userCourseRecord.hour_count * 100).toFixed(0)}% - - {d.title} - - 观看{formatMinute(durations[d.id])} - 学习进度:{(d.userCourseRecord.finished_count / d.userCourseRecord.hour_count * 100).toFixed(0)}% - - - ) : } - + + ) : } ) } diff --git a/src/pages/business/videoInfo/components/catalogue.tsx b/src/pages/business/videoInfo/components/catalogue.tsx index fd8df74..55bbddd 100644 --- a/src/pages/business/videoInfo/components/catalogue.tsx +++ b/src/pages/business/videoInfo/components/catalogue.tsx @@ -9,7 +9,7 @@ import MyButton from "@/components/button/MyButton"; import videoEvents from "@/hooks/videoEvents"; import curRecord from '@/static/img/curRecord.png' import hourRecord from "@/static/img/hourRecord.png" -import {PageContainerInner} from "@/components/custom-page-container/custom-page-container"; +import CustomPageContainer from "@/components/custom-page-container/custom-page-container"; interface Props { data: CourseDepData | null @@ -181,7 +181,7 @@ const Catalogue: FC = ({data, setHors, id, playId}) => { setShow(true)}>... - setShow(false)}> @@ -199,7 +199,7 @@ const Catalogue: FC = ({data, setHors, id, playId}) => { setShow(false)} type='default' fillet>取消 - + ); } diff --git a/src/pages/home/home.config.ts b/src/pages/home/home.config.ts index 09216b4..6211ef6 100644 --- a/src/pages/home/home.config.ts +++ b/src/pages/home/home.config.ts @@ -1,6 +1,6 @@ export default definePageConfig({ navigationBarTitleText: '康一诺', - // navigationStyle: 'custom', + navigationStyle: 'custom', navigationBarBackgroundColor: '#92ecc5', navigationBarTextStyle: 'white', onReachBottomDistance: 50 diff --git a/src/pages/home/home.module.scss b/src/pages/home/home.module.scss index dff704e..e355f46 100644 --- a/src/pages/home/home.module.scss +++ b/src/pages/home/home.module.scss @@ -15,6 +15,15 @@ font-weight: 500; } +.header{ + +} + +.logo{ + width: 80rpx; + height: 80rpx; +} + .content { position: relative; diff --git a/src/pages/home/home.tsx b/src/pages/home/home.tsx index c2f9131..3eaef5a 100644 --- a/src/pages/home/home.tsx +++ b/src/pages/home/home.tsx @@ -1,5 +1,5 @@ import {FC, useState} from "react"; -import {View} from "@tarojs/components"; +import {Image, View} from "@tarojs/components"; import styles from "./home.module.scss"; import Adware from "@/pages/home/components/adware"; import Feature from "@/pages/home/components/feature"; @@ -9,11 +9,14 @@ import MyButton from "@/components/button/MyButton"; import {Profile} from "@/store"; import Taro from "@tarojs/taro"; import {HomeApi, HomeData} from "@/api"; +import logo from '@/static/img/logo.png' const Home: FC = () => { + const globalData = Taro.getApp().globalData const {token} = Profile.useContainer() const [data, setData] = useState(null) + console.log(globalData) function unLogin() { Taro.removeStorageSync('profile') @@ -28,6 +31,9 @@ const Home: FC = () => { return ( + + + Px{{z*hZRCr$PoqLoN)t$$`zgyis@1CCNsv1xTLVRV_xGFFp;T??{V2ux3RO?NfaJ%>LyQ}=g&_xtHv_tx*e2o|K)*4D4Y;m#>&ddU71##(lyZ5)^=Jv9={gA4*;B!_MEWS0E4wT*4T80)TjpcXQ6KS5;Lsykn;0 z0@gHb5fS|k0OOpmFDxva?e%&?*1PUlOjUt>`}Qf4B)v#PlK_~eX)da&s#;9=iH;~`V&NSO&_0yvMeW99hr^_Sl4wiLjIq= zmV1Y)s`n3_yN=~_70`A44gmLxmdrW-;n7~#UjnRY+66@Pwiu#w&R3|aIwxHRoP0yC zKrk45l5;+Xb1ptrC#tHtrGKf10d8q&DJ(55eNRN90KBnt=gv#Vjvec~mWQ5G+9hz# z-N9h69>8SI`8GvS&L^TnpHPPZ)->%wBDxj8r*5}P^qMTomt|a{V<77a=(;Xm)iXHfD^*p!?hxQWATWk8woQzhT`t!}6%`eS zb<|n+)G0761$12>3!oW*VHn1l!-frONwi>H*M9}zW&kfKiZVMb>rN(HD4^^5%K*NU z?28kCHBH+gI%ohtRuttKTX^a?k(L6%VDK98iWUQ9MNv+tU@-VK&iPgVakty8IwR+_ zbhS+;F{1A6?F|5s0GvgEKwutYY^nI}RTO2qZ9H`xNm~I;)7~Va$pGe(uImEsJkI&8 zs;WMmwpAyiZ4}Tn?UzLK0Ox#(0Gt?FixnD*qO7uwmyRQ8D-Z|-e#96Pa|vrm)3g>M zI*oHaRaMnD)3)klw2cC~u8Xd=0l*H?g2igS3eNc%s;X|cjhBuiX)B=X`dI)z7ArLc zU@@8Cl4ZH5e~>zD>rTd;E1>Io833^qH!1*g;gO;!11{gmx#x}pDJziV>Htnzviy3` z0i0jF2JNi_c+isNR|W@ge(@T#w+`SzOO{_5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