From ac7a12e33b64f713f80015083b2169d5011d10e1 Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Fri, 23 Jul 2021 18:06:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=8E=A5=E5=8F=A3=20?= =?UTF-8?q?=E5=85=B3=E4=BA=8E=E6=88=91=E4=BB=AC=E6=8E=A5=E5=8F=A3=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api.js | 17 +++++++++- common/http.interceptor.js | 1 + common/http.js | 6 +++- components/lf-waterfall/lf-waterfall.vue | 16 +++++----- manifest.json | 4 +-- pages/about/index.vue | 6 ++-- pages/collect/index.vue | 25 ++++++++------- pages/index/index.vue | 40 ++++++++++++++++-------- 8 files changed, 75 insertions(+), 40 deletions(-) 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 @@