Commit 2a8a4568 authored by chenfenglei's avatar chenfenglei

优化+数据显示

parent 54ec955a
...@@ -362,10 +362,10 @@ ...@@ -362,10 +362,10 @@
} }
}) })
} }
}, },
getInviteResult(){ getInviteResult(){
getInviteResultApi().then(res=>{ let id=this.$route.query.shopId;
getInviteResultApi({},id).then(res=>{
this.earnings = res.earnings; this.earnings = res.earnings;
this.userNum = res.user_num; this.userNum = res.user_num;
}); });
...@@ -375,7 +375,8 @@ ...@@ -375,7 +375,8 @@
page: 1, page: 1,
limit: 4 limit: 4
} }
getInviteListApi(json).then(res=>{ let id=this.$route.query.shopId;
getInviteListApi(json,id).then(res=>{
this.inviteList = res.list this.inviteList = res.list
}); });
} }
......
...@@ -124,13 +124,13 @@ export const getGoodsListApi = function (json) { ...@@ -124,13 +124,13 @@ export const getGoodsListApi = function (json) {
}; };
//获取邀请战绩收益 //获取邀请战绩收益
const getInviteResultUrl = `${_baseUrl}api/client/user/invite/earnings`; const getInviteResultUrl = `${_baseUrl}api/client/user/invite/earnings`;
export const getInviteResultApi = function (json) { export const getInviteResultApi = function (json,id) {
return Vue.prototype.$fetch(getInviteResultUrl,json) return Vue.prototype.$fetch(`${getInviteResultUrl}/${id}`,json)
}; };
//获取邀请战绩用户列表 //获取邀请战绩用户列表
const getInviteListUrl = `${_baseUrl}api/client/user/invite/list`; const getInviteListUrl = `${_baseUrl}api/client/user/invite/list`;
export const getInviteListApi = function (json) { export const getInviteListApi = function (json,id) {
return Vue.prototype.$fetch(getInviteListUrl,json) return Vue.prototype.$fetch(`${getInviteListUrl}/${id}`,json)
}; };
// 发送验证码 // 发送验证码
const sendMobileCodeUrl = `${_baseUrl}api/client/mobile/code`; const sendMobileCodeUrl = `${_baseUrl}api/client/mobile/code`;
......
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