mod(custom): 部分细节优化
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<!-- eslint-disable vue/no-v-html -->
|
||||
<template>
|
||||
<CommonPage show-footer :title="$route.title">
|
||||
<n-data-table
|
||||
|
||||
@@ -39,10 +39,6 @@
|
||||
本局总下注:
|
||||
<span text-25>{{ totalA || 0 }}</span>
|
||||
</div>
|
||||
<div ml-20>
|
||||
本局总下注:
|
||||
<span text-25>{{ totalA || 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -180,6 +176,9 @@ const show1 = ref(true)
|
||||
|
||||
ws.onopen = () => {
|
||||
console.log('1连接成功')
|
||||
setInterval(() => {
|
||||
ws.send('ping')
|
||||
}, 2500)
|
||||
}
|
||||
|
||||
const totalA = ref(null)
|
||||
@@ -195,6 +194,9 @@ ws.onmessage = (msg) => {
|
||||
|
||||
ws1.onopen = () => {
|
||||
console.log('2连接成功')
|
||||
setInterval(() => {
|
||||
ws.send('ping')
|
||||
}, 2500)
|
||||
}
|
||||
|
||||
ws1.onmessage = (msg) => {
|
||||
|
||||
@@ -18,4 +18,6 @@ export default {
|
||||
getgiftJllist: (data) => request.post('/user/gift/pluse', data),
|
||||
// 用户状态修改
|
||||
updateUserStatus: (data) => request.post('/user/status/edit', data),
|
||||
// 投注记录
|
||||
getBetlist: (data) => request.post('/user/dice/list', data),
|
||||
}
|
||||
|
||||
@@ -148,6 +148,7 @@
|
||||
<n-tab name="4" tab="积分记录"></n-tab>
|
||||
<n-tab name="5" tab="推广记录"></n-tab>
|
||||
<n-tab name="6" tab="赠送记录"></n-tab>
|
||||
<n-tab name="7" tab="投注记录"></n-tab>
|
||||
</n-tabs>
|
||||
<n-row gutter="12">
|
||||
<n-col :span="12">
|
||||
@@ -180,6 +181,10 @@
|
||||
label: '商品赠送',
|
||||
value: 3,
|
||||
},
|
||||
{
|
||||
label: '游戏获取',
|
||||
value: 5,
|
||||
},
|
||||
]"
|
||||
placeholder="请选择类型"
|
||||
/>
|
||||
@@ -204,7 +209,7 @@
|
||||
</n-drawer-content>
|
||||
</n-drawer>
|
||||
<!-- 赠送 -->
|
||||
<n-modal v-model:show="showModal" :mask-closable="false">
|
||||
<n-modal v-model:show="showModal">
|
||||
<n-card
|
||||
style="width: 600px"
|
||||
title="豆子赠送"
|
||||
@@ -643,7 +648,7 @@ const tabsChange = async (e = '1') => {
|
||||
key: 'oid',
|
||||
},
|
||||
{
|
||||
title: '消费豆子',
|
||||
title: '获得豆子',
|
||||
align: 'center',
|
||||
key: 'number',
|
||||
},
|
||||
@@ -733,6 +738,48 @@ const tabsChange = async (e = '1') => {
|
||||
key: 'add_time',
|
||||
},
|
||||
]
|
||||
} else if (tabVal.value === '7') {
|
||||
tabsColumns.value = [
|
||||
// {
|
||||
// title: '昵称',
|
||||
// key: 'User',
|
||||
// align: 'center',
|
||||
// },
|
||||
// {
|
||||
// title: '电话',
|
||||
// key: 'Phone',
|
||||
// align: 'center',
|
||||
// },
|
||||
{
|
||||
title: '期数',
|
||||
key: 'Periods',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '下注豆子',
|
||||
key: 'TotalCount',
|
||||
align: 'center',
|
||||
sorter: true,
|
||||
sortOrder: false,
|
||||
},
|
||||
{
|
||||
title: '赢积分',
|
||||
key: 'NumberSum',
|
||||
align: 'center',
|
||||
sorter: true,
|
||||
sortOrder: false,
|
||||
},
|
||||
{
|
||||
title: '购买号码',
|
||||
key: 'PeriodsNum',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '时间',
|
||||
key: 'DrawTime',
|
||||
align: 'center',
|
||||
},
|
||||
]
|
||||
}
|
||||
tabsPagination.value.page = 1
|
||||
await getTabsList()
|
||||
@@ -768,6 +815,16 @@ const getTabsList = async () => {
|
||||
case '6':
|
||||
res = await api.getgiftJllist(data)
|
||||
break
|
||||
case '7':
|
||||
// const betData = {
|
||||
// Uid: nowRow.value.uid,
|
||||
// PageNum: tabsPagination.value.page,
|
||||
// PageSize: tabsPagination.value.pageSize,
|
||||
// StartTime: queryData.value.time === null ? '' : queryData.value.time[0] || '',
|
||||
// EndTime: queryData.value.time === null ? '' : queryData.value.time[1] || '',
|
||||
// }
|
||||
res = await api.getBetlist(data)
|
||||
break
|
||||
}
|
||||
tabsData.value = res.data.data || []
|
||||
tabsPagination.value.itemCount = res.data.total
|
||||
|
||||
Reference in New Issue
Block a user