Commit 77407bcf authored by Morson's avatar Morson

工单拒单接口修改

删除调试代码
parent 6fe9ef63
......@@ -155,7 +155,7 @@ let orderApiFun = function(vm){
let listAccessHistory= async (params = {}) => await vm.$u.get(prefix + vm.vuex_token +'/myinfo/access/history', params, jsonType);
// 获取我的钱包-资产信息
let getAssets = async (params = {}) => await vm.$u.get(settle + vm.vuex_token + '/v2/total', params);
let getAssets = async (params = {}) => await vm.$u.get(settle + vm.vuex_token + '/v3/total', params);
// 获取我的钱包-收入流水
let listStatement = async (params = {}) => await vm.$u.get(settle + vm.vuex_token + '/v2/statement', params);
// 获取我的钱包-支付单一览
......
......@@ -138,9 +138,7 @@
this.changeActiveAction()
},
changeActiveAction() {
// debugger
let activeKey = 0
// debugger
for (let i in this.sectionList) {
this.sectionList[i].isActive = this.section_id == this.sectionList[i].id ? true : false;
if(this.sectionList[i].isActive){
......
......@@ -294,7 +294,6 @@
// uni.getLocation({
// type: 'gcj02', //返回可以用于uni.openLocation的经纬度
// success: function (res) {
debugger
const latitude = this.contactAddressLatitud //res.latitude;
const longitude =this.contactAddressLongitud //res.longitude;
uni.openLocation({
......@@ -690,9 +689,13 @@
var data={}
this.$u.api.checkRejectable(data).then(res => {
if (res.code === 200 ) {
if( res.data === true){
uni.navigateTo({
url: 'pages/order/refuse?orderId='+this.order.orderId
if( res.data && res.data.rejectable){
this.$u.route({
url: 'pages/order/refuse',
params: {
orderId: this.order.orderId,
count: res.data.remainderTimes
}
})
}else{
this.commonToast("本月无拒单机会,请联系客服","warning")
......
......@@ -50,7 +50,7 @@
rejectReason: '',
remark: ''
},
count: 0, // 剩余次数
count: 3, // 剩余次数
};
},
computed: {
......@@ -62,18 +62,31 @@
PopView
},
onLoad(e) {
if(e && e.orderId) {
this.orderId = e.orderId
if(e) {
if(e.orderId) {
this.orderId = e.orderId
} else if(e.count) {
this.count = e.count
}
}
if(!this.count) {
this.getRejectCount()
}
this.getRejectCount()
},
methods: {
changeReason(reason) {
this.formData.rejectReason = reason
},
getRejectCount() {
let self = this
// 获取拒单次数
this.count = 3
self.$u.api.checkRejectable({}).then(res => {
if (res.code === 200 && res.data && res.data.rejectable) {
self.count = res.data.remainderTimes
} else {
self.count = 0
}
})
},
handleClickSubmit() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment