Browse Source

fix: 闭合rating.vue模板中缺失的view标签,修复编译报错

liaoxg 1 month ago
parent
commit
8de16bcb3f
1 changed files with 4 additions and 2 deletions
  1. 4 2
      cfc-frontend/pages/assessment/rating.vue

+ 4 - 2
cfc-frontend/pages/assessment/rating.vue

@@ -11,7 +11,8 @@
       <text>加载中...</text>
     </view>
 
-    <view v-else-if="execution" class="rating-form">
+    <!-- 评价表单 -->
+    <view v-if="!loading && execution" class="rating-form">
       <!-- 评估师评价 -->
       <view v-if="execution.assessorId" class="rating-section">
         <view class="section-header">
@@ -81,9 +82,10 @@
           返回
         </button>
       </view>
+    </view>
 
     <!-- 无数据 -->
-    <view v-else class="empty">
+    <view v-if="!loading && !execution" class="empty">
       <text>暂无可评价的服务</text>
     </view>
   </view>