146 lines
3.1 KiB
Vue
146 lines
3.1 KiB
Vue
<template>
|
|
<view :style="{height:'100vh',overflow:'hidden',backgroundColor: '#f0f0f0',}">
|
|
<u-navbar title="消息中心1" :autoBack="true" :titleStyle="{
|
|
fontSize:'18px'
|
|
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
|
|
</u-navbar>
|
|
<view class="" style="margin-top: 44px;background-color: #f0f0f0;border-top: 1px solid #f0f0f0;">
|
|
<view class="" v-for="item in list" style="margin: 10px;background-color: #fff;padding: 10px;">
|
|
|
|
<view class="contentItem">
|
|
|
|
<view class="itemC">
|
|
<text>标题</text>
|
|
<text>{{item.title}}</text>
|
|
</view>
|
|
<view class="itemC">
|
|
<text>发布时间</text>
|
|
<text>{{item.publishTime}}</text>
|
|
</view>
|
|
<view class="itemC">
|
|
<text>发布人</text>
|
|
<text>{{item.publishUserName}}</text>
|
|
</view>
|
|
<!-- <view class="itemC">
|
|
<text>优先级</text>
|
|
<text>{{item.xjx}}</text>
|
|
</view> -->
|
|
|
|
<view class="itemNo" style="flex-direction: column;">
|
|
<text>消息内容</text>
|
|
<u--textarea v-model="item.content" placeholder="请输入内容" disabled ></u--textarea>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<u-calendar :show="show" mode="range" @confirm="confirm" @cancel='cancel'></u-calendar>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import moment from 'moment'
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
show: false,
|
|
model: {
|
|
stm: '',
|
|
etm: ''
|
|
},
|
|
list: [
|
|
]
|
|
};
|
|
},
|
|
onLoad(options){
|
|
this.list.push(JSON.parse(options.item))
|
|
this.yd(JSON.parse(options.item))
|
|
},
|
|
methods: {
|
|
yd(item){
|
|
uni.$http.post('/gunshiApp/xyt/messageCenter/update',{...item,status:1})
|
|
},
|
|
confirm(e) {
|
|
console.log(e);
|
|
this.model.stm = e[0]
|
|
this.model.etm = e[1]
|
|
this.show = false
|
|
},
|
|
cancel() {
|
|
this.show = false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.myTitleStyle {
|
|
font-size: 30px;
|
|
background-color: red;
|
|
height: 200px;
|
|
}
|
|
|
|
.tabsClass {
|
|
margin-top: 44px;
|
|
height: 44px;
|
|
padding: 0 40px;
|
|
border-top: 1px solid #eee;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.item {
|
|
|
|
padding-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
// justify-content: space-between;
|
|
.blueTiao{
|
|
background-color: #007aff;
|
|
width: 5px;
|
|
height: 16px;
|
|
margin-right: 10px;
|
|
}
|
|
.title {
|
|
border-width: 0px;
|
|
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑', sans-serif;
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-size: 15px;
|
|
color: #666666
|
|
}
|
|
|
|
.titleRight {
|
|
display: flex;
|
|
.border {
|
|
border-width: 0px;
|
|
background-color: rgba(236, 245, 255, 1);
|
|
box-sizing: border-box;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: rgba(187, 220, 255, 1);
|
|
border-radius: 5px;
|
|
box-shadow: none;
|
|
width: 58px;
|
|
height: 25px;
|
|
color: #689FFF;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
}
|
|
.contentItem{
|
|
.itemC{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
display: flex;
|
|
color: #666666;
|
|
padding: 10px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
.itemNo{
|
|
color: #666666;
|
|
padding: 10px;
|
|
}
|
|
}
|
|
</style> |