|
@ -27,7 +27,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> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="conone"> |
|
|
<view class="conone"> |
|
@ -36,7 +37,8 @@ |
|
|
用户名 |
|
|
用户名 |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
<input class="uni-input" style="padding:25rpx" placeholder="请输入用户名" v-model="username" /> |
|
|
<input class="uni-input" style="padding:25rpx" placeholder="请输入用户名" |
|
|
|
|
|
v-model="username" /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="conone"> |
|
|
<view class="conone"> |
|
@ -45,8 +47,8 @@ |
|
|
密码 |
|
|
密码 |
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-input-wrapper"> |
|
|
<view class="uni-input-wrapper"> |
|
|
<input class="uni-input" style="padding:25rpx" placeholder="请输入密码" :password="showPassword" |
|
|
<input class="uni-input" style="padding:25rpx" placeholder="请输入密码" |
|
|
v-model="password" /> |
|
|
:password="showPassword" v-model="password" /> |
|
|
<text class="uni-icon" :class="[!showPassword ? 'uni-eye-active' : '']" |
|
|
<text class="uni-icon" :class="[!showPassword ? 'uni-eye-active' : '']" |
|
|
@click="changePassword"></text> |
|
|
@click="changePassword"></text> |
|
|
</view> |
|
|
</view> |
|
@ -101,8 +103,10 @@ |
|
|
components: {}, |
|
|
components: {}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
tenantArray: JSON.parse(import.meta.env.VITE_TENANT), |
|
|
smloginmsg: "", |
|
|
smloginmsg: "", |
|
|
tenantName: "闻荫源码", |
|
|
tenantValue:0, |
|
|
|
|
|
// tenantName: "闻荫源码", |
|
|
username: "", |
|
|
username: "", |
|
|
password: "", |
|
|
password: "", |
|
|
tapstyle: 2, |
|
|
tapstyle: 2, |
|
@ -115,7 +119,7 @@ |
|
|
}, |
|
|
}, |
|
|
// computed: mapState(['forcedLogin', 'hasLogin']), |
|
|
// computed: mapState(['forcedLogin', 'hasLogin']), |
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
this.tenantValue = this.tenantArray[0].value |
|
|
uni.clearStorageSync() |
|
|
uni.clearStorageSync() |
|
|
uni.clearStorage(); //清除缓存 |
|
|
uni.clearStorage(); //清除缓存 |
|
|
if (process.env.NODE_ENV === 'development') { |
|
|
if (process.env.NODE_ENV === 'development') { |
|
@ -193,6 +197,10 @@ |
|
|
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; |
|
|
|
|
|
|
|
|
|
|
|
uni.setStorageSync('tenantId', this.tenantValue) |
|
|
|
|
|
|
|
|
} else if (this.tapstyle == 1) { |
|
|
} else if (this.tapstyle == 1) { |
|
|
// let arr = Base64.decode(this.smloginmsg).split(':') |
|
|
// let arr = Base64.decode(this.smloginmsg).split(':') |
|
|
// logininfo.username = arr[0]; |
|
|
// logininfo.username = arr[0]; |
|
@ -332,7 +340,13 @@ |
|
|
line-height: 90rpx; |
|
|
line-height: 90rpx; |
|
|
padding: 0 0 0 20rpx; |
|
|
padding: 0 0 0 20rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
.conone .uni-data-select .uni-select{ |
|
|
|
|
|
background-color: #F7F9FF; |
|
|
|
|
|
height: 90rpx; |
|
|
|
|
|
line-height: 90rpx; |
|
|
|
|
|
border: 0px; |
|
|
|
|
|
padding: 0 10rpx 0 20rpx; |
|
|
|
|
|
} |
|
|
.conone .title { |
|
|
.conone .title { |
|
|
font-size: .875rem; |
|
|
font-size: .875rem; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|