var vm = new Vue({
el:'#all',
data:{
detail:[
{name:'五档',id:'0',iscur:true},
{name:'单价',id:'1',iscur:false},
{name:'数量',id:'2',iscur:false},
{name:'总价',id:'3',iscur:false},
],
info_in:[],
info_out:[]
},
mounted: function () {
var that = this;
$.ajax({
type:"GET",
url:"/trade_data",
data:{type:$_GET['type'],ext:$_GET['ext']},
dataType:"json",
success: function(result) {
that.info_in=result.in;
that.info_out=result.out;
}
})
}
})