Commit b1c15938 authored by duxinyuan's avatar duxinyuan

调整出账

parent b8a159e5
This diff is collapsed.
define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepicker",'pagination', 'bootstrapJs','blow-up'], function(doT, template) {
receiv = {
pageNo: 1,
/*第几页*/
pageSize: 10,
/*每页显示多少条*/
id: '',
house_id: '',
house_fatherid: '',
collection_del_id:'',
init: function() {
//初始化dot
$(document.body).append(template);
receiv.getList(1);
receiv.event();
},
event: function() {
var that = receiv;
var _doc = $(document);
//操作----时间轴
$(document).on('click','.timeline',function(e){
var house_id = e.target.dataset.id;;
e.preventDefault();
e.stopPropagation();
$('.iframe-time-line').attr('src', '/app_broker/timeline_pc?order_id=' + house_id);
});
var aaa = [{'create_time' : '12','income_time' : '13','report_agent_name' : '14','report_agent_phone' : '15','store_name' : '16','money' : '17',
'real_money' : '18','type' : '19','pay_type' : '10','internal_address' : '21','house_number' : '31','aaa' : '41','bbb' : '51','id' : '61'},{
'create_time' : '12','income_time' : '13','report_agent_name' : '14','report_agent_phone' : '15','store_name' : '16','money' : '17',
'real_money' : '18','type' : '19','pay_type' : '10','internal_address' : '21','house_number' : '31','aaa' : '41','bbb' : '51','id' : '80'}]
var temp = document.getElementById('receivables_template_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#order_list").html(doTtmpl(aaa));
},
};
return receiv;
});
\ No newline at end of file
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