Commit 2a8a4568 authored by chenfenglei's avatar chenfenglei

优化+数据显示

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