| @ -1 +1,3 @@ | |||||
| {} | |||||
| { | |||||
| "navigationBarTitleText": "消息" | |||||
| } | |||||
| @ -1,2 +1,22 @@ | |||||
| <!--pages/message/message.wxml--> | <!--pages/message/message.wxml--> | ||||
| <text>pages/message/message.wxml</text> | |||||
| <view class='pageContainer'> | |||||
| <block wx:for="{{messageArr}}" wx:for-item="item"> | |||||
| <template is="messageTemplate" data="{{item}}" /> | |||||
| </block> | |||||
| </view> | |||||
| <template name="messageTemplate"> | |||||
| <view class='listContainer' catchtap='transToMessageDetail' data-itemid='{{item.id}}'> | |||||
| <view class='imageView'> | |||||
| <image class='imgae' src='/imgs/messageAlert.png'></image> | |||||
| </view> | |||||
| <view class="contentInfoView"> | |||||
| <view class='topGroupView'> | |||||
| <view class='titleView'>推送消息</view> | |||||
| <view class='timeView'>2018/01/02</view> | |||||
| </view> | |||||
| <view class='detailMessageView'>您的订单已通过审核</view> | |||||
| </view> | |||||
| </view> | |||||
| <view class='horizontallineView'></view> | |||||
| </template> | |||||
| @ -1 +1,74 @@ | |||||
| /* pages/message/message.wxss */ | |||||
| /* pages/message/message.wxss */ | |||||
| page{ | |||||
| background:#EAF1F8; | |||||
| } | |||||
| .pageContainer{ | |||||
| margin-top: 10rpx; | |||||
| background-color: #fff; | |||||
| } | |||||
| .listContainer{ | |||||
| margin-left: 20rpx; | |||||
| margin-right: 20rpx; | |||||
| padding-top: 20rpx; | |||||
| padding-bottom: 20rpx; | |||||
| display: flex; | |||||
| flex-direction: row; | |||||
| } | |||||
| .imageView{ | |||||
| width: 120rpx; | |||||
| height: 100rpx; | |||||
| } | |||||
| .imgae{ | |||||
| height: 100%; | |||||
| width: 100%; | |||||
| } | |||||
| .contentInfoView{ | |||||
| height: 100rpx; | |||||
| width: 100%; | |||||
| padding-left: 20rpx; | |||||
| display: flex; | |||||
| flex-direction: column; | |||||
| } | |||||
| .topGroupView{ | |||||
| height: 50rpx; | |||||
| line-height: 50rpx; | |||||
| width: 100%; | |||||
| display: flex; | |||||
| flex-direction: row; | |||||
| } | |||||
| .titleView{ | |||||
| height: 100%; | |||||
| width: 60%; | |||||
| font-size: 18px; | |||||
| /* 18px 字体大小差不多等于14pt */ | |||||
| /* font-size: 14pt; */ | |||||
| color:rgb(48, 48, 48); | |||||
| } | |||||
| .timeView{ | |||||
| height: 100%; | |||||
| width: 40%; | |||||
| text-align: right; | |||||
| color: #888; | |||||
| } | |||||
| .detailMessageView{ | |||||
| height: 50rpx; | |||||
| line-height: 50rpx; | |||||
| width: 100%; | |||||
| color: #888; | |||||
| } | |||||
| .horizontallineView { | |||||
| height: 1rpx; | |||||
| background-color: #dbdbdb; | |||||
| margin-left: 20rpx; | |||||
| margin-right: 0rpx; | |||||
| } | |||||
| @ -0,0 +1,67 @@ | |||||
| // pages/message/messageDetail/messageDetail.js | |||||
| Page({ | |||||
| /** | |||||
| * 页面的初始数据 | |||||
| */ | |||||
| data: { | |||||
| }, | |||||
| /** | |||||
| * 生命周期函数--监听页面加载 | |||||
| */ | |||||
| onLoad: function (options) { | |||||
| var itemID = options.id; | |||||
| }, | |||||
| /** | |||||
| * 生命周期函数--监听页面初次渲染完成 | |||||
| */ | |||||
| onReady: function () { | |||||
| }, | |||||
| /** | |||||
| * 生命周期函数--监听页面显示 | |||||
| */ | |||||
| onShow: function () { | |||||
| }, | |||||
| /** | |||||
| * 生命周期函数--监听页面隐藏 | |||||
| */ | |||||
| onHide: function () { | |||||
| }, | |||||
| /** | |||||
| * 生命周期函数--监听页面卸载 | |||||
| */ | |||||
| onUnload: function () { | |||||
| }, | |||||
| /** | |||||
| * 页面相关事件处理函数--监听用户下拉动作 | |||||
| */ | |||||
| onPullDownRefresh: function () { | |||||
| }, | |||||
| /** | |||||
| * 页面上拉触底事件的处理函数 | |||||
| */ | |||||
| onReachBottom: function () { | |||||
| }, | |||||
| /** | |||||
| * 用户点击右上角分享 | |||||
| */ | |||||
| onShareAppMessage: function () { | |||||
| } | |||||
| }) | |||||
| @ -0,0 +1,3 @@ | |||||
| { | |||||
| "navigationBarTitleText": "消息详情" | |||||
| } | |||||
| @ -0,0 +1,2 @@ | |||||
| <!--pages/message/messageDetail/messageDetail.wxml--> | |||||
| <text>pages/message/messageDetail/messageDetail.wxml</text> | |||||
| @ -0,0 +1 @@ | |||||
| /* pages/message/messageDetail/messageDetail.wxss */ | |||||