|
@@ -4,6 +4,7 @@ import api from '@/common/api.js'
|
|
|
Vue.use(Vuex);
|
|
|
const store = new Vuex.Store({
|
|
|
state: {
|
|
|
+ hideBuyState:true, //是否隐藏购买流程和订单列表
|
|
|
login: true,
|
|
|
token: '',
|
|
|
avatarUrl: '',
|
|
@@ -63,6 +64,9 @@ const store = new Vuex.Store({
|
|
|
goodsAuditionConfigIdList: state => {
|
|
|
return state.goodsAuditionConfigIdList
|
|
|
},
|
|
|
+ hideBuyState: state => {
|
|
|
+ return state.hideBuyState
|
|
|
+ },
|
|
|
shoppingCartList: state => {
|
|
|
return state.shoppingCartList
|
|
|
},
|
|
@@ -151,6 +155,12 @@ const store = new Vuex.Store({
|
|
|
resolve()
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ async appCommonConfig(context) {
|
|
|
+ const resdata = await api.appCommonConfig()
|
|
|
+ if (resdata.data.code == 200) {
|
|
|
+ context.state.hideBuyState = resdata.data.data.hide;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|