1004749546@qq.com преди 4 години
родител
ревизия
ab67807309
променени са 1 файла, в които са добавени 7 реда и са изтрити 3 реда
  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,