Commit bf480082 by liimin

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas/mini-program/…

…points-mall into SAAS+V4.56.0-0908
2 parents aa2f0c82 b348e97e
......@@ -59,6 +59,12 @@ Page({
if (data) this.sessionId = data.sessionId
wx.hideLoading()
},
clear(e) {
let target = e.currentTarget.dataset.name
this.setData({
[target]: ''
})
},
input(e) {
const {
value
......
......@@ -28,6 +28,9 @@
<view class="box">
<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}}" />
<view class="icon-box" wx:if="{{mobile}}" bindtap="clear" data-name="mobile">
<glsx-image src="/login/login-clear.png"></glsx-image>
</view>
</view>
<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}}" />
......
/* pages/login/login.wxss */
page{
background-color: #FAFBFF !important;
background-color: #FFFFFF !important;
}
.layout {
position: relative;
......@@ -153,10 +153,19 @@ page{
.login-item .input {
flex: 1;
font-size: 32rpx;
font-weight: 600;
}
.icon-box{
width: 32rpx;
height: 32rpx;
padding-left: 20rpx;
}
.placeholderClass {
color: #CCCED1;
font-weight: 400;
}
.code-btn {
......
/* pages/chooseMerchant/index.wxss */
page{
background: #F7F8FA;
}
@keyframes opacity-view {
0% {
opacity: 0;
......@@ -154,7 +157,6 @@ page {
width: 100%;
height: 64rpx;
background: #FFFFFF;
border: 2rpx solid #CDD1D4;
border-radius: 32rpx;
box-sizing: border-box;
padding: 0 24rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!