Преглед изворни кода

fix: promotion try无catch语法错误 + 创建缺失的member-detail分包页面

1. promotion/index.vue: 移除空try块(Missing catch or finally clause)

2. member-detail/report-detail.vue: 新建(pages.json已注册但文件缺失)

3. member-detail/service-role-apply.vue: 新建(pages.json已注册但文件缺失)

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
liaoxg пре 1 месец
родитељ
комит
63b0396ada

+ 24 - 0
cfc-frontend/pages/member-detail/report-detail.vue

@@ -0,0 +1,24 @@
+<template>
+  <view class="container">
+    <view class="page-header">
+      <text class="page-title">报告详情</text>
+    </view>
+    <view class="empty-state">
+      <text class="empty-text">报告详情页面开发中</text>
+    </view>
+  </view>
+</template>
+
+<script>
+export default {
+  data() { return {} }
+}
+</script>
+
+<style>
+.container { min-height: 100vh; background: #f5f7fa; padding: 30rpx; }
+.page-header { margin-bottom: 30rpx; }
+.page-title { font-size: 36rpx; font-weight: 700; color: #333; }
+.empty-state { text-align: center; padding: 120rpx 0; }
+.empty-text { color: #999; font-size: 28rpx; }
+</style>

+ 24 - 0
cfc-frontend/pages/member-detail/service-role-apply.vue

@@ -0,0 +1,24 @@
+<template>
+  <view class="container">
+    <view class="page-header">
+      <text class="page-title">服务角色申请</text>
+    </view>
+    <view class="empty-state">
+      <text class="empty-text">服务角色申请页面开发中</text>
+    </view>
+  </view>
+</template>
+
+<script>
+export default {
+  data() { return {} }
+}
+</script>
+
+<style>
+.container { min-height: 100vh; background: #f5f7fa; padding: 30rpx; }
+.page-header { margin-bottom: 30rpx; }
+.page-title { font-size: 36rpx; font-weight: 700; color: #333; }
+.empty-state { text-align: center; padding: 120rpx 0; }
+.empty-text { color: #999; font-size: 28rpx; }
+</style>

+ 0 - 3
cfc-frontend/pages/promotion/index.vue

@@ -262,9 +262,6 @@ export default {
   },
   },
   methods: {
   methods: {
     async loadData() {
     async loadData() {
-      try {
-        console.error('获取邀请码失败', e)
-      }
       try {
       try {
         var summaryRes = await getReferralSummary()
         var summaryRes = await getReferralSummary()
         if (summaryRes.data) {
         if (summaryRes.data) {