|
@ -4,10 +4,12 @@ |
|
|
<image mode="widthFix" class="loginimg" src="../../static/icons_ui/login_bg.png"></image> |
|
|
<image mode="widthFix" class="loginimg" src="../../static/icons_ui/login_bg.png"></image> |
|
|
<view class="login_title"> |
|
|
<view class="login_title"> |
|
|
<text>您好,欢迎使用</text><br> |
|
|
<text>您好,欢迎使用</text><br> |
|
|
WMS仓库管理系统 |
|
|
WMS仓库管理系统<br> |
|
|
|
|
|
版本: {{version}} |
|
|
</view> |
|
|
</view> |
|
|
<view class="bgf login_wrap"> |
|
|
<view class="bgf login_wrap"> |
|
|
<view class="loginbox"> |
|
|
<view class="loginbox"> |
|
|
|
|
|
|
|
|
<form> |
|
|
<form> |
|
|
<view class="mytab"> |
|
|
<view class="mytab"> |
|
|
<!-- <view class="mytabline" :class="tapstyle == 1?'active':''" @click="tapchenge(1)">扫码登录</view> --> |
|
|
<!-- <view class="mytabline" :class="tapstyle == 1?'active':''" @click="tapchenge(1)">扫码登录</view> --> |
|
@ -28,7 +30,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
<!-- <input class="uni-input" placeholder="请输入租户名" v-model="tenantName" disabled="true" /> --> |
|
|
<!-- <input class="uni-input" placeholder="请输入租户名" v-model="tenantName" disabled="true" /> --> |
|
|
<uni-data-select class="uni-data-select" placeholder="请输入租户名" v-model="tenantValue" :clear="false" :localdata="tenantArray"></uni-data-select> |
|
|
<uni-data-select class="uni-data-select" placeholder="请输入租户名" v-model="tenantValue" |
|
|
|
|
|
:clear="false" :localdata="tenantArray"></uni-data-select> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="conone"> |
|
|
<view class="conone"> |
|
@ -105,7 +108,7 @@ |
|
|
return { |
|
|
return { |
|
|
tenantArray: JSON.parse(import.meta.env.VITE_TENANT), |
|
|
tenantArray: JSON.parse(import.meta.env.VITE_TENANT), |
|
|
smloginmsg: "", |
|
|
smloginmsg: "", |
|
|
tenantValue:0, |
|
|
tenantValue: 0, |
|
|
// tenantName: "闻荫源码", |
|
|
// tenantName: "闻荫源码", |
|
|
username: "", |
|
|
username: "", |
|
|
password: "", |
|
|
password: "", |
|
@ -114,7 +117,8 @@ |
|
|
showPassword: true, |
|
|
showPassword: true, |
|
|
imageSrc: "", |
|
|
imageSrc: "", |
|
|
code: "", |
|
|
code: "", |
|
|
uuid: "" |
|
|
uuid: "", |
|
|
|
|
|
version: "" |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// computed: mapState(['forcedLogin', 'hasLogin']), |
|
|
// computed: mapState(['forcedLogin', 'hasLogin']), |
|
@ -161,6 +165,7 @@ |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
this.showErrorMessage(error); |
|
|
this.showErrorMessage(error); |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.getAppVersion() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// ...mapMutations(['login']), |
|
|
// ...mapMutations(['login']), |
|
@ -197,7 +202,7 @@ |
|
|
logininfo.password = this.password |
|
|
logininfo.password = this.password |
|
|
logininfo.code = this.code; |
|
|
logininfo.code = this.code; |
|
|
logininfo.uuid = this.uuid; |
|
|
logininfo.uuid = this.uuid; |
|
|
logininfo.tenantName = this.tenantArray.find(item=>item.value==this.tenantValue).text; |
|
|
logininfo.tenantName = this.tenantArray.find(item => item.value == this.tenantValue).text; |
|
|
|
|
|
|
|
|
uni.setStorageSync('tenantId', this.tenantValue) |
|
|
uni.setStorageSync('tenantId', this.tenantValue) |
|
|
|
|
|
|
|
@ -254,7 +259,20 @@ |
|
|
this.uuid = res.data.uuid |
|
|
this.uuid = res.data.uuid |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
getAppVersion() { |
|
|
|
|
|
const systemInfo = uni.getSystemInfoSync(); |
|
|
|
|
|
// #ifdef H5 |
|
|
|
|
|
this.version = systemInfo.appVersion; |
|
|
|
|
|
console.log(systemInfo.appVersion, '版本号'); |
|
|
|
|
|
// #endif |
|
|
|
|
|
|
|
|
|
|
|
// #ifdef APP |
|
|
|
|
|
this.version = systemInfo.appWgtVersion; |
|
|
|
|
|
// #endif |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
@ -284,7 +302,7 @@ |
|
|
.mytabline { |
|
|
.mytabline { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
padding: 20rpx 0; |
|
|
padding: 10rpx 0; |
|
|
color: #666; |
|
|
color: #666; |
|
|
position: relative; |
|
|
position: relative; |
|
|
font-size: 0.875rem; |
|
|
font-size: 0.875rem; |
|
@ -340,7 +358,8 @@ |
|
|
line-height: 90rpx; |
|
|
line-height: 90rpx; |
|
|
padding: 0 0 0 20rpx; |
|
|
padding: 0 0 0 20rpx; |
|
|
} |
|
|
} |
|
|
.conone .uni-data-select .uni-select{ |
|
|
|
|
|
|
|
|
.conone .uni-data-select .uni-select { |
|
|
background-color: #F7F9FF; |
|
|
background-color: #F7F9FF; |
|
|
height: 90rpx; |
|
|
height: 90rpx; |
|
|
line-height: 90rpx; |
|
|
line-height: 90rpx; |
|
|