首页
This commit is contained in:
@@ -6,15 +6,16 @@
|
||||
<div class="content">
|
||||
<div class="user-info">
|
||||
<div class="left">
|
||||
<img src="../img/avatva.jpg" alt="">
|
||||
<img :src="user.avatar" alt="" v-if="user.avatar">
|
||||
<img src="../img/user-icon.png" alt="" v-else>
|
||||
</div>
|
||||
<div class="right">
|
||||
<p class="name">你好,汪周文</p>
|
||||
<p class="name">你好,<AiOpenData v-if="user.wxUserId" type="userName" :openid="user.wxUserId"></AiOpenData></p>
|
||||
<p class="time">您已加入慧政务 <span>15</span>天</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="app-list">
|
||||
<div class="item" v-for="(item, index) in appList" :key="index">
|
||||
<div class="item" v-for="(item, index) in appList" :key="index" @click="linkTo(item.linkUrl)">
|
||||
<img :src="item.img" alt="">
|
||||
<p>{{ item.title }}</p>
|
||||
</div>
|
||||
@@ -33,6 +34,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
import echarts from 'echarts'
|
||||
export default {
|
||||
name: "Home",
|
||||
@@ -41,19 +43,23 @@ export default {
|
||||
appList: [
|
||||
{
|
||||
img: require('../img/home/home-jmgl-icon.png'),
|
||||
title: '居民管理'
|
||||
title: '居民管理',
|
||||
linkUrl: '/apps/AppResidentDocument/AppResidentDocument'
|
||||
},
|
||||
{
|
||||
img: require('../img/home/home-zfww-icon.png'),
|
||||
title: '走访慰问'
|
||||
title: '走访慰问',
|
||||
linkUrl: '/apps/AppWalkask/AppWalkask'
|
||||
},
|
||||
{
|
||||
img: require('../img/home/home-mdtj-icon.png'),
|
||||
title: '矛盾调解'
|
||||
title: '矛盾调解',
|
||||
linkUrl: '/apps/AppConflictMediation/AppConflictMediation'
|
||||
},
|
||||
{
|
||||
img: require('../img/home/home-xftj-icon.png'),
|
||||
title: '宣发统计'
|
||||
title: '宣发统计',
|
||||
linkUrl: '/apps/AppCooperationPropaganda/AppCooperationPropaganda'
|
||||
}
|
||||
],
|
||||
tabStatistics: [
|
||||
@@ -77,6 +83,7 @@ export default {
|
||||
echartData: null
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
methods: {
|
||||
chartInit() {
|
||||
this.echartData = echarts.init(document.getElementById('statistic'))
|
||||
@@ -112,6 +119,9 @@ export default {
|
||||
]
|
||||
};
|
||||
this.echartData.setOption(option)
|
||||
},
|
||||
linkTo(url) {
|
||||
uni.navigateTo({ url })
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user