综法订单新增取消功能,新增匹配律师状态

This commit is contained in:
唐明明
2023-06-08 13:35:07 +08:00
parent 23aaf13ffa
commit ca8c6dff01
7 changed files with 99 additions and 11 deletions

View File

@@ -15,9 +15,10 @@
<label>需补差价</label>
<view class="nowrap">{{ diff || '-' }}</view>
</view>
<view class="order-content-type">
<view class="order-content-type" v-if="can.lawyer_status != 0">
<label>服务律师</label>
<view class="nowrap">{{ lawyer.name || '-' }}</view>
<view class="nowrap" v-if="can.lawyer_status === 2">{{ lawyer.name || '-' }}</view>
<view class="nowrap" style="color: #FFAB3F;" v-else>待匹配律师</view>
</view>
<view class="order-content-type">
<label>服务费用</label>
@@ -29,6 +30,7 @@
</view>
</view>
<view class="order-btns">
<button class="btn-cancel" v-if="can.cancel && isSelf" @click="onCancel(no)">取消</button>
<button class="btn-cancel" @click="onPhone(user.username)">联系TA</button>
<button class="btn-cancel" @click="onSing(no)" v-if="can.sign && isSelf">签约</button>
<button class="btn-cancel" :class="{'in': can.pay_status == 3}" v-if="can.pay_status == 1 || can.pay_status == 2 || can.pay_status == 3" @click="onOPay(no)">
@@ -123,6 +125,10 @@
// 支付
onOPay(id){
this.$emit('pay', id)
},
// 取消订单
onCancel(id){
this.$emit('cancel', id)
}
}
}

View File

@@ -15,9 +15,10 @@
<label>需补差价</label>
<view class="nowrap">{{ diff || '-' }}</view>
</view>
<view class="order-content-type">
<view class="order-content-type" v-if="can.lawyer_status != 0">
<label>服务律师</label>
<view class="nowrap">{{ lawyer.name || '-' }}</view>
<view class="nowrap" v-if="can.lawyer_status === 2">{{ lawyer.name || '-' }}</view>
<view class="nowrap" style="color: #FFAB3F;" v-else>待匹配律师</view>
</view>
<view class="order-content-type">
<label>服务金额</label>
@@ -29,6 +30,7 @@
</view>
</view>
<view class="order-btns">
<button class="btn-cancel" v-if="can.cancel && isSelf" @click="onCancel(no)">取消</button>
<button class="btn-cancel" @click="onPhone(user.username)">联系TA</button>
<button class="btn-cancel" :class="{'in': can.pay_status == 3}" v-if="can.pay_status == 1 || can.pay_status == 2 || can.pay_status == 3" @click="onOPay(no)">
<text v-if="can.pay_status == 1">支付</text>
@@ -96,6 +98,10 @@
default : () => {
return { name: '' }
}
},
isSelf: {
type : Boolean,
default : false
}
},
methods: {
@@ -114,6 +120,10 @@
// 支付
onOPay(id){
this.$emit('pay', id)
},
// 取消订单
onCancel(id){
this.$emit('cancel', id)
}
}
}

View File

@@ -15,9 +15,10 @@
<label>订单类型</label>
<view class="nowrap">{{ service.title || '-' }}</view>
</view>
<view class="order-content-type">
<view class="order-content-type" v-if="can.lawyer_status != 0">
<label>服务律师</label>
<view class="nowrap">{{ lawyer.name || '-' }}</view>
<view class="nowrap" v-if="can.lawyer_status === 2">{{ lawyer.name || '-' }}</view>
<view class="nowrap" style="color: #FFAB3F;" v-else>待匹配律师</view>
</view>
<view class="order-content-type">
<label>服务金额</label>
@@ -29,6 +30,7 @@
</view>
</view>
<view class="order-btns">
<button class="btn-cancel" v-if="can.cancel && isSelf" @click="onCancel(no)">取消</button>
<button class="btn-cancel" @click="onPhone(user.username)">联系TA</button>
<button class="btn-cancel" @click="onSing(no)" v-if="can.sign && isSelf">签约</button>
<button class="btn-cancel" :class="{'in': can.pay_status == 3}" v-if="can.pay_status == 1 || can.pay_status == 2 || can.pay_status == 3" @click="onOPay(no)">
@@ -119,6 +121,10 @@
// 支付
onOPay(id){
this.$emit('pay', id)
},
// 取消订单
onCancel(id){
this.$emit('cancel', id)
}
}
}

View File

@@ -6,9 +6,10 @@
<view class="order-block-content">
<view class="order-user">{{user.nickname}}<text>{{user.username}}</text></view>
<view class="order-content">
<view class="order-content-type">
<view class="order-content-type" v-if="can.lawyer_status != 0">
<label>服务律师</label>
<view class="nowrap">{{ lawyer.name || '-' }}</view>
<view class="nowrap" v-if="can.lawyer_status === 2">{{ lawyer.name || '-' }}</view>
<view class="nowrap" style="color: #FFAB3F;" v-else>待匹配律师</view>
</view>
<view class="order-content-type">
<label>服务金额</label>
@@ -20,6 +21,7 @@
</view>
</view>
<view class="order-btns">
<!-- <button class="btn-cancel" v-if="can.cancel && isSelf" @click="onCancel(no)">取消</button> -->
<button class="btn-cancel" @click="onPhone(user)">联系TA</button>
<button class="btn-sign" @click="onInfo(no)">查看</button>
</view>
@@ -65,6 +67,10 @@
default : () => {
return { name: '' }
}
},
isSelf: {
type : Boolean,
default : false
}
},
methods: {
@@ -78,6 +84,10 @@
},
onSing(id){
this.$emit('info', id)
},
// 取消订单
onCancel(id){
this.$emit('cancel', id)
}
}
}