Kaynağa Gözat

Merge branch 'master' of http://git.dayaedu.com/lex/h5-colexiu

黄琪勇 7 ay önce
ebeveyn
işleme
7189a669b2
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      src/student/discount-card/index.tsx

+ 3 - 3
src/student/discount-card/index.tsx

@@ -167,10 +167,10 @@ export default defineComponent({
             <div
             <div
               class={[
               class={[
                 styles.userImgSection,
                 styles.userImgSection,
-                (userInfo.value.userVip.vipType !== 'NOT_VIP') &&
+                userInfo.value.userVip.vipType.indexOf('VIP') !== -1 && styles.userVip,
+                (userInfo.value.userVip.vipType.indexOf('SVIP') !== -1 || userInfo.value.userVip.vipType.indexOf('PERMANENT_SVIP') !== -1) &&
                   styles.userSVip,
                   styles.userSVip,
-                userInfo.value.userVip.vipType === 'VIP' && styles.userVip,
-                (userInfo.value.userVip.vipType !== 'NOT_VIP')
+                (userInfo.value.userVip.vipType.indexOf('NOT_VIP') === -1)
                   ? styles.isVip
                   ? styles.isVip
                   : ''
                   : ''
               ]}
               ]}