bobo před 3 roky
rodič
revize
a7affb7675
2 změnil soubory, kde provedl 10 přidání a 2 odebrání
  1. 8 0
      api/welfareMall.js
  2. 2 2
      utils/request.js

+ 8 - 0
api/welfareMall.js

@@ -95,6 +95,14 @@ class WelfareMall extends request {
    * 获取首页信息
    */
   static getIndexList(params ={}) {
+    this.postRequest(`${this.BASE_URL}open/statistics/record-app-visit-log`, {
+      module: 'signin',
+      action: 'visit',
+      source: 'WX_MINI_APP',
+      path: '/xx'
+
+    }).then(_ => {});
+
     return this.postRequest(`${this.BASE_URL}open/welfare-mall/homepage-data`, params);
   }
 

+ 2 - 2
utils/request.js

@@ -2,11 +2,11 @@ import util, { isFunc } from './util.js'
 class request {
 
     //本地的
-//    static BASE_URL = 'http://localhost:8014/'
+    static BASE_URL = 'http://localhost:8014/'
 //   pre环境的
 //   static BASE_URL = 'https://oapi.shpr.top/'
 //   正式的
-  static BASE_URL = 'https://vapi.hsayi.com/'
+  // static BASE_URL = 'https://vapi.hsayi.com/'
 //   @todo需要修改正式的域名
 
   static HEAD = {