Commit a231dfb4 by 李嘉林

分销接口异常判断

parent b0a21261
......@@ -713,16 +713,18 @@ export default {
})
await app.fenxiaoModel.getSpokesmanInfo().then(data=>{
let newData = {}
if (hasInvitationStatus == 1) {
newData = {
spokesmanGroupId: data.groupId,
spokesmanShopId: data.shopId,
spokesmanRelId: data.id,
userId: data.userId
}
}else {
newData = {
userId: data.userId
if(data != null ) {
if (hasInvitationStatus == 1) {
newData = {
spokesmanGroupId: data.groupId,
spokesmanShopId: data.shopId,
spokesmanRelId: data.id,
userId: data.userId
}
}else {
newData = {
userId: data.userId
}
}
}
newHref = concatUrl(newHref,newData)
......
......@@ -61,10 +61,8 @@ class fenxiaoModel{
_this.fenxiaoApi.query_login_spoken().then(res=>{
if(res.data.code == '200') {
_this.spokesmanInfo = res.data.data;
resolve(res.data.data)
}else {
reject(res)
}
resolve(res.data.data)
});
});
}
......
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