上拉載入 下拉重新整理模板

2021-10-04 06:39:48 字數 3468 閱讀 8280

//page/index/index.js 

var qcloud = require('../../vendor/wafer2-client-sdk/index')

var util = require('../../utils/util.js')

var config = require('../../config')

page(,

iszhezhao: false,

iscall: false,

stars: [, , , ],

type: 1,

isplayaudio: false,

inneraudiocontext: undefined,

pone1: "",

},// 意向級別

starclick: function () )

}var level = this.data.data.level;

level = level -1;

for (var i = 0; i <= level; i++) )}},

clickbar: function(e) )

if (index==0)

if (index==1)

if (index==2)

if (index==3)

},onload(e));

},onshow())

}if(this.data.type==2))

}this.findcustomerdetail();

this.followrecord(1);

},//客戶詳情

findcustomerdetail: function (param) );

that.starclick();

});},

// 開啟呼叫

opencall: function(e) )

},// 關閉呼叫

closecall: function(e) )

},//直接呼叫

callphone1:function(e)

})},

//虛擬號撥號

callphone2:function(e);

util.getrequestpromise(config.service.getvirtualmobile, param)

.then(data =>

})});

},//跟進記錄

// followrecord: function (param) );

// });

// },

//跟進記錄

followrecord: function (pagenum) ;

param.pagenum = pagenum;

param.pagesize = that.data.pagesize;

param.query = ;

console.log(param);

util.getrequestpromise(config.service.followup, param).then(data => );

} else );

}});

},//新增記錄

// gonewperfectinformation: function (param) )

// },

//新增記錄

followrecordadd: function (param) )

},//聯絡歷史

findmobilelist: function (pagenum) ;

param.pagenum = pagenum;

param.pagesize = that.data.pagesize;

param.query = ;

console.log(param);

util.getrequestpromise(config.service.getmobilelist, param).then(data =>

}var totalpages = result.totalpages;

var pagenum = result.pagenum;

var totalsize = result.totalsize;

if (pagenum == 1) );

} else );

}});

},//軌跡

findcustomersourcepage: function (pagenum) ;

param.pagenum = pagenum;

param.pagesize = that.data.pagesize;

param.query = ;

console.log(param);

util.getrequestpromise(config.service.findcustomersourcepage, param).then(data =>

// }

var totalpages = result.totalpages;

var pagenum = result.pagenum;

var totalsize = result.totalsize;

if (pagenum == 1) );

} else );

}});

},//上拉載入

onreachbottom: function ()

if (this.data.barindex == 2 && pagenum2 <= totalpages)

if (this.data.barindex == 3 && pagenum2 <= totalpages)

},//下拉重新整理

onpulldownrefresh: function ()

if (this.data.barindex == 2)

if (this.data.barindex == 3)

wx.stoppulldownrefresh();

},//完善資料

gonewperfectinformation:function())

},playaudio: function(e)

if (this.data.inneraudiocontext != undefined )

var inneraudiocontext = wx.createinneraudiocontext();

inneraudiocontext.src = voiceurl;

this.setdata();

inneraudiocontext.play();

inneraudiocontext.onplay(() => )

inneraudiocontext.onerror((res) => )

},stop(e));

},clear()

this.setdata();

},onunload()

})

下拉重新整理上拉載入

implements ixlistviewlistener 在oncreat裡面寫的 下拉重新整理是否啟用 xlistview.setpullrefreshenable true 載入更多是否啟用 xlistview.setpullloadenable true xlistview重新整理和載入更多...

下拉重新整理上拉載入

下拉載入上拉重新整理 需求 看看包是否有錯 然後在布局中把listview 改為 xlistview檔名 在activity找到控制項 xlistview xlistview view.findviewbyid r.id.xlistview xlistview setpullloadenable t...

上拉載入 下拉重新整理

自動配置 pod afnetworking pod mjrefresh pod svprogresshud pod sdwebimage 首先 vc.h 中 property nonatomic assign int page 當前頁 vc.m property nonatomic strong n...