Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
a231dfb4
Commit
a231dfb4
authored
Oct 13, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销接口异常判断
parent
b0a21261
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
src/pages/home/index.vue
+12
-10
src/utils/fenxiaoModel.js
+1
-3
No files found.
src/pages/home/index.vue
View file @
a231dfb4
...
@@ -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
)
...
...
src/utils/fenxiaoModel.js
View file @
a231dfb4
...
@@ -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
)
});
});
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment