Browse Source

正式服务器的后端地址修改

donghaolin-2
donghaolin 5 months ago
parent
commit
e65a75ce62
  1. 12
      gold-system/src/views/audit/rechargeAudit.vue
  2. 12
      gold-system/src/views/audit/refundAudit.vue
  3. 10
      gold-system/src/views/consume/addConsume.vue
  4. 11
      gold-system/src/views/consume/allConsume.vue
  5. 57
      gold-system/src/views/index.vue
  6. 2
      gold-system/src/views/login.vue
  7. 8
      gold-system/src/views/managerecharge/activity.vue
  8. 14
      gold-system/src/views/managerecharge/rate.vue
  9. 19
      gold-system/src/views/permissions/index.vue
  10. 28
      gold-system/src/views/recharge/addRecharge.vue
  11. 10
      gold-system/src/views/recharge/adminRecharge.vue
  12. 8
      gold-system/src/views/recharge/allRecharge.vue
  13. 10
      gold-system/src/views/refund/addRefund.vue
  14. 10
      gold-system/src/views/refund/allRefund.vue
  15. 8
      gold-system/src/views/usergold/index.vue
  16. 11
      gold-system/src/views/usergoldInfo/index.vue
  17. 14
      gold-system/src/views/workspace/index.vue

12
gold-system/src/views/audit/rechargeAudit.vue

@ -19,7 +19,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -122,7 +122,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/recharge",
"http://54.251.137.151:10702/recharge/recharge",
{ ...getObj.value, rechargeVo: { ...rechargeVo.value } } { ...getObj.value, rechargeVo: { ...rechargeVo.value } }
); );
@ -252,7 +252,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",
"http://54.251.137.151:10702/recharge/activity/select",
{} {}
); );
@ -271,7 +271,7 @@ const getArea = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/user/search",
"http://54.251.137.151:10702/recharge/user/search",
{} {}
); );
// //
@ -336,7 +336,7 @@ const passConfirm = async function () {
console.log("通过对象", passObj.value); console.log("通过对象", passObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/audit/audit/goldedit",
"http://54.251.137.151:10702/audit/audit/goldedit",
passObj.value passObj.value
); );
@ -383,7 +383,7 @@ const rejectConfirm = async function () {
console.log("驳回对象", rejectObj.value); console.log("驳回对象", rejectObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/audit/audit/goldedit",
"http://54.251.137.151:10702/audit/audit/goldedit",
rejectObj.value rejectObj.value
); );

12
gold-system/src/views/audit/refundAudit.vue

@ -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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -106,7 +106,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/audit/audit/refund",
"http://54.251.137.151:10702/audit/audit/refund",
{ ...getObj.value, detail: { ...detail.value } } { ...getObj.value, detail: { ...detail.value } }
); );
@ -234,7 +234,7 @@ const handleClick = function (tab, event) {
const getProduct = async function () { const getProduct = async function () {
try { try {
// POST // POST
const result = await API.post("http://39.99.159.73:20090/product", {});
const result = await API.post("http://54.251.137.151:10702/product", {});
// //
console.log("请求成功", result); console.log("请求成功", result);
@ -252,7 +252,7 @@ const getArea = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/user/search",
"http://54.251.137.151:10702/recharge/user/search",
{} {}
); );
// //
@ -314,7 +314,7 @@ const passConfirm = async function () {
console.log("通过对象", passObj.value); console.log("通过对象", passObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/audit/audit/edit",
"http://54.251.137.151:10702/audit/audit/edit",
passObj.value passObj.value
); );
@ -360,7 +360,7 @@ const rejectConfirm = async function () {
console.log("驳回对象", rejectObj.value); console.log("驳回对象", rejectObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/audit/audit/edit",
"http://54.251.137.151:10702/audit/audit/edit",
rejectObj.value rejectObj.value
); );

10
gold-system/src/views/consume/addConsume.vue

@ -14,7 +14,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -39,7 +39,7 @@ const add = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/consume/add",
"http://54.251.137.151:10702/consume/add",
addConsume.value addConsume.value
); );
if (result.code === 0) { if (result.code === 0) {
@ -137,7 +137,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("http://54.251.137.151:10702/recharge/user", {
jwcode: jwcode, jwcode: jwcode,
area: adminData.value.area, area: adminData.value.area,
}); });
@ -165,7 +165,7 @@ const goods = ref([]);
const getGoods = async function () { const getGoods = async function () {
try { try {
// POST // POST
const result = await API.post("http://39.99.159.73:20090/product", {});
const result = await API.post("http://54.251.137.151:10702/product", {});
// //
console.log("请求成功", result); console.log("请求成功", result);
@ -182,7 +182,7 @@ const userGold = ref({});
const getUserGold = async function (jwcode) { const getUserGold = 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("http://54.251.137.151:10702/recharge/user", {
jwcode: jwcode, jwcode: jwcode,
area: adminData.value.area, area: adminData.value.area,
}); });

11
gold-system/src/views/consume/allConsume.vue

@ -11,7 +11,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -100,10 +100,13 @@ const get = async function (val) {
} }
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://39.99.159.73:20090/consume/select", {
const result = await API.post(
"http://54.251.137.151:10702/consume/select",
{
...getObj.value, ...getObj.value,
consumeDetail: { ...detailVo.value }, consumeDetail: { ...detailVo.value },
});
}
);
// //
console.log("请求成功", result); console.log("请求成功", result);
@ -238,7 +241,7 @@ const goods = ref([]);
const getGoods = async function () { const getGoods = async function () {
try { try {
// POST // POST
const result = await API.post("http://39.99.159.73:20090/product", {});
const result = await API.post("http://54.251.137.151:10702/product", {});
// //
console.log("请求成功", result); console.log("请求成功", result);
// //

57
gold-system/src/views/index.vue

@ -19,13 +19,12 @@ 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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
console.log("请求成功", result); console.log("请求成功", result);
console.log("用户信息", adminData.value); console.log("用户信息", adminData.value);
} catch (error) { } catch (error) {
console.log("请求失败", error); console.log("请求失败", error);
} }
@ -59,7 +58,7 @@ onMounted(async function () {
<template> <template>
<div class="common-layout"> <div class="common-layout">
<el-container> <el-container>
<el-aside style="width: 15%; min-width: 180px;">
<el-aside style="width: 15%; min-width: 180px">
<div class="logo"> <div class="logo">
<img <img
src="../assets/金币管理系统logo.png" src="../assets/金币管理系统logo.png"
@ -77,14 +76,24 @@ onMounted(async function () {
@open="handleOpen" @open="handleOpen"
@close="handleClose" @close="handleClose"
> >
<el-menu-item index="/workspace" v-if="adminData.permission==1||adminData.permission==2||adminData.permission==3">
<el-menu-item
index="/workspace"
v-if="
adminData.permission == 1 ||
adminData.permission == 2 ||
adminData.permission == 3
"
>
<el-icon> <el-icon>
<Folder /> <Folder />
</el-icon> </el-icon>
工作台 工作台
</el-menu-item> </el-menu-item>
<el-sub-menu index="2" v-if="adminData.permission==1||adminData.permission==2">
<el-sub-menu
index="2"
v-if="adminData.permission == 1 || adminData.permission == 2"
>
<template #title> <template #title>
<el-icon> <el-icon>
<Folder /> <Folder />
@ -95,7 +104,10 @@ onMounted(async function () {
<el-menu-item index="/refundAudit">退款审核</el-menu-item> <el-menu-item index="/refundAudit">退款审核</el-menu-item>
</el-sub-menu> </el-sub-menu>
<el-sub-menu index="3" v-if="adminData.permission==1||adminData.permission==2">
<el-sub-menu
index="3"
v-if="adminData.permission == 1 || adminData.permission == 2"
>
<template #title> <template #title>
<el-icon> <el-icon>
<Folder /> <Folder />
@ -106,7 +118,10 @@ onMounted(async function () {
<el-menu-item index="/rate">汇率管理</el-menu-item> <el-menu-item index="/rate">汇率管理</el-menu-item>
</el-sub-menu> </el-sub-menu>
<el-sub-menu index="4" v-if="adminData.permission==1||adminData.permission==3">
<el-sub-menu
index="4"
v-if="adminData.permission == 1 || adminData.permission == 3"
>
<template #title> <template #title>
<el-icon> <el-icon>
<Folder /> <Folder />
@ -118,7 +133,10 @@ onMounted(async function () {
<el-menu-item index="/allRecharge">所有充值明细</el-menu-item> <el-menu-item index="/allRecharge">所有充值明细</el-menu-item>
</el-sub-menu> </el-sub-menu>
<el-sub-menu index="5" v-if="adminData.permission==1||adminData.permission==3">
<el-sub-menu
index="5"
v-if="adminData.permission == 1 || adminData.permission == 3"
>
<template #title> <template #title>
<el-icon> <el-icon>
<Folder /> <Folder />
@ -129,7 +147,10 @@ onMounted(async function () {
<el-menu-item index="/allConsume">所有消费明细</el-menu-item> <el-menu-item index="/allConsume">所有消费明细</el-menu-item>
</el-sub-menu> </el-sub-menu>
<el-sub-menu index="6" v-if="adminData.permission==1||adminData.permission==3">
<el-sub-menu
index="6"
v-if="adminData.permission == 1 || adminData.permission == 3"
>
<template #title> <template #title>
<el-icon> <el-icon>
<Folder /> <Folder />
@ -140,14 +161,28 @@ onMounted(async function () {
<el-menu-item index="/allRefund">退款明细</el-menu-item> <el-menu-item index="/allRefund">退款明细</el-menu-item>
</el-sub-menu> </el-sub-menu>
<el-menu-item index="/usergold" v-if="adminData.permission==1||adminData.permission==2||adminData.permission==3">
<el-menu-item
index="/usergold"
v-if="
adminData.permission == 1 ||
adminData.permission == 2 ||
adminData.permission == 3
"
>
<el-icon> <el-icon>
<Folder /> <Folder />
</el-icon> </el-icon>
客户金币明细 客户金币明细
</el-menu-item> </el-menu-item>
<el-menu-item index="/usergoldInfo" v-if="adminData.permission==1||adminData.permission==2||adminData.permission==3">
<el-menu-item
index="/usergoldInfo"
v-if="
adminData.permission == 1 ||
adminData.permission == 2 ||
adminData.permission == 3
"
>
<el-icon> <el-icon>
<Folder /> <Folder />
</el-icon> </el-icon>

2
gold-system/src/views/login.vue

@ -16,7 +16,7 @@ const form = ref({ jwcode: "", password: "", token: "" });
const login = async function () { const login = async function () {
try { try {
const result = await axios.post( const result = await axios.post(
"http://39.99.159.73:20090/admin/login",
"http://54.251.137.151:10702/admin/login",
form.value form.value
); );
if (result.data.code == 200) { if (result.data.code == 200) {

8
gold-system/src/views/managerecharge/activity.vue

@ -12,7 +12,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -75,7 +75,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/activity/select",
"http://54.251.137.151:10702/recharge/activity/select",
{ ...getObj.value, activity: { ...activity.value } } { ...getObj.value, activity: { ...activity.value } }
); );
@ -138,7 +138,7 @@ const add = async function () {
console.log("添加对象", addObj.value); console.log("添加对象", addObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/activity/add",
"http://54.251.137.151:10702/recharge/activity/add",
addObj.value addObj.value
); );
@ -193,7 +193,7 @@ const delConfirm = async function () {
console.log("delObj", delObj.value); console.log("delObj", delObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/activity/edit",
"http://54.251.137.151:10702/recharge/activity/edit",
delObj.value delObj.value
); );
// //

14
gold-system/src/views/managerecharge/rate.vue

@ -14,7 +14,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -74,7 +74,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://39.99.159.73:20090/rates/search", {
const result = await API.post("http://54.251.137.151:10702/rates/search", {
...getObj.value, ...getObj.value,
rate: { ...time.value }, rate: { ...time.value },
}); });
@ -120,7 +120,7 @@ const addRate = async function () {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/rates/add",
"http://54.251.137.151:10702/rates/add",
rateAdd.value rateAdd.value
); );
if (result.code == 0) { if (result.code == 0) {
@ -170,7 +170,7 @@ const getEditData = async function (row) {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/rates/searchById?rateId=" + row.rateId,
"http://54.251.137.151:10702/rates/searchById?rateId=" + row.rateId,
{} {}
); );
@ -205,7 +205,7 @@ const editRate = async function () {
console.log("搜索参数", rateEdit.value); console.log("搜索参数", rateEdit.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/rates/update",
"http://54.251.137.151:10702/rates/update",
rateEdit.value rateEdit.value
); );
// //
@ -232,7 +232,7 @@ const deleteRate = async function (row) {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/rates/delete/ " + row.rateId,
"http://54.251.137.151:10702/rates/delete/ " + row.rateId,
{} {}
); );
// //
@ -388,7 +388,7 @@ const delConfirm = async function (row) {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/rates/delete/ " + row.rateId,
"http://54.251.137.151:10702/rates/delete/ " + row.rateId,
{} {}
); );
// //

19
gold-system/src/views/permissions/index.vue

@ -45,7 +45,7 @@ const get = async function (val) {
} }
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://39.99.159.73:20090/admin/search", {
const result = await API.post("http://54.251.137.151:10702/admin/search", {
...getObj.value, ...getObj.value,
admin: { ...admin.value }, admin: { ...admin.value },
}); });
@ -69,7 +69,7 @@ const reset = function () {
// //
const getArea = async function () { const getArea = async function () {
try { try {
const result = await API.post("http://39.99.159.73:20090/admin/area", {});
const result = await API.post("http://54.251.137.151:10702/admin/area", {});
area.value = result.data; area.value = result.data;
} catch (error) { } catch (error) {
console.log("请求失败", error); console.log("请求失败", error);
@ -79,7 +79,10 @@ const getArea = async function () {
// //
const getStore = async function () { const getStore = async function () {
try { try {
const result = await API.post("http://39.99.159.73:20090/admin/store", {});
const result = await API.post(
"http://54.251.137.151:10702/admin/store",
{}
);
store.value = result.data; store.value = result.data;
} catch (error) { } catch (error) {
console.log("请求失败", error); console.log("请求失败", error);
@ -133,7 +136,7 @@ const permissionAddInit = function () {
const getAdminByJwcodeWithoutPermission = async function () { const getAdminByJwcodeWithoutPermission = async function () {
try { try {
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/admin/selectNo",
"http://54.251.137.151:10702/admin/selectNo",
permissionAddObj.value permissionAddObj.value
); );
if (result.code == 200) { if (result.code == 200) {
@ -170,7 +173,7 @@ const permissionAdd = async function () {
console.log("新增用户权限提交", permissionAddObj.value); console.log("新增用户权限提交", permissionAddObj.value);
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/admin/update",
"http://54.251.137.151:10702/admin/update",
permissionAddObj.value permissionAddObj.value
); );
@ -217,7 +220,7 @@ const permissionEditInit = function (row) {
const permissionEdit = async function () { const permissionEdit = async function () {
try { try {
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/admin/update",
"http://54.251.137.151:10702/admin/update",
permissionEditObj.value permissionEditObj.value
); );
@ -253,7 +256,7 @@ const delConfirm = async function () {
console.log(delObj.value); console.log(delObj.value);
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/admin/update",
"http://54.251.137.151:10702/admin/update",
delObj.value delObj.value
); );
@ -281,7 +284,7 @@ const editStatus = async function (row) {
console.log("修改用户权限状态", permissionEditObj.value); console.log("修改用户权限状态", permissionEditObj.value);
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/admin/update",
"http://54.251.137.151:10702/admin/update",
permissionEditObj.value permissionEditObj.value
); );

28
gold-system/src/views/recharge/addRecharge.vue

@ -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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -47,7 +47,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",
"http://54.251.137.151:10702/recharge/recharge/add",
addRecharge.value addRecharge.value
); );
if (result.code === 0) { if (result.code === 0) {
@ -129,7 +129,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("http://54.251.137.151:10702/recharge/user", {
jwcode: jwcode, jwcode: jwcode,
area: adminData.value.area, area: adminData.value.area,
}); });
@ -158,7 +158,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",
"http://54.251.137.151:10702/recharge/activity/select",
{ {
activity: { status: 1 }, activity: { status: 1 },
} }
@ -180,7 +180,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("http://54.251.137.151:10702/rates/status", {});
// //
console.log("货币请求成功", result); console.log("货币请求成功", result);
@ -198,7 +198,7 @@ const getCurrency = async function () {
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 = `http://54.251.137.151:10702/upload/${response.data}`;
console.log("图片名称", addRecharge.value.rechargeVoucher); console.log("图片名称", addRecharge.value.rechargeVoucher);
}; };
@ -235,7 +235,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",
"http://54.251.137.151:10702/recharge/activity/select",
{ {
activity: { activityId: row }, activity: { activityId: row },
} }
@ -294,7 +294,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",
"http://54.251.137.151:10702/recharge/user/jwcode",
{ jwcode: jwcode, area: adminData.value.area } { jwcode: jwcode, area: adminData.value.area }
); );
@ -637,7 +637,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 = `http://54.251.137.151:10702/upload/${response.data}`;
console.log("图片名称", rechargeVoucher.value); console.log("图片名称", rechargeVoucher.value);
}; };
// //
@ -720,7 +720,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",
"http://54.251.137.151:10702/recharge/recharge/addmore",
{ {
...batchData.value, ...batchData.value,
} }
@ -769,7 +769,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 = `http://54.251.137.151:10702/upload/${response.data}`;
console.log("图片名称", batchSettingObj.value.rechargeVoucher); console.log("图片名称", batchSettingObj.value.rechargeVoucher);
}; };
// //
@ -957,7 +957,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="http://54.251.137.151:10702/upload"
class="avatar-uploader" class="avatar-uploader"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
@ -1282,7 +1282,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="http://54.251.137.151:10702/upload"
class="avatar-uploader" class="avatar-uploader"
:show-file-list="false" :show-file-list="false"
:on-success="handleBatchAvatarSuccess" :on-success="handleBatchAvatarSuccess"
@ -1447,7 +1447,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="http://54.251.137.151:10702/upload"
class="avatar-uploader" class="avatar-uploader"
:show-file-list="false" :show-file-list="false"
:on-success="batchSettingHandleAvatarSuccess" :on-success="batchSettingHandleAvatarSuccess"

10
gold-system/src/views/recharge/adminRecharge.vue

@ -11,7 +11,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -109,7 +109,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/recharge",
"http://54.251.137.151:10702/recharge/recharge",
{ ...getObj.value, rechargeVo: { ...rechargeVo.value } } { ...getObj.value, rechargeVo: { ...rechargeVo.value } }
); );
@ -237,7 +237,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",
"http://54.251.137.151:10702/recharge/activity/select",
{} {}
); );
@ -257,7 +257,7 @@ const getArea = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/user/search",
"http://54.251.137.151:10702/recharge/user/search",
{} {}
); );
// //
@ -281,7 +281,7 @@ const delConfirm = async function () {
try { try {
console.log("delObj2", delObj.value); console.log("delObj2", delObj.value);
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/recharge/edit",
"http://54.251.137.151:10702/recharge/recharge/edit",
delObj.value delObj.value
); );
console.log("删除成功", result); console.log("删除成功", result);

8
gold-system/src/views/recharge/allRecharge.vue

@ -12,7 +12,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -105,7 +105,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/recharge",
"http://54.251.137.151:10702/recharge/recharge",
{ ...getObj.value, rechargeVo: { ...rechargeVo.value } } { ...getObj.value, rechargeVo: { ...rechargeVo.value } }
); );
@ -233,7 +233,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",
"http://54.251.137.151:10702/recharge/activity/select",
{} {}
); );
@ -253,7 +253,7 @@ const getArea = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/user/search",
"http://54.251.137.151:10702/recharge/user/search",
{} {}
); );
// //

10
gold-system/src/views/refund/addRefund.vue

@ -17,7 +17,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -55,7 +55,7 @@ const add = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/refund/add",
"http://54.251.137.151:10702/refund/add",
addRefund.value addRefund.value
); );
if (result.code === 0) { if (result.code === 0) {
@ -142,7 +142,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("http://54.251.137.151:10702/recharge/user", {
jwcode: jwcode, jwcode: jwcode,
area: adminData.value.area, area: adminData.value.area,
}); });
@ -200,7 +200,7 @@ const getGoods = async function (jwcode) {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/consume/getDeatil",
"http://54.251.137.151:10702/consume/getDeatil",
{ jwcode: jwcode, area: adminData.value.area } { jwcode: jwcode, area: adminData.value.area }
); );
console.log("请求成功", result); console.log("请求成功", result);
@ -241,7 +241,7 @@ const getProductByOrderCode = async function (item) {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/refund/searchByOrderCode?orderCode=" + item,
"http://54.251.137.151:10702/refund/searchByOrderCode?orderCode=" + item,
{} {}
); );
addRefund.value.contactId = result.data.detailyId; addRefund.value.contactId = result.data.detailyId;

10
gold-system/src/views/refund/allRefund.vue

@ -12,7 +12,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -86,7 +86,7 @@ const get = async function (val) {
} }
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://39.99.159.73:20090/refund/search", {
const result = await API.post("http://54.251.137.151:10702/refund/search", {
...getObj.value, ...getObj.value,
detail: { ...detail.value }, detail: { ...detail.value },
}); });
@ -216,7 +216,7 @@ const getArea = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/recharge/user/search",
"http://54.251.137.151:10702/recharge/user/search",
{} {}
); );
// //
@ -242,7 +242,7 @@ const delConfirm = async function () {
console.log("delObj", delObj.value); console.log("delObj", delObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/refund/softDelete?detailId=" +
"http://54.251.137.151:10702/refund/softDelete?detailId=" +
delObj.value.detailId, delObj.value.detailId,
{} {}
); );
@ -261,7 +261,7 @@ const goods = ref([]);
const getGoods = async function () { const getGoods = async function () {
try { try {
// POST // POST
const result = await API.post("http://39.99.159.73:20090/product", {});
const result = await API.post("http://54.251.137.151:10702/product", {});
// //
console.log("请求成功", result); console.log("请求成功", result);
// //

8
gold-system/src/views/usergold/index.vue

@ -13,7 +13,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -98,11 +98,11 @@ const get = async function (val) {
} }
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://39.99.159.73:20090/detailY", {
const result = await API.post("http://54.251.137.151:10702/detailY", {
...getObj.value, ...getObj.value,
detailY: { ...detailY.value }, detailY: { ...detailY.value },
}); });
const result2 = await API.post("http://39.99.159.73:20090/detailY", {
const result2 = await API.post("http://54.251.137.151:10702/detailY", {
...getAllObj.value, ...getAllObj.value,
detailY: { ...detailY.value }, detailY: { ...detailY.value },
}); });
@ -293,7 +293,7 @@ const areyour = async function () {
try { try {
loading.value = true; loading.value = true;
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/detailY/searchAll",
"http://54.251.137.151:10702/detailY/searchAll",
{ ...putExcel.value } { ...putExcel.value }
); );
excelInfo.value = result.data; excelInfo.value = result.data;

11
gold-system/src/views/usergoldInfo/index.vue

@ -13,7 +13,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",
"http://54.251.137.151:10702/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -92,11 +92,14 @@ const get = async function (val) {
} }
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://39.99.159.73:20090/detailY/select", {
const result = await API.post(
"http://54.251.137.151:10702/detailY/select",
{
...getObj.value, ...getObj.value,
detailYgold: { ...detailY.value }, detailYgold: { ...detailY.value },
});
// const result2 = await API.post("http://39.99.159.73:20090/detailY/select", {
}
);
// const result2 = await API.post("http://54.251.137.151:10702/detailY/select", {
// ...getAllObj.value, // ...getAllObj.value,
// detailY: { ...detailY.value }, // detailY: { ...detailY.value },
// }); // });

14
gold-system/src/views/workspace/index.vue

@ -90,19 +90,19 @@ const get = async function () {
getMiddleBar(); getMiddleBar();
// POST // POST
const result1 = await API.post( const result1 = await API.post(
"http://39.99.159.73:20090/statistics/getSumCoin",
"http://54.251.137.151:10702/statistics/getSumCoin",
{} {}
); );
const result2 = await API.post( const result2 = await API.post(
"http://39.99.159.73:20090/statistics/a",
"http://54.251.137.151:10702/statistics/a",
{} {}
); );
const result3 = await API.post( const result3 = await API.post(
"http://39.99.159.73:20090/statistics/getYearConsumeCoin",
"http://54.251.137.151:10702/statistics/getYearConsumeCoin",
{} {}
); );
const result4 = await API.post( const result4 = await API.post(
"http://39.99.159.73:20090/statistics/getDayConsumeCoin",
"http://54.251.137.151:10702/statistics/getDayConsumeCoin",
{} {}
); );
// const result5 = await API.post( // const result5 = await API.post(
@ -123,7 +123,7 @@ const get = async function () {
// {} // {}
// ); // );
const result9 = await API.post( const result9 = await API.post(
"http://39.99.159.73:20090/statistics/b",
"http://54.251.137.151:10702/statistics/b",
{} {}
); );
@ -368,7 +368,7 @@ const get = async function () {
// //
const getMiddleBar = async function () { const getMiddleBar = async function () {
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/statistics/getCoinTime",
"http://54.251.137.151:10702/statistics/getCoinTime",
getMiddleBarObj.value getMiddleBarObj.value
); );
@ -570,7 +570,7 @@ const getMiddleBar = async function () {
// //
const getAreaRank = async function () { const getAreaRank = async function () {
const result = await API.post( const result = await API.post(
"http://39.99.159.73:20090/statistics/getMee",
"http://54.251.137.151:10702/statistics/getMee",
getAreaRankObj.value getAreaRankObj.value
); );

Loading…
Cancel
Save