Commit 802a503f authored by XieZhiXiong's avatar XieZhiXiong

修改接口名称

parent 5192b198
...@@ -156,7 +156,7 @@ const Analysis: React.FC<AnalysisProps> = ({ ...@@ -156,7 +156,7 @@ const Analysis: React.FC<AnalysisProps> = ({
// 获取评价汇总 // 获取评价汇总
const getTradeSummary = () => { const getTradeSummary = () => {
PublicApi.getMemberCommentSupplyCountSupplyTradeSummary().then(res => { PublicApi.getMemberCommentSupplyCountTradeSummary().then(res => {
if (res.code === 1000) { if (res.code === 1000) {
const evaluate = summaryEvaluate(res.data.rows); const evaluate = summaryEvaluate(res.data.rows);
const evaluatePieData = getSummaryEvaluatePie(evaluate); const evaluatePieData = getSummaryEvaluatePie(evaluate);
...@@ -170,7 +170,7 @@ const Analysis: React.FC<AnalysisProps> = ({ ...@@ -170,7 +170,7 @@ const Analysis: React.FC<AnalysisProps> = ({
const getTradeHistory = (params: ListParams): Promise<RecordRes> => { const getTradeHistory = (params: ListParams): Promise<RecordRes> => {
const { star, ...rest } = params; const { star, ...rest } = params;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PublicApi.getMemberCommentSupplyCountSupplyTradeHistoryPage({ PublicApi.getMemberCommentSupplyCountTradeHistoryPage({
...rest, ...rest,
starLevel: params.star, starLevel: params.star,
}).then(res => { }).then(res => {
...@@ -204,7 +204,7 @@ const Analysis: React.FC<AnalysisProps> = ({ ...@@ -204,7 +204,7 @@ const Analysis: React.FC<AnalysisProps> = ({
// 获取收到的评价列表 // 获取收到的评价列表
const getReceivedList = (params: ListParams): Promise<RecordRes> => { const getReceivedList = (params: ListParams): Promise<RecordRes> => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PublicApi.getMemberCommentSupplySupplyTradeHistoryPage({ PublicApi.getMemberCommentSupplyReceiveTradeHistoryPage({
...params, ...params,
}).then(res => { }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
......
...@@ -67,7 +67,7 @@ const ReceivedDetail: React.FC = () => { ...@@ -67,7 +67,7 @@ const ReceivedDetail: React.FC = () => {
return; return;
} }
setEvaluationInfoLoading(true); setEvaluationInfoLoading(true);
PublicApi.getMemberCommentSupplySupplyTradeHistoryGet({ PublicApi.getMemberCommentSupplyReceiveTradeHistoryGet({
id, id,
}).then(res => { }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
......
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