Browse Source

chore: 移除无用引用

await 8 months ago
parent
commit
2287542958
2 changed files with 27 additions and 31 deletions
  1. 1 1
      src/pages/user/mine/index.scss
  2. 26 30
      src/pages/user/mine/index.tsx

+ 1 - 1
src/pages/user/mine/index.scss

@@ -26,7 +26,6 @@
 
     .mine-apply-panel-button {
       font-size: 32px;
-      font-weight: 500;
       color: #fff;
       background-color: #007aff;
       display: flex;
@@ -35,6 +34,7 @@
       border-radius: 50px;
       height: 80px;
       padding: 0 44px;
+      margin: 0;
     }
 
     .mine-apply-panel-tip {

+ 26 - 30
src/pages/user/mine/index.tsx

@@ -2,7 +2,6 @@ import Flex from "@/component/flex";
 import UserApi from "@/apis/userApi";
 import APPConfig from "@/config";
 import { useRequest } from "ahooks";
-import Label from "@/component/label";
 import Layout from "@/component/layout";
 import Padding, { EdgeInsets } from "@/component/padding";
 import SizeBox from "@/component/sizeBox";
@@ -10,14 +9,11 @@ import AppContext from "@/context/appContext";
 import ImageUtil from "@/utils/imgUtils";
 import { Image, View, Text, Button as TaroButton } from "@tarojs/components";
 import { PropsWithChildren, useContext } from "react";
-import "./index.scss";
-import { Cell } from "@taroify/core";
-import { Arrow } from "@taroify/icons";
 import useStore from "@/hooks/useRedux";
 import RouteUtil from "@/utils/routeUtil";
 import UserHelper from "@/helper/userHelper";
-import Taro from "@tarojs/taro";
 import Button from "@/component/button";
+import "./index.scss";
 
 interface IMineProps {}
 
@@ -32,11 +28,11 @@ const Mine = (props: PropsWithChildren<IMineProps>) => {
     }).toData();
   });
   return (
-    <Layout className="mine" bottomBarIndex={1}>
+    <Layout className='mine' bottomBarIndex={1}>
       <SizeBox height={statusBarHeight}></SizeBox>
       <SizeBox height={72}></SizeBox>
       <View
-        className="mine-apply-panel"
+        className='mine-apply-panel'
         style={{
           ...ImageUtil.calculationHeight(
             750 / 324,
@@ -45,11 +41,11 @@ const Mine = (props: PropsWithChildren<IMineProps>) => {
           position: "relative",
         }}
       >
-        <Text className="mine-apply-panel-title">最高可申请(元)</Text>
-        <Flex justifyContent="space-between" alignItem="center" direction="row">
-          <Text className="mine-apply-panel-money">200,000</Text>
+        <Text className='mine-apply-panel-title'>最高可申请(元)</Text>
+        <Flex justifyContent='space-between' alignItem='center' direction='row'>
+          <Text className='mine-apply-panel-money'>200,000</Text>
           <Button
-            className="mine-apply-panel-button"
+            className='mine-apply-panel-button'
             onClick={() => {
               UserHelper.afterLogin({
                 pop: false,
@@ -66,16 +62,16 @@ const Mine = (props: PropsWithChildren<IMineProps>) => {
           </Button>
         </Flex>
         <Flex
-          justifyContent="flex-start"
-          alignItem="center"
-          direction="row"
+          justifyContent='flex-start'
+          alignItem='center'
+          direction='row'
           columnGap={12}
-          className="mine-apply-panel-tip"
+          className='mine-apply-panel-tip'
         >
           <Text>年利率7.2%起</Text>
-          <View className="split-char"></View>
+          <View className='split-char'></View>
           <Text>期限3-36个月</Text>
-          <View className="split-char"></View>
+          <View className='split-char'></View>
           <Text>持牌放款</Text>
         </Flex>
       </View>
@@ -107,37 +103,37 @@ const Mine = (props: PropsWithChildren<IMineProps>) => {
       </View> */}
       <SizeBox height={16} />
       <Padding padding={EdgeInsets.symmetric({ horizontal: 32 })}>
-        <View className="mine-tools-panel-title">我的工具</View>
-        <View className="mine-tools-panel">
+        <View className='mine-tools-panel-title'>我的工具</View>
+        <View className='mine-tools-panel'>
           <TaroButton
-            open-type="contact"
-            session-from="sessionFrom"
-            className="mine-tools-item"
+            open-type='contact'
+            session-from='sessionFrom'
+            className='mine-tools-item'
           >
             <Image
               src={require("@/assets/new-edition/icon-service.svg")}
-              className="mine-tools-item-icon"
+              className='mine-tools-item-icon'
             />
-            <Text className="mine-tools-item-title">在线客服</Text>
+            <Text className='mine-tools-item-title'>在线客服</Text>
             <Image
               src={require("@/assets/new-edition/icon-arrow-right.svg")}
-              className="icon-arrow"
+              className='icon-arrow'
             />
           </TaroButton>
           <View
-            className="mine-tools-item"
+            className='mine-tools-item'
             onClick={() => {
               RouteUtil.push("/pages/user/setting/index");
             }}
           >
             <Image
               src={require("@/assets/new-edition/icon-setting.svg")}
-              className="mine-tools-item-icon"
+              className='mine-tools-item-icon'
             />
-            <View className="mine-tools-item-title">系统设置</View>
+            <View className='mine-tools-item-title'>系统设置</View>
             <Image
               src={require("@/assets/new-edition/icon-arrow-right.svg")}
-              className="icon-arrow"
+              className='icon-arrow'
             />
           </View>
         </View>
@@ -152,7 +148,7 @@ const Mine = (props: PropsWithChildren<IMineProps>) => {
             });
           }}
           src={require("@/assets/new-edition/wechat-official.png")}
-          className="mine-image-wechat-official"
+          className='mine-image-wechat-official'
         />
       </Padding>
       {/* <Flex direction="row" className="mine-menu">