| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <route lang="jsonc" type="page">
- {
- "layout": "default",
- "style": {
- "navigationBarTitleText": "注册"
- }
- }
- </route>
- <script lang="ts" setup>
- import { LOGIN_PAGE } from '@/router/config'
- function doRegister() {
- uni.showToast({
- title: '注册成功',
- })
- // 注册成功后跳转到登录页
- uni.navigateTo({
- url: LOGIN_PAGE,
- })
- }
- </script>
- <template>
- <view class="login">
- <view class="text-center">
- 注册页
- </view>
- <button class="mt-4 w-40 text-center" @click="doRegister">
- 点击模拟注册
- </button>
- </view>
- </template>
- <style lang="scss" scoped>
- //
- </style>
|