Commit 908bb07f by 谢中龙

修改订单展示

parent b7a6055e
...@@ -269,12 +269,14 @@ wxService.page({ ...@@ -269,12 +269,14 @@ wxService.page({
// 删除订单 // 删除订单
handelDelOrder(e) { handelDelOrder(e) {
let _this = this; let _this = this;
//先判断整个订单的所有包裹是否都已经
wx.showModal({ wx.showModal({
title: '订单删除提示', title: '订单删除提示',
content: '确认删除此订单?', content: '删除订单将删除订单中所有的包裹,请谨慎操作?',
showCancel: true, showCancel: true,
cancelText: '取消', cancelText: '取消',
confirmText: '删除', confirmText: '全部删除',
confirmColor: '#cb3c3c', confirmColor: '#cb3c3c',
success: function (modalRes) { success: function (modalRes) {
if (modalRes.confirm) { if (modalRes.confirm) {
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
wx:for="{{orderList}}" wx:for="{{orderList}}"
wx:for-item="item" wx:for-item="item"
wx:for-index="idx" wx:for-index="idx"
wx:if="{{item.parcelList.length > 0}}"
wx:key="*this"> wx:key="*this">
<view class="order-new-no" bindtap="handelDetail" data-id="{{item.id}}"> <view class="order-new-no" bindtap="handelDetail" data-id="{{item.id}}">
<view class="order-new-no-lf"> <view class="order-new-no-lf">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment