diff --git a/app.json b/app.json index 42c95ba..01ff9d8 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 9639ba4..67461a9 100644 --- a/project.config.json +++ b/project.config.json @@ -33,7 +33,9 @@ "list": [] }, "miniprogram": { - "current": 0, + + "current": 4, + "list": [ { "id": -1, @@ -58,6 +60,12 @@ "name": "leaderboard", "pathName": "pages/leaderboard/leaderboard", "query": "" + + }, + { + "id": -1, + "name": "store", + "pathName": "pages/store/store" } ] }