傅豪杰 1 nedēļu atpakaļ
vecāks
revīzija
d4763e7a0c
2 mainītis faili ar 11 papildinājumiem un 7 dzēšanām
  1. 9 7
      src/pages/goodsChange/transferGoods.vue
  2. 2 0
      src/pages/mailInfo.vue

+ 9 - 7
src/pages/goodsChange/transferGoods.vue

@@ -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();
+            
         }
     },
 

+ 2 - 0
src/pages/mailInfo.vue

@@ -46,6 +46,7 @@
         <p>省:{{ ObjectVlaue.addresseeProvince }}</p>
         <p>市:{{ ObjectVlaue.addresseeCity }}</p>
         <p>区:{{ ObjectVlaue.addresseeCounty }}</p>
+        <p>地址:{{ observable.addresseeAddress }}</p>
         <p>
           财务核销码:{{
             ObjectVlaue.verificationCode == ""
@@ -82,6 +83,7 @@
 <script>
 import { Toast, Dialog } from "vant";
 import { findWithoutInfoById, findInsideInfoById } from "../api/index";
+import { observable } from "vue/types/umd";
 export default {
   data() {
     return {