diff --git a/src/components/StupWizard/index.module.scss b/src/components/StupWizard/index.module.scss index 34f82ff..2bf9ef3 100644 --- a/src/components/StupWizard/index.module.scss +++ b/src/components/StupWizard/index.module.scss @@ -100,7 +100,9 @@ } } - >div:nth-child(3) { + >div:nth-child(3) {} + + .beautyEffect { >span { color: white; } @@ -144,7 +146,7 @@ } } - >div:nth-child(4) { + .otherVideoSeeting { >div { margin-bottom: 20px; diff --git a/src/components/StupWizard/index.tsx b/src/components/StupWizard/index.tsx index fbeda6b..9d2ec6f 100644 --- a/src/components/StupWizard/index.tsx +++ b/src/components/StupWizard/index.tsx @@ -147,6 +147,7 @@ const VideoComponents = () => { list: [], item: null, }); + const [videoKey, setVideoKey] = useState('beautyEffect'); const [virtualBackgroundImg] = useState([ ImageUrl.virtualBackground1, ImageUrl.virtualBackground2, @@ -213,7 +214,7 @@ const VideoComponents = () => { if (setting.virtualBackground) { setVirtualBackground(setting.virtualBackground) } else { - setting.darkLightEnhancement = { + setting.virtualBackground = { isVirtualBackground: false, //是否打开虚拟背景 color: '0xFFFFFF', // 纯色 sourceIndex: '', // 背景图下标 @@ -338,6 +339,16 @@ const VideoComponents = () => {
+ { + setVideoKey(e.target.value) + }}> + 虚拟背景 + 美颜效果 + 色彩增强 + 暗光增强 + +
+ {videoKey === 'beautyEffect' ?
{ setting.virtualBackground.isVirtualBackground = e.target.checked; @@ -389,9 +400,9 @@ const VideoComponents = () => { }) }
- -
-
+
: null} +
+ {videoKey === 'colorEnhancement' ?
{ setting.beautyEffect.isBeautyEffect = e.target.checked; @@ -479,8 +490,8 @@ const VideoComponents = () => {
- -
+
: null} + {videoKey === 'darkLightEnhancement' ?
{ setting.colorEnhancement.isColorEnhancement = e.target.checked; @@ -523,8 +534,8 @@ const VideoComponents = () => {
- -
+
: null} + {videoKey === 'virtualBackground' ?
{ setting.darkLightEnhancement.isDarkLightEnhancement = e.target.checked; @@ -571,7 +582,7 @@ const VideoComponents = () => {
- + : null}