diff --git a/pages/login/index.js b/pages/login/index.js index 8c9fc3a..850d65d 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -90,13 +90,13 @@ Page({ factoryId = factory.factoryId } } - if(!factoryId){ + if(!factory){ factory = this.checkFactoryId() if(factory) { factoryId = factory.factoryId } } - if(!factoryId){ + if(!factory){ this.setData({ loging: false}) Dialog.alert({ title: '温馨提示', message: '还没有您所属的打包站信息,请联系相关客服人员' }).then(() => { })