Commit 692941d9 by tangjinlin

0517

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