From e33b3c9543c520225ad4176a5aad714ed4573d1c Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 21 Mar 2024 17:56:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order_details/stay.vue | 50 ++++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/pages/order_details/stay.vue b/pages/order_details/stay.vue index bbcf724..f147a24 100644 --- a/pages/order_details/stay.vue +++ b/pages/order_details/stay.vue @@ -8,7 +8,8 @@ - 请在{{orderInfo.cancel_time}}前完成支付! + 请在{{orderInfo.cancel_time}}前完成支付! + 请及时上传凭证完成支付 {{orderInfo.add_time_y}}{{orderInfo.create_time}} @@ -149,26 +150,25 @@ ¥{{orderInfo.total_price}} - - + - 公司名称: - {{item.company_name}} + {{orderInfo.orderList[0].order_extend.bank_info.company_name}} 对公账号: - {{item.corporate_account}} + {{orderInfo.orderList[0].order_extend.bank_info.corporate_account}} 开户行: - {{item.corporate_bank}} + {{orderInfo.orderList[0].order_extend.bank_info.corporate_bank}} 开户行地址: - {{item.corporate_bank_address}} + {{orderInfo.orderList[0].order_extend.bank_info.corporate_bank_address}} @@ -203,8 +203,10 @@ + 重新上传 - 暂无凭证 + + 上传凭证 @@ -243,7 +245,8 @@ orderAgain, orderTake, orderDel, - unOrderCancel + unOrderCancel, + uploadEnvidenceApi } from '@/api/order.js'; import { openOrderRefundSubscribe @@ -336,8 +339,8 @@ }, onShow() { if (this.isLogin) { - this.getOrderInfo(); this.getUserInfo(); + this.getOrderInfo(); } else { toLogin() } @@ -359,6 +362,25 @@ }, mounted: function() {}, methods: { + // 对公转账,上传支付凭证 + uploadEnvidence(orderid) { + let that = this; + that.$util.uploadImageOne('upload/image', function(res) { + uploadEnvidenceApi(orderid, res.data.path).then(res1 => { + if (res1.status == 200) { + that.orderInfo.orderList[0].order_extend.corporate_voucher = res.data.path; + that.$set(that, 'orderInfo', that.orderInfo); + that.$util.Tips({ + title: "上传成功,请等待后台审核!" + }) + } else { + that.$util.Tips({ + title: res.message + }) + } + }) + }); + }, // 图片预览 getPhotoClickIdx(list, idx) { uni.previewImage({ @@ -1120,4 +1142,10 @@ } } } + .upload-btn{ + background-color: #40ae36; + color: #fff; + padding: 10rpx 20rpx 12rpx 20rpx; + border-radius: 50rpx; + } \ No newline at end of file