diff --git a/app.json b/app.json index b5e5c00..5081102 100644 --- a/app.json +++ b/app.json @@ -14,7 +14,8 @@ "pages/detail/detail", "pages/accept/accept", "pages/gridLeaderRegister/gridLeaderRegister", - "pages/heart/heart" + "pages/heart/heart", + "pages/heartNew/heartNew" ], "subPackages": [ { diff --git a/pages/heartNew/heartNew.js b/pages/heartNew/heartNew.js new file mode 100644 index 0000000..f8241cf --- /dev/null +++ b/pages/heartNew/heartNew.js @@ -0,0 +1,71 @@ +// pages/heartNew/heartNew.js +const app = getApp() +Page({ + + /** + * 页面的初始数据 + */ + data: { + statusHeight: 0, // 自定义头部状态栏高度 + navigationHeight: 0, // 自定义头部导航栏高度 + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.setData({ + statusHeight: app.globalData.deviceInfo.statusHeight, + navigationHeight: app.globalData.deviceInfo.navigationHeight, + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/heartNew/heartNew.json b/pages/heartNew/heartNew.json new file mode 100644 index 0000000..37a163a --- /dev/null +++ b/pages/heartNew/heartNew.json @@ -0,0 +1,15 @@ +{ + "navigationBarTitleText": "e锦水", + "navigationStyle": "custom", + "navigationBarTextStyle": "white", + "usingComponents": { + "wux-tabs": "/dist/tabs/index", + "wux-tab": "/dist/tab/index", + "activity": "../../components/activity/activity", + "load-more": "../../components/loadMore/loadMore", + "no-data": "../../components/nodata/nodata" + }, + "enablePullDownRefresh": true, + "backgroundColor": "#f8f8f8", + "backgroundTextStyle": "dark" +} \ No newline at end of file diff --git a/pages/heartNew/heartNew.wxml b/pages/heartNew/heartNew.wxml new file mode 100644 index 0000000..6672990 --- /dev/null +++ b/pages/heartNew/heartNew.wxml @@ -0,0 +1,19 @@ + + + + 志愿者去哪儿 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/heartNew/heartNew.wxss b/pages/heartNew/heartNew.wxss new file mode 100644 index 0000000..0dc0d2d --- /dev/null +++ b/pages/heartNew/heartNew.wxss @@ -0,0 +1,94 @@ +page { + width: 100%; + height: auto; + overflow-y: auto; + background: #f7f7f7; +} + +.header { + position: fixed; + width: 100%; + top: 0; + left: 0; + z-index: 888; +} + +.header .header-bg { + width: 100%; + height: 100%; + position: absolute; + z-index: 10; + left: 0; + top: 0; +} + +.header .navigation { + width: 100%; + display: flex; + align-items: center; + justify-content: center; + color: rgba(255, 255, 255, 0.9); + font-size: 32rpx; + position: relative; + z-index: 100; + letter-spacing: 2rpx; +} + +.home { + width: 100%; +} + +.belong-grid { + width: 100%; + height: 138rpx; + box-sizing: border-box; + padding-top: 16rpx; + position: relative; +} + +.belong-grid .newbelong-grid { + display: flex; + flex-direction: row; + /* align-items: center; */ + justify-content: space-between; +} + +.belong-grid .belong-grid-bg { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + z-index: 10; +} + +.belong-grid .newbelong-grid .grid { + margin-left: 21rpx; + /* width: 90%; */ + width: calc(100% - 234rpx); + height: 62rpx; + position: relative; + z-index: 100; + display: flex; + align-items: center; +} + +.belong-grid .newbelong-grid .grid image { + width: 100%; + height: 46rpx; +} + +.belong-grid .newbelong-grid .volunteer { + margin-right: 15rpx; + width: 90rpx; + height: 62rpx; + position: relative; + z-index: 100; + display: flex; + align-items: center; +} + +.belong-grid .newbelong-grid .volunteer image { + width: 100%; + height: 100%; +} \ No newline at end of file