45 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--pages/order/index.wxml-->
<view class="order-page">
<v-tabs sticky swipeable bind:change="onTabChange">
<v-tab wx:for="{{tabs}}" wx:key="name" name="{{item.name}}" title="{{item.title}}">
<view class="order-list-wrapper">
<view wx:for="{{item.orders}}" wx:key="id" class="order-item" wx:for-item="o">
<view class="order-no">
<text>订单编号: </text>
<text>{{o.id}}</text>
</view>
<view class="order-goods-content">
<view class="info" bindtap="showOrderDetail" data-id="{{o.id}}" id="{{o.id}}">
<!-- 商品图片 -->
<view class="goods-cover">
<image class="goods-cover-image" src="{{o.goods.cover}}" />
</view>
<view class="goods-name">
<text>{{o.goods.title}}</text>
</view>
<view class="goods-price">
<view class="sale-price">¥{{o.goods.price}}</view>
<view wx:if="{{o.goods.originPrice > 0}}" class="origin-price">¥{{o.goods.originPrice}}</view>
<view class="count">× 1</view>
</view>
</view>
<view class="price">
<text>合计:</text>
<text class="price-total">{{o.price}}</text>
</view>
</view>
<view class="order-footer">
<view class="order-status">
<text>{{statusEnums[o.status]||''}}</text>
</view>
<view class="order-action">
<v-button wx:if="{{o.status < 3}}" bindtap="cancelOrder" data-id="{{o.id}}" class="btn" round type="default" size="small">取消订单</v-button>
<v-button bindtap="deleteOrder" data-id="{{o.id}}" class="btn" round type="danger" size="small">删除订单</v-button>
</view>
</view>
</view>
</view>
</v-tab>
</v-tabs>
</view>