注册流程
This commit is contained in:
15
pages/register/password/index.js
Normal file
15
pages/register/password/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
Page({
|
||||
data: {
|
||||
userName:'',
|
||||
},
|
||||
onLoad: function (options) {
|
||||
this.setData({
|
||||
userName:options.name
|
||||
})
|
||||
},
|
||||
|
||||
toRegister(){
|
||||
wx.navigateTo({url:"/pages/register/ok/index?name=" + this.data.userName})
|
||||
}
|
||||
|
||||
});
|
||||
7
pages/register/password/index.json
Normal file
7
pages/register/password/index.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"t-steps": "/components/steps/steps",
|
||||
"t-step-item": "/components/steps/step-item",
|
||||
"t-button": "/components/button/button"
|
||||
}
|
||||
}
|
||||
15
pages/register/password/index.wxml
Normal file
15
pages/register/password/index.wxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<view>
|
||||
<t-steps class="demo-steps" defaultCurrent="1" readonly>
|
||||
<t-step-item title="用户名" content="选择用户名" />
|
||||
<t-step-item title="密码" content="设置密码" />
|
||||
<t-step-item title="成功" content="完成注册" />
|
||||
</t-steps>
|
||||
</view>
|
||||
<view class="leaveTop">
|
||||
<t-input label="用户名" value="{{userName}}" disabled />
|
||||
<t-input label="输入密码" placeholder="请输入密码" type="password" bindchange="inputChange" data-type='password' clearable />
|
||||
<t-input label="重复输入密码" placeholder="请重复输入密码" type="password" bindchange="inputChange" data-type='rePassword' clearable />
|
||||
</view>
|
||||
<view class="leaveTop">
|
||||
<t-button block theme="danger" bind:tap="toRegister">注册</t-button>
|
||||
</view>
|
||||
3
pages/register/password/index.wxss
Normal file
3
pages/register/password/index.wxss
Normal file
@@ -0,0 +1,3 @@
|
||||
.leaveTop{
|
||||
margin-top: 88rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user