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
166393ed
Commit
166393ed
authored
Jan 25, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不调用分销接口
parent
40e86b4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
src/main.js
+2
-1
src/pages/home/index.vue
+15
-5
No files found.
src/main.js
View file @
166393ed
...
@@ -173,7 +173,8 @@ wx.onAppRoute(res => {
...
@@ -173,7 +173,8 @@ wx.onAppRoute(res => {
let
currentPage
=
getCurrentPages
()
let
currentPage
=
getCurrentPages
()
// let fromPath = currentPage[currentPage.length - 1].__displayReporter.showReferpagepath
// let fromPath = currentPage[currentPage.length - 1].__displayReporter.showReferpagepath
new
Promise
((
resolve
)
=>
{
new
Promise
((
resolve
)
=>
{
if
(
!
spokesmanId
)
{
// 冬奥会不调用分销接口
if
(
!
spokesmanId
&&
Store
.
state
.
mixid
!=
'CL'
)
{
// 获取当前分销员 id
// 获取当前分销员 id
spokesman
.
getSpokesmanidByShare
().
then
(
res
=>
{
spokesman
.
getSpokesmanidByShare
().
then
(
res
=>
{
if
(
res
.
data
.
data
.
spokesmanId
)
{
spokesmanId
=
res
.
data
.
data
.
spokesmanId
}
if
(
res
.
data
.
data
.
spokesmanId
)
{
spokesmanId
=
res
.
data
.
data
.
spokesmanId
}
...
...
src/pages/home/index.vue
View file @
166393ed
...
@@ -382,8 +382,11 @@ export default {
...
@@ -382,8 +382,11 @@ export default {
this
.
themeColor
=
res
this
.
themeColor
=
res
}
}
}
}
// 新人有礼弹窗
// 不是冬奥会项目不调用此接口
this
.
newUserFun
();
if
(
this
.
$store
.
state
.
mixid
!=
'CL'
){
// 新人有礼弹窗
this
.
newUserFun
();
}
},
},
onShow
()
{
onShow
()
{
// 设置显示条件
// 设置显示条件
...
@@ -396,7 +399,10 @@ export default {
...
@@ -396,7 +399,10 @@ export default {
link
:
linkVal
,
link
:
linkVal
,
});
});
}
}
this
.
getCartNum
();
// 不是冬奥会项目不调用此接口
if
(
this
.
$store
.
state
.
mixid
!=
'CL'
){
this
.
getCartNum
();
}
if
(
checkTabbarPage
(
'/'
)
!=-
1
){
if
(
checkTabbarPage
(
'/'
)
!=-
1
){
this
.
active
=
checkTabbarPage
(
'/'
)
this
.
active
=
checkTabbarPage
(
'/'
)
...
@@ -521,7 +527,10 @@ export default {
...
@@ -521,7 +527,10 @@ export default {
return
JSON
.
stringify
(
pageData
);
return
JSON
.
stringify
(
pageData
);
},
},
init
(
pageList
)
{
init
(
pageList
)
{
this
.
getCartNum
();
// 不是冬奥会项目不调用此接口
if
(
this
.
$store
.
state
.
mixid
!=
'CL'
){
this
.
getCartNum
();
}
this
.
active
=
checkTabbarPage
(
'/'
);
this
.
active
=
checkTabbarPage
(
'/'
);
this
.
setVisible
(
this
.
mpApp
.
globalData
.
pageList
,(
res
)
=>
{
this
.
setVisible
(
this
.
mpApp
.
globalData
.
pageList
,(
res
)
=>
{
this
.
pageInfo
=
res
;
this
.
pageInfo
=
res
;
...
@@ -859,7 +868,8 @@ export default {
...
@@ -859,7 +868,8 @@ export default {
let
newHref
=
'/pages/home/main'
;
let
newHref
=
'/pages/home/main'
;
let
title
=
app
.
globalData
.
shopInfo
.
shopName
;
let
title
=
app
.
globalData
.
shopInfo
.
shopName
;
let
hasInvitationStatus
=
0
;
let
hasInvitationStatus
=
0
;
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
// 不是冬奥会项目不调用此接口
if
(
wx
.
getStorageSync
(
"sessionid"
)
&&
this
.
$store
.
state
.
mixid
!=
'CL'
)
{
await
app
.
fenxiaoModel
.
getSpokesmanidByShare
().
then
(
data
=>
{
await
app
.
fenxiaoModel
.
getSpokesmanidByShare
().
then
(
data
=>
{
hasInvitationStatus
=
data
.
hasInvitationStatus
;
hasInvitationStatus
=
data
.
hasInvitationStatus
;
})
})
...
...
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