diff --git a/src/forge/Information/Pages/scoreDetail.jsx b/src/forge/Information/Pages/scoreDetail.jsx index 28bc0fb7..33a45ae7 100644 --- a/src/forge/Information/Pages/scoreDetail.jsx +++ b/src/forge/Information/Pages/scoreDetail.jsx @@ -1,7 +1,7 @@ import React , { useState , useEffect } from 'react'; import { Tag , Pagination } from 'antd'; -import { getMemberAccountDetail, getPointsAccountEvent } from '../api'; +import { getMemberAccountDetail, getPointsTransaction } from '../api'; import '../indexUser.scss'; @@ -18,7 +18,7 @@ const transactionTypeMap = { }; function getPointsShow(item) { - const config = transactionTypeMap[item.status]; + const config = transactionTypeMap[item.transactionType]; if (!config) { return { className: '', pointsTxt: item.score, statusClass: '', status: '' }; } @@ -45,7 +45,7 @@ function scoreDetail(props){ },[id, page]) function getDetail() { - getPointsAccountEvent(id, { pageNum: page, pageSize: limit }).then(res => { + getPointsTransaction(id, { pageNum: page, pageSize: limit }).then(res => { if (res && res.data && res.data.code === 200) { const processedRows = (res.data.rows || []).map(item => ({ ...item, @@ -78,18 +78,18 @@ function scoreDetail(props){ {list.map((item, index) => (
{item.subjectDesc}
{item.subjectDesc}