小程序
小游戏
企业微信
微信支付
扫描小程序码分享
线上项目刚出现的问题,求官方解答
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
所有安卓机型 可关注非诚勿撩和鹿鹿Lite 两款小程序 ios可以滑动,安卓滑不了了
//上滑加载更多
onReachBottom: function () {
var that = this;
var systemp = that.data.systemmsg
if (systemp.indexOf("iOS") != -1) {
wx.pageScrollTo({
scrollTop: 0,
duration: 0
})
} else {
duration: 300
}
num++;
if (num < that.data.peoplelist.length) {
that.setData({
isShowId: that.data.peoplelist[num],
// huashow: false,
});
var token = wx.getStorageSync('token');
var user_id = that.data.peoplelist[num - 1].id;
if (token == '') {
videoplay: false,
status: 1
//that.markAsRead();
server.post(server.like_reject_others, {
token: token,
user_id: user_id,
status: 2,
}).then(res => {
if (res.data.key == 1000) {
} else if (res.data.key == 1001) {
} else if (res.data.key == 1200) {
modal2Hidden: true,
modalHiddenb: true,
} else if (res.data.key == 1245) {
wx.showModal({
content: res.data.message,
showCancel: false,
return false;
//that.markAsRead()
var systemp= that.data.systemmsg
}else{
num = that.data.peoplelist.length - 1
that.reloadCurrent();
// feedbackApi.showToast({ title: '没有更多了呦!' })
console.log(num)
console.log(that.data.peoplelist.length)
},
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
编辑器上触发,真机上不触发
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
所有安卓机型 可关注非诚勿撩和鹿鹿Lite 两款小程序 ios可以滑动,安卓滑不了了
//上滑加载更多
onReachBottom: function () {
var that = this;
var systemp = that.data.systemmsg
if (systemp.indexOf("iOS") != -1) {
wx.pageScrollTo({
scrollTop: 0,
duration: 0
})
} else {
wx.pageScrollTo({
scrollTop: 0,
duration: 300
})
}
num++;
if (num < that.data.peoplelist.length) {
that.setData({
isShowId: that.data.peoplelist[num],
// huashow: false,
});
var token = wx.getStorageSync('token');
var user_id = that.data.peoplelist[num - 1].id;
if (token == '') {
that.setData({
videoplay: false,
status: 1
})
//that.markAsRead();
} else {
server.post(server.like_reject_others, {
token: token,
user_id: user_id,
status: 2,
}).then(res => {
if (res.data.key == 1000) {
that.setData({
videoplay: false,
status: 1
})
//that.markAsRead();
} else if (res.data.key == 1001) {
that.setData({
videoplay: false,
status: 1
})
//that.markAsRead();
} else if (res.data.key == 1200) {
that.setData({
modal2Hidden: true,
modalHiddenb: true,
})
} else if (res.data.key == 1245) {
wx.showModal({
content: res.data.message,
showCancel: false,
});
return false;
} else {
wx.showModal({
content: res.data.message,
showCancel: false,
});
//that.markAsRead()
}
})
}
var systemp= that.data.systemmsg
if (systemp.indexOf("iOS") != -1) {
wx.pageScrollTo({
scrollTop: 0,
duration: 0
})
}else{
wx.pageScrollTo({
scrollTop: 0,
duration: 300
})
}
} else {
num = that.data.peoplelist.length - 1
that.reloadCurrent();
// feedbackApi.showToast({ title: '没有更多了呦!' })
var systemp = that.data.systemmsg
if (systemp.indexOf("iOS") != -1) {
wx.pageScrollTo({
scrollTop: 0,
duration: 0
})
} else {
wx.pageScrollTo({
scrollTop: 0,
duration: 300
})
}
}
console.log(num)
console.log(that.data.peoplelist.length)
},
编辑器上触发,真机上不触发
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。