纸通宝SAAS仓库
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.
 

75 lines
5.6 KiB

<!--pages/login/index.wxml-->
<view class="flex flex-center flex-column" style="height:100vh;width:750rpx">
<view class="flex flex-center" style="width:100%;height:320rpx;">
<image style="width:407rpx;height:160rpx" src="/assets/image/icon_logo.png"></image>
</view>
<view style="padding: 30rpx 80rpx;height:480rpx;width: 100%;" wx:if="{{ metaData }}">
<view class="text-xl">欢迎您使用纸通宝工厂版!</view>
<view class="text-df" style="padding:20rpx 0rpx" wx:if="{{metaData.qrPage == '/page/index/yaoqing'}}">
<text class="text-df">现邀请您成为<text class="text-bold text-blue">{{metaData.factoryName}}</text>的管理员</text>
</view>
<view class="text-df" style="padding:20rpx 0rpx" wx:elif="{{metaData.qrPage == '/page/index/shenqing'}}">
<text class="text-df">现邀请您成为<text class="text-bold text-blue">{{metaData.factoryName}}</text>的员工</text>
</view>
<view class="text-df" style="padding:20rpx 0rpx" wx:elif="{{metaData.qrPage == 'page/inde/ztbsaas/yaoqing'}}">
<text class="text-df">现邀请您成为<text class="text-bold text-blue">{{metaData.name}}</text>的管理员</text>
</view>
<view class="text-df" style="padding:20rpx 0rpx" wx:elif="{{metaData.qrPage == '/page/index/register'}}">
<text class="text-df"><text class="text-bold text-blue">{{metaData.factoryName}}</text>邀请您成为纸通宝注册会员</text>
</view>
<input id="userName" style="padding:0rpx 30rpx;border:1rpx solid #eee;height:80rpx;margin-top:64rpx" placeholder-style="color:#aaa"
maxlength="20" placeholder="请输入您的姓名,以便于识别" bindinput="bindInput" disabled="{{loging}}" bindfocus="inputFocus"
wx:if="{{ metaData.qrPage != '/page/index/register' }}"/>
</view>
<view style="padding: 30rpx 80rpx;height:480rpx;width: 100%;" wx:elif="{{ regist }}">
<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" disabled="{{loging}}" 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:12rpx">{{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" disabled="{{loging}}" maxlength="6" placeholder="请输入验证码" bindinput="bindInput" />
<van-button size="small" plain type="info" custom-style="width:220rpx" disabled="{{!mobileEnable || !codeEnable || loging}}" bind:click="fetchCaptcha">
<van-count-down class="count-down" time="{{ 60000 }}" use-slot auto-start="{{false}}" bind:change="onCountChange" bind:finish="onFinished">
<text class="text-sm">{{second}}</text>
</van-count-down>
</van-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" bindfocus="inputFocus" disabled="{{loging}}"/>
<text class="cuIcon-{{pwdType == 'password' ? 'attention': 'attentionforbid'}}" bindtap="changePwd" style="font-size:22px"></text>
</view>
<view style="margin-top:24rpx;text-align:end;">
<text class="label" style="font-size:30rpx;padding: 12rpx 0rpx 12rpx 24rpx" bindtap="changeType">{{type == 1 ? '密码登录' : '验证码登录'}}</text>
</view>
</view>
<view wx:else style="padding:30rpx 80rpx;height:480rpx">
<view style="text-align: center" class="text-xl">服务协议和隐私政策</view>
<view class="text-df" style="padding:40rpx 0rpx">
<text class="text-df">请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了向你提工厂经营管理、订单结算以及其他业务的相关服务,我们需要获你的个人微信信息,然后验证是你本人在操作。你可阅读</text><text class="text-blue" bindtap="readAgreement">《纸通宝SAAS服务协议》</text>了解详细信息,如你同意,请点击“同意”开始接受我们的服务。
</view>
</view>
<view style="margin-top:20rpx;padding:40rpx 80rpx">
<van-button block type="info" custom-style="width:600rpx" loading="{{loging}}" loading-text="提交..." disabled="{{!metaData.userName}}"
bind:click="submitForm" wx:if="{{ metaData }}">确定</van-button>
<van-button block type="info" custom-style="width:600rpx" loading="{{loging}}" loading-text="登录中..." disabled="{{loginEnable}}"
bind:click="registAccount" wx:elif="{{ regist }}">登录</van-button>
<van-button block type="info" custom-style="width:600rpx" loading="{{loging}}" loading-text="登录中..." open-type="getUserInfo"
bind:getuserinfo="onGotUserInfo" wx:else>同意</van-button>
<!-- <van-button block type="info" loading="{{loging}}" loading-text="登录中..."
bind:click="onGetUserProfile" wx:else>同意</van-button> -->
</view>
<view class="flex flex-center" style="margin-top:10rpx;font-size:24rpx;color:#008AFF;text-align: center">
<text class="cuIcon-infofill md-icon">仅限纸通宝工厂客户使用</text>
</view>
</view>
<van-dialog id="van-dialog" />