|
@ -43,7 +43,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view style="display: flex; flex-direction: row"> |
|
|
<view style="display: flex; flex-direction: row" v-if="needCode"> |
|
|
<view class="uni-input-wrapper"> |
|
|
<view class="uni-input-wrapper"> |
|
|
<input class="" style="height: 80rpx; background-color: #f7f9ff; margin-right: 20rpx" placeholder="请输入验证码" type="number" v-model="code" /> |
|
|
<input class="" style="height: 80rpx; background-color: #f7f9ff; margin-right: 20rpx" placeholder="请输入验证码" type="number" v-model="code" /> |
|
|
</view> |
|
|
</view> |
|
@ -87,6 +87,7 @@ const code = ref('') |
|
|
const uuid = ref('') |
|
|
const uuid = ref('') |
|
|
const version = ref('') |
|
|
const version = ref('') |
|
|
const comMessageRef = ref('') |
|
|
const comMessageRef = ref('') |
|
|
|
|
|
const needCode = ref(false) |
|
|
// 返回首页 |
|
|
// 返回首页 |
|
|
onNavigationBarButtonTap((e) => { |
|
|
onNavigationBarButtonTap((e) => { |
|
|
if (e.index === 0) { |
|
|
if (e.index === 0) { |
|
@ -102,8 +103,8 @@ onLoad(() => { |
|
|
tenantValue.value = tenantArray.value[0].value |
|
|
tenantValue.value = tenantArray.value[0].value |
|
|
storage.clearStorage() |
|
|
storage.clearStorage() |
|
|
if (import.meta.env.VITE_USER_NODE_ENV === 'development') { |
|
|
if (import.meta.env.VITE_USER_NODE_ENV === 'development') { |
|
|
username.value = 'admin' |
|
|
username.value = '' |
|
|
password.value = 'win123456' |
|
|
password.value = '' |
|
|
} |
|
|
} |
|
|
uni.setNavigationBarColor({ |
|
|
uni.setNavigationBarColor({ |
|
|
frontColor: '#ffffff', |
|
|
frontColor: '#ffffff', |
|
@ -123,9 +124,11 @@ const handelerlogin = () => { |
|
|
proxy.$modal.showToast('用户名不能为空') |
|
|
proxy.$modal.showToast('用户名不能为空') |
|
|
} else if (password.value === '') { |
|
|
} else if (password.value === '') { |
|
|
proxy.$modal.showToast('密码不能为空') |
|
|
proxy.$modal.showToast('密码不能为空') |
|
|
} else if (code.value === '') { |
|
|
} |
|
|
proxy.$modal.showToast('验证码不能为空') |
|
|
// else if (code.value === '') { |
|
|
} else { |
|
|
// proxy.$modal.showToast('验证码不能为空') |
|
|
|
|
|
// } |
|
|
|
|
|
else { |
|
|
// console.log("用户名:", this.username, "密码:", this.password, this.tapstyle, this.smloginmsg) |
|
|
// console.log("用户名:", this.username, "密码:", this.password, this.tapstyle, this.smloginmsg) |
|
|
const logininfo = { |
|
|
const logininfo = { |
|
|
username: '', |
|
|
username: '', |
|
|