无 发布于:2021-05-26 05:03:31
d.unshift({id:"0",classname:'全部',htmlurl:'ypkj'})
d.push({id:"0",classname:'全部',htmlurl:'ypkj'})
var c = Object.assign({ key: this.data.accesskey, openid: this.user.openid }, data);
str.forEach(function(val,index,arr){ var stria = val.split('|'); var strib = {'title':stria[1],'picurl':_this.data.imgurl + stria[0]}; arrs[index] = strib; })
var a = "1|2||23|22||32|33||32|3" photo:function(a){ var _this = this; var p = a; var str = p.split('||'); var x,arrs={} str.forEach(function(val,index,arr){ var stria = val.split('|'); var strib = {'title':stria[1],'picurl':_this.data.imgurl + stria[0]}; arrs[index] = strib; }) return arrs; }
// 通过 tid 获取 列表信息 let _t = this; app.api('POST', tid, {ajax:1,page:this.data.page,isshow:1}, (res) => { let data = res.data.data if(data.length>=1){ if(add==1){ let list = _t.data.listl1; data.forEach(function(val,index,arr){ list.push(val); }) data = list; } _t.setData({listl1:data,nolist:false,moreloading:true}) } else{ _t.setData({moretxt:'已经到底',moreloading:true}); } })
登录后可以留言提问!
微信扫码登录