瀏覽代碼

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
                   : ''
               ]}