注册流程
This commit is contained in:
13
pages/register/ok/index.js
Normal file
13
pages/register/ok/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
Page({
|
||||
data: {
|
||||
userName:'',
|
||||
},
|
||||
onLoad: function (options) {
|
||||
this.setData({
|
||||
userName:options.name
|
||||
})
|
||||
},
|
||||
toLongin(){
|
||||
wx.redirectTo({url:"/pages/login/index"});
|
||||
}
|
||||
});
|
||||
8
pages/register/ok/index.json
Normal file
8
pages/register/ok/index.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"t-steps": "/components/steps/steps",
|
||||
"t-step-item": "/components/steps/step-item",
|
||||
"t-result": "/components/result/result",
|
||||
"t-button": "/components/button/button"
|
||||
}
|
||||
}
|
||||
13
pages/register/ok/index.wxml
Normal file
13
pages/register/ok/index.wxml
Normal file
@@ -0,0 +1,13 @@
|
||||
<view>
|
||||
<t-steps class="demo-steps" defaultCurrent="2" readonly>
|
||||
<t-step-item title="用户名" content="选择用户名" />
|
||||
<t-step-item title="密码" content="设置密码" />
|
||||
<t-step-item title="成功" content="完成注册" />
|
||||
</t-steps>
|
||||
</view>
|
||||
<view class="leaveTop">
|
||||
<t-result theme="success" title="成功" description="恭喜{{userName}}注册成功!" />
|
||||
</view>
|
||||
<view class="leaveTop">
|
||||
<t-button block theme="danger" bind:tap="toLongin">去登录>>></t-button>
|
||||
</view>
|
||||
3
pages/register/ok/index.wxss
Normal file
3
pages/register/ok/index.wxss
Normal file
@@ -0,0 +1,3 @@
|
||||
.leaveTop{
|
||||
margin-top: 88rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user