/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
if (this.data.ismore) {
page++;
this.tabadd(page);
}
},
//上啦加载tab选项卡内容
tabadd(page) {
let that = this;
// console.log(that.data.tabcontent)
let arrs = that.data.tabcontent;
// newarr.push(arrs.splice(0,5));//上拉加载几条数据
let contents = [ //上拉加载新的数据
{
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
}, {
img: "../images/lunbo1.png",
shopName: "的挥洒的哈实打实",
shopType: "是接撒介绍",
shopJie: "水水水水",
shopjuli: 14.2,
shopTaocan: "读好书的和撒旦",
shopXiaofen: 555,
},
]
let len = contents.length;
for (var i = 0; i < len; i++) {
contents[i].shopName += page;
arrs.push(contents[i]);
}
that.setData({
tabcontent: arrs
})
},