|
|
@ -5,6 +5,7 @@ import { ElMessage } from "element-plus"; |
|
|
|
import { Plus } from "@element-plus/icons-vue"; |
|
|
|
import axios from "axios"; |
|
|
|
import { ElMessageBox } from "element-plus"; |
|
|
|
import API from "../../api/index.js"; |
|
|
|
|
|
|
|
// 这是添加充值信息的表单 |
|
|
|
const addRecharge = ref({ |
|
|
@ -19,7 +20,7 @@ const addRecharge = ref({ |
|
|
|
const add = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await axios.post( |
|
|
|
const result = await API.post( |
|
|
|
"http://192.168.8.93:10010/recharge/recharge/add", |
|
|
|
addRecharge.value |
|
|
|
); |
|
|
@ -85,7 +86,7 @@ const user = ref({}); |
|
|
|
const getUser = async function (jwcode) { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await axios.post("http://192.168.8.93:10020/recharge/user", { |
|
|
|
const result = await API.post("http://192.168.8.93:10020/recharge/user", { |
|
|
|
jwcode: jwcode, |
|
|
|
}); |
|
|
|
|
|
|
@ -111,7 +112,7 @@ const activity = ref([]); |
|
|
|
const getActivity = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await axios.post( |
|
|
|
const result = await API.post( |
|
|
|
"http://192.168.8.93:10010/recharge/activity/select", |
|
|
|
{} |
|
|
|
); |
|
|
|