1004749546@qq.com hace 4 años
padre
commit
ab67807309
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. 7 3
      src/pages/myPackage/index.vue

+ 7 - 3
src/pages/myPackage/index.vue

@@ -85,9 +85,13 @@
             console.log(randCode,'randCode')
             getQbcgjLogin({mobile:mobile,randCode:randCode}).then(res=>{
               console.log(res,'rrrrrrr')
-              if (res.status === '200') {
-                mpvue.setStorageSync('token_cgj',res.data.token)
-                this.getPackageData()
+              if (res.status == '200') {
+                if(res.data){
+                  mpvue.setStorageSync('token_cgj',res.data.token)
+                  this.getPackageData()
+                } else {
+                  this.dataList = []
+                }
               } else {
                 wx.showToast({
                   title: res.message,