优化代码

This commit is contained in:
java110 2023-09-01 13:27:21 +08:00
parent 9c4426d01d
commit 6d82b77d99
4 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@
</view> </view>
<view class="padding flex flex-direction"> <view class="padding flex flex-direction">
<button class="cu-btn bg-green margin-tb-sm lg" @tap="doLogin()">登录</button> <button class="cu-btn bg-blue margin-tb-sm lg" @tap="doLogin()">登录</button>
</view> </view>
</scroll-view> </scroll-view>
@ -137,7 +137,7 @@
} }
.login-nav { .login-nav {
background-color: #00AA00; background-color: #368CFE;
height: 120upx; height: 120upx;
} }

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<view><view class="login-nav flex justify-center align-center"><text>请登录</text></view><scroll-view scroll-y="{{true}}"><view class="flex justify-center logo"><view class="cu-avatar xl round lage-avatar logo-lage" style="{{('background-image:url('+logoUrl+');')}}"></view></view><view class="margin-top"><view class="cu-form-group margin-top"><view class="title">用户名</view><input placeholder="请输入用户名" name="input" data-event-opts="{{[['input',[['__set_model',['','username','$event',[]]]]]]}}" value="{{username}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">密码</view><input placeholder="请输入密码" type="password" name="input" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view></view><view class="padding flex flex-direction"><button data-event-opts="{{[['tap',[['doLogin']]]]}}" class="cu-btn bg-green margin-tb-sm lg" bindtap="__e">登录</button></view></scroll-view></view> <view><view class="login-nav flex justify-center align-center"><text>请登录</text></view><scroll-view scroll-y="{{true}}"><view class="flex justify-center logo"><view class="cu-avatar xl round lage-avatar logo-lage" style="{{('background-image:url('+logoUrl+');')}}"></view></view><view class="margin-top"><view class="cu-form-group margin-top"><view class="title">用户名</view><input placeholder="请输入用户名" name="input" data-event-opts="{{[['input',[['__set_model',['','username','$event',[]]]]]]}}" value="{{username}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">密码</view><input placeholder="请输入密码" type="password" name="input" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view></view><view class="padding flex flex-direction"><button data-event-opts="{{[['tap',[['doLogin']]]]}}" class="cu-btn bg-blue margin-tb-sm lg" bindtap="__e">登录</button></view></scroll-view></view>

View File

@ -8,7 +8,7 @@
width: 180rpx; width: 180rpx;
} }
.login-nav { .login-nav {
background-color: #00AA00; background-color: #368CFE;
height: 120rpx; height: 120rpx;
} }
.login-nav text { .login-nav text {