From 0bef8f7c9ad8b8cad276c89623b413a2e8cbbdf9 Mon Sep 17 00:00:00 2001
From: asd <374367073@qq.com>
Date: Sat, 14 Dec 2019 15:14:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=95=86=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 8 ++-
app.json | 2 +-
components/member/membershop/membershop.js | 23 +++++++
components/member/membershop/membershop.json | 4 ++
components/member/membershop/membershop.scss | 29 +++++++++
components/member/membershop/membershop.wxml | 6 ++
components/member/membershop/membershop.wxss | 32 ++++++++++
components/member/membertop/membertop.js | 23 +++++++
components/member/membertop/membertop.json | 4 ++
components/member/membertop/membertop.scss | 9 +++
components/member/membertop/membertop.wxml | 3 +
components/member/membertop/membertop.wxss | 9 +++
pages/member/member.js | 66 ++++++++++++++++++++
pages/member/member.json | 6 ++
pages/member/member.scss | 11 ++++
pages/member/member.wxml | 32 ++++++++++
pages/member/member.wxss | 12 ++++
17 files changed, 276 insertions(+), 3 deletions(-)
create mode 100644 components/member/membershop/membershop.js
create mode 100644 components/member/membershop/membershop.json
create mode 100644 components/member/membershop/membershop.scss
create mode 100644 components/member/membershop/membershop.wxml
create mode 100644 components/member/membershop/membershop.wxss
create mode 100644 components/member/membertop/membertop.js
create mode 100644 components/member/membertop/membertop.json
create mode 100644 components/member/membertop/membertop.scss
create mode 100644 components/member/membertop/membertop.wxml
create mode 100644 components/member/membertop/membertop.wxss
create mode 100644 pages/member/member.js
create mode 100644 pages/member/member.json
create mode 100644 pages/member/member.scss
create mode 100644 pages/member/member.wxml
create mode 100644 pages/member/member.wxss
diff --git a/README.md b/README.md
index a457719..caf5fac 100644
--- a/README.md
+++ b/README.md
@@ -38,5 +38,9 @@
- chooseaddr/address 地址列表(单个)
- chooseaddr/addradd 添加按钮
-- pages/addaddress/addaddress 选择地址
- - addaddress/shuru 添加地址的输入的每一项
\ No newline at end of file
+- pages/addaddress/addaddress 添加地址
+ - addaddress/shuru 添加地址的输入的每一项
+
+- pages/member/member 会员商品
+ - member/membertop 会员商品顶部的字
+ - member/membershop 单个商品
\ No newline at end of file
diff --git a/app.json b/app.json
index cde0584..211d6cc 100644
--- a/app.json
+++ b/app.json
@@ -1,5 +1,6 @@
{
"pages": [
+ "pages/member/member",
"pages/addaddress/addaddress",
"pages/chooseaddr/chooseaddr",
"pages/orderconfirm/orderconfirm",
@@ -10,7 +11,6 @@
"pages/shopping/shopping",
"pages/search/search",
"pages/index/index"
-
],
"window": {
"backgroundTextStyle": "light",
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;
+}
--
2.45.2