Commit d4b06b94 authored by Bill's avatar Bill

fix: 修改首页会员等级bug'

parent ab47bcc5
......@@ -2,10 +2,10 @@ import React, { useCallback, useMemo, useReducer } from 'react';
import styles from './index.less';
import moment from 'moment';
import { Badge, message, Spin, Tooltip } from 'antd';
import level1 from '@/assets/imgs/level1.png';
import level2 from '@/assets/imgs/level2.png';
import level3 from '@/assets/imgs/level3.png';
import level4 from '@/assets/imgs/level4.png';
// import level1 from '@/assets/imgs/level1.png';
// import level2 from '@/assets/imgs/level2.png';
// import level3 from '@/assets/imgs/level3.png';
// import level4 from '@/assets/imgs/level4.png';
import { Link } from 'umi';
import { getAuth } from '@/utils/auth';
import StatusTag from '@/components/StatusTag';
......@@ -21,7 +21,7 @@ import { GlobalConfig } from '@/global/config';
interface Iprops {}
const WEEKDAYS = ["天", "一","二", "三", "四", "五","六"];
const LEVEL_IMAGE = [level1, level1, level2, level3, level4];
// const LEVEL_IMAGE = [level1, level1, level2, level3, level4];
const EDIT_USER_URL = '/memberCenter/editMySelf';
const USER_CENTER_URL = '/memberCenter/memberAbility/profile/query';
const STATUS_COLOR: ("default" | "processing" | "error" | "success")[] = ["default", "processing", "error", "success", "error"]
......@@ -139,7 +139,7 @@ const UserCenter: React.FC<Iprops> = (props) => {
<div className={styles.otherValues}>
<div className={styles.divider}>
<div className={styles.level}>
会员等级: <img src={LEVEL_IMAGE[userAuth.level]} className={styles.levelImg} />
会员等级: <StatusTag type={'primary'} title={userAuth.levelTag} />
</div>
<div className={styles.score}>
平台积分: <strong>{userAuth.score}</strong>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment