Commit 1e6cc694 authored by 天马流星拳's avatar 天马流星拳

fix: 修复分享页面接口路径及初始化myRank结构

更新分享页面相关接口路径从'invite'改为'inviteAssist_1'
初始化HomePage中myRank的默认结构
移除分享页面接口中不必要的channel参数
parent cffcd281
......@@ -542,7 +542,7 @@ export default [
},
},
{
url: '/invite/coop_queryRecommand.do',
url: '/inviteAssist_1/coop_queryRecommand.do',
response: () => {
return {
"success": true,
......@@ -859,7 +859,7 @@ export default [
},
},
{
url: '/invite/coop_assist.do',
url: '/inviteAssist_1/coop_assist.do',
response: () => {
return {
success: true,
......
......@@ -111,15 +111,10 @@ const API = generateAPI({
},
},
/** 分享落地页接口 */
getSharePageInfo: "invite/coop_queryRecommand.do",
getSharePageInfo: "inviteAssist_1/coop_queryRecommand.do",
doAsistInSharePage: {
uri: "invite/coop_assist.do",
uri: "inviteAssist_1/coop_assist.do",
},
queryInviteCode: {
......
......@@ -40,7 +40,11 @@ class HomePage extends React.Component<any, any> {
// 理财排行榜-用户信息
rankInfos:[],
// 理财排行榜-我的排名
myRank:{},
myRank:{
index: 0,
userName: '',
score: 0,
},
isExpand: false,
};
......
......@@ -29,7 +29,7 @@ class SharePage extends React.Component {
getPageInfo = async () => {
const { success, data } = await API.getSharePageInfo({
channel: CFG.channel,
// channel: CFG.channel,
inviteCode: CFG.inviteCode
})
if (success) {
......@@ -61,7 +61,7 @@ class SharePage extends React.Component {
doAssist = _asyncThrottle(async () => {
const { success, message, code } = await API.doAsistInSharePage({
channel: CFG.channel,
// channel: CFG.channel,
deviceId: localStorage.getItem('like_uuid'),
inviteCode: CFG.inviteCode,
})
......
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