Browse Source

取消订单bug

devlop
mo-bai 4 years ago
parent
commit
f5f5cafe10
1 changed files with 3 additions and 2 deletions
  1. 5
      pages/order-detail/index.vue

5
pages/order-detail/index.vue

@ -132,7 +132,7 @@
</qn-footer> </qn-footer>
<qn-footer fixed height="120rpx" v-if="showSendImgs(orderInfo.status)"> <qn-footer fixed height="120rpx" v-if="showSendImgs(orderInfo.status)">
<view class="flex-row-center-end" style="padding: 0 32rpx"> <view class="flex-row-center-end" style="padding: 0 32rpx">
<view class="button button_cancel" v-show="orderInfo.status === supplierOrderStatusEnum.WAIT_DELIVERY" style="width: 220rpx" @click="cancel">
<view class="button button_cancel" v-show="orderInfo.status === supplierOrderStatusEnum.WAIT_DELIVERY" style="width: 220rpx" @click="cancel(orderInfo)">
取消订单 取消订单
</view> </view>
<view class="button button_contact" @click="viewContract">查看合同</view> <view class="button button_contact" @click="viewContract">查看合同</view>
@ -465,7 +465,8 @@ export default {
}, },
// //
uploadVoucher() { uploadVoucher() {
uploadImage(['album'], 5 - this.orderInfo.proofDelivery.length)
let num = this.orderInfo.proofDelivery && this.orderInfo.proofDelivery.length ? 5 - this.orderInfo.proofDelivery.length : 0
uploadImage(['album'], num)
.then((urls) => { .then((urls) => {
if (urls) { if (urls) {
supplierUploadVoucher({ supplierUploadVoucher({

Loading…
Cancel
Save