forked from useryangtao/vue-wechat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
056c230
commit 01aa278
Showing
8 changed files
with
33 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
// import { } from '../mutation-types' | ||
import { PERSON_INFO, CONTACT_FRIENDS, FRIEND_ID } from '../mutation-types' | ||
let state = { | ||
person_info:{ | ||
base:{} | ||
person_info: { | ||
base: {} | ||
}, | ||
contact_friends:[] | ||
contact_friends: [] | ||
} | ||
const mutations = { | ||
['PERSON_INFO'](state,infoObj){ | ||
[PERSON_INFO](state, infoObj) { | ||
state.person_info = infoObj | ||
}, | ||
['CONTACT_FRIENDS'](state,arr){ | ||
[CONTACT_FRIENDS](state, arr) { | ||
state.contact_friends = arr; | ||
}, | ||
['FRIEND_ID'](state,id){ | ||
[FRIEND_ID](state, id) { | ||
|
||
} | ||
} | ||
|
||
export default { | ||
state, | ||
mutations | ||
} | ||
state, | ||
mutations | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
export const SET_MENU = 'SET_MENU' | ||
export const SET_MENU_ACTIVE = 'SET_MENU_ACTIVE' | ||
export const BACK_PATH = 'BACK_PATH' | ||
//chat | ||
|
||
//chat | ||
export const SET_MENU_WECHAT_LIST = 'SET_MENU_WECHAT_LIST' | ||
export const CHAT = 'CHAT' | ||
export const SET_CHAT_COUNT = 'SET_CHAT_COUNT' | ||
export const SET_NEWS_STATE = 'SET_NEWS_STATE' | ||
|
||
export const DELETE_NEWS = 'DELETE_NEWS' | ||
|
||
//contact | ||
export const PERSON_INFO = 'PERSON_INFO' | ||
export const CONTACT_FRIENDS = 'CONTACT_FRIENDS' | ||
export const FRIEND_ID = 'FRIEND_ID' |