|
@@ -4,7 +4,7 @@
|
|
|
<view class="button-content">
|
|
|
<view class="btn btn-cancel" v-if="btnState.isCancel" @click.stop="btnConfirm('cancel',orderID)">取消订单</view>
|
|
|
<view class="btn btn-cancel" v-if="btnState.isDelete" @click.stop="btnConfirm('delete',orderID)">删除订单</view>
|
|
|
- <view class="btn btn-cancel" @click.stop="btnConfirm('again',orderID)">再来一单</view>
|
|
|
+ <view class="btn btn-cancel" @click.stop="btnagainConfirm('again',orderID,serviceProviderId)">再来一单</view>
|
|
|
<view class="btn btn-cancel" @click.stop="onShareCode(orderID,userID)">分享订单</view>
|
|
|
<view class="btn btn-color" v-if="btnState.isConfirm" @click.stop="btnConfirm('confirm',orderID)">确认订单</view>
|
|
|
</view>
|
|
@@ -23,6 +23,9 @@
|
|
|
},
|
|
|
userID:{
|
|
|
type:Number
|
|
|
+ },
|
|
|
+ serviceProviderId:{
|
|
|
+ type:Number
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
@@ -92,9 +95,17 @@
|
|
|
btnConfirm(type,id){
|
|
|
let data = {
|
|
|
type:type,
|
|
|
- orderId:id
|
|
|
+ orderId:id,
|
|
|
}
|
|
|
this.$emit('buttonConfirm',data)
|
|
|
+ },
|
|
|
+ btnagainConfirm(type,id,serviceid){
|
|
|
+ let data = {
|
|
|
+ type:type,
|
|
|
+ orderId:id,
|
|
|
+ serviceProviderId:serviceid,
|
|
|
+ }
|
|
|
+ this.$emit('buttonConfirm',data)
|
|
|
}
|
|
|
}
|
|
|
}
|