You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.2 KiB

8 years ago
<view class="address-container" wx:if="{{ address.detail_address && address.customer_name && address.customer_mobile }}" bindtap="bindTapAddress">
<view class="receiver">
<view>
8 years ago
<text>收货人:{{address.customer_name}}</text>
</view>
<view>
8 years ago
<text>{{address.customer_mobile}}</text>
</view>
</view>
<view class="address">
<text>{{address.province}} {{address.city}} {{address.county}} {{address.detail_address}}</text>
</view>
</view>
<view wx:else bindtap="bindTapAddress">
<button class="button" type='primary'>填写收货地址</button>
</view>
<view class="separate"></view>
<!--<view class="use-coupon" bindtap="bindSelectCoupon">
<view><text>使用优惠券</text></view>
</view>
<view class="separate"></view>-->
8 years ago
<view class="items-container">
8 years ago
<block wx:for="{{cartItems}}" wx:for-item="item" wx:key="id">
<view class="item" data-id="{{item.id}}">
<view class="image" catchtap="catchTapOnItem" data-id="{{item.id}}">
<image class="head-img" src="{{item.product['image-url']}}" mode="aspectFit"></image>
</view>
<view class="item-right">
<view class="title" catchtap="catchTapOnItem" data-id="{{item.id}}">
<text> {{item.product.name}} </text>
</view>
<view class="numbers">
<view>
<view wx:if="{{ accountType === '巴爷' }}">
<text class="price" catchtap="catchTapOnItem" data-id="{{item.id}}">¥{{item.product['baye-price']}} / 件 </text>
</view>
<view wx:else>
<text class="price" catchtap="catchTapOnItem" data-id="{{item.id}}">¥{{item.product['member-price']}} / 件 </text>
</view>
</view>
<view class="pull-right">
<view>
<text>数量:</text>
</view>
<view class="quantity">
<input value="{{item.quantity}}" bindinput="bindChangeQuantity" data-id="{{item.id}}"></input>
</view>
</view>
</view>
</view>
</view>
</block>
</view>
<view class="billing-btn">
<view>总计:¥{{amount}}元</view>
<button class="button" type='warn' bindtap="bindBilling"> 去支付 </button>
</view>