|  |  |  | 
|---|
|  |  |  | <!-- logo --> | 
|---|
|  |  |  | <view class="logo"> | 
|---|
|  |  |  | <view class="logo-box"> | 
|---|
|  |  |  | <image src="../../static/img/LkyLogo.jpg" mode="aspectFit"></image> | 
|---|
|  |  |  | <image src="../../static/img/logo.png" mode="aspectFit"></image> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="content"> | 
|---|
|  |  |  | 
|---|
|  |  |  | this.baseUrl = "http://" + this.url.ip + ':' + this.url.port + '/' + this.url.project | 
|---|
|  |  |  | uni.setStorageSync('baseUrl', this.baseUrl); | 
|---|
|  |  |  | uni.setStorageSync('url', this.url); | 
|---|
|  |  |  | uni.setStorageSync('project','tzsk') | 
|---|
|  |  |  | this.$refs.inputDialog.close() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onLogin() { | 
|---|
|  |  |  | 
|---|
|  |  |  | "content-type": "application/json" | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | success(result) { | 
|---|
|  |  |  | // uni.reLaunch({ | 
|---|
|  |  |  | //    url: '../home/menuHome' | 
|---|
|  |  |  | // }); | 
|---|
|  |  |  | if (result.statusCode === 404) { | 
|---|
|  |  |  | uni.showToast({ | 
|---|
|  |  |  | title: '登录失败', | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | uni.reLaunch({ | 
|---|
|  |  |  | url: '../home/home' | 
|---|
|  |  |  | url: '../home/menuHome' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, 300) | 
|---|
|  |  |  | }, 700) | 
|---|