|
|
@@ -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())
|