This commit is contained in:
yanran200730
2022-05-27 15:27:07 +08:00
parent 167c1585f1
commit 4ad477da2b
2 changed files with 6 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
<div class="userinfo"> <div class="userinfo">
<image src="https://pica.zhimg.com/v2-abed1a8c04700ba7d72b45195223e0ff_is.jpg?source=32738c0c" /> <image src="https://pica.zhimg.com/v2-abed1a8c04700ba7d72b45195223e0ff_is.jpg?source=32738c0c" />
<div class="right"> <div class="right">
<h2><AiOpenData v-if="userInfo.wxOpenUserId" type="userName" :openid="userInfo.wxOpenUserId"></AiOpenData></h2> <h2><AiOpenData v-if="user.wxOpenUserId" type="userName" :openid="user.wxOpenUserId"></AiOpenData></h2>
<p>欢迎使用乡村相册</p> <p>欢迎使用乡村相册</p>
</div> </div>
</div> </div>
@@ -64,7 +64,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="item item-add" @click="linkTo('./AddAlbum')"> <div class="item item-add" @click="linkTo('./AddAlbum')" v-if="user && user.adminAuthType === '1'">
<div class="item-add__btn"></div> <div class="item-add__btn"></div>
<p>添加相册</p> <p>添加相册</p>
</div> </div>
@@ -74,6 +74,7 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex'
export default { export default {
name: 'Home', name: 'Home',
@@ -86,8 +87,10 @@
userInfo: {} userInfo: {}
} }
}, },
computed: { ...mapState(['user']) },
mounted () { mounted () {
console.log(this.user.adminAuthType)
this.getCountPhotoNo() this.getCountPhotoNo()
this.getAlbumList() this.getAlbumList()
this.getMsgList() this.getMsgList()

View File

@@ -13,7 +13,7 @@
import Organize from './Organize.vue' import Organize from './Organize.vue'
export default { export default {
name: 'AppAskForm', name: 'Tabbar',
appName: '乡村相册', appName: '乡村相册',
data() { data() {