完善商品数据提交
This commit is contained in:
@ -6,4 +6,5 @@ export default {
|
||||
inviteCode: state => state.app.userInfo.distribution_code || "",
|
||||
appConfig: state => state.app.config,
|
||||
cityInfo: state => state.city.cityInfo,
|
||||
buyGoods: state => state.goods.buyGoods,
|
||||
};
|
||||
15
store/modules/goods.js
Normal file
15
store/modules/goods.js
Normal file
@ -0,0 +1,15 @@
|
||||
const state = {
|
||||
buyGoods: []
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
// 设置下单购买时候需要结算的商品
|
||||
setBuyGoods(state, data) {
|
||||
state.buyGoods = data
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
state,
|
||||
mutations
|
||||
};
|
||||
@ -1,7 +1,9 @@
|
||||
import app from "./app";
|
||||
import city from "./city";
|
||||
import goods from "./goods";
|
||||
|
||||
export default {
|
||||
app,
|
||||
city
|
||||
city,
|
||||
goods
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user