Ver código fonte

支付提示调整。

zhengqiang 5 anos atrás
pai
commit
a490044938
2 arquivos alterados com 3 adições e 3 exclusões
  1. 0 2
      src/components/Pay.vue
  2. 3 1
      src/components/WXPay.vue

+ 0 - 2
src/components/Pay.vue

@@ -94,8 +94,6 @@ export default {
     queryPayResult(recordId) {
       remoteApi.queryRechargeRecord(recordId).then((resp)=>{
         if(resp.result && resp.data.paymentStatus=="20"){
-          this.$toast.clear();
-
           this.$router.push({
             path : '/Paystate',
             query: {

+ 3 - 1
src/components/WXPay.vue

@@ -20,6 +20,8 @@ export default {
         queryPayResult(recordId) {
             remoteApi.queryRechargeRecord(recordId).then((resp)=>{
                 if(resp.result && resp.data.paymentStatus=="20"){
+                this.$toast.clear();
+
                 this.$router.push({
                     path : '/Paystate',
                     query: {
@@ -119,7 +121,7 @@ export default {
                                 message: '订单确认中...',
                                 forbidClick: true,
                                 loadingType: 'spinner',
-                                duration: 10000
+                                duration: 3000
                             });
 
                             // 支付成功后的回调函数,跳转到订单列表