1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- const auth = {
- setId(id){
- uni.setStorageSync("id",id)
- },
- getId(){
- return uni.getStorageSync("id")
- },
-
- setName(name){
- uni.setStorageSync("name",name)
- },
- getName(){
- return uni.getStorageSync("name")
- },
-
- setToken(token){
- uni.setStorageSync("token",token)
- },
- getToken(){
- return uni.getStorageSync("token")
- },
- removeToken(){
- uni.removeStorageSync("token")
- },
-
- setNick(nick){
- uni.setStorageSync("nick",nick)
- },
- getNick(){
- return uni.getStorageSync("nick")
- },
-
- setAccount(account){
- uni.setStorageSync("account",account)
- },
- getAccount(){
- return uni.getStorageSync("account")
- },
-
- setPhone(phone){
- uni.setStorageSync("phone",phone)
- },
- getPhone(){
- return uni.getStorageSync("phone")
- },
-
- setEmail(email){
- uni.setStorageSync("email",email)
- },
- getEmail(){
- return uni.getStorageSync("email")
- },
-
- setAvatar(avatar){
- uni.setStorageSync("avatar",avatar)
- },
- getAvatar(){
- return uni.getStorageSync("avatar")
- },
- }
- export default auth
|