订单列表
This commit is contained in:
parent
aeb8398b25
commit
7dde4ed754
|
|
@ -23,24 +23,23 @@
|
|||
<view class="item" v-for="(item,index) in orderForm.list" :key="index" @click="orderinfo(item)">
|
||||
<view class="header-wrap">
|
||||
<view class="header-wrap-left">
|
||||
<text class="sendType" v-if="item.sendType == 'post'">快递</text>
|
||||
<text class="sendType" v-if="item.sendType == 'takeaway'">外卖</text>
|
||||
<text class="sendType" v-if="item.sendType == 'takeself'">自提</text>
|
||||
<text class="sendType" v-if="item.sendType == 'table'">堂食</text>
|
||||
<text class="sendType" v-if="item.dineMode == 'dine-in'">堂食</text>
|
||||
<text class="sendType" v-if="item.dineMode == 'take-out'">外带</text>
|
||||
<text class="sendType" v-if="item.dineMode == 'take-away'">外卖</text>
|
||||
<text class="shopName"> {{ item.shopName || ''}} </text>
|
||||
</view>
|
||||
|
||||
<text class="status" v-if="item.status == 'unpaid' || item.status == 'paying'">
|
||||
<text style="color: #333;">待付款</text>
|
||||
<text class="status" v-if="item.status == 'unpaid'">
|
||||
<text style="color: #333;">待支付</text>
|
||||
</text>
|
||||
<text class="status" v-if="item.status == 'unsend'">
|
||||
<text>待发货</text>
|
||||
<text class="status" v-if="item.status == 'in-production'">
|
||||
<text>制作中</text>
|
||||
</text>
|
||||
<text class="status" v-if="item.status == 'closed'">
|
||||
<text>已完成</text>
|
||||
<text class="status" v-if="item.status == 'wait-out'">
|
||||
<text>待取餐</text>
|
||||
</text>
|
||||
<text class="status" v-if="item.status == 'send'">
|
||||
<text> 已发</text>
|
||||
<text class="status" v-if="item.status == 'done'">
|
||||
<text> 订单完成</text>
|
||||
</text>
|
||||
<text class="status" v-if="item.status == 'refunding'">
|
||||
<text>申请退单</text>
|
||||
|
|
@ -48,11 +47,11 @@
|
|||
<text class="status" v-if="item.status == 'refund'">
|
||||
<text>退单</text>
|
||||
</text>
|
||||
<text class="status" v-if="item.status == 'cancelled'">
|
||||
<text>已取消</text>
|
||||
<text class="status" v-if="item.status == 'part-refund'">
|
||||
<text>部分退单</text>
|
||||
</text>
|
||||
<text class="status" v-if="item.status == 'merge'">
|
||||
<text>合台</text>
|
||||
<text class="status" v-if="item.status == 'cancelled'">
|
||||
<text>取消订单</text>
|
||||
</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
|
|
@ -376,6 +375,11 @@
|
|||
flex-shrink: 0;
|
||||
|
||||
.productName {
|
||||
width: 120rpx;
|
||||
text-align: center;
|
||||
overflow: hidden; //超出的文本隐藏
|
||||
text-overflow: ellipsis; //溢出用省略号显示
|
||||
white-space: nowrap; //溢出不换行
|
||||
flex-shrink: 0;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue