纸通宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

53 lines
3.3 KiB

<!--pages/login/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content" style="color:black;font-size:36rpx">登录</view>
</cu-custom>
<view class="flex flex-center" style="width:100%;height:320rpx;margin-top:60rpx">
<image style="width:192rpx;height:192rpx" src="/assets/image/icon_logo.png"></image>
</view>
<view class="padding" wx:if="{{wxflag}}">
<view class="flex">
<image style="width:40rpx;height:40rpx" src="/assets/image/icon_phone.png"></image>
<text class="label" style="margin-left:24rpx">手机号码</text>
</view>
<view class="cu-form-group" style="min-height:120rpx;border-bottom:1rpx solid #eee;padding:0rpx">
<input id="account" type="number" placeholder-style="color:#aaa" maxlength="11" placeholder="请输入手机号" value="{{form.account}}" bindinput="bindInput" />
</view>
<view class="flex" style="margin-top: 40rpx">
<image style="width:40rpx;height:40rpx" src="{{type == 1 ? '/assets/image/icon_code.png' : '/assets/image/icon_pwd.png'}}"></image>
<text class="label" style="margin-left:24rpx">{{type == 1 ? '验证码' : '密码'}}</text>
</view>
<view wx:if="{{type == 1}}" class="cu-form-group" style="min-height:120rpx;border-bottom:1rpx solid #eee;padding:0rpx;border-top:0rpx solid #eee;">
<input id="captcha" type="number" placeholder-style="color:#aaa" maxlength="6" placeholder="请输入验证码" bindinput="bindInput" />
<wux-button outline type="positive" size="code" disabled="{{!mobileEnable || !codeEnable}}" bind:click="fetchCode">{{ second || '获取验证码' }}</wux-button>
</view>
<view wx:else class="cu-form-group" style="min-height:120rpx;border-bottom:1rpx solid #eee;padding:0rpx">
<input id="password" placeholder-style="color:#aaa" type="{{pwdType}}" maxlength="20" placeholder="请输入验密码" bindinput="bindInput" />
</view>
<view style="margin-top:24rpx;text-align:end;">
<text style="color:#008AFF;font-size:30rpx;padding: 12rpx 0rpx 12rpx 24rpx" bindtap="changeType">{{type == 1 ? '密码登录' : '验证码登录'}}</text>
</view>
<view style="margin-top:120rpx;margin-bottom:24px">
<wux-button block type="positive" disabled="{{loginEnable}}" bind:click="loginForm">{{type == 1 ? '注册' : '登录'}}</wux-button>
</view>
</view>
<view wx:else style="margin-top:16rpx;padding:30rpx">
<view style="text-align: center" class="text-xl">服务协议和隐私政策</view>
<view class="text-df" style="padding:40rpx 30rpx">
<text class="text-df">请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了向你提供纸品交易中心、纸吧以及订单支付的相关服务,我们需要获你的个人微信信息,然后验证是你本人在操作。
你可阅读</text><text class="text-blue" bindtap="readAgreement">《纸通宝用户服务协议》</text>了解详细信息,如你同意,请点击“同意”开始接受我们的服务。
</view>
<view style="margin-top:80rpx;margin-bottom:12px;padding:0rpx 30rpx">
<wux-button block type="positive" loading="{{loging}}" open-type="getUserInfo" bindgetuserinfo="onGotUserInfo">{{loging?'登录中...':'同意'}}</wux-button>
</view>
</view>
<view class="flex flex-center" style="margin-top:{{wxflag?56:6}}rpx;font-size:24rpx;color:#008AFF;text-align: center">
<text class="cuIcon-infofill md-icon">仅限纸通宝回收客户使用</text>
</view>