订单,提现功能调整
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
<view class="user-name">{{item.user.nickname}}</view>
|
||||
</view>
|
||||
<view class="btns">
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 0 || item.status.value == 2 || item.status.value == 3" @click="onCancel(item.business_order_id)">取消</view>
|
||||
<view class="btns-item btns-border" v-if="item.can.transfer" @click="onTransfers(index, item)">转让</view>
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 2" @click="onOrdersService(item.business_order_id)">匹配</view>
|
||||
<view class="btns-item btns-border" v-if="item.status.value == 4 && item.is_my" @click="onSign(item.business_order_id)">签约</view>
|
||||
@@ -108,8 +109,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { lists, orderSign, getOrderSignStatus } from '@/apis/interfaces/order.js'
|
||||
import { lists, orderSign, getOrderSignStatus, orderCancel } from '@/apis/interfaces/order.js'
|
||||
import { levels, transfer } from '@/apis/interfaces/transfers.js'
|
||||
import modal from 'uview-ui/libs/config/props/modal';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -332,7 +334,40 @@
|
||||
// 拨打电话
|
||||
makePhone(phone){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone
|
||||
phoneNumber: phone,
|
||||
fail: err => {
|
||||
uni.showToast({
|
||||
title: '拨打电话失败,请检查您的应用权限[电话]保持允许状态',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 取消订单
|
||||
onCancel(id){
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '取消订单后无法找回,确认取消吗?',
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
orderCancel(id).then(res => {
|
||||
uni.showToast({
|
||||
title: '订单已取消',
|
||||
icon : 'none'
|
||||
})
|
||||
this.removeListVal(id)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user