Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create store view #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion pages/leaderboard/leaderboard.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
66 changes: 66 additions & 0 deletions pages/store/store.js
Original file line number Diff line number Diff line change
@@ -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 () {

}
})
1 change: 1 addition & 0 deletions pages/store/store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
10 changes: 10 additions & 0 deletions pages/store/store.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--pages/store/store.wxml-->
<view class='container'>

<view class='category'> categoria
<view class='discounts-card'>
cigarets
</view>

</view>
</view>
31 changes: 31 additions & 0 deletions pages/store/store.wxss
Original file line number Diff line number Diff line change
@@ -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;
}
10 changes: 9 additions & 1 deletion project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"list": []
},
"miniprogram": {
"current": 0,

"current": 4,

"list": [
{
"id": -1,
Expand All @@ -58,6 +60,12 @@
"name": "leaderboard",
"pathName": "pages/leaderboard/leaderboard",
"query": ""

},
{
"id": -1,
"name": "store",
"pathName": "pages/store/store"
}
]
}
Expand Down