Commit b348e97e by zhangxw

UI走查修改

1 parent 3fd4a3b1
...@@ -59,6 +59,12 @@ Page({ ...@@ -59,6 +59,12 @@ Page({
if (data) this.sessionId = data.sessionId if (data) this.sessionId = data.sessionId
wx.hideLoading() wx.hideLoading()
}, },
clear(e) {
let target = e.currentTarget.dataset.name
this.setData({
[target]: ''
})
},
input(e) { input(e) {
const { const {
value value
......
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
<view class="box"> <view class="box">
<view class="login-item flex"> <view class="login-item flex">
<input maxlength="11" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="填写手机号" bindinput="input" data-name="mobile" class="input" value="{{mobile}}" /> <input maxlength="11" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="填写手机号" bindinput="input" data-name="mobile" class="input" value="{{mobile}}" />
<view class="icon-box" wx:if="{{mobile}}" bindtap="clear" data-name="mobile">
<glsx-image src="/login/login-clear.png"></glsx-image>
</view>
</view> </view>
<view class="login-item flex"> <view class="login-item flex">
<input maxlength="4" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="填写验证码" bindinput="input" data-name="captcha" class="input" value="{{captcha}}" /> <input maxlength="4" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="填写验证码" bindinput="input" data-name="captcha" class="input" value="{{captcha}}" />
......
/* pages/login/login.wxss */ /* pages/login/login.wxss */
page{ page{
background-color: #FAFBFF !important; background-color: #FFFFFF !important;
} }
.layout { .layout {
position: relative; position: relative;
...@@ -153,10 +153,19 @@ page{ ...@@ -153,10 +153,19 @@ page{
.login-item .input { .login-item .input {
flex: 1; flex: 1;
font-size: 32rpx;
font-weight: 600;
}
.icon-box{
width: 32rpx;
height: 32rpx;
padding-left: 20rpx;
} }
.placeholderClass { .placeholderClass {
color: #CCCED1; color: #CCCED1;
font-weight: 400;
} }
.code-btn { .code-btn {
......
/* pages/chooseMerchant/index.wxss */ /* pages/chooseMerchant/index.wxss */
page{
background: #F7F8FA;
}
@keyframes opacity-view { @keyframes opacity-view {
0% { 0% {
opacity: 0; opacity: 0;
...@@ -154,7 +157,6 @@ page { ...@@ -154,7 +157,6 @@ page {
width: 100%; width: 100%;
height: 64rpx; height: 64rpx;
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #CDD1D4;
border-radius: 32rpx; border-radius: 32rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 0 24rpx; padding: 0 24rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!