Skip to content

Commit

Permalink
Merge branch 'fix_mvp_24-6-1' of https://github.com/HXTIA/notifyBoard_C
Browse files Browse the repository at this point in the history
… into fix_mvp_24-6-1
  • Loading branch information
HardenSG committed Jun 6, 2024
2 parents 1972473 + 3600750 commit cccee14
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 64 deletions.
2 changes: 1 addition & 1 deletion src/components/baseBuiltComp/Forb/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './index.module.scss'
const Index = (props) => {
const { run, instance } = useAnimation({
node: $('#ForbiddenContainer__bgContainer__canvas'),
template: JSON_MAP['loading_smog'],
template: JSON_MAP['forbidden'],
isAutoRun: false,
})

Expand Down
19 changes: 4 additions & 15 deletions src/pages/Detail/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,31 +56,20 @@

&__deadline {
margin: 25rpx 0;
border-style: none;
border-top-width: 3px;
border-bottom-width: 3px;
border-right-width: 3px;
border-top-color: rgba(0, 0, 0, 0.4);
border-bottom-color: rgba(0, 0, 0, 0.4);
border-right-color: rgba(0, 0, 0, 0.4);
// width: auto;
// height: auto;
// box-shadow: rgb(132, 168, 132) 0px 5px 15px;
// overflow: auto;
border: 4rpx dashed #c6c6c6;
border-left-width: initial;
border-left-color: initial;
padding: 10rpx 30rpx;
line-height: 1.8;
border-radius: 0px 20rpx 20rpx 20rpx;
color: rgb(0, 0, 0);
// background: rgb(0, 0, 0);
visibility: visible;
color: gray;
font-size: 27rpx;
}

.font-line {
font-size: 26rpx;
color: #000000;
font-size: 27rpx;
color: gray;
margin: 5rpx 0 5rpx 0;
}

Expand Down
99 changes: 62 additions & 37 deletions src/pages/Initial/components/orgInit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,21 @@ const Index = () => {
const [inputValue, setInputValue] = useState<{ id?: number; name: string }>()
const userState = useSelector((root: RootState) => root.userinfoModel)

/** loading */
const [isLoad, showLoading] = useState(true)

/** 特定loading */
// const { run } = useAnimation({
// node: $('#orgLoading__bgContainer__canvas'),
// template: JSON_MAP['loading_smog'],
// _options: { loop: true },
// })

// useEffect(() => {
// if (true) {
// run()
// }
// }, [])
const { run } = useAnimation({
node: $('#orgLoading__bgContainer__canvas'),
template: JSON_MAP['loading_smog'],
_options: { loop: true },
})

useEffect(() => {
if (true) {
run()
}
}, [])

const reqFn = useCallback(
({ currentPage, size = SIZE, keyword = '' }) =>
Expand All @@ -48,7 +51,7 @@ const Index = () => {
size,
keyword,
},
silent: false,
silent: true,
loadingNeedMask: true,
})
.then((res) => {
Expand All @@ -57,6 +60,9 @@ const Index = () => {
if (!isSuccess || !data) {
throw Error(errMsg)
}

showLoading(false)

return {
data,
extraData,
Expand Down Expand Up @@ -155,31 +161,50 @@ const Index = () => {
/>
</Field>
</Cell.Group> */}
{/* <Canvas
className='orgLoading__bgContainer__canvas'
id='orgLoading__bgContainer__canvas'
type='2d'
></Canvas> */}
<InputMenu
onPageScrollToLower={onPageScrollToLower}
handleInputChange={handleInputChange}
clickMark={clickMark}
menuLists={orgList}
pageNum={pageNum}
pageNumTotal={pagesTotal}
segmentNum={SIZE}
title='选择组织 |'
inputPlace='请输入组织名称'
></InputMenu>
<Button
variant='contained'
color='success'
shape='round'
className='OrgContainer__button'
onClick={checkOrgToGrade}
>
下一步
</Button>

{!isLoad && (
<>
<InputMenu
onPageScrollToLower={onPageScrollToLower}
handleInputChange={handleInputChange}
clickMark={clickMark}
menuLists={orgList}
pageNum={pageNum}
pageNumTotal={pagesTotal}
segmentNum={SIZE}
title='选择组织 |'
inputPlace='请输入组织名称'
></InputMenu>
<Button
variant='contained'
color='success'
shape='round'
className='OrgContainer__button'
onClick={checkOrgToGrade}
>
下一步
</Button>
</>
)}

{isLoad && (
<>
<Canvas
className='orgLoading__bgContainer__canvas'
id='orgLoading__bgContainer__canvas'
type='2d'
style={{ marginTop: '-200rpx' }}
></Canvas>
<Button
variant='contained'
color='success'
shape='round'
className='OrgContainer__button'
>
加载中...
</Button>
</>
)}
</View>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Initial/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const Index = () => {

const notHaveOrg = !hasOrg
const onlyHasOrg = hasOrg && !hasGrade
if (isLoading) return <Loading isCover isShow />
// if (isLoading) return <Loading isCover isShow />
if (notHaveOrg) return <OrgInit />
if (onlyHasOrg || !hasClass) return <GradeInit />
return <InitAccomplish />
Expand Down
1 change: 0 additions & 1 deletion src/static/SVG/404.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/forbidden.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/loading1.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/loading2.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/loading3.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/loading4.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/loading5.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/loading6.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/loading7.json

This file was deleted.

1 change: 0 additions & 1 deletion src/static/SVG/success.json

This file was deleted.

0 comments on commit cccee14

Please sign in to comment.