cart 样式增强

wechat_user_type
Ge Hao 8 years ago
parent f22e9f20f5
commit c5e2971876
  1. 6
      pages/cart/cart.js
  2. 7
      pages/cart/cart.wxml
  3. 11
      pages/cart/cart.wxss

@ -4,9 +4,9 @@ Page({
data: {
deleteModalHidden: true,
wantToDeleteItem: '',
address:{},
cartItems:[],
amount:0
address: null,
cartItems: [],
amount: 0
},
onLoad: function (params) {

@ -1,6 +1,6 @@
<view class="address-container" wx:if="{{ address }}" bindtap="bindTapAddress">
<view class="address-container" wx:if="{{ address.detail }}" bindtap="bindTapAddress">
<view class="receiver">
<view>
<view class="left">
<text>收货人:{{address.name}}</text>
</view>
<view class="right">
@ -10,9 +10,6 @@
<view class="address">
<text>{{address.province}} {{address.city}} {{address.county}} {{address.detail}}</text>
</view>
<view class="button">
<button type='primary'>修改地址</button>
</view>
</view>
<view wx:else bindtap="bindTapAddress">
<button class="button" type='primary'>填写收货地址</button>

@ -1,17 +1,24 @@
.button button {
.button {
border-radius: 0;
}
.address-container {
margin: 15rpx;
margin-bottom: 25rpx;
}
.receiver {
display: flex;
}
.left {
width: 60%;
}
.right {
margin: auto;
width: 40%;
margin-left: auto;
text-align: right;
}
.item {

Loading…
Cancel
Save