Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-frontend
·
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
xuqi
10 years ago
Commit
8ab5998da860ac2bcf0be3593ec1b3a3369ee07b
1 parent
28c8a31a
tag页路由变更
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
mobile/public/js/tag.js
mobile/router.js
mobile/public/js/tag.js
View file @
8ab5998
...
...
@@ -68,7 +68,7 @@ exports.init = function() {
});
//读取模板
$
.
get
(
'/common/
match
tpl'
,
function
(
data
)
{
$
.
get
(
'/common/
tag
tpl'
,
function
(
data
)
{
tpl
=
data
;
Mustache
.
parse
(
tpl
);
});
...
...
@@ -127,7 +127,7 @@ exports.init = function() {
canScroll
=
false
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/tag/
loadMatchs
'
,
url
:
'/tag/
get
'
,
data
:
setting
}).
then
(
function
(
data
)
{
var
html
=
''
,
...
...
mobile/router.js
View file @
8ab5998
...
...
@@ -16,7 +16,7 @@ module.exports = function(app) {
app
.
get
(
'/optimize'
,
saunter
.
optimize
);
//优化着陆页
app
.
get
(
'/tag'
,
tag
.
show
);
//标签页
app
.
get
(
'/tag/
loadMatchs
'
,
tag
.
loadMatchs
);
//异步加载搭配内容
app
.
get
(
'/tag/
get
'
,
tag
.
loadMatchs
);
//异步加载搭配内容
app
.
get
(
'/editor'
,
editor
.
show
);
//编辑页
app
.
get
(
'/ps'
,
ps
.
show
);
//plus + star
...
...
@@ -33,5 +33,5 @@ module.exports = function(app) {
app
.
get
(
'/common/articletpl'
,
ps
.
readTpl
);
//获取相关资讯模板
app
.
get
(
'/common/goodinfo'
,
template
.
readTpl
);
//读取模板
app
.
get
(
'/common/
match
tpl'
,
match
.
readTpl
);
app
.
get
(
'/common/
tag
tpl'
,
match
.
readTpl
);
};
\ No newline at end of file
...
...
Please
register
or
login
to post a comment