From 308294be5b1deeaac79f7a18e0ff08050be48f7c Mon Sep 17 00:00:00 2001 From: king <2229249788@qq.com> Date: Mon, 14 Aug 2023 11:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +-- src/components/button/MyButton.tsx | 7 +++++ src/components/button/myButton.module.scss | 2 +- .../custom-page-container.module.scss | 10 +++---- .../custom-page-container.tsx | 10 ++++--- src/components/videoCover/videoCover.scss | 2 +- src/components/videoCover/videoCover.tsx | 2 +- .../videoInfo/components/catalogue.tsx | 20 +++++-------- .../business/videoInfo/components/course.tsx | 29 +++++++++---------- src/pages/business/videoInfo/videoInfo.tsx | 14 ++++++--- src/pages/meeting/meeting.tsx | 2 +- 11 files changed, 56 insertions(+), 46 deletions(-) diff --git a/package.json b/package.json index ed57342..d2525ab 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build:alipay": "taro build --type alipay", "build:tt": "taro build --type tt", "build:h5": "taro build --type h5", - "build:h5Playedu": "taro build --mode playedu --type h5 ", + "build:h5Playedu": "taro build --mode playedu --type h5", "build:rn": "taro build --type rn", "build:qq": "taro build --type qq", "build:jd": "taro build --type jd", @@ -24,7 +24,7 @@ "dev:alipay": "npm run build:alipay -- --watch", "dev:tt": "npm run build:tt -- --watch", "dev:h5": "npm run build:h5 -- --watch", - "dev:h5Playedu": "npm run build:h5 --mode playedu -- --watch ", + "dev:h5Playedu": "npm run build:h5 --mode playedu -- --watch", "dev:rn": "npm run build:rn -- --watch", "dev:qq": "npm run build:qq -- --watch", "dev:jd": "npm run build:jd -- --watch", diff --git a/src/components/button/MyButton.tsx b/src/components/button/MyButton.tsx index 92013f2..d6f168b 100644 --- a/src/components/button/MyButton.tsx +++ b/src/components/button/MyButton.tsx @@ -20,7 +20,12 @@ const MyButton: FC = (props) => { break case 'warn': style.background = '#c94f4f' + style.color = '#fff' break + case 'primary': + case undefined: + style.background = '#45D4A8' + style.color = '#fff' } if (props.fillet) { @@ -42,6 +47,8 @@ const MyButton: FC = (props) => { return (