diff --git a/app.wxss b/app.wxss
index 3fe2dda..7c88c08 100644
--- a/app.wxss
+++ b/app.wxss
@@ -1,3 +1,8 @@
page {
background-color: white;
+}
+
+.separate {
+ height: 18rpx;
+ background-color: #f2f2f2;
}
\ No newline at end of file
diff --git a/pages/cart/cart.js b/pages/cart/cart.js
index 05acbe6..14f161c 100644
--- a/pages/cart/cart.js
+++ b/pages/cart/cart.js
@@ -89,7 +89,7 @@ Page({
wx.showModal({
title: '删除商品',
- content: '是否要删除购物车中的这件商品?',
+ content: '是否要删除购这件商品?',
confirmText: '删除',
cancelText: '别删',
success: function(res) {
diff --git a/pages/cart/cart.wxml b/pages/cart/cart.wxml
index f4ebece..f97e611 100644
--- a/pages/cart/cart.wxml
+++ b/pages/cart/cart.wxml
@@ -14,6 +14,7 @@
+
@@ -30,6 +31,7 @@
+
@@ -65,9 +67,9 @@
- 总计:¥{{amount}}元 {{'-' + coupon['coupon-value'] + '元优惠券' }}
+ 总计:¥{{amount}}元 {{'-' + coupon['coupon-value'] + '元优惠券' }}
-
+
总计:¥{{amount}}元
diff --git a/pages/cart/cart.wxss b/pages/cart/cart.wxss
index 62769d3..ae188b9 100644
--- a/pages/cart/cart.wxss
+++ b/pages/cart/cart.wxss
@@ -114,23 +114,21 @@
width: 100%;
}
+.billing-btn .total {
+ background-color: #eee;
+}
+
.billing-btn .button {
border-radius: 0;
}
.billing-btn view {
- padding-top: 15rpx;
- padding-bottom: 15rpx;
+ padding-top: 10rpx;
+ padding-bottom: 10rpx;
padding-left: 15rpx;
- background-color: white;
font-size: 30rpx;
}
-.separate {
- height: 18rpx;
- background-color: #f2f2f2;
-}
-
.use-coupon {
font-size: 33rpx;
line-height: 70rpx;
diff --git a/pages/show_product/show_product.js b/pages/show_product/show_product.js
index 33674a9..dc1b175 100644
--- a/pages/show_product/show_product.js
+++ b/pages/show_product/show_product.js
@@ -81,7 +81,7 @@ Page({
} else {
cartItems.push({
id: this.data.id,
- quantity: this.data.quantity,
+ quantity: 1,
product: this.data.product
})
}
@@ -94,9 +94,5 @@ Page({
key: 'cartItems',
data: cartItems
})
- },
-
- bindQuantityInput (e) {
- this.setData({'quantity': e.detail.value})
- },
+ }
})
diff --git a/pages/show_product/show_product.wxml b/pages/show_product/show_product.wxml
index a81eb2a..f4dc4dd 100644
--- a/pages/show_product/show_product.wxml
+++ b/pages/show_product/show_product.wxml
@@ -10,16 +10,12 @@
- ¥{{product['baye-price']}}
+ 巴爷价:¥{{product['baye-price']}}
¥{{product['member-price']}}
-
- 购买数量:
-
-
@@ -27,6 +23,8 @@
+
+
diff --git a/pages/show_product/show_product.wxss b/pages/show_product/show_product.wxss
index 09c18d4..5dca646 100644
--- a/pages/show_product/show_product.wxss
+++ b/pages/show_product/show_product.wxss
@@ -1,5 +1,6 @@
.head-img {
- width: 100%;
+ width: 750rpx;
+ height: 750rpx;
}
.line {
@@ -9,25 +10,10 @@
padding: 10rpx 20rpx 0 20rpx;
}
-.quantity {
- width: 50%;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- margin-left: auto;
- margin: 20rpx;
- font-size: 30rpx;
-}
-
-#quantity {
- width: 80rpx;
- border: 1rpx solid lightgrey;
-}
-
.price {
- margin-left: 20rpx;
- width: 50%;
- margin-right: auto;
+ margin-top: 40rpx;
+ margin-bottom: 50rpx;
+ text-align: center;
}
#price {
@@ -44,7 +30,7 @@
text-align: center;
font-size: 32rpx;
line-height: 48rpx;
- padding: 5rpx 20rpx 0 20rpx;
+ padding: 0 75rpx 0 75rpx;
}
.btn-area {
@@ -55,7 +41,6 @@
.desc-container {
border-top: 1rpx solid lightgrey;
- margin-top: 40rpx;
margin-bottom: 90rpx;
}