diff --git a/src/pages/about/index.scss b/src/pages/about/index.scss index 94e1ef9..92bf456 100644 --- a/src/pages/about/index.scss +++ b/src/pages/about/index.scss @@ -9,6 +9,8 @@ margin: 0 30px; border-radius: 10px; text-align: center; + display: flex; + flex-direction: column; &-img { height: 180px; width: 180px; diff --git a/src/pages/apis/index.scss b/src/pages/apis/index.scss index 011052a..f916803 100644 --- a/src/pages/apis/index.scss +++ b/src/pages/apis/index.scss @@ -23,6 +23,8 @@ .index-desc_text { color: #888888; + width: 100%; + text-align: center; } .navigator-box { diff --git a/src/pages/apis/pages/surface/scroll/index.tsx b/src/pages/apis/pages/surface/scroll/index.tsx index d999755..9d6caf4 100644 --- a/src/pages/apis/pages/surface/scroll/index.tsx +++ b/src/pages/apis/pages/surface/scroll/index.tsx @@ -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 ( diff --git a/src/pages/components/index.scss b/src/pages/components/index.scss index cf65ce4..d404e78 100644 --- a/src/pages/components/index.scss +++ b/src/pages/components/index.scss @@ -24,6 +24,8 @@ .index-desc_text { color: #888888; + width: 100%; + text-align: center; } .navigator-box { diff --git a/src/pages/global/index.scss b/src/pages/global/index.scss index d1ffaab..e223174 100644 --- a/src/pages/global/index.scss +++ b/src/pages/global/index.scss @@ -23,6 +23,8 @@ } .index-desc_text { + width: 100%; + text-align: center; color: #888888; } diff --git a/src/pages/global/pages/styles/size.scss b/src/pages/global/pages/styles/size.scss index 533f9f9..b0c03db 100644 --- a/src/pages/global/pages/styles/size.scss +++ b/src/pages/global/pages/styles/size.scss @@ -24,5 +24,5 @@ .w-60 { height: 100px; width: 60%; - background-color: orange; + background-color: blue; } \ No newline at end of file