diff --git a/README.md b/README.md index 82cd376..998a7ff 100644 --- a/README.md +++ b/README.md @@ -43,5 +43,9 @@ - chooseaddr/address 地址列表(单个) - chooseaddr/addradd 添加按钮 -- pages/addaddress/addaddress 选择地址
+- pages/addaddress/addaddress 添加地址
- addaddress/shuru 添加地址的输入的每一项 + +- pages/member/member 会员商品
+ - member/membertop 会员商品顶部的字 + - member/membershop 单个商品 diff --git a/app.json b/app.json index b680326..7882fa1 100644 --- a/app.json +++ b/app.json @@ -1,24 +1,25 @@ { - "pages": [ - "pages/addaddress/addaddress", - "pages/chooseaddr/chooseaddr", - "pages/order/order", - "pages/orderconfirm/orderconfirm", - "pages/message/message", - "pages/personal/personal", - "pages/product/product", - "pages/classify/classify", - "pages/shopping/shopping", - "pages/search/search", - "pages/index/index" - ], - "window": { - "backgroundTextStyle": "light", - "navigationBarBackgroundColor": "#fff", - "navigationBarTitleText": "WeChat", - "navigationBarTextStyle": "black" - }, - "style": "v2", - "sitemapLocation": "sitemap.json" + "pages": [ + "pages/member/member", + "pages/addaddress/addaddress", + "pages/chooseaddr/chooseaddr", + "pages/order/order", + "pages/orderconfirm/orderconfirm", + "pages/message/message", + "pages/personal/personal", + "pages/product/product", + "pages/classify/classify", + "pages/shopping/shopping", + "pages/search/search", + "pages/index/index" + ], + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#fff", + "navigationBarTitleText": "WeChat", + "navigationBarTextStyle": "black" + }, + "style": "v2", + "sitemapLocation": "sitemap.json" } \ No newline at end of file diff --git a/components/member/membershop/membershop.js b/components/member/membershop/membershop.js new file mode 100644 index 0000000..d64d27e --- /dev/null +++ b/components/member/membershop/membershop.js @@ -0,0 +1,23 @@ +// components/member/membershop/membershop.js +Component({ + /** + * 组件的属性列表 + */ + properties: { + + }, + + /** + * 组件的初始数据 + */ + data: { + + }, + + /** + * 组件的方法列表 + */ + methods: { + + } +}) diff --git a/components/member/membershop/membershop.json b/components/member/membershop/membershop.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/components/member/membershop/membershop.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/components/member/membershop/membershop.scss b/components/member/membershop/membershop.scss new file mode 100644 index 0000000..e24156f --- /dev/null +++ b/components/member/membershop/membershop.scss @@ -0,0 +1,29 @@ +.membershop { + width: 373rpx; + height: 557rpx; + background-color: #FBFBFB; + .pic { + width: 113rpx; + height: 256rpx; + background-color: white; + margin: 0 auto; + position: relative; + top: 64rpx; + } + .shopname { + width: 273rpx; + color: #333333; + font-size: 30rpx; + text-align: center; + position: relative; + top: 111rpx; + margin: 0 auto; + } + .pri { + position: relative; + top: 127rpx; + text-align: center; + font-size: 30rpx; + color: #09BB07; + } +} \ No newline at end of file diff --git a/components/member/membershop/membershop.wxml b/components/member/membershop/membershop.wxml new file mode 100644 index 0000000..f8a951c --- /dev/null +++ b/components/member/membershop/membershop.wxml @@ -0,0 +1,6 @@ + + + 产品名产品名产品名 +产品名产品名 +$123 + \ No newline at end of file diff --git a/components/member/membershop/membershop.wxss b/components/member/membershop/membershop.wxss new file mode 100644 index 0000000..c664642 --- /dev/null +++ b/components/member/membershop/membershop.wxss @@ -0,0 +1,32 @@ +.membershop { + width: 373rpx; + height: 557rpx; + background-color: #FBFBFB; +} + +.membershop .pic { + width: 113rpx; + height: 256rpx; + background-color: white; + margin: 0 auto; + position: relative; + top: 64rpx; +} + +.membershop .shopname { + width: 273rpx; + color: #333333; + font-size: 30rpx; + text-align: center; + position: relative; + top: 111rpx; + margin: 0 auto; +} + +.membershop .pri { + position: relative; + top: 127rpx; + text-align: center; + font-size: 30rpx; + color: #09BB07; +} diff --git a/components/member/membertop/membertop.js b/components/member/membertop/membertop.js new file mode 100644 index 0000000..f4a4222 --- /dev/null +++ b/components/member/membertop/membertop.js @@ -0,0 +1,23 @@ +// components/member/membertop/membertop.js +Component({ + /** + * 组件的属性列表 + */ + properties: { + + }, + + /** + * 组件的初始数据 + */ + data: { + + }, + + /** + * 组件的方法列表 + */ + methods: { + + } +}) diff --git a/components/member/membertop/membertop.json b/components/member/membertop/membertop.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/components/member/membertop/membertop.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/components/member/membertop/membertop.scss b/components/member/membertop/membertop.scss new file mode 100644 index 0000000..bbfb8a3 --- /dev/null +++ b/components/member/membertop/membertop.scss @@ -0,0 +1,9 @@ +.membertop { + width: 100%; + height: 86rpx; + border-top: 2rpx solid #E8E8E8; + color: #999999; + font-size: 24rpx; + line-height: 86rpx; + text-indent: 30rpx; +} \ No newline at end of file diff --git a/components/member/membertop/membertop.wxml b/components/member/membertop/membertop.wxml new file mode 100644 index 0000000..8f1218a --- /dev/null +++ b/components/member/membertop/membertop.wxml @@ -0,0 +1,3 @@ + + 购买下方商品成为会员 + \ No newline at end of file diff --git a/components/member/membertop/membertop.wxss b/components/member/membertop/membertop.wxss new file mode 100644 index 0000000..8601b13 --- /dev/null +++ b/components/member/membertop/membertop.wxss @@ -0,0 +1,9 @@ +.membertop { + width: 100%; + height: 86rpx; + border-top: 2rpx solid #E8E8E8; + color: #999999; + font-size: 24rpx; + line-height: 86rpx; + text-indent: 30rpx; +} diff --git a/pages/member/member.js b/pages/member/member.js new file mode 100644 index 0000000..3775f74 --- /dev/null +++ b/pages/member/member.js @@ -0,0 +1,66 @@ +// pages/member/member.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/member/member.json b/pages/member/member.json new file mode 100644 index 0000000..b5fde8d --- /dev/null +++ b/pages/member/member.json @@ -0,0 +1,6 @@ +{ + "usingComponents": { + "membertop": "/components/member/membertop/membertop", + "membershop": "/components/member/membershop/membershop" + } +} \ No newline at end of file diff --git a/pages/member/member.scss b/pages/member/member.scss new file mode 100644 index 0000000..bb44bb1 --- /dev/null +++ b/pages/member/member.scss @@ -0,0 +1,11 @@ +.membershops { + display: flex; + flex-wrap: wrap; + .membershop { + // margin-right: 4rpx; + margin-bottom: 4rpx; + } + .membershop:nth-child(odd) { + margin-right: 4rpx; + } +} \ No newline at end of file diff --git a/pages/member/member.wxml b/pages/member/member.wxml new file mode 100644 index 0000000..d33b4e3 --- /dev/null +++ b/pages/member/member.wxml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/member/member.wxss b/pages/member/member.wxss new file mode 100644 index 0000000..3a9a73a --- /dev/null +++ b/pages/member/member.wxss @@ -0,0 +1,12 @@ +.membershops { + display: flex; + flex-wrap: wrap; +} + +.membershops .membershop { + margin-bottom: 4rpx; +} + +.membershops .membershop:nth-child(odd) { + margin-right: 4rpx; +}