|
@@ -739,11 +739,8 @@ export default {
|
|
|
try{
|
|
|
console.log('posParams')
|
|
|
let posParams = getUrlParam('posParams')
|
|
|
- console.log(posParams)
|
|
|
posParams = Decrypt(posParams)
|
|
|
- console.log(posParams)
|
|
|
posParams = JSON.parse(posParams)
|
|
|
- console.log(posParams)
|
|
|
parmas.orderNo = posParams.orderId;
|
|
|
parmas.posParams = posParams.posParams;
|
|
|
}catch(err){
|
|
@@ -751,17 +748,22 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
const res = await storeMail({ ...parmas });
|
|
|
+ $toast.clear();
|
|
|
if (res.code.toString() == "200") {
|
|
|
- Toast("寄件成功");
|
|
|
+ this.$toast("寄件成功");
|
|
|
setTimeout(() => {
|
|
|
+ $toast.clear();
|
|
|
this.$router.push("/");
|
|
|
- }, 1000);
|
|
|
+ }, 2000);
|
|
|
// this.$router.push("/");
|
|
|
} else {
|
|
|
// this.$toast(res.error)
|
|
|
- this.$toast(res.msg);
|
|
|
+ this.$toast(res.msg || '下单失败');
|
|
|
+ setTimeout(()=>{
|
|
|
+ $toast.clear();
|
|
|
+ },2000)
|
|
|
}
|
|
|
- $toast.clear();
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
|