fix: 修改index数据来源
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 47s

This commit is contained in:
sexygoat
2026-04-14 10:31:25 +08:00
parent 0b8dd7af00
commit 1a407924de
7 changed files with 216 additions and 54 deletions

View File

@@ -2,8 +2,8 @@
<view class="login-page">
<view class="content">
<view class="header">
<view class="main-title">设备管理登录</view>
<view class="sub-title">请输入设备标识进行登录</view>
<view class="main-title">登录</view>
<view class="sub-title">请输入标识进行登录</view>
</view>
<view class="form-section">
@@ -11,14 +11,14 @@
<input
v-model="identifier"
class="input"
placeholder="请输入设备标识"
placeholder="请输入标识"
placeholder-class="placeholder"
@focus="inputFocus = true"
@blur="inputFocus = false"
@input="showError = false"
/>
</view>
<text v-if="showError" class="error">请输入设备标识</text>
<text v-if="showError" class="error">请输入标识</text>
</view>
<view class="btn-section">
@@ -139,10 +139,10 @@
<style lang="scss" scoped>
.login-page {
min-height: 100vh;
display: flex;
flex-direction: column;
background: #FFFFFF;
min-height: 100vh;
padding: 60rpx 40rpx;
}
@@ -184,8 +184,7 @@
}
.input-wrap.focus {
background: #FFFFFF;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
background: #f7f7f7;
}
.input {
@@ -213,28 +212,25 @@
.btn-login {
width: 100%;
height: 108rpx;
background: linear-gradient(135deg, #00DDA2 0%, #00E5A8 100%);
background: $uni-color-primary;
border: none;
border-radius: 20rpx;
font-size: 36rpx;
font-weight: 600;
color: #1A1A1A;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
box-shadow: 0 8rpx 24rpx rgba(0, 221, 162, 0.25);
}
.btn-login.disabled {
background: #E5E7EB;
color: #9CA3AF;
box-shadow: none;
}
.btn-login:active:not(.disabled) {
transform: scale(0.98);
box-shadow: 0 4rpx 16rpx rgba(0, 221, 162, 0.3);
opacity: 0.8;
}
.loading {
@@ -246,7 +242,7 @@
.dot {
width: 10rpx;
height: 10rpx;
background: #1A1A1A;
background: #FFFFFF;
border-radius: 50%;
animation: load 1.4s infinite ease-in-out both;
}