diff --git a/vue/gold-system/src/views/audit/rechargeAudit.vue b/vue/gold-system/src/views/audit/rechargeAudit.vue index cfb52d1..68af647 100644 --- a/vue/gold-system/src/views/audit/rechargeAudit.vue +++ b/vue/gold-system/src/views/audit/rechargeAudit.vue @@ -19,7 +19,7 @@ const adminData = ref({}); const getAdminData = async function () { try { const result = await API.post( - "http://192.168.8.93:10010/admin/userinfo", + "http://39.99.159.73:20090/admin/userinfo", {} ); adminData.value = result; @@ -120,7 +120,7 @@ const get = async function (val) { console.log("搜索参数", getObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/recharge", + "http://39.99.159.73:20090/recharge/recharge", { ...getObj.value, rechargeVo: { ...rechargeVo.value } } ); @@ -250,7 +250,7 @@ const getActivity = async function () { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/activity/select", + "http://39.99.159.73:20090/recharge/activity/select", {} ); @@ -269,7 +269,7 @@ const getArea = async function () { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/user/search", + "http://39.99.159.73:20090/recharge/user/search", {} ); // 将响应结果存储到响应式数据中 @@ -334,7 +334,7 @@ const passConfirm = async function () { console.log("通过对象", passObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/audit/audit/goldedit", + "http://39.99.159.73:20090/audit/audit/goldedit", passObj.value ); @@ -381,7 +381,7 @@ const rejectConfirm = async function () { console.log("驳回对象", rejectObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/audit/audit/goldedit", + "http://39.99.159.73:20090/audit/audit/goldedit", rejectObj.value ); diff --git a/vue/gold-system/src/views/audit/refundAudit.vue b/vue/gold-system/src/views/audit/refundAudit.vue index ed29ab5..cbc0636 100644 --- a/vue/gold-system/src/views/audit/refundAudit.vue +++ b/vue/gold-system/src/views/audit/refundAudit.vue @@ -88,7 +88,7 @@ const get = async function (val) { console.log("搜索参数", getObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/audit/audit/refund", + "http://39.99.159.73:20090/audit/audit/refund", { ...getObj.value, detail: { ...detail.value } } ); @@ -216,7 +216,7 @@ const handleClick = function (tab, event) { const getProduct = async function () { try { // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/product", {}); + const result = await API.post("http://39.99.159.73:20090/product", {}); // 将响应结果存储到响应式数据中 console.log("请求成功", result); @@ -234,7 +234,7 @@ const getArea = async function () { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/user/search", + "http://39.99.159.73:20090/recharge/user/search", {} ); // 将响应结果存储到响应式数据中 @@ -285,8 +285,8 @@ const pass = function (row) { passObj.value.status = 1; passObj.value.refundId = row.refundId; passObj.value.adminName = row.adminName; - passObj.value.username=row.username; - passObj.value.area=row.area; + passObj.value.username = row.username; + passObj.value.area = row.area; console.log("通过对象", passObj.value); }; @@ -296,7 +296,7 @@ const passConfirm = async function () { console.log("通过对象", passObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/audit/audit/edit", + "http://39.99.159.73:20090/audit/audit/edit", passObj.value ); @@ -342,7 +342,7 @@ const rejectConfirm = async function () { console.log("驳回对象", rejectObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/audit/audit/edit", + "http://39.99.159.73:20090/audit/audit/edit", rejectObj.value ); diff --git a/vue/gold-system/src/views/consume/addConsume.vue b/vue/gold-system/src/views/consume/addConsume.vue index 0581439..4611168 100644 --- a/vue/gold-system/src/views/consume/addConsume.vue +++ b/vue/gold-system/src/views/consume/addConsume.vue @@ -7,14 +7,14 @@ import axios from "axios"; import { ElMessageBox } from "element-plus"; import API from "../../api/index.js"; import moment from "moment"; -import _ from 'lodash'; +import _ from "lodash"; //这是获取用户信息的接口 const adminData = ref({}); const getAdminData = async function () { try { const result = await API.post( - "http://192.168.8.93:10010/admin/userinfo", + "http://39.99.159.73:20090/admin/userinfo", {} ); adminData.value = result; @@ -40,7 +40,7 @@ const add = async function () { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/consume/add", + "http://39.99.159.73:20090/consume/add", addConsume.value ); if (result.code === 0) { @@ -138,7 +138,7 @@ const user = ref({ const getUser = async function (jwcode) { try { // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/recharge/user", { + const result = await API.post("http://39.99.159.73:20090/recharge/user", { jwcode: jwcode, }); @@ -168,7 +168,7 @@ const goods = ref([]); const getGoods = async function () { try { // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/product", {}); + const result = await API.post("http://39.99.159.73:20090/product", {}); // 将响应结果存储到响应式数据中 console.log("请求成功", result); @@ -188,7 +188,7 @@ const userGold = ref({}); const getUserGold = async function (jwcode) { try { // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/recharge/user", { + const result = await API.post("http://39.99.159.73:20090/recharge/user", { jwcode: jwcode, }); // 将响应结果存储到响应式数据中 diff --git a/vue/gold-system/src/views/consume/allConsume.vue b/vue/gold-system/src/views/consume/allConsume.vue index 01431ba..fb6aad0 100644 --- a/vue/gold-system/src/views/consume/allConsume.vue +++ b/vue/gold-system/src/views/consume/allConsume.vue @@ -81,7 +81,7 @@ const get = async function (val) { } console.log("搜索参数", getObj.value); // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/consume/select", { + const result = await API.post("http://39.99.159.73:20090/consume/select", { ...getObj.value, consumeDetail: { ...detailVo.value }, }); @@ -218,7 +218,7 @@ const goods = ref([]); const getGoods = async function () { try { // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/product", {}); + const result = await API.post("http://39.99.159.73:20090/product", {}); // 将响应结果存储到响应式数据中 console.log("请求成功", result); // 存储全部数据 diff --git a/vue/gold-system/src/views/index.vue b/vue/gold-system/src/views/index.vue index 6e2b4a9..efc51ff 100644 --- a/vue/gold-system/src/views/index.vue +++ b/vue/gold-system/src/views/index.vue @@ -19,7 +19,7 @@ const adminData = ref({ const getAdminData = async function () { try { const result = await API.post( - "http://192.168.8.93:10010/admin/userinfo", + "http://39.99.159.73:20090/admin/userinfo", {} ); adminData.value = result; diff --git a/vue/gold-system/src/views/login.vue b/vue/gold-system/src/views/login.vue index 73cf936..2fbb013 100644 --- a/vue/gold-system/src/views/login.vue +++ b/vue/gold-system/src/views/login.vue @@ -16,7 +16,7 @@ const form = ref({ jwcode: "", password: "", token: "" }); const login = async function () { try { const result = await axios.post( - "http://192.168.8.93:10010/admin/login", + "http://39.99.159.73:20090/admin/login", form.value ); if (result.data.code == 200) { diff --git a/vue/gold-system/src/views/managerecharge/activity.vue b/vue/gold-system/src/views/managerecharge/activity.vue index 9156d73..f2f4c31 100644 --- a/vue/gold-system/src/views/managerecharge/activity.vue +++ b/vue/gold-system/src/views/managerecharge/activity.vue @@ -5,14 +5,14 @@ import { ElMessage, ElMessageBox } from "element-plus"; import axios from "axios"; import moment from "moment"; import API from "../../api/index.js"; -import _ from 'lodash'; +import _ from "lodash"; //这是获取用户信息的接口 const adminData = ref({}); const getAdminData = async function () { try { const result = await API.post( - "http://192.168.8.93:10010/admin/userinfo", + "http://39.99.159.73:20090/admin/userinfo", {} ); adminData.value = result; @@ -75,7 +75,7 @@ const get = async function (val) { console.log("搜索参数", getObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/activity/select", + "http://39.99.159.73:20090/recharge/activity/select", { ...getObj.value, activity: { ...activity.value } } ); @@ -138,7 +138,7 @@ const add = async function () { console.log("添加对象", addObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/activity/add", + "http://39.99.159.73:20090/recharge/activity/add", addObj.value ); @@ -169,7 +169,7 @@ const add = async function () { // 使用 _.throttle 并设置 trailing 为 false 实现严格节流,只执行一次 const throttledAdd = _.throttle(add, 5000, { trailing: false }); // 新增一个标志,用于控制是否执行函数 -// let onceFunction = true; +// let onceFunction = true; // 改进后的手动节流函数 // const throttledAdd = (...args) => { // if (onceFunction) { @@ -193,7 +193,7 @@ const delConfirm = async function () { console.log("delObj", delObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/activity/edit", + "http://39.99.159.73:20090/recharge/activity/edit", delObj.value ); // 将响应结果存储到响应式数据中 @@ -341,9 +341,16 @@ onMounted(async function () {
- + diff --git a/vue/gold-system/src/views/managerecharge/rate.vue b/vue/gold-system/src/views/managerecharge/rate.vue index fcbdd10..fd7de44 100644 --- a/vue/gold-system/src/views/managerecharge/rate.vue +++ b/vue/gold-system/src/views/managerecharge/rate.vue @@ -14,7 +14,7 @@ const adminData = ref({ const getAdminData = async function () { try { const result = await API.post( - "http://192.168.8.93:10010/admin/userinfo", + "http://39.99.159.73:20090/admin/userinfo", {} ); adminData.value = result; @@ -74,7 +74,7 @@ const get = async function (val) { console.log("搜索参数", getObj.value); // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/rates/search", { + const result = await API.post("http://39.99.159.73:20090/rates/search", { ...getObj.value, rate: { ...time.value }, }); @@ -120,7 +120,7 @@ const addRate = async function () { console.log("搜索参数", getObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/rates/add", + "http://39.99.159.73:20090/rates/add", rateAdd.value ); if (result.code == 0) { @@ -170,7 +170,7 @@ const getEditData = async function (row) { console.log("搜索参数", getObj.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/rates/searchById?rateId=" + row.rateId, + "http://39.99.159.73:20090/rates/searchById?rateId=" + row.rateId, {} ); @@ -205,7 +205,7 @@ const editRate = async function () { console.log("搜索参数", rateEdit.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/rates/update", + "http://39.99.159.73:20090/rates/update", rateEdit.value ); // 将响应结果存储到响应式数据中 @@ -232,7 +232,7 @@ const deleteRate = async function (row) { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/rates/delete/ " + row.rateId, + "http://39.99.159.73:20090/rates/delete/ " + row.rateId, {} ); // 将响应结果存储到响应式数据中 @@ -388,7 +388,7 @@ const delConfirm = async function (row) { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/rates/delete/ " + row.rateId, + "http://39.99.159.73:20090/rates/delete/ " + row.rateId, {} ); // 将响应结果存储到响应式数据中 diff --git a/vue/gold-system/src/views/recharge/addRecharge.vue b/vue/gold-system/src/views/recharge/addRecharge.vue index cc5a7af..29ebcd9 100644 --- a/vue/gold-system/src/views/recharge/addRecharge.vue +++ b/vue/gold-system/src/views/recharge/addRecharge.vue @@ -7,7 +7,7 @@ import { ElMessageBox } from "element-plus"; import API from "../../api/index.js"; import moment from "moment"; import { range, re } from "mathjs"; -import * as xlsx from 'xlsx'; +import * as xlsx from "xlsx"; import _ from "lodash"; // 这是添加上传图片的接口 @@ -18,7 +18,7 @@ const adminData = ref({}); const getAdminData = async function () { try { const result = await API.post( - "http://192.168.8.93:10010/admin/userinfo", + "http://39.99.159.73:20090/admin/userinfo", {} ); adminData.value = result; @@ -48,7 +48,7 @@ const add = async function () { console.log("开始添加充值信息", addRecharge.value); // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/recharge/add", + "http://39.99.159.73:20090/recharge/recharge/add", addRecharge.value ); if (result.code === 0) { @@ -130,7 +130,7 @@ const user = ref({ const getUser = async function (jwcode) { try { // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/recharge/user", { + const result = await API.post("http://39.99.159.73:20090/recharge/user", { jwcode: jwcode, }); @@ -161,7 +161,7 @@ const getActivity = async function () { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/activity/select", + "http://39.99.159.73:20090/recharge/activity/select", { activity: { status: 1 } } ); @@ -182,7 +182,7 @@ const currency = ref([]); const getCurrency = async function () { try { // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/rates/status", {}); + const result = await API.post("http://39.99.159.73:20090/rates/status", {}); // 将响应结果存储到响应式数据中 console.log("货币请求成功", result); @@ -201,7 +201,7 @@ getCurrency(); const handleAvatarSuccess = (response, uploadFile) => { imageUrl.value = URL.createObjectURL(uploadFile.raw); console.log("图片上传成功", response, uploadFile); - addRecharge.value.rechargeVoucher = `http://192.168.8.93:10010/upload/${response.data}`; + addRecharge.value.rechargeVoucher = `http://39.99.159.73:20090/upload/${response.data}`; console.log("图片名称", addRecharge.value.rechargeVoucher); }; @@ -238,7 +238,7 @@ const getActivityById = async function (row) { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/activity/select", + "http://39.99.159.73:20090/recharge/activity/select", { activity: { activityId: row } } ); addRecharge.value.rechargeRatio = result.data[0].rechargeRatio; @@ -298,7 +298,7 @@ const getJwcodeList = async function () { try { // 发送POST请求 const result = await API.post( - "http://192.168.8.93:10010/recharge/user/jwcode", + "http://39.99.159.73:20090/recharge/user/jwcode", {} ); @@ -322,17 +322,17 @@ const errorCount = ref(0); // 校验规则 const validateInput = function (row, index) { console.log(jwcodeSet.has(row.jwcode), "has"); - if (!jwcodeSet.has(row.jwcode) && row.jwcode != '' && row.jwcode != null) { + if (!jwcodeSet.has(row.jwcode) && row.jwcode != "" && row.jwcode != null) { row.isInputInvalid = true; - row.inputErrorMessage = '精网号不存在'; + row.inputErrorMessage = "精网号不存在"; errorCount.value++; return; } else { row.isInputInvalid = false; - row.inputErrorMessage = ''; + row.inputErrorMessage = ""; errorCount.value--; } -} +}; // 批量充值弹窗 const batchRechargeVisible = ref(false); @@ -347,7 +347,7 @@ const batchData = ref([ line: 1, showInput: true, isInputInvalid: false, - inputErrorMessage: '', + inputErrorMessage: "", freeGold: "0", rechargeGold: "0", paidGold: "0", @@ -375,7 +375,7 @@ const addLine = function () { line: ++i.value, showInput: true, isInputInvalid: false, - inputErrorMessage: '', + inputErrorMessage: "", freeGold: "0", rechargeGold: "0", paidGold: "0", @@ -387,9 +387,9 @@ const addLines = async function () { loading.value = true; try { loading.value = true; // 操作开始前,将loading设为true,显示加载动画 - console.log(loading.value, "loading.value") + console.log(loading.value, "loading.value"); - await new Promise(resolve => setTimeout(resolve, 100)); // 人为创建一个小延迟 + await new Promise((resolve) => setTimeout(resolve, 100)); // 人为创建一个小延迟 // 操作开始前,将loading设为true,显示加载动画 await nextTick(); // 等待视图更新,确保加载动画能及时显示出来 @@ -398,7 +398,7 @@ const addLines = async function () { line: ++i.value, showInput: true, isInputInvalid: false, - inputErrorMessage: '', + inputErrorMessage: "", freeGold: "0", rechargeGold: "0", paidGold: "0", @@ -415,9 +415,9 @@ const addLines = async function () { ElMessage.error("添加失败"); } finally { loading.value = false; - console.log(loading.value, "loading.value") + console.log(loading.value, "loading.value"); } -} +}; // 添加多行点击按钮 // const addLines = async function () { // try { @@ -451,7 +451,7 @@ const addLines = async function () { // } // }; // 使用 _.throttle 并设置 trailing 为 false 实现严格节流,只执行一次 -const throttledAddLines = _.throttle(addLines, 500, { trailing: false }); +const throttledAddLines = _.throttle(addLines, 500, { trailing: false }); // 导入excel按钮的ref const uploadRefMap = ref({}); // 获取excel数据 @@ -648,14 +648,14 @@ const changeVoucher = function (row) { const handleBatchAvatarSuccess = (response, uploadFile) => { imageUrl.value = URL.createObjectURL(uploadFile.raw); console.log("图片上传成功", response, uploadFile); - rechargeVoucher.value = `http://192.168.8.93:10010/upload/${response.data}`; + rechargeVoucher.value = `http://39.99.159.73:20090/upload/${response.data}`; console.log("图片名称", rechargeVoucher.value); }; //批量充值确认按钮 const batchAdd = async function () { try { console.log("batchData===", batchData.value); - let msg = ''; + let msg = ""; if (batchData.value.length == 0) { ElMessage({ type: "error", @@ -677,40 +677,47 @@ const batchAdd = async function () { batchData.value[i].rechargeWay = "客服充值"; if ( batchData.value[i].jwcode == "" || - batchData.value[i].jwcode == null) { + batchData.value[i].jwcode == null + ) { msg += `精网号不能为空!
`; } if ( batchData.value[i].activityId == "" || - batchData.value[i].activityId == null) { + batchData.value[i].activityId == null + ) { msg += `活动不能为空!
`; } if ( batchData.value[i].paidGold == "" || - batchData.value[i].paidGold == null) { + batchData.value[i].paidGold == null + ) { msg += `永久金币不能为空!
`; } if ( batchData.value[i].freeGold == "" || - batchData.value[i].freeGold == null) { + batchData.value[i].freeGold == null + ) { msg += `免费金币不能为空!
`; } if ( batchData.value[i].rechargeGold == "" || - batchData.value[i].rechargeGold == null) { + batchData.value[i].rechargeGold == null + ) { msg += `充值金额不能为空!
`; } if ( batchData.value[i].payWay == "" || - batchData.value[i].payWay == null) { + batchData.value[i].payWay == null + ) { msg += `收款方式不能为空!
`; } if ( batchData.value[i].rechargeTime == "" || - batchData.value[i].rechargeTime == null) { + batchData.value[i].rechargeTime == null + ) { msg += `交款时间不能为空!
`; } - if (msg != '' && msg != null) { + if (msg != "" && msg != null) { console.log(batchData.value[i]); ElMessage({ dangerouslyUseHTMLString: true, @@ -720,11 +727,11 @@ const batchAdd = async function () { return; } } - - console.log("batchData===", batchData.value); + + console.log("batchData===", batchData.value); const result = await API.post( - "http://192.168.8.93:10010/recharge/recharge/addmore", + "http://39.99.159.73:20090/recharge/recharge/addmore", { ...batchData.value } ); @@ -743,8 +750,8 @@ const batchAdd = async function () { console.log("error===", error); ElMessage.error("添加失败"); return; - }; -} + } +}; // 使用 _.throttle 并设置 trailing 为 false 实现严格节流,只执行一次 const throttledBatchAdd = _.throttle(batchAdd, 2000, { trailing: false }); // 批量设置的对象 @@ -771,7 +778,7 @@ const batchSettingInit = function () { const batchSettingHandleAvatarSuccess = (response, uploadFile) => { batchSettingObj.value.imageUrl = URL.createObjectURL(uploadFile.raw); console.log("图片上传成功", response, uploadFile); - batchSettingObj.value.rechargeVoucher = `http://192.168.8.93:10010/upload/${response.data}`; + batchSettingObj.value.rechargeVoucher = `http://39.99.159.73:20090/upload/${response.data}`; console.log("图片名称", batchSettingObj.value.rechargeVoucher); }; // 批量设置取消按钮 @@ -956,7 +963,7 @@ onMounted(async function () { style="margin-bottom: 5px" > {{ user.buyJb + user.free6 + user.free12 + user.coreJb }} - (永久金币:{{ user.buyJb - }};免费金币:{{ + (永久金币:{{ user.buyJb }};免费金币:{{ user.free6 + user.free12 }};任务金币:{{ user.coreJb }}) @@ -1095,9 +1104,19 @@ onMounted(async function () {
添加 - + - 添加 + 添加
- +
- +
合计:永久金币: @@ -1270,21 +1362,37 @@ onMounted(async function () {
- 地区金币充值排名 - - + 地区金币充值排名 + +
-
+
{{ index + 1 }} {{ item.name }} - {{ + {{ formatNum(item.value) }}
@@ -1323,21 +1431,37 @@ onMounted(async function () {
- 地区金币消费排名 - - + 地区金币消费排名 + +
-
+
{{ index + 1 }} {{ item.name }} - {{ + {{ formatNum(item.value) }}
@@ -1370,8 +1494,14 @@ onMounted(async function () {