소스 검색

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

黄琪勇 7 달 전
부모
커밋
7189a669b2
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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
               class={[
                 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,
-                userInfo.value.userVip.vipType === 'VIP' && styles.userVip,
-                (userInfo.value.userVip.vipType !== 'NOT_VIP')
+                (userInfo.value.userVip.vipType.indexOf('NOT_VIP') === -1)
                   ? styles.isVip
                   : ''
               ]}