接口文件

前端根目录/api/index.js

调取方法 :

  1. 1). 在接口文件的 export default {} 方法中注册接口
  2. 如: export default{
  3. getthorderinfo(data) { //注册名为 getthorderinfo 的接口
  4. return post('apicloud/MemberOrder/thorderinfo', data)
  5. }
  6. }
  7. 2). 在需要使用的页面触发接口
  8. 如: this.$http.getthorderinfo(此处写入需要上传的数据).then(res => { // 调取名为 getthorderinfo 的接口
  9. console.log(res)
  10. // res为返回数据
  11. })

接口域名替换 :

全局替换掉以下文件中的原始域名 ( wosmart.s1107.com )
1). 前端根目录/api/config.js
2). 前端根目录/api/index.js
3). 前端根目录/pages/businessSon/chat.vue
4). 前端根目录/pages/homeSon/invite.vue
5). 前端根目录/pages/live/BroadcastLive.vue
6). 前端根目录/pages/live/AnchorSub.nvue
7). 前端根目录/pages/live/AudienceSub.nvue
8). 前端根目录/pagesB/personalSon/TradingType.vue
9). 前端根目录/pagesB/personalSon/myTeam.vue
10). 前端根目录/pagesB/seller/live.vue
11). 前端根目录/platforms/mp-weixin/live-pusher.vue
12). 前端根目录/platforms/mp-weixin/live-player.vue
13). 前端根目录//utils/socket.js
14). 前端根目录//main.js
15). 前端根目录/App.vue

(注意要全局搜索替换)

接口域名替换 :

搜索play.s110y.net,替换成你的拉流域名
搜索push.s110y.net,替换成你的推流域名