个人中心

This commit is contained in:
2020-06-19 18:07:11 +08:00
parent f0244f8077
commit 7e71f97e01
12 changed files with 182 additions and 55 deletions

View File

@@ -6,6 +6,10 @@ export default {
return vm.$u.post('Goods/getGoodsRecommend', {
page: page
});
},
// 购物车商品列表
getCartList() {
return vm.$u.post('cart/cartList');
}
}
}

View File

@@ -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
});
},
}
}
}

View File

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