1、购买选择规格属性点不了
2、购物车列表点击管理 点击收藏功能去掉 3、下单点击积分抵扣没反应 4、待收货 列表查看物流点击没反应,详情查看物流可以点 5、添加地址选择地区无效 6、个人中心我的余额点进去点击账单记录一直正在加载中,点击下全部就出来了,应该你没带默认参数 8、订单点击评价没反应 9、小程序订单核销没上 你那边先根据路径判断隐藏下 10、我的推广,里面样式有问题,点击海报里面空白 11、分类点击 会分类Tab页分类一级比一级低 12、拼团详情客服功能隐藏去掉,其他地方有客服功能的都去掉
This commit is contained in:
@ -4,7 +4,7 @@ import Vuex from "vuex";
|
||||
Vue.use(Vuex);
|
||||
const debug = process.env.NODE_ENV !== "production";
|
||||
|
||||
import store from "@/utils/store/cookie";
|
||||
import cookie from "@/utils/store/cookie";
|
||||
import {
|
||||
getUserInfo
|
||||
} from "@/api/user";
|
||||
@ -18,8 +18,9 @@ const vuexStore = new Vuex.Store({
|
||||
isAuthorizationPage: false,
|
||||
// 是否授权
|
||||
isAuthorization: false,
|
||||
token: store.get(LOGIN_KEY) || null,
|
||||
userInfo: store.get('userInfo'),
|
||||
// 不建议从这里取 token,但是删除掉会影响其他的页面
|
||||
token: cookie.get(LOGIN_KEY) || null,
|
||||
userInfo: cookie.get('userInfo'),
|
||||
$deviceType: null,
|
||||
},
|
||||
mutations: {
|
||||
@ -46,12 +47,12 @@ const vuexStore = new Vuex.Store({
|
||||
},
|
||||
LOGIN(state, token, expires_time) {
|
||||
state.token = token;
|
||||
store.set(LOGIN_KEY, token, expires_time);
|
||||
cookie.set(LOGIN_KEY, token, expires_time);
|
||||
},
|
||||
LOGOUT(state) {
|
||||
state.token = null;
|
||||
state.userInfo = null
|
||||
store.clearAll()
|
||||
cookie.clearAll()
|
||||
},
|
||||
BACKGROUND_COLOR(state, color) {
|
||||
state.color = color;
|
||||
@ -99,9 +100,9 @@ const vuexStore = new Vuex.Store({
|
||||
}, user) {
|
||||
commit("UPDATE_USERINFO", user);
|
||||
if (user) {
|
||||
store.set('userInfo', user)
|
||||
cookie.set('userInfo', user)
|
||||
} else {
|
||||
store.set('userInfo', null)
|
||||
cookie.set('userInfo', null)
|
||||
}
|
||||
},
|
||||
changeAuthorizationPage({
|
||||
@ -127,4 +128,4 @@ const vuexStore = new Vuex.Store({
|
||||
strict: debug
|
||||
});
|
||||
|
||||
export default vuexStore
|
||||
export default vuexStore
|
||||
|
Reference in New Issue
Block a user