Browse Source

Update index.tsx

lex 1 year ago
parent
commit
9601980108
1 changed files with 9 additions and 3 deletions
  1. 9 3
      src/student/music-group/pre-goods-apply/index.tsx

+ 9 - 3
src/student/music-group/pre-goods-apply/index.tsx

@@ -784,9 +784,15 @@ export default defineComponent({
                           <div class={styles.priceGroup}>
                             团购价:
                             <p>
-                              <del>
-                                <span>¥</span> {moneyFormat(state.goodsInfo.groupPrice)}
-                              </del>
+                              {state.goodsInfo.currentPrice <= 0 ? (
+                                <del>
+                                  <span>¥</span> {moneyFormat(state.goodsInfo.groupPrice)}
+                                </del>
+                              ) : (
+                                <>
+                                  <span>¥</span> {moneyFormat(state.goodsInfo.currentPrice)}
+                                </>
+                              )}
                             </p>
                           </div>
                           {/* {state.goodsInfo.currentPrice > 0 ? (