From f24342a171dcb43d66a1034f9bf1edce71d21984 Mon Sep 17 00:00:00 2001 From: Fabio Pinto Date: Sat, 8 Sep 2018 03:01:00 +0800 Subject: [PATCH] create store view --- app.json | 4 +- pages/leaderboard/leaderboard.wxss | 1 - pages/store/store.js | 66 ++++++++++++++++++++++++++++++ pages/store/store.json | 1 + pages/store/store.wxml | 10 +++++ pages/store/store.wxss | 31 ++++++++++++++ project.config.json | 10 ++++- 7 files changed, 118 insertions(+), 5 deletions(-) create mode 100644 pages/store/store.js create mode 100644 pages/store/store.json create mode 100644 pages/store/store.wxml create mode 100644 pages/store/store.wxss diff --git a/app.json b/app.json index a296ba7..a9c0622 100644 --- a/app.json +++ b/app.json @@ -3,8 +3,8 @@ "pages/index/index", "pages/dashboard/dashboard", "login/login/login", - "pages/leaderboard/leaderboard" - + "pages/leaderboard/leaderboard", + "pages/store/store" ], "window": { "backgroundTextStyle": "light", diff --git a/pages/leaderboard/leaderboard.wxss b/pages/leaderboard/leaderboard.wxss index 94465d8..0e722df 100644 --- a/pages/leaderboard/leaderboard.wxss +++ b/pages/leaderboard/leaderboard.wxss @@ -17,7 +17,6 @@ flex-direction: column; align-content: center; align-items: center; - background: var(--peach-grad); width: 100vw; height: 410rpx; margin: 0rpx 0rpx 10rpx 0rpx; diff --git a/pages/store/store.js b/pages/store/store.js new file mode 100644 index 0000000..7562d80 --- /dev/null +++ b/pages/store/store.js @@ -0,0 +1,66 @@ +// pages/store/store.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/store/store.json b/pages/store/store.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/pages/store/store.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/pages/store/store.wxml b/pages/store/store.wxml new file mode 100644 index 0000000..5d83fef --- /dev/null +++ b/pages/store/store.wxml @@ -0,0 +1,10 @@ + + + + categoria + + cigarets + + + + \ No newline at end of file diff --git a/pages/store/store.wxss b/pages/store/store.wxss new file mode 100644 index 0000000..355fb4b --- /dev/null +++ b/pages/store/store.wxss @@ -0,0 +1,31 @@ +/* pages/store/store.wxss */ +.container { + min-height: 100vh; + height: 100%; + width: 100vw; + display: flex; + flex-direction: column; + align-items: center; + justify-content: flex-start; + padding: 0rpx; + box-sizing: border-box; + background-color: var(--offwhite); +} + +.category{ + display: flex; + flex-direction: column; + align-content: center; + align-items: center; + width: 100vw; + height: 410rpx; + margin: 0rpx 0rpx 10rpx 0rpx; + padding: 15rpx; + box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2); +} + +.discounts-card{ + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); + padding: 15rpx; + width: 100vw; +} \ No newline at end of file diff --git a/project.config.json b/project.config.json index d9ca210..0e0767e 100644 --- a/project.config.json +++ b/project.config.json @@ -33,7 +33,7 @@ "list": [] }, "miniprogram": { - "current": 3, + "current": 4, "list": [ { "id": -1, @@ -56,7 +56,13 @@ { "id": -1, "name": "leaderboard", - "pathName": "pages/leaderboard/leaderboard" + "pathName": "pages/leaderboard/leaderboard", + "query": "" + }, + { + "id": -1, + "name": "store", + "pathName": "pages/store/store" } ] }