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