wex5吧 关注:382贴子:716
  • 1回复贴,共1

小白求助,外卖APP中出现了订单无法更新的问题

只看楼主收藏回复

Model.prototype.orderBtnClick = function(event){
var orderData = this.comp("orderData");
var userData = this.comp("userData");
var CartData = this.comp("CartData");
var me = this;
var content = "";
var orderID = justep.UUID.createUUID();
CartData.each(function(options){
content = content + options.row.val("fMuneName") + "(" + options.row.val("fCount") + ")";
});
var orderRows = orderData.newData({
index: 0,
defaultValues:[{
"fID": orderID,
"fCreateTime": justep.Date.toString(new Date(), justep.Date.STANDART_FORMAT),
"fContent": content,
"fUserID": userData.val("fID"),
"fUserName": userData.val("fName"),
"fPhoneNumber": userData.val("fPhoneNumber"),
"fAddress": userData.val("fAddress"),
"fSum": this.comp("calcData").val("fSumMoney")
}]
})
orderData.saveData({
onSuccess: function(){
justep.Util.hint("下单成功");
CartData.clear();
me.comp("contents").to("orderContent");
},


1楼2017-05-10 17:41回复
    在订单页下拉刷新页面时会出现如下提示,按确定后LIST还会无端复制一条最新记录在前面,请问是为什么呢?


    2楼2017-05-10 17:43
    回复