daofu-applet/pages/login/index.wxml

75 lines
3.4 KiB
Plaintext
Raw Normal View History

2024-01-29 17:42:38 +08:00
<!--pages/login/index.wxml-->
<image class="bg-img" src="/images/bg.png" mode="aspectFill" />
2024-03-20 17:09:58 +08:00
<view class="top">
<text class="nh">您好!</text>
<text class="des">欢迎来到鲜水镇“智慧鲜水”数字化平台</text>
</view>
2024-01-29 17:42:38 +08:00
<view class="v-div v-center form">
2024-03-20 17:09:58 +08:00
<!-- 登录 -->
<view wx:if="{{showLogin}}" class="item v-div v-center">
<text class="title">手机号登录</text>
2024-01-29 17:42:38 +08:00
<view class="h-div v-center in-bg">
<image src="/images/user_icon.png"></image>
<input type="text" value="{{username}}" placeholder="请输入用户名" bindinput="inputMethed" data-type="username" />
</view>
<view class="h-div v-center in-bg">
<image src="/images/pws-icon.png"></image>
<input password type="text" value="{{password}}" placeholder="请输入密码" bindinput="inputMethed" data-type="password" />
</view>
<view catchtap="login" class="btn" data-type="{{1}}">登录</view>
2024-03-20 17:09:58 +08:00
<view class="h-div v-center bot">
<text class="tag" catchtap="changeWay" data-type="{{false}}">还没有账号?立即注册</text>
<view class="forget-pwd">忘记密码</view>
</view>
</view>
<!-- 注册 -->
<view wx:else class="item v-div v-center">
<text class="title">注册</text>
<view class="h-div v-center in-bg">
<text class="lab">姓名</text>
2024-06-04 14:45:44 +08:00
<input type="text" value="{{newname}}" placeholder="请输入姓名" bindinput="inputMethed" data-type="newname" />
</view>
<view class="h-div v-center in-bg">
<text class="lab">账号</text>
<input type="text" value="{{newaccountNumber}}" placeholder="请输入账号" bindinput="inputMethed" data-type="newaccountNumber" />
2024-03-20 17:09:58 +08:00
</view>
<view class="h-div v-center in-bg">
<text class="lab">手机号码</text>
2024-06-04 14:45:44 +08:00
<input type="text" value="{{newphone}}" placeholder="请输入手机号码" bindinput="inputMethed" data-type="newphone" />
2024-03-20 17:09:58 +08:00
</view>
<view class="h-div v-center in-bg">
<text class="lab">登录密码</text>
2024-06-04 14:45:44 +08:00
<input type="text" value="{{newpassword}}" placeholder="请输入登录密码" bindinput="inputMethed" data-type="newpassword" />
2024-03-20 17:09:58 +08:00
</view>
2024-06-04 14:45:44 +08:00
<view class="h-div v-center in-bg" catchtap="popModal" data-type="showTypePop">
2024-03-20 17:09:58 +08:00
<text class="lab">所属社区</text>
2024-06-04 14:45:44 +08:00
<text>{{TypeData[postData.type-1].orgname}}</text>
2024-03-20 17:09:58 +08:00
</view>
2024-06-04 14:45:44 +08:00
<view catchtap="register" class="btn" data-type="{{true}}">立即注册</view>
2024-03-20 17:09:58 +08:00
<view class="h-div v-center" style="margin-top: 30rpx;">
<text class="tag" catchtap="changeWay" data-type="{{true}}">已有账号?立即登录</text>
</view>
2024-01-29 17:42:38 +08:00
</view>
2024-06-04 14:45:44 +08:00
</view>
<!-- 选择工作类型 -->
<view class="cu-modal {{showTypePop?'show':''}}">
<view class="cu-dialog pop" catchtap>
<view class="cu-bar justify-end pop-header">
<view class="content">选择所属社区</view>
<view class="action" catchtap="popModal" data-type="showTypePop">
<text class="cuIcon-close text-red"></text>
</view>
</view>
<radio-group class="block" style="max-height: 50vh;overflow-y: scroll;">
<view class="cu-list menu text-left">
<view class="cu-item" wx:for="{{TypeData}}" wx:key>
<label catchtap="typeChange" data-index="{{index}}" class="flex justify-between align-center flex-sub">
<view class="flex-sub">{{item.orgname}}</view>
</label>
</view>
</view>
</radio-group>
</view>
2024-01-29 17:42:38 +08:00
</view>