Commit 78bb047e authored by 刘怀志's avatar 刘怀志

feat(消息): 消息模块-2

parent 7fe1b9f8
...@@ -18,36 +18,15 @@ ...@@ -18,36 +18,15 @@
<!--消息卡片--> <!--消息卡片-->
<view v-for="(item,key) in noticeList" :key="key" style="display: flex;background-color: #ffffff"> <view v-for="(item,key) in noticeList" :key="key" style="display: flex;background-color: #ffffff">
<view v-if="checkShow" class="checkView" @click="selectRead(item)"> <view class="noticeCard">
<u-checkbox-group v-model="item.checkStatus" @change="selectRead(item)"> <view class="noticeTop">
<u-checkbox
shape="circle"
active-color="#3aab94"
:checked="item.readCheck"
/>
</u-checkbox-group>
</view>
<view v-if="delShow" class="checkView" @click="selectDel(item)">
<u-checkbox-group v-model="item.checkDelStatus" @change="selectDel(item)">
<u-checkbox
:key="item.id"
shape="circle"
active-color="#3aab94"
:name="'yes'"
:checked="item.delCheck"
/>
</u-checkbox-group>
</view>
<view class="noticeCard" @click="showDetail(item)">
<view style="display: flex">
<u-icon v-if="item.isPlatform === '1'" size="24" :name="imageUrl + '/tmt-pic/pet-app/xiaoxi_icon_tuisong@2x.png'" />
<u-icon v-else size="24" :name="imageUrl + '/tmt-pic/pet-app/xiaoxi_icon_xitong@2x.png'" />
<view class="titleClass">{{ queryNotice.mesType === '1' ? '生产信息审批' : '基础数据审批' }}</view> <view class="titleClass">{{ queryNotice.mesType === '1' ? '生产信息审批' : '基础数据审批' }}</view>
<view class="timeClass">
{{ item.updateDate !== undefined && item.updateDate !== null ? parseTime(item.updateDate, '{m}-{d} {h}:{i}:{s}') : '暂无数据' }}
</view>
</view> </view>
<view class="subTitleClass">{{ item.message }}</view> <view class="subTitleClass">{{ item.message }}</view>
<view class="timeClass">
{{ item.updateDate !== undefined && item.updateDate !== null ? parseTime(item.updateDate, '{m}-{d} {h}:{i}:{s}') : '暂无数据' }}
</view>
</view> </view>
</view> </view>
...@@ -74,7 +53,7 @@ ...@@ -74,7 +53,7 @@
/> />
</view> </view>
<view v-show="loadStatus === 'loading'" style="text-align: center"> <view v-show="loadStatus === 'loading'" style="text-align: center">
<!-- <image src="../../static/images/home/loading.gif" style="width: 50rpx;height: 60rpx;" /> --> <!-- <image src="../../static/images/home/loading.gif" style="width: 50rpx;height: 60rpx;" /> -->
</view> </view>
<!--顶部提示--> <!--顶部提示-->
...@@ -123,7 +102,6 @@ export default { ...@@ -123,7 +102,6 @@ export default {
page: 1, page: 1,
rows: 10, rows: 10,
receiverId: undefined, receiverId: undefined,
mesType: '1'
}, },
noticeList: [], noticeList: [],
total: 0, total: 0,
...@@ -396,35 +374,43 @@ export default { ...@@ -396,35 +374,43 @@ export default {
} }
.noticeCard { .noticeCard {
width: 100%; width: 100%;
background-color: #fff; background-color: #F9F9F9;
margin: 32rpx 0rpx 0 32rpx; margin: 20rpx 22rpx 0 20rpx;
border-bottom: 2rpx solid #e9e9e9;
padding-bottom: 32rpx; padding-bottom: 32rpx;
border-radius: 15rpx;
.noticeTop{
display: flex;
justify-content: space-between;
border-bottom: 2rpx solid #F2F2F2;
padding: 22rpx 34rpx 24rpx 32rpx;
}
.titleClass { .titleClass {
margin-left: 15rpx; font-family: PingFangSC, PingFang SC;
font-size: 34rpx;
font-family: Source Han Sans CN-Medium, Source Han Sans CN;
font-weight: 500; font-weight: 500;
color: #000000; font-size: 30rpx;
line-height: 48rpx; color: #333399;
text-align: left;
font-style: normal;
text-transform: none;
} }
.subTitleClass { .subTitleClass {
margin-top: 20rpx; font-family: PingFangSC, PingFang SC;
font-size: 30rpx;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400; font-weight: 400;
color: #666666; font-size: 28rpx;
line-height: 35rpx; color: #9A9A9A;
text-align: left;
font-style: normal;
text-transform: none;
padding: 28rpx 32rpx 0 32rpx;
} }
.timeClass { .timeClass {
text-align: right; font-family: PingFangSC, PingFang SC;
margin-top: 16rpx;
margin-right: 32rpx;
font-size: 24rpx;
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
font-weight: 400; font-weight: 400;
color: rgba(52,55,68,0.4); font-size: 28rpx;
line-height: 28rpx; color: #666666;
text-align: right;
font-style: normal;
text-transform: none;
} }
} }
// 有导航栏后 防止滑到最上面 // 有导航栏后 防止滑到最上面
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment