Commit 692941d9 by tangjinlin

0517

parent 18bc9920
<!--pages/myNews/myNews.wxml-->
<custom-navi text="消息通知" back="{{true}}" home="{{true}}"></custom-navi>
<custom-navi text="消息通知" back="{{true}}" home="{{true}}" bg1="#fff" bg2="#fff" bg3="#fff"></custom-navi>
<view class="myNews">
<view bindtap='newsDetail' wx:for="{{messageList}}" wx:if="{{!item.is_read}}" class="newsUnread" data-index="{{item.id}}" wx:key="{{index}}">
<image src='../../img/unread.png'></image>{{item.title}}
</view>
<view bindtap='newsDetail' wx:for="{{messageList}}" wx:if="{{item.is_read}}" class="newsReaded" data-index="{{item.id}}" wx:key="{{index}}">
<image src='../../img/readed.png'></image>{{item.title}}
</view>
</view>
<view bindtap='newsDetail' wx:for="{{messageList}}" wx:if="{{!item.is_read}}" class="newsUnread" data-index="{{item.id}}" wx:key="{{index}}">
<text>·您有一条新消息</text>
<view class="title">{{item.title}}</view>
<view class="time">{{item.registration_date}}</view>
</view>
<view bindtap='newsDetail' wx:for="{{messageList}}" wx:if="{{item.is_read}}" class="newsReaded" data-index="{{item.id}}" wx:key="{{index}}">
<text>·您有一条新消息\n</text>
<view class="title">{{item.title}}</view>
<view class="time">{{item.registration_date}}</view>
</view>
</view>
\ No newline at end of file
/* pages/myNews/myNews.wxss */
.myNews{
margin: 1%;
width:98%;
white-space:nowrap;
padding: 10px;
.myNews {
margin-left: 3%;
width: 94%;
white-space: nowrap;
}
.newsUnread{
height:45px;
line-height: 45px;
padding: 2px;
font-weight: bold;
border-bottom: 1rpx solid #f0f0f0;
.newsUnread {
border: 1px solid #f0f0f0;
display: flex;
align-items: center;
flex-direction: column;
align-items: flex-start;
padding: 10px 0 5px 10px;
margin-top: 20px;
}
.newsUnread>image{
width: 30px;
height: 18px;
margin-right: 8px;
.newsUnread text {
color: red;
}
.newsReaded{
height:45px;
line-height: 45px;
.newsReaded {
padding: 2px;
font-weight: normal;
border-bottom: 1rpx solid #F0F0F0;
border: 1px solid #F0F0F0;
display: flex;
align-items: center;
flex-direction: column;
align-items: flex-start;
padding: 10px 0 5px 10px;
margin-top: 20px;
}
.newsReaded>image{
width: 30px;
height: 18px;
margin-right: 8px;
.title {
padding: 10px 0 0 5px;
}
.time {
color: #898989;
align-self: flex-end;
padding-right: 10px;
font-size: 12px;
}
\ No newline at end of file
......@@ -115,6 +115,13 @@
"pathName": "pages/volunteersRank1/volunteersRank1",
"query": "",
"scene": null
},
{
"id": -1,
"name": "pages/myNews/myNews",
"pathName": "pages/myNews/myNews",
"query": "",
"scene": null
}
]
}
......
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