cart 列表样式改进

wechat_user_type
Ge Hao 8 years ago
parent a98ef683d3
commit 9f72fc2b34
  1. 4
      pages/cart/cart.wxml
  2. 1
      pages/cart/cart.wxss
  3. 2
      pages/category/category.js

@ -26,7 +26,9 @@
<text> {{item.product.name}} </text>
</view>
<view class="numbers">
<text class="price" bindtap="bindTapOnItem" data-id="{{item.id}}"> ¥{{item.product.price}} / 件 </text>
<view>
<text class="price" bindtap="bindTapOnItem" data-id="{{item.id}}"> ¥{{item.product.price}} / 件 </text>
</view>
<view class="pull-right">
<view>
<text>购买数量:</text>

@ -68,6 +68,7 @@
.numbers {
display: flex;
justify-content: space-between;
}
.numbers text, input {

@ -12,7 +12,7 @@ Page({
that.setData({'items': data})
wx.setStorage({
key:`cate_${params.type}`,
data:data
data: data
})
})
}

Loading…
Cancel
Save