Pārlūkot izejas kodu

积分刷新调整

kk.shi 3 gadi atpakaļ
vecāks
revīzija
e3376303e5
2 mainītis faili ar 23 papildinājumiem un 1 dzēšanām
  1. 1 1
      api/integralinfo.js
  2. 22 0
      pages/integral/integral.js

+ 1 - 1
api/integralinfo.js

@@ -32,7 +32,7 @@ class Integralinfo extends request {
                           catchErrorFunc(res?.data)
                       }
                   } else {
-                    console.log(res?.data?.msg);
+                    // console.log(res?.data?.msg);
                     if(res?.data?.msg != undefined && typeof(res?.data?.msg)=='string') {
                       wx.showToast({
                         title: res?.data?.msg,

+ 22 - 0
pages/integral/integral.js

@@ -108,6 +108,8 @@ Page({
                 // 获取优惠券列表
                 this.getCouponList()
             }
+        }).catch(error=>{
+            console.log(error);
         })
     } else {
         // 获取优惠券列表
@@ -446,6 +448,8 @@ getphoneClick() {
                     this.loading = false
                 }, 4000)
             }
+        }).catch(error => {
+           console.log(error)
         })
     }
 },
@@ -523,6 +527,9 @@ shuaxinClick() {
             })
            
         }
+    }).catch(error=>{
+        console.log(222222)
+        console.log(error)
     })
 },
 
@@ -621,6 +628,9 @@ paymentClick() {
                     }, 2500)
                 }
 
+            }).catch(error=>{
+                console.log('zhifu')
+                console.log(error)
             })
         }
     },
@@ -801,6 +811,9 @@ paymentClick() {
                                 })
                             }, 2500)
                         }
+                }).catch(error=>{
+                    console.log('duanxin')
+                    console.log(error)
                 })
         }
     },
@@ -840,6 +853,9 @@ paymentClick() {
                             })
                         }, 2500)
                     }
+            }).catch(error=>{
+                console.log('chongxin')
+                console.log(error)
             });
         } else {
             if (this.data.activeNum === 0 && this.data.codeName === '重新获取验证码') {
@@ -869,6 +885,9 @@ paymentClick() {
                                 })
                             }, 2500)
                         }
+                }).catch(error=>{
+                    console.log('chongxin')
+                    console.log(error)
                 });
             } else if (this.data.activeNum === 1 && this.data.codeName === '重新获取验证码') {
                 console.log('短信')
@@ -900,6 +919,9 @@ paymentClick() {
                                 })
                             }, 2500)
                         }
+                }).catch(error=>{
+                    console.log('chongxin')
+                    console.log(error)
                 });
             }
         }