Browse Source

修改显示

lex 1 year ago
parent
commit
9e6861a3e1
1 changed files with 20 additions and 10 deletions
  1. 20 10
      src/tenant/ranking-list/index.tsx

+ 20 - 10
src/tenant/ranking-list/index.tsx

@@ -309,11 +309,16 @@ export default defineComponent({
                       <p class={styles.subjectName}>{item.subjectName}</p>
                     </div>
                   ),
-                  value: () => (
-                    <div class={styles.times}>
-                      <span>{item.trainTime}</span>分钟
-                    </div>
-                  )
+                  value: () =>
+                    forms.orderType === 2 ? (
+                      <div class={styles.times}>
+                        <span>{item.trainDays}</span>天
+                      </div>
+                    ) : (
+                      <div class={styles.times}>
+                        <span>{item.trainTime}</span>分钟
+                      </div>
+                    )
                 }}
               </Cell>
             ))}
@@ -347,11 +352,16 @@ export default defineComponent({
                       </p>
                     </div>
                   ),
-                  value: () => (
-                    <div class={styles.times}>
-                      <span>{state.myInfo.trainTime}</span>分钟
-                    </div>
-                  )
+                  value: () =>
+                    forms.orderType === 2 ? (
+                      <div class={styles.times}>
+                        <span>{state.myInfo.trainDays}</span>天
+                      </div>
+                    ) : (
+                      <div class={styles.times}>
+                        <span>{state.myInfo.trainTime}</span>分钟
+                      </div>
+                    )
                 }}
               </Cell>
             </TheSticky>