|
|
|
@ -103,7 +103,8 @@ |
|
|
|
name: '...', |
|
|
|
tel: '...', |
|
|
|
address: '...' |
|
|
|
} |
|
|
|
}, |
|
|
|
onSubmit:false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
@ -136,8 +137,12 @@ |
|
|
|
submit(){ |
|
|
|
if(this.expressIndex === '') return this.$msg('请选择快递公司'); |
|
|
|
if(!this.oddNumber) return this.$msg('请输入快递单号'); |
|
|
|
if(this.onSubmit) return; |
|
|
|
let data = {}; |
|
|
|
|
|
|
|
this.onSubmit = true; |
|
|
|
uni.showLoading({ |
|
|
|
title:"订单提交中" |
|
|
|
}) |
|
|
|
if(this.$isRight(this.baseInfoCache)){ // 从我的订单 寄送藏品 进入的 |
|
|
|
data = { |
|
|
|
express_type: this.expressList[this.expressIndex].label, |
|
|
|
@ -176,10 +181,15 @@ |
|
|
|
let id = res.data.datas.order_id; |
|
|
|
this.$msg('提交成功', {icon: 'success'}).then(() => { |
|
|
|
setTimeout(()=> { |
|
|
|
this.onSubmit = false |
|
|
|
uni.hideLoading(); |
|
|
|
this.$url('/pages/index/index', {type: 'launch'}); |
|
|
|
}, 300); |
|
|
|
//this.$url('/packages/sonpingDetail/sonpingDetail?id='+ id, {type: 'launch'}); // 关闭所有页面跳转到详情 |
|
|
|
}) |
|
|
|
}).catch((res)=>{ |
|
|
|
this.onSubmit = false |
|
|
|
uni.hideLoading(); |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 稍后再填不记录快递信息 |
|
|
|
|