Browse Source

fix 接口请求地址

zhangyinghao 1 year ago
parent
commit
fce41f6879

+ 1 - 1
src/api/request.js

@@ -4,7 +4,7 @@ import "nprogress/nprogress.css";
 import popmessage from "@/components/tip/index.js";
 import popmessage from "@/components/tip/index.js";
 
 
 const requests = axios.create({
 const requests = axios.create({
-  baseURL: "http://jzmanagerweb.aiyangniu.net",
+  baseURL: "http://jzuserweb.aiyangniu.net",
   timeout: 25000,
   timeout: 25000,
 });
 });
 
 

+ 1 - 1
src/main.js

@@ -11,7 +11,7 @@ import "element-plus/theme-chalk/index.css";
 import locale from "element-plus/lib/locale/lang/zh-cn";
 import locale from "element-plus/lib/locale/lang/zh-cn";
 
 
 import * as ElIcon from "@element-plus/icons-vue";
 import * as ElIcon from "@element-plus/icons-vue";
-axios.defaults.baseURL = "http://jzmanagerweb.aiyangniu.net";
+axios.defaults.baseURL = "http://jzuserweb.aiyangniu.net";
 const app = createApp(App);
 const app = createApp(App);
 app
 app
   .use(store)
   .use(store)

+ 1 - 1
src/views/BossPerCent/PerRight/MyOrder/index.vue

@@ -158,7 +158,7 @@ export default {
           if (response.data.code === 200) {
           if (response.data.code === 200) {
             const payNo = response.data.data
             const payNo = response.data.data
             const url =
             const url =
-              "http://jzmanagerweb.aiyangniu.net/user/pay/requestPay?payNo=" +
+              "http://jzuserweb.aiyangniu.net/user/pay/requestPay?payNo=" +
               payNo;
               payNo;
             window.open(url);
             window.open(url);
             this.$router.go(0)
             this.$router.go(0)

+ 1 - 1
src/views/Search/ConfirmOrder/index.vue

@@ -107,7 +107,7 @@ export default {
         generatePayCode(parmas).then((response) => {
         generatePayCode(parmas).then((response) => {
           if (response.data.code === 200) {
           if (response.data.code === 200) {
             const url =
             const url =
-              "http://jzmanagerweb.aiyangniu.net/user/pay/requestPay?payNo=" +
+              "http://jzuserweb.aiyangniu.net/user/pay/requestPay?payNo=" +
               response.data.data.payNo;
               response.data.data.payNo;
             window.open(url);
             window.open(url);
             this.$router.go(-1)
             this.$router.go(-1)