Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Tao
5 years ago
Commit
10401fc8ce3c427e6e4065fcf7075f6b69765ea9
1 parent
922e56cd
modify news
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
apps/common/xianyu.js
apps/pages/home/news/news.vue
apps/common/xianyu.js
View file @
10401fc
...
...
@@ -60,7 +60,6 @@ const xianyu = {
},
goXianyuNewPage
(
args
)
{
console
.
log
(
args
);
if
(
!
args
.
url
)
{
return
;
}
...
...
@@ -73,7 +72,14 @@ const xianyu = {
try
{
pageParams
=
queryString
.
parse
(
urlSplit
[
1
]);
let
arr
=
[];
if
(
Object
.
keys
(
pageParams
)[
0
]
===
'openby:yohobuy'
)
{
for
(
let
key
in
pageParams
)
{
arr
.
push
(
pageParams
[
key
]);
}
}
pageParams
=
JSON
.
parse
(
arr
[
0
]).
params
;
console
.
log
(
JSON
.
parse
(
arr
[
0
]).
params
);
if
(
pageParams
.
pagename
)
{
switch
(
pageParams
.
pagename
)
{
case
'productList'
:
...
...
@@ -82,10 +88,16 @@ const xianyu = {
case
'productDetail'
:
pageName
=
'ProductDetail'
;
break
;
case
'logisticsInfo'
:
pageName
=
'orderLogisticsInfo'
;
break
;
default
:
break
;
}
delete
pageParams
.
pagename
;
pageParams
.
owner
=
pageParams
.
logisticsType
;
pageParams
.
code
=
pageParams
.
ordercode
;
console
.
log
(
pageParams
);
}
}
catch
(
error
)
{
console
.
log
(
error
);
...
...
apps/pages/home/news/news.vue
View file @
10401fc
...
...
@@ -64,6 +64,9 @@ export default {
this.$refs.scroll.forceUpdate();
}
},
watch:{
// '$route':["fetchNewsList","fetchNewsTabList"]
},
components: {
Style,
Scroll,
...
...
Please
register
or
login
to post a comment