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.
hunjianghu/江可飞/小程序开发/pages/order/order.wxml

166 lines
5.6 KiB

<!--manageAddress.wxml-->
<view class="order_sort flexRowBetween">
<view class="order_item {{currentTap ==0?'order_this':''}}" data-current="0" bindtap="order_status">
待付款
</view>
<view class="order_item {{currentTap ==1?'order_this':''}}" data-current="1" bindtap="order_status">
待收货
</view>
<view class="order_item {{currentTap ==2?'order_this':''}}" data-current="2" bindtap="order_status">
待发货
</view>
</view>
<view class="order_list">
<!--待付款页面-->
<view class="order_all {{currentTap ==0?'order_show':''}}" wx:if='{{unpaidList!=null}}' wx:for='{{unpaidList}}' wx:for-item="book" wx:key="book.BookID">
<view class="order_tlt flexRowBetween">
<view class="tlt_left">
<text>订单创建时期:</text>
<text>2018-11-11</text>
</view>
<view class="tlt_right" style="color:#21c3d4">
等待付款
</view>
</view>
<view class="same_stroe">
<view class="flexRowBetween orderlistShow">
<view class="order_left">
<image src="http://45.76.158.31:8080/web/BookImage/{{book.BookName}}.jpg"></image>
</view>
<view class="order_name">
<view class="text1">{{book.BookName}}</view>
<view class="orders flexRowBetween">
<text class="order_type">数量:{{book.Count}}</text>
<text class="order_price">{{book.Price*book.Count}}</text>
</view>
</view>
</view>
</view>
<view class="handle">
<view class="total_order">
<view class="flexRowBetween">
<view class="total_money">
<text>合计:</text>
<text class="text2">¥{{totalPrice}}</text>
</view>
</view>
</view>
<view class="handle_order">
<view class="flexRowBetween">
<view class="handle_orders delete_order" bindtap='deleteList'>删除订单</view>
<view class="handle_orders comment_order">去付款</view>
</view>
</view>
</view>
</view>
<!--待收货页面-->
<view class="order_all {{currentTap ==1?'order_show':''}}" wx:if='{{dueinList!=null}}' wx:for='{{dueinList}}' wx:for-item="book" wx:key="book.BookID">
<view class="order_tlt flexRowBetween">
<view class="tlt_left">
<text>发货日期:</text>
<text>2018-11-11</text>
</view>
<view class="tlt_right" style="color:#21c3d4">
正在配送中
</view>
</view>
<view class="same_stroe">
<view class="flexRowBetween orderlistShow">
<view class="order_left">
<image src="http://45.76.158.31:8080/web/BookImage/{{book.BookName}}.jpg"></image>
</view>
<view class="order_name">
<view class="text1">{{book.BookName}}</view>
<view class="orders flexRowBetween">
<text class="order_type">数量:{{book.Count}}</text>
</view>
</view>
</view>
</view>
<view class="handle">
<view class="total_order">
<view class="flexRowBetween">
<view class="total_money">
<text>收货地址:</text>
<text class="text2">{{book.Addresss}}</text>
</view>
</view>
</view>
<view class="total_order">
<view class="flexRowBetween">
<view class="total_money">
<text>收货人:</text>
<text class="text2">{{book.consignee}}</text>
</view>
</view>
</view>
<view class="total_order">
<view class="flexRowBetween">
<view class="total_money">
<text>电话:</text>
<text class="text2">{{book.phone}}</text>
</view>
</view>
</view>
<!--
<view class="handle_order">
<view class="flexRowBetween">
<view class="handle_orders delete_order" bindtap='deleteList'>删除订单</view>
<view class="handle_orders comment_order">去付款</view>
</view>
</view>-->
</view>
</view>
<view class="order_all {{currentTap ==2?'order_show':''}}" wx:if="{{deliverList!=null}}" wx:for='{{dueinList}}' wx:for-item="book" wx:key="book.BookID">
<view class="order_tlt flexRowBetween">
<view class="tlt_left">
<text>付款日期:</text>
<text>{{goodsDate}}</text>
</view>
<view class="tlt_right" style="color:#21c3d4">
等待卖家发货
</view>
</view>
<view class="same_stroe">
<view class="flexRowBetween orderlistShow">
<view class="order_left">
<image src="http://45.76.158.31:8080/web/BookImage/{{book.BookName}}.jpg"></image>
</view>
<view class="order_name">
<view class="text1">{{book.BookName}}</view>
<view class="orders flexRowBetween">
<text class="order_type">数量:{{book.Count}}</text>
</view>
</view>
</view>
</view>
<view class="handle">
<view class="total_order">
<view class="flexRowBetween">
<view class="total_money">
<text>收货地址:</text>
<text class="text2">{{book.Address}}</text>
</view>
</view>
</view>
<view class="total_order">
<view class="flexRowBetween">
<view class="total_money">
<text>收货人:</text>
<text class="text2">{{book.consignee}}</text>
</view>
</view>
</view>
<view class="total_order">
<view class="flexRowBetween">
<view class="total_money">
<text>电话:</text>
<text class="text2">{{book.phone}}</text>
</view>
</view>
</view>
</view>
</view>
</view>