var app = getApp() var that=null var sopenFrame=null Page( { data: { loadingHidden:false, items:[], times:"", status:0, tconut:0, orderydh:"", orderkdgs:"", zftype:0, orderid:0, apiurl:"" }, onLoad: function(options) { that = this that.rdata(options.wlxx) },rdata: function(xx) { var userId = wx.getStorageSync("userId") var LoginId = wx.getStorageSync("LoginId") var wlxx=xx.split("|") if(wlxx[0]!="auto"){ wx.request({ url: app.globalData.apiurl + "/xapiajax.ashx", data: { action:"kdchaxun", kdgs:wlxx[0], ydh:wlxx[2], userId:(userId==null?"":userId), LoginId:(LoginId==null?"":LoginId) }, method:"GET", dataType:"json", header: { "content-type": "application/json" // 默认值 }, success (res) { if(res.data.success){ var items=res.data.items.reverse() for(var i=0;i