no message
Showing
1 changed file
with
7 additions
and
1 deletions
| ... | @@ -56,7 +56,7 @@ | ... | @@ -56,7 +56,7 @@ |
| 56 | <view class="text-red">忘记密码</view> | 56 | <view class="text-red">忘记密码</view> |
| 57 | </view> | 57 | </view> |
| 58 | <view class="center-item"> | 58 | <view class="center-item"> |
| 59 | <button class="btn-red">登录</button> | 59 | <button @click="login" class="btn-red">登录</button> |
| 60 | </view> | 60 | </view> |
| 61 | <view class="center-item"> | 61 | <view class="center-item"> |
| 62 | <text class="text-red">没有账号,去注册</text> | 62 | <text class="text-red">没有账号,去注册</text> |
| ... | @@ -89,6 +89,12 @@ | ... | @@ -89,6 +89,12 @@ |
| 89 | function changeAgree(item){ | 89 | function changeAgree(item){ |
| 90 | item = !item | 90 | item = !item |
| 91 | } | 91 | } |
| 92 | function login(){ | ||
| 93 | let path = '/pages/index/index'; | ||
| 94 | uni.navigateTo({ | ||
| 95 | url: path | ||
| 96 | }); | ||
| 97 | } | ||
| 92 | </script> | 98 | </script> |
| 93 | 99 | ||
| 94 | <style scoped lang="scss"> | 100 | <style scoped lang="scss"> | ... | ... |
-
Please register or sign in to post a comment