
<view class="pageBg" >
</view>
<view class="pageBg2">
</view>
<view class="page">
  <!-- welcome text -->
  <view class="welcomeText">
    <text>欢迎使用</text>
    <text style="margin-top:20rpx;">米雅快捷收银服务</text>
  </view>
  <!-- white background -->
  <view class="loginContent">
    <view style="width:590rpx;margin-top:48rpx;padding-left:30rpx; padding-right:60rpx;">
      <icon-input-item type="text" placeholder="输入账号" value="{{name}}" onInput="onNameInput" clear="{{true}}" onClear="onNameClear">
          <image mode="aspectFit" style="width:31rpx;height:32rpx;" src="/images/username.png"/>
       </icon-input-item>
    </view>
    <view style="width:590rpx;margin-top:16rpx;padding-left:30rpx; padding-right:60rpx;">
      <icon-input-item  password="{{true}}" placeholder="输入密码" value="{{password}}" onInput="onPasswordInput" clear="{{true}}" onClear="onPasswordClear">
        <image mode="aspectFit" style="width:31rpx;height:32rpx;" src="/images/password.png"/>
      </icon-input-item>
    </view>
    <!-- 错误提示 -->
    <view class="errHint" hidden="{{errHidden}}">
      <text>{{errHint}}</text>
    </view>
    <!-- 按钮 -->
    <image mode="aspectFit" src="/images/btn_login.png" style="width:616rpx;height:181rpx;margin-top:30rpx" onTap="login"/> 
  </view>
</view>

