|
@@ -205,6 +205,8 @@ import { mapState } from 'vuex';
|
|
|
// import MemberCacheTool from '@/utils/member-cache-tool.js';
|
|
|
import uni from '@/utils/uniHooks';
|
|
|
import { getUrlParams } from '@/utils/index.js';
|
|
|
+import { Dialog, Toast } from 'vant';
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -364,18 +366,24 @@ export default {
|
|
|
self.headerInfo = headerInfo;
|
|
|
// console.log('发票抬头--', self.headerInfo);
|
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
- title: res.data.msg,
|
|
|
- duration: 2000,
|
|
|
- icon: 'none',
|
|
|
+ // uni.showToast({
|
|
|
+ // title: res.data.msg,
|
|
|
+ // duration: 2000,
|
|
|
+ // icon: 'none',
|
|
|
+ // });
|
|
|
+ Toast({
|
|
|
+ message: res.data.msg,
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
fail: () => {
|
|
|
- uni.showToast({
|
|
|
+ Toast({
|
|
|
+ message: '服务器开小差了呢,请您稍后再试',
|
|
|
+ });
|
|
|
+ /* uni.showToast({
|
|
|
title: '服务器开小差了呢,请您稍后再试',
|
|
|
icon: 'none',
|
|
|
- });
|
|
|
+ }); */
|
|
|
},
|
|
|
});
|
|
|
},
|
|
@@ -404,17 +412,23 @@ export default {
|
|
|
self.invoiceAmount = (datas.invoiceAmount / 100).toFixed(2);
|
|
|
self.orderInfo = datas.list[0];
|
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
+ /* uni.showToast({
|
|
|
title: res.data.msg,
|
|
|
duration: 2000,
|
|
|
icon: 'none',
|
|
|
+ }); */
|
|
|
+ Toast({
|
|
|
+ message: res.data.msg,
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
fail: () => {
|
|
|
- uni.showToast({
|
|
|
+ /* uni.showToast({
|
|
|
title: '服务器开小差了呢,请您稍后再试',
|
|
|
icon: 'none',
|
|
|
+ }); */
|
|
|
+ Toast({
|
|
|
+ message: '服务器开小差了呢,请您稍后再试',
|
|
|
});
|
|
|
},
|
|
|
});
|
|
@@ -450,28 +464,37 @@ export default {
|
|
|
this.condition.mailbox = '';
|
|
|
}
|
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
+ /* uni.showToast({
|
|
|
title: res.data.msg,
|
|
|
duration: 2000,
|
|
|
icon: 'none',
|
|
|
+ }); */
|
|
|
+ Toast({
|
|
|
+ message: res.data.msg,
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
fail: () => {
|
|
|
- uni.showToast({
|
|
|
+ Toast({
|
|
|
title: '服务器开小差了呢,请您稍后再试',
|
|
|
- icon: 'none',
|
|
|
});
|
|
|
+ /* uni.showToast({
|
|
|
+ title: '服务器开小差了呢,请您稍后再试',
|
|
|
+ icon: 'none',
|
|
|
+ }); */
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
submit() {
|
|
|
const self = this;
|
|
|
if (!self.condition.mailbox) {
|
|
|
- uni.showToast({
|
|
|
+ /* uni.showToast({
|
|
|
title: '请输入电子邮箱地址',
|
|
|
duration: 2000,
|
|
|
icon: 'none',
|
|
|
+ }); */
|
|
|
+ Toast({
|
|
|
+ message: '请输入电子邮箱地址',
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
@@ -526,18 +549,24 @@ export default {
|
|
|
// res.data.data.id,
|
|
|
// })
|
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
+ /* uni.showToast({
|
|
|
title: res.data.msg,
|
|
|
duration: 2000,
|
|
|
icon: 'none',
|
|
|
+ }); */
|
|
|
+ Toast({
|
|
|
+ message: res.data.msg,
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
fail: () => {
|
|
|
self.isSubmitFlag = true;
|
|
|
- uni.showToast({
|
|
|
+ /* uni.showToast({
|
|
|
title: '服务器开小差了呢,请您稍后再试',
|
|
|
icon: 'none',
|
|
|
+ }); */
|
|
|
+ oast({
|
|
|
+ message: '服务器开小差了呢,请您稍后再试',
|
|
|
});
|
|
|
},
|
|
|
});
|