订单,提现功能调整
This commit is contained in:
@@ -94,7 +94,13 @@
|
||||
// 拨打电话
|
||||
makePhone(phone){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone
|
||||
phoneNumber: phone,
|
||||
fail: err => {
|
||||
uni.showToast({
|
||||
title: '拨打电话失败,请检查您的应用权限[电话]保持允许状态',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -74,7 +74,13 @@
|
||||
// 联系客户
|
||||
onCallPhone(phone){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone
|
||||
phoneNumber: phone,
|
||||
fail: err => {
|
||||
uni.showToast({
|
||||
title: '拨打电话失败,请检查您的应用权限[电话]保持允许状态',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取订单列表
|
||||
|
||||
@@ -148,6 +148,12 @@
|
||||
onCallPhone(phone){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone,
|
||||
fail: err => {
|
||||
uni.showToast({
|
||||
title: '拨打电话失败,请检查您的应用权限[电话]保持允许状态',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
|
||||
@@ -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'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
data : subData,
|
||||
success : res => {
|
||||
uni.showToast({
|
||||
title: '表单信息已存储',
|
||||
title: '机构信息已暂存',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
@@ -270,8 +270,10 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
onBackPress() {
|
||||
this.onSubmit('local')
|
||||
},
|
||||
onNavigationBarButtonTap() {
|
||||
console.log(this.$Route.query)
|
||||
let { userBankId, isMy} = this.$Route.query
|
||||
if(!isMy) {
|
||||
uni.showToast({
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
})
|
||||
baseBase(this.$Route.query.itemId).then(res => {
|
||||
let { params } = res;
|
||||
|
||||
console.log(params)
|
||||
|
||||
this.params = params
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
|
||||
@@ -76,7 +76,13 @@
|
||||
// 联系客户
|
||||
onCallPhone(phone){
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone
|
||||
phoneNumber: phone,
|
||||
fail: err => {
|
||||
uni.showToast({
|
||||
title: '拨打电话失败,请检查您的应用权限[电话]保持允许状态',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取订单列表
|
||||
|
||||
Reference in New Issue
Block a user