|
@@ -741,8 +741,8 @@
|
|
var that = this
|
|
var that = this
|
|
this.$request.baseRequest('post', '/carrierInfo/loadingAdd', data).then(res => {
|
|
this.$request.baseRequest('post', '/carrierInfo/loadingAdd', data).then(res => {
|
|
console.log("提交状态",res)
|
|
console.log("提交状态",res)
|
|
|
|
+ uni.hideLoading()
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- uni.hideLoading()
|
|
|
|
let _title = ''
|
|
let _title = ''
|
|
if (that.detailData.statusFlag == 1) {
|
|
if (that.detailData.statusFlag == 1) {
|
|
_title = '暂存成功!'
|
|
_title = '暂存成功!'
|
|
@@ -801,7 +801,7 @@
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|
|
- this.$refs.uToast.show({
|
|
|
|
|
|
+ that.$refs.uToast.show({
|
|
type: 'success',
|
|
type: 'success',
|
|
message: _title,
|
|
message: _title,
|
|
complete() {
|
|
complete() {
|
|
@@ -811,12 +811,20 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- console.log("1",res.message)
|
|
|
|
- uni.$u.toast(res.message);
|
|
|
|
|
|
+ console.log("1",res)
|
|
|
|
+ // uni.$u.toast(res.message);
|
|
|
|
+ that.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: res.message,
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
console.log("2",res.message)
|
|
console.log("2",res.message)
|
|
- uni.$u.toast(res.message);
|
|
|
|
|
|
+ // uni.$u.toast(res.message);
|
|
|
|
+ that.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: res.message,
|
|
|
|
+ })
|
|
});
|
|
});
|
|
},
|
|
},
|
|
confirmClick() {
|
|
confirmClick() {
|