This commit is contained in:
weipengfei 2024-03-21 17:56:29 +08:00
parent 7f8de78734
commit e33b3c9543

View File

@ -8,7 +8,8 @@
<image :src="imgUrl+'/static/order_1.gif'"></image>
</view>
<view class='data'>
<view class='state'>请在{{orderInfo.cancel_time}}前完成支付!</view>
<view class='state' v-if="orderInfo.pay_type!=10">请在{{orderInfo.cancel_time}}前完成支付!</view>
<view class='state' v-else>请及时上传凭证完成支付</view>
<view>{{orderInfo.add_time_y}}<text class='time'>{{orderInfo.create_time}}</text></view>
</view>
</view>
@ -149,26 +150,25 @@
<view class='conter'>{{orderInfo.total_price}}</view>
</view>
</view>
<view v-if="orderInfo.orderList && orderInfo.orderList[0].order_extend" class='wrapper'>
<view v-for="(item,index) in orderInfo.orderList[0].order_extend" :key="index" v-if="item"
<view v-if="orderInfo.orderList && orderInfo.orderList[0].order_extend " class='wrapper'>
<view v-if="orderInfo.orderList[0].order_extend.bank_info"
class='item acea-row row-between'>
<!-- <view>{{index}}</view> -->
<view v-if="!Array.isArray(item)" class='conter' style="width: 100%;">
<view class="conter-item">
<text class="conter-item-name">公司名称:</text>
<text>{{item.company_name}}</text>
<text>{{orderInfo.orderList[0].order_extend.bank_info.company_name}}</text>
</view>
<view class="conter-item">
<text class="conter-item-name">对公账号:</text>
<text>{{item.corporate_account}}</text>
<text>{{orderInfo.orderList[0].order_extend.bank_info.corporate_account}}</text>
</view>
<view class="conter-item">
<text class="conter-item-name">开户行:</text>
<text>{{item.corporate_bank}}</text>
<text>{{orderInfo.orderList[0].order_extend.bank_info.corporate_bank}}</text>
</view>
<view class="conter-item">
<text class="conter-item-name">开户行地址:</text>
<text>{{item.corporate_bank_address}}</text>
<text>{{orderInfo.orderList[0].order_extend.bank_info.corporate_bank_address}}</text>
</view>
</view>
<view v-else class='conter virtual_image'>
@ -203,8 +203,10 @@
<image style="width: 400rpx;height:340rpx"
:src="orderInfo.orderList[0].order_extend.corporate_voucher">
</image>
<view class='upload-btn' @click="uploadEnvidence(orderInfo.orderList[0].order_id)" style="display: inline-block;">重新上传</view>
</view>
<text v-else style="color:#868686;">暂无凭证</text>
<!-- <text v-else style="color:#868686;">暂无凭证</text> -->
<view v-else class='upload-btn' @click="uploadEnvidence(orderInfo.orderList[0].order_id)" >上传凭证</view>
</view>
</view>
<view class="content-clip"></view>
@ -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;
}
</style>