Authored by xuqi

tag页路由变更

... ... @@ -68,7 +68,7 @@ exports.init = function() {
});
//读取模板
$.get('/common/matchtpl', function(data) {
$.get('/common/tagtpl', 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 = '',
... ...
... ... @@ -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/matchtpl', match.readTpl);
app.get('/common/tagtpl', match.readTpl);
};
\ No newline at end of file
... ...