diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4e7a33a..0428bb2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,442 +1,444 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.title}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.name}}
-
- ¥{{item.price}}
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/product/product.vue b/pages/product/product.vue
index 272abb3..9201975 100644
--- a/pages/product/product.vue
+++ b/pages/product/product.vue
@@ -1,1560 +1,1580 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ¥
- {{product.price}}
- ¥{{product.originalPrice}}
-
-
- {{product.name}}
- {{product.subTitle}}
-
-
-
-
-
-
-
-
-
- 购买类型
-
-
- {{sItem.name}}
-
-
-
-
-
- 商品参数
-
- 查看
-
-
-
-
- 优惠券
- 领取优惠券
-
-
-
- 促销活动
-
- {{item}}
-
-
-
- 服务
-
- {{item}} ·
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{brand.name}}
- 品牌首字母:{{brand.firstLetter}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.name}}
- 有效期至{{item.endTime | formatDateTime}}
-
-
- {{item.amount}}
- 满{{item.minPoint}}可用
-
-
-
-
-
- {{item.useType | formatCouponUseType}}
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/public/login.vue b/pages/public/login.vue
index cf2050c..1526fbc 100644
--- a/pages/public/login.vue
+++ b/pages/public/login.vue
@@ -72,7 +72,7 @@
// 是否同意隐私策略
isRead: false,
// 是否显示验证码输入
- isShowCode: true,
+ isShowCode: false,
// 登录中禁用按钮
isLogining: false,
// 传给验证码输入组件
diff --git a/utils/requestUtil.js b/utils/requestUtil.js
index 5b60bfd..9b1ae31 100644
--- a/utils/requestUtil.js
+++ b/utils/requestUtil.js
@@ -3,6 +3,7 @@ import {
API_BASE_URL,
API_USER_URL,
} from '@/utils/appConfig.js';
+import store from '@/store/index.js';
const http = new Request()
@@ -58,7 +59,7 @@ http.interceptor.response((response) => {
uni.showToast({
title: res.message,
duration: 1500,
- icon: 'error'
+ icon: 'none'
})
//401未登录处理
if (res.code === 401) {
@@ -77,7 +78,7 @@ http.interceptor.response((response) => {
}
}
});
- uni.setStorageSync('token', '')
+ store.commit('logout')
}
return Promise.reject(response);
} else {