Handy_Cao 2 年之前
父節點
當前提交
82ff441184
共有 1 個文件被更改,包括 9 次插入3 次删除
  1. 9 3
      src/packages/pc/views/market/trade/swap/index.vue

+ 9 - 3
src/packages/pc/views/market/trade/swap/index.vue

@@ -41,6 +41,7 @@ import { useRequest } from '@/hooks/request'
 import { queryQuoteGoodsList } from '@/services/api/swap'
 import quoteSocket from '@/services/websocket/quote'
 import AppTable from '@pc/components/base/table/index.vue'
+import { ElMessage } from 'element-plus'
 
 const subscribe = quoteSocket.createSubscribe()
 const futuresStore = useFuturesStore()
@@ -107,9 +108,14 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
 ])
 
 const onRowClick = (row: Model.QuoteGoodsListRsp) => {
-    futuresStore.selectedGoodsId = row.refgoodsid
-    selectedRow.value = row
-    openComponent('detail')
+    /// 这里要去判断是否已经实名认证
+    if (userStore.hasAuth) {
+        futuresStore.selectedGoodsId = row.refgoodsid
+        selectedRow.value = row
+        openComponent('detail')
+    } else {
+        ElMessage('未实名认证,请先去实名认证,如果已提交实名认证,请耐心等待审核通过!')
+    }
 }
 
 futuresStore.onResponse(() => run())