商品详情.评价页面.购物车页面.首页轮播图.搜索功能.分类接口

This commit is contained in:
落日晚风
2023-10-31 17:41:57 +08:00
parent 6a327ac0e7
commit f4c1b30f2e
14 changed files with 496 additions and 470 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ const http = new Request({
*/
http.interceptors.request.use(
(config) => {
console.log(config);
// console.log(config);
if (config.custom.auth && !$store('user').isLogin) {
showAuthModal();
return Promise.reject();
@@ -110,7 +110,7 @@ http.interceptors.response.use(
}
response.config.custom.showLoading && closeLoading();
if (response.data.error !== 0) {
if (response.data.code !== 0) {
if (response.config.custom.showError)
uni.showToast({
title: response.data.msg || '服务器开小差啦,请稍后再试~',