This commit is contained in:
2023-06-09 17:59:05 +08:00
parent 59b15f321d
commit 47a057b35b
237 changed files with 669 additions and 216 deletions

View File

@@ -34,6 +34,23 @@
{{item.expand.title}}
</view>
</view>
<view class="listItem-cont-label" v-if="item.can.lawyer_status != 0">
<view class="listItem-cont-name">
律师匹配
</view>
<view class="listItem-cont-text listItem-cont-price">
<block v-if="item.can.lawyer_status == 1">待匹配律师</block>
<block v-else-if="item.can.lawyer_status == 2">已匹配律师</block>
</view>
</view>
<view class="listItem-cont-label" v-if="item.lawyer">
<view class="listItem-cont-name">
所属律师
</view>
<view class="listItem-cont-text listItem-cont-price">
{{item.lawyer.name}}
</view>
</view>
<view class="listItem-cont-label">
<view class="listItem-cont-name">
订单金额
@@ -51,10 +68,18 @@
<view class="listItem-cont-btn">去支付</view>
</view>
</view>
<view class="listItem-cont-label" v-if="item.need_pay_diff_prices != 0">
<view class="listItem-cont-name">
下单时间
</view>
<view class="listItem-cont-text listItem-cont-diff" @click="diffClick(item)">
{{item.created_at}}
</view>
</view>
</view>
<view class="listItem-labor">
<view class="listItem-labor-time">
{{item.created_at}}
<view @click="operateMore(item.expand_order_id)" v-if="item.can.cancel">更多</view>
</view>
<view class="listItem-labor-btn">
<view v-if="item.can.pay_status == 1" @click="expressSheet(item.expand_order_id, item.order_type, item.can, item.price)" class="listItem-labor-go">
@@ -79,7 +104,7 @@
</view>
<view class="pack-center pages-hint" v-else>
<image src="/static/imgs/Noevaluate.png"></image>
<image src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/7ad417d0c215db601b8e1bead05c3a5e.png"></image>
<view>暂无订单</view>
</view>
@@ -123,7 +148,7 @@
</template>
<script>
import { expandOrder, entrustPay, esignUrl } from '@/apis/interfaces/synthesis'
import { expandOrder, entrustPay, esignUrl, expandCancel } from '@/apis/interfaces/synthesis'
export default {
data() {
return {
@@ -194,8 +219,8 @@
esignUrl({
order_id : id,
order_type: type,
// redirect_url: "https://web.douhuofalv.com/user/index",
redirect_url: "https://web.douhuotest.douhuofalv.com/user/index",
redirect_url: "https://web.douhuofalv.com/user/index",
// redirect_url: "https://web.douhuotest.douhuofalv.com/user/index",
channel : 'h5',
app_scheme : ''
}).then(res => {
@@ -266,6 +291,39 @@
})
},
// 更多操作
operateMore(id) {
wx.showActionSheet({
itemList: ['取消订单'],
success: ()=> {
wx.showModal({
title : '提示',
content : '是否取消订单',
success : res=> {
if (res.confirm) {
expandCancel(id).then(res => {
wx.showToast({
title:'取消成功',
icon:'none'
})
// 获取-委托单-列表
this.yearServe();
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
}
}
})
},
fail: err=> {}
})
},
// 页面相关事件处理函数--监听用户下拉动作
onPullDownRefresh() {
// 获取-拓展单-列表