From 7e71f97e01545849db10a98db1359b4e80b08349 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Fri, 19 Jun 2020 18:07:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/shop.js | 4 ++ common/api/user.js | 15 +++++- common/http.interceptor.js | 4 +- components/mine/article-list/index.vue | 18 ++++--- components/shop/shop-item/index.vue | 5 +- pageC/cart/index.vue | 11 ++++ pageE/mine/ArticleDetails.vue | 17 ++++++ pageE/mine/UpdatePhone.vue | 45 ++++++++++------ pageE/more/AfterSalesHelp.vue | 21 ++++++-- pageE/more/MineHelp.vue | 22 ++++++-- pageE/order/Index.vue | 73 +++++++++++++++++++------- pages/shop/index.vue | 2 +- 12 files changed, 182 insertions(+), 55 deletions(-) diff --git a/common/api/shop.js b/common/api/shop.js index 325b012..df760ba 100644 --- a/common/api/shop.js +++ b/common/api/shop.js @@ -6,6 +6,10 @@ export default { return vm.$u.post('Goods/getGoodsRecommend', { page: page }); + }, + // 购物车商品列表 + getCartList() { + return vm.$u.post('cart/cartList'); } } } diff --git a/common/api/user.js b/common/api/user.js index 6c60a7e..2d2a5b9 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -54,7 +54,20 @@ export default { member_mobile: member_mobile, sms_code: sms_code }); - } + }, + // 使用帮助&售后政策列表 + getUseHelpList({page, tid}) { + return vm.$u.post('Member/UseHelpList', { + page: page, + tid: tid + }); + }, + // 使用帮助&售后政策详情 + getUseHelpInfo({ launch_id }) { + return vm.$u.post('Member/UseHelpInfo', { + launch_id: launch_id + }); + }, } } } \ No newline at end of file diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 0d9d5f9..82c41a7 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -23,7 +23,9 @@ const install = (Vue, vm) => { // 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的 // 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值 const token = uni.getStorageSync('token'); - config.header.token = token; + // console.log(token); + // config.header.token = token; + config.header.Authorization = token; // config.header.Token = 'xxxxxx'; // 可以对某个url进行特别处理,此url参数为this.$u.get(url)中的url值 diff --git a/components/mine/article-list/index.vue b/components/mine/article-list/index.vue index f24b391..52c72c4 100644 --- a/components/mine/article-list/index.vue +++ b/components/mine/article-list/index.vue @@ -1,7 +1,7 @@