register.vue 625 B

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