export default {
    /**
     * 判断微信app是否已安装
     */
    setISExistWeixinApp: (state, flag) => {
        state.iSExistWeixinApp = flag
    },

    /**
     * 登录状态
     */
    changeLoginStatus: (state, flag) => {
        state.isLogin = flag
    },

    /**
     * 用户的临时数据
     */
    setTmpData: (state, json) => {
        state.tmpData = json
    },

    /**
     * 临时token
     */
    setTmpToken: (state, data) => {
        state.tmpToken = data
    },

    /**
     * 保存用户信息
     */
    saveSelfInfo: (state, json) => {
        state.selfInfo = json
    },

    /**
     * 保存服务信息
     */
    saveCms: (state, json) => {
        state.cms = json
    }
}