zhou.xiaoning 2 лет назад
Родитель
Сommit
036a0c723b

+ 9 - 0
src/packages/sbyj/router/index.ts

@@ -45,11 +45,17 @@ const routes: Array<RouteRecordRaw> = [
             path: 'market',
             name: 'home-market',
             component: () => import('../views/market/list/index.vue'),
+            meta: {
+              ignoreAuth: true,
+            },
           },
           {
             path: 'news',
             name: 'home-news',
             component: () => import('../views/news/list/index.vue'),
+            meta: {
+              ignoreAuth: true,
+            },
           },
           {
             path: 'mine',
@@ -146,6 +152,9 @@ const routes: Array<RouteRecordRaw> = [
         path: '',
         name: 'market-list',
         component: () => import('../views/market/list/index.vue'),
+        meta: {
+          ignoreAuth: true,
+        },
       },
       {
         path: 'detail',

+ 5 - 5
src/packages/sbyj/views/home/index.vue

@@ -60,11 +60,8 @@ const tabList: Tabbar[] = [
 const onTabClick = (index: number) => {
   const { name } = tabList[index]
   cssTransition.value = false
-
-  if (name === 'home-index' || loginStore.token) {
-    currentTab.value = index
-    routerTo(name, true)
-  } else {
+  
+  if (name === 'home-mine') {
     fullloading((hideLoading) => {
       userLogin(true).then(() => {
         currentTab.value = index
@@ -75,6 +72,9 @@ const onTabClick = (index: number) => {
         hideLoading()
       })
     }, '加载中...')
+  } else {
+    currentTab.value = index
+    routerTo(name, true)
   }
 }
 

+ 23 - 0
src/types/proto/trade.d.ts

@@ -600,5 +600,28 @@ declare global {
             ApplyID: number; // 申请ID
             ClientTicket: string; // 客户端流水号
         }
+
+        // 补充定金接口请求
+        interface SupplementDepositReq {
+            Header?: IMessageHead; // 消息头
+		    TradeID: number; // 成交单号,必填
+            BuyOrSell: number; // 买卖方向,必填
+            UserID: number; // 用户ID,必填
+            AccountID: number; // 交易账号,必填
+            RestockDeposit: number; // 补充定金,必填
+            MarketID: number; // 市场ID,必填
+            ClientSerialNo: string; // 客户端流水号
+            ClientType: number; // 终端类型
+        }
+// 补充定金接口响应
+interface SupplementDepositRsp {
+	Header?: IMessageHead; // 消息头
+	optional int32 RetCode = 2; // 返回码
+	optional string RetDesc = 3; // 描述信息
+		optional uint64 TradeID = 4; // 成交单号,必填
+		optional uint32 UserID = 5; // 用户ID,必填
+		optional uint64 AccountID = 6; // 交易账号,必填
+		optional string ClientSerialNo = 7; // 客户端流水号
+}
     }
 }