|
|
@@ -456,6 +456,17 @@ export const actions = {
|
|
|
}, (err) => {
|
|
|
commit('count/GET_INQUIRYSHEET_FAILURE', err)
|
|
|
})
|
|
|
+ },
|
|
|
+ // 保存微信信息
|
|
|
+ GerWechatInfo({ commit }, params = {}) {
|
|
|
+ commit('option/REQUEST_WECHATINFO_STATUS')
|
|
|
+ return axios.get('/wx/getWxUserInfo', { params: params })
|
|
|
+ .then(response => {
|
|
|
+ commit('option/REQUEST_WECHATINFO_STATUS_SUCCESS', response.data)
|
|
|
+ localStorage.setItem('USOFTMALLWECHATINFO', JSON.stringify(response.data))
|
|
|
+ }, err => {
|
|
|
+ commit('option/REQUEST_WECHATINFO_STATUS_FAILURE', err)
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|