Browse Source

支付提示调整。

zhengqiang 5 years ago
parent
commit
a490044938
2 changed files with 3 additions and 3 deletions
  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) {
     queryPayResult(recordId) {
       remoteApi.queryRechargeRecord(recordId).then((resp)=>{
       remoteApi.queryRechargeRecord(recordId).then((resp)=>{
         if(resp.result && resp.data.paymentStatus=="20"){
         if(resp.result && resp.data.paymentStatus=="20"){
-          this.$toast.clear();
-
           this.$router.push({
           this.$router.push({
             path : '/Paystate',
             path : '/Paystate',
             query: {
             query: {

+ 3 - 1
src/components/WXPay.vue

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