Ver código fonte

refactor: redirect old apply pages to unified service role apply page

Xiaogang Liao 1 mês atrás
pai
commit
b1ffb1df37

+ 3 - 0
cfc-frontend/pages/butler/apply.vue

@@ -44,6 +44,9 @@
 import { butlerApply } from '@/utils/api'
 
 export default {
+  onLoad() {
+    uni.redirectTo({ url: '/pages/profile/service-role-apply' })
+  },
   data() {
     return {
       tiers: [

+ 3 - 0
cfc-frontend/pages/guide/register/index.vue

@@ -141,6 +141,9 @@
 import { registerGuide, validateInviteCode } from '../../../utils/api.js'
 
 export default {
+  onLoad() {
+    uni.redirectTo({ url: '/pages/profile/service-role-apply' })
+  },
   data() {
     return {
       formData: {

+ 3 - 0
cfc-frontend/pages/nutritionist/apply.vue

@@ -33,6 +33,9 @@
 import { nutritionistApply } from '@/utils/api'
 
 export default {
+  onLoad() {
+    uni.redirectTo({ url: '/pages/profile/service-role-apply' })
+  },
   data() {
     return {
       formData: {

+ 3 - 0
cfc-frontend/pages/vendor/apply.vue

@@ -39,6 +39,9 @@
 import { vendorApply } from '../../utils/api'
 
 export default {
+  onLoad() {
+    uni.redirectTo({ url: '/pages/profile/service-role-apply' })
+  },
   data() {
     return {
       vendorTypes: [