更新申请消息
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<template>
|
||||
<view class="body">
|
||||
<CustomNavbar @back="back" titke="申请消息"></CustomNavbar>
|
||||
<view v-for="(value,key) in data" class="newsList" @click="goList(value)" :key="key">
|
||||
<view class="newsIcon">
|
||||
<image :src="'../'+value.icon" mode=""></image>
|
||||
<view v-if="news.unread[value.id] > 0" class="point"></view>
|
||||
<image :src="value.icon" mode=""></image>
|
||||
<view v-if="news_recruit.unread[value.id] > 0" class="point"></view>
|
||||
</view>
|
||||
<view class="newsListRight">
|
||||
<view class="head">
|
||||
@@ -20,6 +21,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<cs-button></cs-button>
|
||||
<CustomTabbar :currentpage="2"></CustomTabbar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -27,8 +29,11 @@
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
import CustomTabbar from '@/components/CustomTabbar/custom_tabbar.vue'
|
||||
import CustomNavbar from '@/components/CustomNavbar/navbar.vue';
|
||||
|
||||
export default {
|
||||
components: {CustomTabbar,CustomNavbar},
|
||||
data() {
|
||||
return {
|
||||
loading: false
|
||||
@@ -65,18 +70,18 @@
|
||||
// }
|
||||
console.log(item.data)
|
||||
// 任务推送、岗位推送、政策推送
|
||||
if(item.title == '任务推送') {
|
||||
console.log('任务推送')
|
||||
if(item.title == '任务申请') {
|
||||
console.log('任务申请')
|
||||
uni.navigateTo({
|
||||
url: './taskProjectList'
|
||||
})
|
||||
} else if(item.title == '岗位推送') {
|
||||
console.log('岗位推送')
|
||||
} else if(item.title == '岗位申请') {
|
||||
console.log('岗位申请')
|
||||
uni.navigateTo({
|
||||
url: './jobProjectList'
|
||||
})
|
||||
} else if(item.title == '政策推送') {
|
||||
console.log('政策推送')
|
||||
} else if(item.title == '个人户申请') {
|
||||
console.log('个人户申请')
|
||||
uni.navigateTo({
|
||||
url: './policyList'
|
||||
})
|
||||
@@ -85,13 +90,16 @@
|
||||
url: './newsList?type=' + item.id
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
back() {
|
||||
uni.reLaunch({ url: '/pages/my/my' })
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['news']),
|
||||
...mapGetters(['news_recruit']),
|
||||
data() {
|
||||
console.log(this.news.data,'--------------------==========');
|
||||
return this.news.data
|
||||
console.log(this.news_recruit.data,'--------------------==========');
|
||||
return this.news_recruit.data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -165,6 +173,7 @@
|
||||
padding-bottom: 30rpx;
|
||||
padding-right: 30rpx;
|
||||
padding-top: 30rpx;
|
||||
padding-left: 30rpx;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -172,9 +181,9 @@
|
||||
|
||||
.body {
|
||||
background-color: #fefefe;
|
||||
padding-left: 30rpx;
|
||||
/* padding-left: 30rpx;
|
||||
|
||||
width: 720rpx;
|
||||
width: 720rpx; */
|
||||
}
|
||||
|
||||
page {
|
||||
|
||||
Reference in New Issue
Block a user