zs преди 9 месеца
родител
ревизия
29df46de72

+ 5 - 0
pagesHome/login/index.vue

@@ -137,6 +137,11 @@
 										console.log(err);
 									}
 								})
+							} else {
+								uni.showToast({
+									title: arr.errmsg,
+									icon: 'none'
+								})
 							}
 						}).catch(err => {
 							console.log('err', err);

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/login/index.js.map


+ 9 - 2
unpackage/dist/dev/mp-weixin/pagesHome/login/index.js

@@ -339,7 +339,7 @@ var _default = {
                     case 2:
                       arr = _context3.sent;
                       if (!(arr.errcode == '0')) {
-                        _context3.next = 10;
+                        _context3.next = 12;
                         break;
                       }
                       user = that.$jwt(arr.data);
@@ -366,7 +366,14 @@ var _default = {
                           console.log(err);
                         }
                       });
-                    case 10:
+                      _context3.next = 13;
+                      break;
+                    case 12:
+                      uni.showToast({
+                        title: arr.errmsg,
+                        icon: 'none'
+                      });
+                    case 13:
                     case "end":
                       return _context3.stop();
                   }