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
6c7850ed
Commit
6c7850ed
authored
Mar 04, 2021
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ff
parent
a70d415a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
8 deletions
+24
-8
src/pages/tabBar1/index.vue
+6
-2
src/pages/tabBar2/index.vue
+6
-2
src/pages/tabBar3/index.vue
+6
-2
src/pages/tabBar4/index.vue
+6
-2
No files found.
src/pages/tabBar1/index.vue
View file @
6c7850ed
...
...
@@ -22,14 +22,14 @@ export default {
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
`&tabbar=1&location_obj=
${
wx
.
getStorageSync
(
"location"
)}
`
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
,
index
:
1
,
ss
:
""
,
};
},
computed
:
{
pageUrl
()
{
return
this
.
link
+
this
.
page
+
this
.
params
+
this
.
ss
;
return
this
.
link
+
this
.
page
+
this
.
params
+
`&tabbar=1&location_obj=
${
wx
.
getStorageSync
(
"location"
)}
`
+
this
.
ss
;
},
},
onLoad
(
options
)
{
...
...
@@ -50,11 +50,15 @@ export default {
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
if
(
!
this
.
ss
&&
ss
)
{
this
.
ss
=
`&sessionid=
${
ss
}
`
;
}
else
if
(
!
ss
){
!
this
.
params
.
includes
(
'logOut=true'
)
&&
(
this
.
params
+=
"&logOut=true"
)
}
else
{
this
.
params
+=
`×tamp=
${
new
Date
().
getTime
()}
`
}
setTabBarActive
.
bind
(
this
)(
this
.
index
);
console
.
log
(
'----'
,
this
.
pageUrl
)
},
methods
:
{
handleError
(
data
)
{
...
...
src/pages/tabBar2/index.vue
View file @
6c7850ed
...
...
@@ -21,14 +21,14 @@ export default {
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
`&tabbar=2&location_obj=
${
wx
.
getStorageSync
(
"location"
)}
`
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
,
index
:
2
,
ss
:
""
,
};
},
computed
:
{
pageUrl
()
{
return
this
.
link
+
this
.
page
+
this
.
params
+
this
.
ss
;
return
this
.
link
+
this
.
page
+
this
.
params
+
`&tabbar=2&location_obj=
${
wx
.
getStorageSync
(
"location"
)}
`
+
this
.
ss
;
},
},
onLoad
(
options
)
{
...
...
@@ -49,11 +49,15 @@ export default {
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
if
(
!
this
.
ss
&&
ss
)
{
this
.
ss
=
`&sessionid=
${
ss
}
`
;
}
else
if
(
!
ss
){
this
.
params
+=
"&logOut=true"
}
else
{
this
.
params
+=
`×tamp=
${
new
Date
().
getTime
()}
`
}
setTabBarActive
.
bind
(
this
)(
this
.
index
);
console
.
log
(
'----'
,
this
.
pageUrl
)
},
methods
:
{
handleError
(
data
)
{
...
...
src/pages/tabBar3/index.vue
View file @
6c7850ed
...
...
@@ -21,14 +21,14 @@ export default {
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
`&tabbar=3&location_obj=
${
wx
.
getStorageSync
(
"location"
)}
`
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
,
index
:
3
,
ss
:
""
,
};
},
computed
:
{
pageUrl
()
{
return
this
.
link
+
this
.
page
+
this
.
params
+
this
.
ss
;
return
this
.
link
+
this
.
page
+
this
.
params
+
`&tabbar=3&location_obj=
${
wx
.
getStorageSync
(
"location"
)}
`
+
this
.
ss
;
},
},
onLoad
(
options
)
{
...
...
@@ -55,11 +55,15 @@ export default {
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
if
(
!
this
.
ss
&&
ss
)
{
this
.
ss
=
`&sessionid=
${
ss
}
`
;
}
else
if
(
!
ss
){
this
.
params
+=
"&logOut=true"
}
else
{
this
.
params
+=
`×tamp=
${
new
Date
().
getTime
()}
`
}
setTabBarActive
.
bind
(
this
)(
this
.
index
);
console
.
log
(
'----'
,
this
.
pageUrl
)
},
methods
:
{
handleError
(
data
)
{
...
...
src/pages/tabBar4/index.vue
View file @
6c7850ed
...
...
@@ -21,14 +21,14 @@ export default {
return
{
link
:
process
.
env
.
BASE_URL
,
page
:
"/"
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
+
`&tabbar=4&location_obj=
${
wx
.
getStorageSync
(
"location"
)}
`
,
params
:
"?mixid="
+
this
.
$store
.
state
.
mixid
,
index
:
4
,
ss
:
""
,
};
},
computed
:
{
pageUrl
()
{
return
this
.
link
+
this
.
page
+
this
.
params
+
this
.
ss
;
return
this
.
link
+
this
.
page
+
this
.
params
+
`&tabbar=4&location_obj=
${
wx
.
getStorageSync
(
"location"
)}
`
+
this
.
ss
;
},
},
onLoad
(
options
)
{
...
...
@@ -55,11 +55,15 @@ export default {
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
if
(
!
this
.
ss
&&
ss
)
{
this
.
ss
=
`&sessionid=
${
ss
}
`
;
}
else
if
(
!
ss
){
this
.
params
+=
"&logOut=true"
}
else
{
this
.
params
+=
`×tamp=
${
new
Date
().
getTime
()}
`
}
setTabBarActive
.
bind
(
this
)(
this
.
index
);
console
.
log
(
'----'
,
this
.
pageUrl
)
},
methods
:
{
handleError
(
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