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 @@