优化内容加修复bug
This commit is contained in:
@@ -40,9 +40,9 @@
|
||||
<view class="input-icon">
|
||||
<image src="https://wuyeadmin.bugtc.com/images/login/phone.png" mode="" style="height: 100%;width: 100%;"></image>
|
||||
</view>
|
||||
<input class="native-input" type="text" v-model="account"
|
||||
placeholder="请输入帐号" maxlength="20" :placeholderStyle="placeholderStyle"
|
||||
auto-capitalize="off" auto-correct="off" />
|
||||
<uni-easyinput class="input-content" type="text" v-model="account"
|
||||
placeholder="请输入帐号" :inputBorder="false" maxlength="20" :placeholderStyle="placeholderStyle">
|
||||
</uni-easyinput>
|
||||
</view>
|
||||
|
||||
<!-- 密码输入框 -->
|
||||
@@ -50,9 +50,9 @@
|
||||
<view class="input-icon">
|
||||
<image src="https://wuyeadmin.bugtc.com/images/login/password.png" mode="" style="height: 100%;width: 100%;"></image>
|
||||
</view>
|
||||
<input class="native-input" type="password" v-model="password"
|
||||
placeholder="请输入密码" maxlength="16" :placeholderStyle="placeholderStyle"
|
||||
auto-capitalize="off" auto-correct="off" />
|
||||
<uni-easyinput class="input-content" type="password" v-model="password"
|
||||
placeholder="请输入密码" :inputBorder="false" maxlength="16" :placeholderStyle="placeholderStyle">
|
||||
</uni-easyinput>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -135,21 +135,11 @@ const canGetVerify = computed(() => {
|
||||
const toggleAgreement = () => { agreeAgreement.value = !agreeAgreement.value }
|
||||
|
||||
const goToUserAgreement = () => {
|
||||
// #ifdef APP-PLUS
|
||||
plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html')
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
window.open('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html')
|
||||
// #endif
|
||||
uni.navigateTo({ url: '/pageSubPack/loginSub/user-agreement' })
|
||||
}
|
||||
|
||||
const goToPrivacy = () => {
|
||||
// #ifdef APP-PLUS
|
||||
plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/owner.html')
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
window.open('https://wuye.ckdzkj.com/parivw/owner.html')
|
||||
// #endif
|
||||
uni.navigateTo({ url: '/pageSubPack/loginSub/privacy' })
|
||||
}
|
||||
|
||||
const openPrivacyPopup = (action) => {
|
||||
@@ -263,10 +253,14 @@ const doLogin = () => {
|
||||
|
||||
const onLoginSuccess = (res) => {
|
||||
if (res.code === 200 && res.data) {
|
||||
// 换号登录时清除旧用户首页缓存,防止新用户看到旧用户的小区数据
|
||||
// 换号登录时清除旧用户的所有缓存,防止新用户看到旧用户的小区数据和公告
|
||||
const oldUserId = uni.getStorageSync('userId')
|
||||
if (res.data.userId && String(oldUserId) !== String(res.data.userId)) {
|
||||
uni.removeStorageSync('home_cache')
|
||||
uni.removeStorageSync('home_cache_' + oldUserId)
|
||||
uni.removeStorageSync('communityName')
|
||||
uni.removeStorageSync('communityId')
|
||||
uni.removeStorageSync('needReloadUserInfo')
|
||||
}
|
||||
uni.setStorageSync('token', res.data.token)
|
||||
if (res.data.userId) { uni.setStorageSync('userId', res.data.userId) }
|
||||
@@ -349,14 +343,6 @@ onUnmounted(() => {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* 原生输入框(账号/密码区分大小写) */
|
||||
.native-input {
|
||||
flex: 1;
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
height: 88rpx;
|
||||
line-height: 88rpx;
|
||||
}
|
||||
|
||||
/* 深度覆盖 uni-easyinput 内部默认样式 */
|
||||
.input-content :deep(.uni-easyinput__content) {
|
||||
|
||||
Reference in New Issue
Block a user