232 lines
5.5 KiB
Vue
Executable File
232 lines
5.5 KiB
Vue
Executable File
<template>
|
|
<view class="page">
|
|
<view class="example-body">
|
|
<uni-search-bar radius="100" placeholder="请输入搜索内容" cancelButton="auto" @confirm="search" />
|
|
</view>
|
|
<scroll-view scroll-y="true" scroll-top="0">
|
|
<view class="uni-list">
|
|
<block v-for="(item,index) in lists" :key="index">
|
|
<view class="mail-list-cell" hover-class="uni-list-cell-hover">
|
|
<view class="mail-triplex-col">
|
|
<view class="mail-triplex-top">
|
|
<text class="mail-text mail-start">{{item.senduser}}</text>
|
|
<text class="mail-date">{{item.senddate}}</text>
|
|
</view>
|
|
<view class="mail-triplex-content">
|
|
<view class="mail-title mail-start"><text class="txt-title">{{item.title}}</text></view>
|
|
<view class="mail-content mail-start"><text class="txt-content">{{item.content}}</text></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<view class="mail-loading">
|
|
{{loadingText}}
|
|
</view>
|
|
</scroll-view>
|
|
<view class="mail-bottom">
|
|
<view @tap="PageNavigate('../mailedit/mailedit')">写邮件</view>
|
|
<view>已发邮件</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import uniSearchBar from '@/components/uni-search-bar/uni-search-bar.vue'
|
|
export default {
|
|
components: {
|
|
uniSearchBar
|
|
},
|
|
data() {
|
|
return {
|
|
loadingText: "已加载全部",
|
|
inputVal: '',
|
|
lists: [{
|
|
title: '车间任务发布',
|
|
subtitle: '邮件副标题',
|
|
senduser: '刘学聪',
|
|
content: '本月车间任务已安排,请各部门注意自己的工作,及时查看。',
|
|
senddate: '2019-07-02'
|
|
},
|
|
{
|
|
title: '车间任务发布',
|
|
subtitle: '邮件副标题',
|
|
senduser: '刘学聪',
|
|
content: '本月车间任务已安排,请各部门注意自己的工作,及时查看。',
|
|
senddate: '2019-07-02'
|
|
},
|
|
{
|
|
title: 'CM1生产部日报',
|
|
subtitle: '邮件副标题',
|
|
senduser: '王雪',
|
|
content: '生产部7月21日日报具体明细如下,请查收:谢谢!',
|
|
senddate: '2019-07-21'
|
|
},
|
|
{
|
|
title: 'A01号工单验货反馈',
|
|
subtitle: '邮件副标题',
|
|
senduser: '郭渺',
|
|
content: 'A01号工单本次验货已全部结束,具体详情如下:',
|
|
senddate: '2019-08-03'
|
|
},
|
|
{
|
|
title: 'CM1生产部日报',
|
|
subtitle: '邮件副标题',
|
|
senduser: '张磊',
|
|
content: '生产部8月9日日报具体明细如下,请查收:谢谢!',
|
|
senddate: '2019-08-09'
|
|
},
|
|
{
|
|
title: '车间问题反馈',
|
|
subtitle: '邮件副标题',
|
|
senduser: '缪玲玲',
|
|
content: '2019年8月25号三号车间问题反馈。',
|
|
senddate: '2019-08-25'
|
|
}
|
|
],
|
|
pattern: {
|
|
color: '#7A7E83',
|
|
backgroundColor: '#fff',
|
|
selectedColor: '#3860F3',
|
|
buttonColor: '#3860F3'
|
|
},
|
|
content: [{
|
|
iconPath: '/static/component.png',
|
|
selectedIconPath: '/static/componentHL.png',
|
|
text: '组件',
|
|
active: false
|
|
},
|
|
{
|
|
iconPath: '/static/api.png',
|
|
selectedIconPath: '/static/apiHL.png',
|
|
text: 'API',
|
|
active: false
|
|
},
|
|
{
|
|
iconPath: '/static/template.png',
|
|
selectedIconPath: '/static/templateHL.png',
|
|
text: '模版',
|
|
active: false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
page {
|
|
background-color: #F2F2F2;
|
|
}
|
|
|
|
.page {
|
|
height: 100%;
|
|
}
|
|
|
|
.example-body {
|
|
/* border-bottom: 1upx solid #CCCCCC; */
|
|
}
|
|
|
|
scroll-view {
|
|
height: 83%;
|
|
}
|
|
|
|
.mail-bottom {
|
|
height: 7%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
border-top: 1upx solid #CCCCCC;
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
.mail-start {
|
|
margin-left: 3%;
|
|
margin-right: 3%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.mail-triplex-col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-bottom: 1upx solid #F2F2F2;
|
|
padding: 20upx 0;
|
|
}
|
|
|
|
.mail-triplex-top {
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 60upx;
|
|
}
|
|
|
|
.mail-text {
|
|
width: 30%;
|
|
font-size: 35upx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.mail-date {
|
|
margin-right: 5%;
|
|
width: 70%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.mail-triplex-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mail-title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.mail-content {
|
|
/*超出文本用省略号显示*/
|
|
color: #666666;
|
|
|
|
}
|
|
|
|
.txt-title {
|
|
overflow: hidden;
|
|
display: -webkit-box; //将对象作为弹性伸缩盒子模型显示;
|
|
text-overflow: ellipsis; //溢出部分用省略号代替
|
|
-webkit-line-clamp: 1; //设置文本显示两行
|
|
-webkit-box-orient: vertical; //从上到下排列子元素;
|
|
white-space: normal;
|
|
}
|
|
|
|
.txt-content {
|
|
overflow: hidden;
|
|
display: -webkit-box; //将对象作为弹性伸缩盒子模型显示;
|
|
text-overflow: ellipsis; //溢出部分用省略号代替
|
|
-webkit-line-clamp: 2; //设置文本显示两行
|
|
-webkit-box-orient: vertical; //从上到下排列子元素;
|
|
white-space: normal;
|
|
}
|
|
|
|
.mail-loading {
|
|
text-align: center;
|
|
}
|
|
|
|
.mail-bottom view {
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 35upx;
|
|
color: #3860F3;
|
|
border-right: 0.5px solid #CCCCCC
|
|
}
|
|
|
|
.mail-bottom view:last-child {
|
|
/*该项为最后一项时去除边框样式*/
|
|
border-style: none;
|
|
}
|
|
</style>
|