Răsfoiți Sursa

fix:接口域名统一更换

zhubo 2 ani în urmă
părinte
comite
3e2703ecf0
3 a modificat fișierele cu 5 adăugiri și 32 ștergeri
  1. 1 29
      README.md
  2. 2 1
      src/pages/invitePage/index.vue
  3. 2 2
      src/utils/config.js

+ 1 - 29
README.md

@@ -1,29 +1 @@
-# uni-template
-
-## Project setup
-```
-npm install
-```
-
-### Compiles and hot-reloads for development
-```
-npm run serve
-```
-
-### Compiles and minifies for production
-```
-npm run build
-```
-
-### Run your tests
-```
-npm run test
-```
-
-### Lints and fixes files
-```
-npm run lint
-```
-
-### Customize configuration
-See [Configuration Reference](https://cli.vuejs.org/config/).
+### invitePage页面里打开的webview地址是来自h5-singlePage项目中的agent模块

+ 2 - 1
src/pages/invitePage/index.vue

@@ -13,7 +13,8 @@ export default {
     console.log(userInfo, "userInfouserInfo");
     const customParam = encodeURIComponent(JSON.stringify(userInfo));
     const timestamp = new Date().getTime();
-    this.URL = `https://api.zaojiao.net/agentQrcode/#/agent?customParam=${customParam}&timestamp=${timestamp}`;
+
+    this.URL = `https://luojigou.vip/singlepage/#/agent?customParam=${customParam}&timestamp=${timestamp}`;
     console.log(this.URL, "URL");
     // this.URL = `http://localhost:8081/#/agent?customParam=${customParam}&timestamp=${timestamp}`
   },

+ 2 - 2
src/utils/config.js

@@ -3,10 +3,10 @@ let BASEURL = ""
 if(process.env.NODE_ENV === 'development'){
     // 开发环境
     // BASEURL = 'http://agentminiprogram.test.luojigou.vip:8899'
-    BASEURL = 'https://api.zaojiao.net'
+    BASEURL = 'https://open.api.luojigou.vip'
 }else{
     // 生产环境
-    BASEURL = 'https://api.zaojiao.net'
+    BASEURL = 'https://open.api.luojigou.vip'
     // BASEURL = 'http://agentminiprogram.test.luojigou.vip:8899'
 }