Commit 5771696c authored by clone's avatar clone

经济人列表页不用autoken验证

parent 00ff6ae4
...@@ -47,6 +47,7 @@ class Basic extends Controller ...@@ -47,6 +47,7 @@ class Basic extends Controller
"api/shopDetail", "api/shopDetail",
"api/bannerList", "api/bannerList",
"api/averagePriceAndTurnover", "api/averagePriceAndTurnover",
"api/getBroker",
); );
/** /**
......
define (['doT', 'text!temp/transfer_template_tpl.html', 'css!style/home.css','paginationStart'], function (doT, template) { define (['doT', 'text!temp/transfer_template_tpl.html', 'css!style/home.css','paginationStart'], function (doT, template) {
user = { user = {
pageNo: 1, /*第几页*/ pageNo: 1, /*第几页*/
pageSize: 10, /*每页显示多少条*/ pageSize: 15, /*每页显示多少条*/
urls: '', urls: '',
init: function () { init: function () {
...@@ -96,6 +96,7 @@ define (['doT', 'text!temp/transfer_template_tpl.html', 'css!style/home.css','pa ...@@ -96,6 +96,7 @@ define (['doT', 'text!temp/transfer_template_tpl.html', 'css!style/home.css','pa
data: params, data: params,
dataType: 'json', dataType: 'json',
success: function (data) { success: function (data) {
console.log(data);
var temp = document.getElementById ('transfer_list_tpl').innerHTML; var temp = document.getElementById ('transfer_list_tpl').innerHTML;
var doTtmpl = doT.template (temp); var doTtmpl = doT.template (temp);
$ ("#sublet_list").html (doTtmpl (data.data.list)); $ ("#sublet_list").html (doTtmpl (data.data.list));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment