|
|
@@ -150,8 +150,11 @@
|
|
|
<!-- <text class="priceDetail">价格明细</text>-->
|
|
|
</view>
|
|
|
|
|
|
- <view class="btn" @click="qenPayInfo">
|
|
|
- <text lines="1" class="text_33">一键付款</text>
|
|
|
+ <view v-if="order.canPay" class="btn" @click="qenPayInfo">
|
|
|
+ <text class="text_33">一键付款</text>
|
|
|
+ </view>
|
|
|
+ <view v-else class="btn" @click="orderFinish">
|
|
|
+ <text class="text_33">结束订单</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -281,7 +284,6 @@ export default {
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
this.orderId = e.id
|
|
|
- this.getOrderDetailByOrderId(e.id)
|
|
|
this.getUserInfo();
|
|
|
},
|
|
|
onShow(){
|
|
|
@@ -377,6 +379,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ orderFinish(){
|
|
|
+ this.$api.orderFinish(this.order.orderNo).then((res)=>{
|
|
|
+ uni.$u.toast('操作成功')
|
|
|
+ this.getOrderDetailByOrderId(this.order.orderId)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
qenPayInfo(){
|
|
|
|
|
|
for(let i=0;i<this.order.child.length;i++){
|