|
@@ -62,27 +62,25 @@
|
|
|
} from 'vuex'
|
|
|
export default {
|
|
|
components: {
|
|
|
- uniPopup,uniPopupDialog
|
|
|
+ uniPopup,
|
|
|
+ uniPopupDialog
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
title:'',
|
|
|
- avatarUrl:""
|
|
|
+ avatarUrl:"",
|
|
|
+ userInfo: null
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['hasLogin']),
|
|
|
- userInfo(){
|
|
|
- return this.$store.state.vuex_userInfo
|
|
|
- },
|
|
|
shelfInfo(){
|
|
|
return this.$store.state.vuex_storeShelf
|
|
|
},
|
|
|
},
|
|
|
onShow() {
|
|
|
- //检测是否登录
|
|
|
- this.$store.dispatch('checkLogin');
|
|
|
this.avatarUrl = this.$store.state.vuex_userPhoto || uni.getStorageSync('userPhoto');
|
|
|
+ this.userInfo = this.$store.state.vuex_userInfo
|
|
|
},
|
|
|
methods: {
|
|
|
onChooseAvatar(e) {
|