Просмотр исходного кода

feat(miniprogram): 服务商身份下「我的团队」支持申请其他角色

- 已通过服务角色/活动服务商点击「我的团队」改为弹窗分流:
  进入服务商团队 / 申请其他角色
- 修复活动管理员(activity_manager)等已通过服务角色用户
  无法在小程序进入「服务角色申请」页的问题
OpenCode 1 неделя назад
Родитель
Сommit
3b64769742
1 измененных файлов с 15 добавлено и 2 удалено
  1. 15 2
      cfc-frontend/pages/profile-main/profile.vue

+ 15 - 2
cfc-frontend/pages/profile-main/profile.vue

@@ -779,11 +779,24 @@ export default {
       uni.navigateTo({ url: '/pages/service-center/index' })
     },
     goTeamTree() {
-      // 服务商 → 服务商团队;非服务商 → 引导申请
+      // 服务商/已通过服务角色 → 弹窗分流:进入服务商团队 / 申请其他角色
       if (this.isVendor) {
-        uni.navigateTo({ url: '/pages/vendor/team-system/team-system' })
+        uni.showModal({
+          title: '团队与角色',
+          content: '选择要前往的功能',
+          confirmText: '服务商团队',
+          cancelText: '申请其他角色',
+          success: function(res) {
+            if (res.confirm) {
+              uni.navigateTo({ url: '/pages/vendor/team-system/team-system' })
+            } else if (res.cancel) {
+              uni.navigateTo({ url: '/pages/profile/service-role-apply' })
+            }
+          }
+        })
         return
       }
+      // 非服务商 → 引导申请
       uni.showModal({
         title: '提示',
         content: '您尚未申请任何服务角色,是否立即申请?',