Skip to content

Commit

Permalink
fix: 鸿蒙样式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Jan 19, 2024
1 parent 3176d52 commit e902a74
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/pages/about/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
margin: 0 30px;
border-radius: 10px;
text-align: center;
display: flex;
flex-direction: column;
&-img {
height: 180px;
width: 180px;
Expand Down
2 changes: 2 additions & 0 deletions src/pages/apis/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

.index-desc_text {
color: #888888;
width: 100%;
text-align: center;
}

.navigator-box {
Expand Down
7 changes: 3 additions & 4 deletions src/pages/apis/pages/surface/scroll/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ import './index.scss'
* @returns
*/
const Index = () => {
const _pageScrollTo = (top) => () => {
top = Taro.pxTransform(top * 2)
top = top.replace(/[a-z]+$/, '')
const _pageScrollTo = (top: number) => () => {
const _top = Taro.pxTransform(top * 2)
Taro.pageScrollTo({
scrollTop: top,
scrollTop: _top,
})
}
return (
Expand Down
2 changes: 2 additions & 0 deletions src/pages/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

.index-desc_text {
color: #888888;
width: 100%;
text-align: center;
}

.navigator-box {
Expand Down
2 changes: 2 additions & 0 deletions src/pages/global/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
}

.index-desc_text {
width: 100%;
text-align: center;
color: #888888;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/global/pages/styles/size.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
.w-60 {
height: 100px;
width: 60%;
background-color: orange;
background-color: blue;
}

0 comments on commit e902a74

Please sign in to comment.