From 9f72fc2b34c33c082baa2303dfeb2b698d85abe2 Mon Sep 17 00:00:00 2001 From: Ge Hao Date: Tue, 18 Oct 2016 10:32:28 +0800 Subject: [PATCH] =?UTF-8?q?cart=20=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart/cart.wxml | 4 +++- pages/cart/cart.wxss | 1 + pages/category/category.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/cart/cart.wxml b/pages/cart/cart.wxml index 05c7e1a..78c601d 100644 --- a/pages/cart/cart.wxml +++ b/pages/cart/cart.wxml @@ -26,7 +26,9 @@ {{item.product.name}} - ¥{{item.product.price}} / 件 + + ¥{{item.product.price}} / 件 + 购买数量: diff --git a/pages/cart/cart.wxss b/pages/cart/cart.wxss index 1f156f6..77c5742 100644 --- a/pages/cart/cart.wxss +++ b/pages/cart/cart.wxss @@ -68,6 +68,7 @@ .numbers { display: flex; + justify-content: space-between; } .numbers text, input { diff --git a/pages/category/category.js b/pages/category/category.js index 2d7e644..819f81a 100644 --- a/pages/category/category.js +++ b/pages/category/category.js @@ -12,7 +12,7 @@ Page({ that.setData({'items': data}) wx.setStorage({ key:`cate_${params.type}`, - data:data + data: data }) }) }