register.vue 570 B

1234567891011121314151617181920212223242526272829303132333435
  1. <script lang="ts" setup>
  2. import { LOGIN_PAGE } from '@/router/config'
  3. definePage({
  4. style: {
  5. navigationBarTitleText: '注册',
  6. },
  7. })
  8. function doRegister() {
  9. uni.showToast({
  10. title: '注册成功',
  11. })
  12. // 注册成功后跳转到登录页
  13. uni.navigateTo({
  14. url: LOGIN_PAGE,
  15. })
  16. }
  17. </script>
  18. <template>
  19. <view class="login">
  20. <view class="text-center">
  21. 注册页
  22. </view>
  23. <button class="mt-4 w-40 text-center" @click="doRegister">
  24. 点击模拟注册
  25. </button>
  26. </view>
  27. </template>
  28. <style lang="scss" scoped>
  29. //
  30. </style>