@@ -529,19 +660,22 @@ onMounted(async function () {
- 权限设置:
+ 权限设置:
- 总部管理员
- 分部财务
- 分部客服
+ 总部管理员
+ 分部财务
+ 分部客服
取消
- 提交
+
+ 提交
+
-
diff --git a/gold-system/src/views/recharge/addRecharge.vue b/gold-system/src/views/recharge/addRecharge.vue
index c44cdde..4e7d044 100644
--- a/gold-system/src/views/recharge/addRecharge.vue
+++ b/gold-system/src/views/recharge/addRecharge.vue
@@ -17,7 +17,10 @@ const Rate = ref();
const adminData = ref({});
const getAdminData = async function () {
try {
- const result = await API.post("/hwjb/admin/userinfo", {});
+ const result = await API.post(
+ "http://39.99.159.73:20090/admin/userinfo",
+ {}
+ );
adminData.value = result;
addRecharge.value.adminId = adminData.value.adminId;
addRecharge.value.area = adminData.value.area;
@@ -28,7 +31,6 @@ const getAdminData = async function () {
}
};
-
// 这是添加充值信息的表单
const addRecharge = ref({
rechargeVoucher: "",
@@ -45,7 +47,7 @@ const add = async function () {
console.log("开始添加充值信息", addRecharge.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/recharge/add",
+ "http://39.99.159.73:20090/recharge/recharge/add",
addRecharge.value
);
if (result.code === 0) {
@@ -127,8 +129,10 @@ const user = ref({
const getUser = async function (jwcode) {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/user",
- { jwcode: jwcode, area: adminData.value.area });
+ const result = await API.post("http://39.99.159.73:20090/recharge/user", {
+ jwcode: jwcode,
+ area: adminData.value.area,
+ });
console.log("请求成功", result);
if (result.code === 0) {
@@ -153,9 +157,12 @@ const activity = ref([]);
const getActivity = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/activity/select", {
- activity: { status: 1 },
- });
+ const result = await API.post(
+ "http://39.99.159.73:20090/recharge/activity/select",
+ {
+ activity: { status: 1 },
+ }
+ );
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
@@ -168,13 +175,12 @@ const getActivity = async function () {
}
};
-
// 这是查询货币的接口
const currency = ref([]);
const getCurrency = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/rates/status", {});
+ const result = await API.post("http://39.99.159.73:20090/rates/status", {});
// 将响应结果存储到响应式数据中
console.log("货币请求成功", result);
@@ -188,12 +194,11 @@ const getCurrency = async function () {
}
};
-
// 上传图片成功的回调函数
const handleAvatarSuccess = (response, uploadFile) => {
imageUrl.value = URL.createObjectURL(uploadFile.raw);
console.log("图片上传成功", response, uploadFile);
- addRecharge.value.rechargeVoucher = `/hwjb/upload/${response.data}`;
+ addRecharge.value.rechargeVoucher = `http://39.99.159.73:20090/upload/${response.data}`;
console.log("图片名称", addRecharge.value.rechargeVoucher);
};
@@ -229,9 +234,12 @@ const options = [
const getActivityById = async function (row) {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/activity/select", {
- activity: { activityId: row },
- });
+ const result = await API.post(
+ "http://39.99.159.73:20090/recharge/activity/select",
+ {
+ activity: { activityId: row },
+ }
+ );
addRecharge.value.rechargeRatio = result.data[0].rechargeRatio;
console.log("看看有了吗", addRecharge.value.rechargeRatio);
} catch (error) {
@@ -285,8 +293,10 @@ let jwcodeSet;
const getJwcodeList = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/user/jwcode",
- { jwcode: jwcode, area: adminData.value.area });
+ const result = await API.post(
+ "http://39.99.159.73:20090/recharge/user/jwcode",
+ { jwcode: jwcode, area: adminData.value.area }
+ );
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
@@ -627,7 +637,7 @@ const changeVoucher = function (row) {
const handleBatchAvatarSuccess = (response, uploadFile) => {
imageUrl.value = URL.createObjectURL(uploadFile.raw);
console.log("图片上传成功", response, uploadFile);
- rechargeVoucher.value = `/hwjb/upload/${response.data}`;
+ rechargeVoucher.value = `http://39.99.159.73:20090/upload/${response.data}`;
console.log("图片名称", rechargeVoucher.value);
};
//批量充值确认按钮
@@ -709,9 +719,12 @@ const batchAdd = async function () {
console.log("batchData===", batchData.value);
- const result = await API.post("/hwjb/recharge/recharge/addmore", {
- ...batchData.value,
- });
+ const result = await API.post(
+ "http://39.99.159.73:20090/recharge/recharge/addmore",
+ {
+ ...batchData.value,
+ }
+ );
if (result.code === 0) {
ElMessage.error("添加失败");
@@ -756,7 +769,7 @@ const batchSettingInit = function () {
const batchSettingHandleAvatarSuccess = (response, uploadFile) => {
batchSettingObj.value.imageUrl = URL.createObjectURL(uploadFile.raw);
console.log("图片上传成功", response, uploadFile);
- batchSettingObj.value.rechargeVoucher = `/hwjb/upload/${response.data}`;
+ batchSettingObj.value.rechargeVoucher = `http://39.99.159.73:20090/upload/${response.data}`;
console.log("图片名称", batchSettingObj.value.rechargeVoucher);
};
// 批量设置取消按钮
@@ -862,14 +875,36 @@ onMounted(async function () {
批量充值
-