diff --git a/common/api.js b/common/api.js index ecc4462..346edbb 100644 --- a/common/api.js +++ b/common/api.js @@ -1,5 +1,20 @@ // appId: 正式 null | 测试 wxb35ef055a4dd8ad4 export const DEV = "dev"; // dev 测试 | prod 正式 export const VERSION = '1.0.0'; // 版本号 -export const DEVURL = 'https://gxsky.lanzulive.com'; // 测试服请求地址 +export const DEVURL = 'http://hainan.com'; // 测试服请求地址 export const PRODURL = ''; // 正式服请求地址 + + +export const API_WXLOGIN = '/api/login'; //登录 + + + +export const API_INDEX = '/api/index'; //首页 + + + + + +//系统 +export const API_ABOUTUS = '/api/agent_info/about'; //关于我们 +export const API_COLLECT_LIST = '/api/fav/list'; //收藏列表 diff --git a/common/http.interceptor.js b/common/http.interceptor.js index dbf0892..afdc05c 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -16,6 +16,7 @@ const install = (Vue, vm) => { // 请求前拦截, 现在不做拦截 Vue.prototype.$u.http.interceptor.request = config => { + console.log(config) return true; }; diff --git a/common/http.js b/common/http.js index 50b0f44..c59a91b 100644 --- a/common/http.js +++ b/common/http.js @@ -89,8 +89,12 @@ function $http(url, data = {}, options = {}){ that.$u.http.setConfig({showLoading: options.showLoading}); } + //商户id + options.appid = 'wx0e8ebcd9ca9e4b97' + + options.Authentication = 'c4ca4238a0b923820dcc509a6f75849b' // 发起请求 - that.$u.post(url, data).then(res => { + that.$u.post(url, data, options).then(res => { resolve(res); }).catch(err => { reject(err); diff --git a/components/lf-waterfall/lf-waterfall.vue b/components/lf-waterfall/lf-waterfall.vue index 34f0077..0b91423 100644 --- a/components/lf-waterfall/lf-waterfall.vue +++ b/components/lf-waterfall/lf-waterfall.vue @@ -3,34 +3,34 @@