Commit a231dfb4 by 李嘉林

分销接口异常判断

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