|
|
@ -18,7 +18,7 @@ const adminData = ref({}); |
|
|
|
const getAdminData = async function () { |
|
|
|
try { |
|
|
|
const result = await API.post( |
|
|
|
"http://39.99.159.73:20090/admin/userinfo", |
|
|
|
"http://54.251.137.151:10702/admin/userinfo", |
|
|
|
{} |
|
|
|
); |
|
|
|
adminData.value = result; |
|
|
@ -47,7 +47,7 @@ const add = async function () { |
|
|
|
console.log("开始添加充值信息", addRecharge.value); |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post( |
|
|
|
"http://39.99.159.73:20090/recharge/recharge/add", |
|
|
|
"http://54.251.137.151:10702/recharge/recharge/add", |
|
|
|
addRecharge.value |
|
|
|
); |
|
|
|
if (result.code === 0) { |
|
|
@ -129,7 +129,7 @@ const user = ref({ |
|
|
|
const getUser = async function (jwcode) { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post("http://39.99.159.73:20090/recharge/user", { |
|
|
|
const result = await API.post("http://54.251.137.151:10702/recharge/user", { |
|
|
|
jwcode: jwcode, |
|
|
|
area: adminData.value.area, |
|
|
|
}); |
|
|
@ -158,7 +158,7 @@ const getActivity = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post( |
|
|
|
"http://39.99.159.73:20090/recharge/activity/select", |
|
|
|
"http://54.251.137.151:10702/recharge/activity/select", |
|
|
|
{ |
|
|
|
activity: { status: 1 }, |
|
|
|
} |
|
|
@ -180,7 +180,7 @@ const currency = ref([]); |
|
|
|
const getCurrency = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post("http://39.99.159.73:20090/rates/status", {}); |
|
|
|
const result = await API.post("http://54.251.137.151:10702/rates/status", {}); |
|
|
|
|
|
|
|
// 将响应结果存储到响应式数据中 |
|
|
|
console.log("货币请求成功", result); |
|
|
@ -198,7 +198,7 @@ const getCurrency = async function () { |
|
|
|
const handleAvatarSuccess = (response, uploadFile) => { |
|
|
|
imageUrl.value = URL.createObjectURL(uploadFile.raw); |
|
|
|
console.log("图片上传成功", response, uploadFile); |
|
|
|
addRecharge.value.rechargeVoucher = `http://39.99.159.73:20090/upload/${response.data}`; |
|
|
|
addRecharge.value.rechargeVoucher = `http://54.251.137.151:10702/upload/${response.data}`; |
|
|
|
console.log("图片名称", addRecharge.value.rechargeVoucher); |
|
|
|
}; |
|
|
|
|
|
|
@ -235,7 +235,7 @@ const getActivityById = async function (row) { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post( |
|
|
|
"http://39.99.159.73:20090/recharge/activity/select", |
|
|
|
"http://54.251.137.151:10702/recharge/activity/select", |
|
|
|
{ |
|
|
|
activity: { activityId: row }, |
|
|
|
} |
|
|
@ -294,7 +294,7 @@ const getJwcodeList = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post( |
|
|
|
"http://39.99.159.73:20090/recharge/user/jwcode", |
|
|
|
"http://54.251.137.151:10702/recharge/user/jwcode", |
|
|
|
{ jwcode: jwcode, area: adminData.value.area } |
|
|
|
); |
|
|
|
|
|
|
@ -637,7 +637,7 @@ const changeVoucher = function (row) { |
|
|
|
const handleBatchAvatarSuccess = (response, uploadFile) => { |
|
|
|
imageUrl.value = URL.createObjectURL(uploadFile.raw); |
|
|
|
console.log("图片上传成功", response, uploadFile); |
|
|
|
rechargeVoucher.value = `http://39.99.159.73:20090/upload/${response.data}`; |
|
|
|
rechargeVoucher.value = `http://54.251.137.151:10702/upload/${response.data}`; |
|
|
|
console.log("图片名称", rechargeVoucher.value); |
|
|
|
}; |
|
|
|
//批量充值确认按钮 |
|
|
@ -720,7 +720,7 @@ const batchAdd = async function () { |
|
|
|
console.log("batchData===", batchData.value); |
|
|
|
|
|
|
|
const result = await API.post( |
|
|
|
"http://39.99.159.73:20090/recharge/recharge/addmore", |
|
|
|
"http://54.251.137.151:10702/recharge/recharge/addmore", |
|
|
|
{ |
|
|
|
...batchData.value, |
|
|
|
} |
|
|
@ -769,7 +769,7 @@ const batchSettingInit = function () { |
|
|
|
const batchSettingHandleAvatarSuccess = (response, uploadFile) => { |
|
|
|
batchSettingObj.value.imageUrl = URL.createObjectURL(uploadFile.raw); |
|
|
|
console.log("图片上传成功", response, uploadFile); |
|
|
|
batchSettingObj.value.rechargeVoucher = `http://39.99.159.73:20090/upload/${response.data}`; |
|
|
|
batchSettingObj.value.rechargeVoucher = `http://54.251.137.151:10702/upload/${response.data}`; |
|
|
|
console.log("图片名称", batchSettingObj.value.rechargeVoucher); |
|
|
|
}; |
|
|
|
// 批量设置取消按钮 |
|
|
@ -957,7 +957,7 @@ onMounted(async function () { |
|
|
|
style="margin-bottom: 5px" |
|
|
|
> |
|
|
|
<el-upload |
|
|
|
action="http://39.99.159.73:20090/upload" |
|
|
|
action="http://54.251.137.151:10702/upload" |
|
|
|
class="avatar-uploader" |
|
|
|
:show-file-list="false" |
|
|
|
:on-success="handleAvatarSuccess" |
|
|
@ -1282,7 +1282,7 @@ onMounted(async function () { |
|
|
|
<el-table-column property="rechargeVoucher" label="充值凭证"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-upload |
|
|
|
action="http://39.99.159.73:20090/upload" |
|
|
|
action="http://54.251.137.151:10702/upload" |
|
|
|
class="avatar-uploader" |
|
|
|
:show-file-list="false" |
|
|
|
:on-success="handleBatchAvatarSuccess" |
|
|
@ -1447,7 +1447,7 @@ onMounted(async function () { |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="rechargeVoucher" label="交款凭证"> |
|
|
|
<el-upload |
|
|
|
action="http://39.99.159.73:20090/upload" |
|
|
|
action="http://54.251.137.151:10702/upload" |
|
|
|
class="avatar-uploader" |
|
|
|
:show-file-list="false" |
|
|
|
:on-success="batchSettingHandleAvatarSuccess" |
|
|
|