|
|
|
@ -173,8 +173,21 @@ export default class LoginPage extends BasePage {
|
|
|
|
|
this.$form.setRules(this.rules);
|
|
|
|
|
console.log("image", this.image);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Version: string = "1.0.0";
|
|
|
|
|
async update() {
|
|
|
|
|
await session.QueryVersion();
|
|
|
|
|
if (this.Version != session.Version) {
|
|
|
|
|
await uni.downloadFile({
|
|
|
|
|
url: "http://106.13.174.133:5210/HaierWMS.apk",
|
|
|
|
|
success: (res) => {
|
|
|
|
|
console.log("res.statusCode", res.statusCode);
|
|
|
|
|
console.log("res.tempFilePath", res.tempFilePath);
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
login(): void {
|
|
|
|
|
// this.update();
|
|
|
|
|
this.$form.validate(async (valid: boolean) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (!server.isServerAddressSet) {
|
|
|
|
|