| | |
| | | <text class="label">快递单号:</text> |
| | | <text>{{orderData.express_no ? orderData.express_no : '/'}}</text> |
| | | </view> |
| | | <view class="orderDetail-v"> |
| | | <!-- <view class="orderDetail-v"> |
| | | <text class="label">还款计划:</text> |
| | | <view class="orderplan"> |
| | | <text v-for="(item, index) in orderData.plan">{{item.paydate}}还款{{item.total}}({{item.status == 6 ? '已还' : '未还'}})</text> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="orderDetail-v"> |
| | | <text class="label">买卖合同:</text> |
| | | <text style="color: #2196F3;" @tap="getEsign">点击查看</text> |
| | |
| | | <text class="payback" v-if="orderData.status == 2" @tap="refundOrder(orderData)">退款</text> |
| | | <text class="exOrder" v-if="orderData.status == 3 || orderData.status == 4 || orderData.status == 5 || orderData.status == 6" @tap="getExpress(orderData)">物流</text> |
| | | <text class="payOrder" v-if="orderData.status == 3" @tap="receiveOrder(orderData)">收货</text> |
| | | <text class="payback" v-if="(orderData.status == 3 || orderData.status == 4 || orderData.status == 5) && orderData.payment == 1" @tap="getPlan(orderData)">还款</text> |
| | | <!-- <text class="payback" v-if="(orderData.status == 3 || orderData.status == 4 || orderData.status == 5) && orderData.payment == 1" @tap="getPlan(orderData)">还款</text> --> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <uni-popup ref="popup" type="bottom"> |
| | | <view class="popup-content"> |
| | | <view class="pop-title">物流信息</view> |
| | |
| | | </view> |
| | | </view> |
| | | </uni-popup> |
| | | |
| | | |
| | | <uni-popup ref="popup2" type="bottom"> |
| | | <view class="popup-content"> |
| | | <view class="pop-title">还款计划({{planData.length}})</view> |
| | |
| | | </view> |
| | | </view> |
| | | </uni-popup> |
| | | |
| | | |
| | | <uni-popup ref="popup3" type="center" style="width: 100%;"> |
| | | <view class="popup-content" style="width: 100%;"> |
| | | <view class="pop-title" style="">还款方式</view> |
| | |
| | | planId: 0, |
| | | } |
| | | }, |
| | | onLoad(op) { |
| | | onLoad(op) { |
| | | this.orderid = op.orderid ? op.orderid : 0 |
| | | this.getOrderInfo() |
| | | }, |
| | | methods: { |
| | | getEsign(){ |
| | | let t = this |
| | | let t = this |
| | | t.$util.post('Sign/getEsign', {cartsIds: this.orderData.cartsids}).then(res => { |
| | | if(res.code == 1){ |
| | | let pdfUrl = t.$baseUrl + res.data |
| | |
| | | setTimeout(() => { |
| | | uni.navigateBack() |
| | | }, 1500) |
| | | |
| | | |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.msg || '操作失败' |
| | |
| | | } |
| | | }) |
| | | } |
| | | if(payment == 3) { |
| | | if(payment == 3) { |
| | | uni.showToast({ |
| | | title: res.msg || '还款成功', |
| | | icon: 'success', |