Browse Source

修改问题

1.0
396316021 1 year ago
parent
commit
1d243513b7
  1. 7
      pages/Order/detail.vue
  2. 6
      pages/User/order.vue

7
pages/Order/detail.vue

@ -360,7 +360,8 @@ export default {
} }
}, },
onLoad(option) { onLoad(option) {
this.model.order.house_order_id = option.id?option.id:''; this.model.order.house_order_id = option.house_order_id?option.house_order_id:'';
this.model.order.house_id = option.id?option.id:'';
this.model.order.rent = option.rent?parseFloat(option.rent)+'':''; this.model.order.rent = option.rent?parseFloat(option.rent)+'':'';
this.type = option.type?option.type:'create'; this.type = option.type?option.type:'create';
}, },
@ -389,9 +390,7 @@ export default {
// this.model.order.month = ''+this.model.order.month; // this.model.order.month = ''+this.model.order.month;
// this.model.order.month = parseInt(this.model.order.month); // this.model.order.month = parseInt(this.model.order.month);
this.fileList1 = [{ this.fileList1 = res.data.payment_voucher;
url:res.data.payment_voucher
}];
this.fileList2 = res.data.lease_agreement; this.fileList2 = res.data.lease_agreement;
}) })
}, },

6
pages/User/order.vue

@ -126,21 +126,21 @@
<view class="button-group row col"> <view class="button-group row col">
<view class="button" v-if="item.status === 3"> <view class="button" v-if="item.status === 3">
<u-button <u-button
@click="navTo('/pages/Order/detail?id='+item.id+'&type=edit')" @click="navTo('/pages/Order/detail?house_order_id='+item.id+'&type=edit')"
text="重新审核" text="重新审核"
shape="circle" shape="circle"
custom-style="height:64rpx;border: 2rpx solid #AFB5BE;padding:0rpx 42rpx;"></u-button> custom-style="height:64rpx;border: 2rpx solid #AFB5BE;padding:0rpx 42rpx;"></u-button>
</view> </view>
<view class="button" v-else-if="item.status === 5 || item.status === 1"> <view class="button" v-else-if="item.status === 5 || item.status === 1">
<u-button <u-button
@click="navTo('/pages/Order/detail?id='+item.id+'&type=apply')" @click="navTo('/pages/Order/detail?house_order_id='+item.id+'&type=apply')"
text="申请兑换" text="申请兑换"
shape="circle" shape="circle"
custom-style="height:64rpx;border: 2rpx solid #AFB5BE;padding:0rpx 42rpx;"></u-button> custom-style="height:64rpx;border: 2rpx solid #AFB5BE;padding:0rpx 42rpx;"></u-button>
</view> </view>
<view class="button" v-else> <view class="button" v-else>
<u-button <u-button
@click="navTo('/pages/Order/detail?id='+item.id+'&type=detail')" @click="navTo('/pages/Order/detail?house_order_id='+item.id+'&type=detail')"
text="租房详情" text="租房详情"
shape="circle" shape="circle"
custom-style="height:64rpx;border: 2rpx solid #AFB5BE;padding:0rpx 42rpx;"></u-button> custom-style="height:64rpx;border: 2rpx solid #AFB5BE;padding:0rpx 42rpx;"></u-button>

Loading…
Cancel
Save