themes/index/pm/index.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var App=new Vue({
el:"#App",
data: function() {
return {
list: [],
t_userid: 0,
isFirst: true,
per_page: 0,
unLogin: true
}
},
created: function(ops) {
this.getPage();
},
onShow: function() {
this.getPage();
},
onReachBottom: function() {
this.getList();
},
methods: {
goPm: function(userid) {
window.location="/index.php?m=pm&a=detail&userid="+userid
},
getPage: function() {
var that = this;
$.ajax({
dataType:"json",
url: "/index.php?m=pm&ajax=1",
unLogin: true,
success: function(res) {
if (res.error == 1000) {
return false;
}
that.unLogin = false;
that.list = res.data.msglist;
}
})
},
getList: function() {
var that = this;
if (that.per_page == 0 && !that.isFirst) {
return false;
}
$.ajax({
dataType:"json",
url: "/index.php?m=pm&ajax=1",
data: {
per_page: that.per_page
},
success: function(res) {
that.per_page = res.data.per_page;
if (that.isFirst) {
for (var i in res.data.msglist) {
that.list.push(res.data.msglist[i]);
}
that.isFirst = false;
} else {
后面还有 10 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
