Files
addons
app_download_files
extend
hyhproject
mobile
oss
static
app
app2
css
img
js
1.js
ac1111next.js
ac1111next_.js
ac2.js
ac3.js
activity1.js
activity10.js
activity1111.js
activity2.js
activity3.js
activity4.js
activity5.js
activity6.js
activity7.js
activity8.js
activity9.js
addessay.js
addgoods.1.js
addgoods.2.js
addgoods.js
addhhrrz.js
addmemorandum.js
addproperties.js
addqrbb.js
addqrrz.js
addshopping.js
addyhk.js
applicationopen.js
appraise.js
bill.js
binaryajax.js
cancellation.js
canvasResize.js
cash-out.js
choiceness.js
classify.js
collect.js
collect_commodity.js
collect_store.js
commercial.js
common.js
common_home.js
compare.js
complain.js
confirmOrder.js
cooperative.js
details.js
details_ac.js
discount.js
discounts.js
distribution.js
dynamic.js
ect_address.js
ect_area.js
ect_index.js
ect_list.js
ect_pre_.js
ect_recharge.js
ect_recharge_list.js
ect_transfer_accounts.html.js
ect_transfer_accounts.js
ect_withdraw.js
ect_withdraw_deposit.js
editAddress.js
essay.js
essaylist.js
exif.js
family.js
friends.js
friendsList.js
god_ect.js
goodslist.js
guide.js
helpGet.js
hhrrz.js
home.js
home_new.js
income-details.js
indent.js
indentcon.js
index.js
individual.js
invest.js
investdetail.js
journalism.js
journalism_con.js
jquery-3.2.1.min.js
jquery-ui.min.js
jquery.cookie.js
jquery.qtip.min.js
jquery.validate.min.js
juan_goods.js
juan_index.js
login.js
logistics.js
logisticscon.js
lrz.bundle.js
main_guide.js
mapcommon.js
memorandumlist.js
msg.js
msg_con.js
mui.js
mui.min.js
my.js
my_help_sale.js
myshop.js
myshops.js
new_product.js
newuser.js
notepad.js
order_con.js
order_out.js
orsupermarket.js
paymentVoucher.js
perfect-scrollbar.min.js
photoswipe-ui-default.min.js
photoswipe.js
pj.js
plupload.full.min.js
properties.js
qrbb.js
qrcode.js
qrrz.js
recommend.js
reg.js
register.js
register1.js
reviewsmanage.js
rul.js
saoyisao.js
scrollToTop.js
self_shop.js
setting.js
setting_address.js
setting_fogetPayPwd.js
setting_fogetPwd.js
setting_loginInfo.js
setting_payPwd.js
setting_phone.js
setting_pwd.js
setting_recive.js
setting_user.js
shangdu.js
share.js
share_user_list.js
shopGoodsList.js
shop_decorate.js
shop_indent.js
shop_indentcon.js
shoperUploadVoucher.js
shopgoodlist.js
shoppingcart.js
shopsList.js
shopsetting.js
start.js
store_activity.js
store_class.js
store_commodity.js
store_home.1.js
store_home.js
store_info.js
store_new.js
storeout.js
supermarket.js
swiper.min.js
test.js
time.js
time_limit.js
trade_rule.js
upload.js
upload1.js
uploadVoucher.js
uploader.js
uploaderBatch.js
uploadqiniu.js
vouchers.js
yhk.js
zepto.min.js
zhugouba.js
zhuweiba.js
╕┤╓╞ activity7.js
╕┤╓╞ confirmOrder.js
╕┤╓╞ home.js
╕┤╓╞ indentcon.js
images
js
plugins
src
template
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
qlg.tsgz.moe/static/app2/js/friendsList.js
2019-10-27 20:52:35 +08:00

87 lines
2.4 KiB
JavaScript

mui.plusReady(function() {
var self = plus.webview.currentWebview();
var userLevel = self.level
// mui.alert(userLevel)
var page = 1;
var pagesize = 10;
var isjiazai = 1;
getRecommend(page, pagesize)
function getRecommend(page, pagesize) {
var recommenddata = {
page: page ? page : 1,
pagesize: pagesize ? pagesize : 10
}
recommenddata.userLevel = userLevel;
if (-1 == userLevel) {
recommenddata.isLock = 1;
} else {
recommenddata.isLock = 0;
}
if (isjiazai == 0) {
return;
} else {
isjiazai = 0;
}
JZL.ajax(qlgUrl('app/users/myFriendList'), recommenddata, function(data) {
//console.log(data);
if (1 == data.status) {
var data = data.data;
var html = '';
if (data.Rows == '') {
$('.fri-con').append(
'<p style="float: left;width: 100%;text-align: center;padding-bottom: 9px; padding-top:9px;">没有更多朋友</p>');
isjiazai = 0;
return;
}
mui.each(data.Rows, function() {
if (!this.lockReason || '' == this.lockReason) {
html += '<div class="lock_row shadown_wai"><label for="">姓名</label><span for="">' + this.trueName +
'</span><label for="">手机号</label><span for="" >' + this.userPhone + '</span></div>'
} else {
html += '<div class="list_row shadown_wai"><label for="">姓名</label><span for="">' + this.trueName +
'</span><label for="">手机号</label><span for="">' + this.userPhone +
'</span><label for="">锁定原因</label><span for="">' + this.lockReason +
'</span><label for="">锁定时间</label><span for="">8' + this.lockTime +
'小时</span><label for="">开始时间</label><span for="">' + this.createTime + '</span></div>'
}
})
if (page == 1) {
$('.fri-con').html(html);
} else {
$('.fri-con').append(html);
}
isjiazai = 1;
} else {
mui.alert(data.msg)
}
})
}
document.querySelector('.mui-scroll-wrapper').addEventListener('scroll', function(e) {
// 判断默认行为是否可以被禁用
if (e.cancelable) {
// 判断默认行为是否已经被禁用
if (!e.defaultPrevented) {
e.preventDefault();
}
}
if (scroll.y == scroll.maxScrollY) {
if (isjiazai == 1) {
page++;
getRecommend(page, pagesize);
}
}
if (scroll.y > 80 && issx == 0) {
issx = 1;
setTimeout(function() {
location.reload()
}, 1000)
}
}, false)
})