|
我页面的JS里面代码如下:
Model.prototype.baasData1BeforeRefresh = function(event){
var myfilter="fUserID is null";
this.comp("baasData1").setFilter("myfilter", myfilter);
this.comp("baasData1").refreshData();
var self = this;
justep.Baas.sendRequest({
"url" : "/laojiang/laojiang",
"action" : "GetDeliverlyCount",
"async" : false,
"params" : {},
"success" : function(data) {
$(self.getElementByXid("span7")).text(data.count);
$(self.getElementByXid("span10")).text(data.count);
$(self.getElementByXid("span54")).text(data.count);
}
});
};
Model.prototype.li6Click = function(event){
var row=event.bindingContext.$object;
var id=row.getID();
justep.Shell.showPage(require.toUrl('./sub.w'), {
'id' : id
});
};
Model.prototype.baasData2BeforeRefresh = function(event){
var myfilter="fUserID ='"+justep.Shell.userId.latestValue+"' and fisDelivery='未送货'";
this.comp("baasData2").setFilter("myfilter", myfilter);
this.comp("baasData2").refreshData();
var self = this;
justep.Baas.sendRequest({
"url" : "/laojiang/laojiang",
"action" : "GetWaitingSendCount",
"params" : {
"fUserID" : justep.Shell.userId.latestValue
},
"async" : false,
"success" : function(data) {
$(self.getElementByXid("span30")).text(data.count);
}
});
};
Model.prototype.baasData3BeforeRefresh = function(event){
var myfilter="fUserID ='"+justep.Shell.userId.latestValue+"' and fisDelivery='已送货'";
this.comp("baasData3").setFilter("myfilter", myfilter);
this.comp("baasData3").refreshData();
var self = this;
justep.Baas.sendRequest({
"url" : "/laojiang/laojiang",
"action" : "getFinishSendAction",
"params" : {
"fUserID" : justep.Shell.userId.latestValue
},
"async" : false,
"success" : function(data) {
var len = data.rows.length;
if(len===1){
$(self.getElementByXid("span47")).text(data.rows[0].count.value);
$(self.getElementByXid("span57")).text(data.rows[0].totalMoney.value);
}
}
});
};
Model.prototype.li14Click = function(event){
var row=event.bindingContext.$object;
var id=row.getID();
justep.Shell.showPage(require.toUrl('./wc.w'), {
'id' : id
});
};
Model.prototype.li2Click = function(event){
var row=event.bindingContext.$object;
var id=row.getID();
justep.Shell.showPage(require.toUrl('./detail.w'), {
'id' : id
});
};
可是当我运行到这个页面的时候报错,提示maximum call stack size exceeded
Error
|
|