Hexinkui il y a 1 mois
Parent
commit
7f7d13bc85
2 fichiers modifiés avec 4 ajouts et 115 suppressions
  1. 1 112
      src/router/index.js
  2. 3 3
      src/views/user/Index.vue

+ 1 - 112
src/router/index.js

@@ -221,33 +221,7 @@ const routes = [
       component: () => import('@/views/user/BasicVerify.vue'),
       meta: { title: '基础认证' }
    },
-  {
-    path: "/otcIndex",
-    name: "otcIndex",
-    component: OTCIndex,
-    children: [
-      {
-        path: "",
-        name: "otcTransactionIndex",
-        component: OTCTransactionIndex,
-      },
-      {
-        path: "/otcMessageIndex",
-        name: "otcMessageIndex",
-        component: OTCMessageIndex,
-      },
-      {
-        path: "/otcOrderIndex",
-        name: "otcOrderIndex",
-        component: OTCOrderIndex,
-      },
-      {
-        path: "/otcUserIndex",
-        name: "otcUserIndex",
-        component: OTCUserIndex,
-      },
-    ],
-  },
+
   {
     path: "/applyPermission",
     name: "applyPermission",
@@ -448,91 +422,6 @@ const routes = [
     name: "userLoanIndex",
     component: UserLoanIndex,
   },
-  {
-    path: "/rechargeHistory",
-    name: "rechargeHistory",
-    component: RechargeHistory,
-  },
-  {
-    path: "/withdrawHistory",
-    name: "withdrawHistory",
-    component: WithdrawHistory,
-  },
-  {
-    path: "/financialIndex",
-    name: "financialIndex",
-    component: FinancialIndex,
-  },
-  {
-    path: "/financialBuy",
-    name: "financialBuy",
-    component: FinancialBuy,
-  },
-  {
-    path: "/myFinancial",
-    name: "myFinancial",
-    component: MyFinancial,
-  },
-  {
-    path: "/cloudComPowerIndex",
-    name: "cloudComPowerIndex",
-    component: CloudComPowerIndex,
-  },
-  {
-    path: "/comboDetails",
-    name: "comboDetails",
-    component: ComboDetails,
-  },
-  {
-    path: "/myPower",
-    name: "myPower",
-    component: MyPower,
-  },
-  {
-    path: "/miningOutput",
-    name: "miningOutput",
-    component: MiningOutput,
-  },
-  {
-    path: "/electricityRecharge",
-    name: "electricityRecharge",
-    component: ElectricityRecharge,
-  },
-  {
-    path: "/electricitySetting",
-    name: "electricitySetting",
-    component: ElectricitySetting,
-  },
-  {
-    path: "/electricityBill",
-    name: "electricityBill",
-    component: ElectricityBill,
-  },
-  {
-    path: "/cloudMyOrder",
-    name: "cloudMyOrder",
-    component: CloudMyOrder,
-  },
-  {
-    path: "/cloudCalculator",
-    name: "cloudCalculator",
-    component: CloudCalculator,
-  },
-  {
-    path: "/stakingIndex",
-    name: "stakingIndex",
-    component: StakingIndex,
-  },
-  {
-    path: "/stakingRules",
-    name: "stakingRules",
-    component: StakingRules,
-  },
-  {
-    path: "/stakingRecord",
-    name: "stakingRecord",
-    component: StakingRecord,
-  },
 ];
 
 const router = createRouter({

+ 3 - 3
src/views/user/Index.vue

@@ -13,7 +13,7 @@
           <div class="info-box">
             <div class="name-row">
               <span class="user-name">{{ userInfo.nickname }}</span>
-              <span class="vip-badge">{{ userInfo.level }}</span>
+              <span class="vip-badge" @click="router.push({name: 'VipCenter'})">{{ userInfo.level }}</span>
             </div>
             <div class="user-id">ID: {{ userInfo.id }}</div>
           </div>
@@ -346,7 +346,7 @@ const progressSegments = computed(() => {
     .invite-friend {
       margin: 0 auto;
       //margin-top: 20px;
-      width: 360px ;
+      width: 345px ;
       height: 68px;
       padding-left: 15px;
     }
@@ -422,7 +422,7 @@ const progressSegments = computed(() => {
 .content { width:100%;padding: 15px; }
 
 .user-card {
-  background: #fff; border-radius: 16px; padding: 0px 0 0 15px;
+  background: #fff; border-radius: 16px; padding: 0 0px 0 15px;
   display: flex; justify-content: space-between; align-items: center;
   //box-shadow: 0 4px 12px rgba(0,0,0,0.03);
 }