From cc209c9f3512b700d573f193b8f0f0c0bd90ac0b Mon Sep 17 00:00:00 2001 From: lihuilin Date: Wed, 20 Aug 2025 14:56:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=87=91=E8=B1=86=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E6=97=B6=E9=97=B4+=E7=AD=9B=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +-- src/views/audit/bean/beanAudit.vue | 65 ++++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/.env.development b/.env.development index d222de8..e40dcda 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -# VITE_API_BASE='https://hwjb.homilychart.com/dev/admin' +VITE_API_BASE='https://hwjb.homilychart.com/dev/admin' # 测试环境 # VITE_API_BASE='http://54.255.212.181:10704/' # 正式环境 @@ -6,7 +6,7 @@ VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload # VITE_API_BASE='http://192.168.9.28:8081/' # sunjiabei - VITE_API_BASE='http://192.168.9.135:8081/' + # VITE_API_BASE='http://192.168.9.135:8081/' # VITE_API_BASE='http://192.168.5.92:8081/' # zhangyong # VITE_API_BASE='http://192.168.3.83:8081/' diff --git a/src/views/audit/bean/beanAudit.vue b/src/views/audit/bean/beanAudit.vue index 1c1133e..a0ae896 100644 --- a/src/views/audit/bean/beanAudit.vue +++ b/src/views/audit/bean/beanAudit.vue @@ -9,7 +9,8 @@ style="width: 12vw" @change="handleMarketChange" /> - 充值时间: + 充值时间: + 审核时间: @@ -22,8 +23,8 @@ - - + + @@ -119,7 +120,6 @@ const tableData = ref([]) const marketOptions = ref("") const dateRange = ref([]) const activeTimeRange = ref('') -const activeName = ref('wait') const sortField = ref('') const sortOrder = ref('') const checkTab = ref('pending') @@ -128,12 +128,16 @@ const reason = ref('') const rejectRow = ref({ id: null })// 驳回行数据 +const clicked = ref(false) // 状态常量 const STATUS = { PENDING: 0, // 待审核 APPROVED: 1, // 通过 REJECTED: 2 // 驳回 } +const cancelClicked = ref(false) +// 存储地区选择变化 +const selectedMarkets = ref("") const searchForm = ref({ jwcode: '', market: '', @@ -154,8 +158,6 @@ const stats = ref({ permanentBean: 0, freeBean: 0 }) -// 存储地区选择变化 -const selectedMarkets = ref("") const handleSortChange = (column) => { if (column.prop === 'permanentBean') { sortField.value = 'permanentBean' @@ -173,7 +175,7 @@ const handleSortChange = (column) => { console.log('排序方式:', sortOrder.value) get() } -const handleSearch = function () { +const handleSearch = async function () { trimJwCode() if (searchForm.value.jwcode) { const numRef = /^\d{1,9}$/; @@ -182,15 +184,20 @@ const handleSearch = function () { return } } - get() - getStats() + await get() + await getStats() } const get = async function () { if (findMenuById(menuTree.value, permissionMapping.View_Golden_Bean_Recharge_Audit)) { try { if (dateRange.value && dateRange.value.length === 2) { + if(checkTab.value === 'pending'){ searchForm.value.createStartTime = moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') searchForm.value.createEndTime = moment(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') + }else{ + searchForm.value.auditStartTime = moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') + searchForm.value.auditEndTime = moment(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') + } } else { searchForm.value.createStartTime = '' searchForm.value.createEndTime = '' @@ -252,7 +259,6 @@ const getStats = async () => { ElMessage.error('无此权限') } } -const clicked = ref(false); // 处理通过操作 const handleApprove = async (row) => { clicked.value = true @@ -276,8 +282,6 @@ const handleApprove = async (row) => { clicked.value = false } } -//控制驳回确认按钮禁用状态 -const cancelClicked = ref(false) // 处理驳回操作 const handleReject = async () => { cancelClicked.value = true @@ -307,37 +311,38 @@ const handleReject = async () => { cancelClicked.value = false } } -const getToday = function () { +const getToday = async function () { const today = dayjs() const startTime = today.startOf('day').format('YYYY-MM-DD HH:mm:ss') const endTime = today.endOf('day').format('YYYY-MM-DD HH:mm:ss') dateRange.value = [startTime, endTime] console.log('dateRange', dateRange.value) activeTimeRange.value = 'today' - get() - getStats() + await get() + await getStats() } -const getYesterday = function () { +const getYesterday = async function () { + const today = dayjs() const startTime = today.subtract(1, 'day').startOf('day').format('YYYY-MM-DD HH:mm:ss') const endTime = today.subtract(1, 'day').endOf('day').format('YYYY-MM-DD HH:mm:ss') dateRange.value = [startTime, endTime] console.log('dateRange', dateRange.value) activeTimeRange.value = 'yesterday' - get() - getStats() + await get() + await getStats() } -const get7Days = function () { +const get7Days = async function () { const today = dayjs() const startTime = today.subtract(6, 'day').startOf('day').format('YYYY-MM-DD HH:mm:ss') const endTime = today.endOf('day').format('YYYY-MM-DD HH:mm:ss') dateRange.value = [startTime, endTime] console.log('dateRange', dateRange.value) activeTimeRange.value = '7days' - get() - getStats() + await get() + await getStats() } -const resetSearch = function () { +const resetSearch = async function () { const status = searchForm.value.status; searchForm.value = { jwcode: '', @@ -351,14 +356,12 @@ const resetSearch = function () { selectedMarkets.value = [] dateRange.value = [] activeTimeRange.value = '' - get() - getStats() - + await get() + await getStats() } -const handleClick = function (tab) { - resetSearch() - activeName.value = tab.props.name - if (tab.props.name === 'wait') { +const handleClick = async function (tab) { + checkTab.value = tab.props.name + if (tab.props.name === 'pending') { adminWait() } else if (tab.props.name === 'pass') { adminPass() @@ -457,8 +460,8 @@ const trimJwCode = () => { } onMounted(async () => { getmarkets() - get() - getStats() + await get() + await getStats() console.log("看看通信来的用户身份", adminData.value) }) From e968815d06781532dd75b698924a2b5c8c261aa7 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Wed, 20 Aug 2025 18:39:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/audit/bean/beanAudit.vue | 20 ++-- src/views/consume/gold/addCoinConsume.vue | 4 +- src/views/history/history.vue | 149 ++++++++++--------------- src/views/recharge/bean/beanOnlineRecharge.vue | 2 +- src/views/recharge/gold/addCoinRecharge.vue | 37 +++++- 5 files changed, 110 insertions(+), 102 deletions(-) diff --git a/src/views/audit/bean/beanAudit.vue b/src/views/audit/bean/beanAudit.vue index a0ae896..9771b46 100644 --- a/src/views/audit/bean/beanAudit.vue +++ b/src/views/audit/bean/beanAudit.vue @@ -37,7 +37,11 @@ - + + + @@ -191,13 +195,13 @@ const get = async function () { if (findMenuById(menuTree.value, permissionMapping.View_Golden_Bean_Recharge_Audit)) { try { if (dateRange.value && dateRange.value.length === 2) { - if(checkTab.value === 'pending'){ - searchForm.value.createStartTime = moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') - searchForm.value.createEndTime = moment(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') - }else{ - searchForm.value.auditStartTime = moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') - searchForm.value.auditEndTime = moment(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') - } + if (checkTab.value === 'pending') { + searchForm.value.createStartTime = moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') + searchForm.value.createEndTime = moment(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') + } else { + searchForm.value.auditStartTime = moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') + searchForm.value.auditEndTime = moment(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') + } } else { searchForm.value.createStartTime = '' searchForm.value.createEndTime = '' diff --git a/src/views/consume/gold/addCoinConsume.vue b/src/views/consume/gold/addCoinConsume.vue index 4f4502a..baf1ace 100644 --- a/src/views/consume/gold/addCoinConsume.vue +++ b/src/views/consume/gold/addCoinConsume.vue @@ -365,7 +365,7 @@ const ConsumeDialogVisibleCancel = () => { }; // 实际执行充值操作 const proceedWithConsume = () => { - ElMessageBox.confirm('确认充值?') + ElMessageBox.confirm('确认购买?') .then(() => { add(); console.log('添加成功'); @@ -735,7 +735,7 @@ onMounted(async function () { diff --git a/src/views/history/history.vue b/src/views/history/history.vue index cf8c75c..bbcaaee 100644 --- a/src/views/history/history.vue +++ b/src/views/history/history.vue @@ -1,40 +1,43 @@ - + { //支付方式条目 const payModel = [ +{ + value: '银行转账', + label: '银行转账' + }, { value: '现金', label: '现金' @@ -570,8 +574,32 @@ const payModel = [ label: '刷卡' }, { - value: '其他(各地区电子支付)', - label: '其他(各地区电子支付)' + value: 'Grabpay', + label: 'Grabpay' + }, + { + value: 'Nets', + label: 'Nets' + }, + { + value: 'PayPal', + label: 'PayPal' + }, + { + value: 'Stripe-链接收款', + label: 'Stripe-链接收款' + }, + { + value: 'Ipay88-链接收款', + label: 'Ipay88-链接收款' + }, + { + value: 'PaymentAsia-链接收款', + label: 'PaymentAsia-链接收款' + }, + { + value: '其他', + label: '其他' } ] @@ -642,13 +670,14 @@ onMounted(() => { -

+

 个

-

+

 个

+