import reComputedShopCar from '@/utils/reComputedShopCar.js'
export default {
    /**
     * 保存购物车信息
     */
    saveCartList: (state, arr) => {
        state.list = arr
        reComputedShopCar(state.list)
    },

    /**
     * 保存购物车数量
     */
    saveCartCount: (state, count) => {
        state.count = count
    },

    /**
     * 是否重载购物车
     */
    cartNeedReload: (state, boo) => {
        state.cartNeedReload = boo
    },

    /**
     * 更新备注
     */
    updateBuyerNote: (state, str) => {
        state.buyerNote = str
    }
}