Browse Source

feat: 更新

gatsby 1 tháng trước cách đây
mục cha
commit
e7e12168be
2 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 1 1
      src/app.ts
  2. 7 7
      src/pages/index/index.tsx

+ 1 - 1
src/app.ts

@@ -9,7 +9,7 @@ import { Auth } from './utils/auth';
 function App({ children }: PropsWithChildren<any>) {
 
   useLaunch(() => {
-    // Auth.requireAuth();
+    Auth.requireAuth();
   });
 
   // children 是将要会渲染的页面

+ 7 - 7
src/pages/index/index.tsx

@@ -23,9 +23,9 @@ import { useUserStore } from '@/stores/user';
 
 // 模拟数据
 const statistics = {
-  shouldReport: 3990.04,
-  reported: 0.03,
-  owed: 3990.01,
+  shouldReport: 0.00,
+  reported: 0.00,
+  owed: 0.00,
   groupCount: 6,
 };
 
@@ -125,7 +125,7 @@ export default function Index() {
       {/* 搜索栏 */}
       <View className="custom-nav" style={{ paddingTop: `${statusBarHeight}px` }}>
         <View className="custom-title-bar">
-          <SearchBar
+          {/* <SearchBar
             placeholder="搜索"
             shape="round"
             rightIn={
@@ -147,7 +147,7 @@ export default function Index() {
                 // 'width': '30px',
               } as any
             }
-          />
+          /> */}
 
           <Picker
             title="筛选"
@@ -159,7 +159,7 @@ export default function Index() {
           />
         </View>
 
-        <View className="statistics-card">
+        <View className="statistics-card" style={{marginTop: '30px'}}>
           <Row gutter="10">
             <Col span="8">
               <View className="statistics-item">
@@ -216,7 +216,7 @@ export default function Index() {
 
       <View style={{ margin: '20px 0px' }}>
         <NoticeBar
-          content={"提示:xxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
+          content={"暂无通知"}
           style={{
             '--nutui-noticebar-background': '#EDF4FF',
             '--nutui-noticebar-color': '#3768FA',