Przeglądaj źródła

Merge branch 'main' of http://47.76.177.38:48976/Benita/Bit_Wise_World

Hexinkui 3 tygodni temu
rodzic
commit
e05c57cd5a

+ 1 - 1
src/views/asset/otc/message/Index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 消息-首页 -->
-  <HeaderNav headerText="消息"></HeaderNav>
+  <HeaderNav headerText="消息" headerRouter="/"></HeaderNav>
   <div class="message-index">
     <div class="platform-service">
       <div class="service-left">

+ 5 - 5
src/views/asset/otc/order/Index.vue

@@ -13,21 +13,21 @@
   </div>
   <div class="notifi-classifi">
     <div
-      class="classifi-item pf600 fs18 fc121212"
+      class="classifi-item"
       :class="current == 'all' ? 'current-classifi' : 'pf600 fs14 fcA8A8A8'"
       @click="messageChange('all')">
       全部
       <div class="active-line" v-if="current == 'all'"></div>
     </div>
     <div
-      class="classifi-item pf600 fs14 fcA8A8A8"
+      class="classifi-item"
       :class="current == 'buy' ? 'current-classifi' : 'pf600 fs14 fcA8A8A8'"
       @click="messageChange('buy')">
       购买
       <div class="active-line" v-if="current == 'buy'"></div>
     </div>
     <div
-      class="classifi-item pf600 fs14 fcA8A8A8"
+      class="classifi-item"
       :class="current == 'sell' ? 'current-classifi' : 'pf600 fs14 fcA8A8A8'"
       @click="messageChange('sell')">
       出售
@@ -58,7 +58,7 @@
   };
 
   const toPath = () => {
-    router.back();
+    router.push("/");
   };
 </script>
 <style lang="less" scoped>
@@ -136,7 +136,7 @@
       font-family: "PingFang SC";
       font-style: normal;
       font-weight: 600;
-      font-size: 18px;
+      font-size: 14px;
       color: #121212;
       transition: color 0.3s, font-size 0.3s;
     }

+ 1 - 1
src/views/asset/otc/transaction/Index.vue

@@ -61,7 +61,7 @@
   };
 
   const toPath = () => {
-    router.back();
+    router.push("/");
   };
 </script>
 <style lang="less" scoped>

+ 1 - 1
src/views/asset/otc/user/Index.vue

@@ -1,5 +1,5 @@
 <template>
-  <HeaderNav headerText="我的"></HeaderNav>
+  <HeaderNav headerText="我的" headerRouter="/"></HeaderNav>
   <div class="otc-user">
     <div class="user-info">
       <img src="@/assets/img/index/user/default-head.png" alt="" />

+ 8 - 4
src/views/index/components/HeaderNav.vue

@@ -17,13 +17,17 @@
   import { useRouter } from "vue-router";
 
   const router = useRouter();
-  const props = defineProps(["headerText", "headerRight"]);
+  const props = defineProps(["headerText", "headerRight", "headerRouter"]);
 
   const toPath = (path) => {
-    if (path) {
-      router.push(path);
+    if (props.headerRouter) {
+      router.push(props.headerRouter);
     } else {
-      router.go(-1);
+      if (path) {
+        router.push(path);
+      } else {
+        router.go(-1);
+      }
     }
   };
 </script>