themes/index/pm/detail.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

var timer = 0;
var inAjax = false;
var windowHeight = 0;
var App = new Vue({
	el: "#App",
	data: function() {
		return {
			list: [],
			t_userid: 0,
			content: "",
			maxid: 0,
			hasNew: 0,
			per_page: 0,
			isFirst: true,
			sch: 0,
			oldsch: 0,
			scrollTop: 10000,
			time: 0
		}
	},
	created: function(ops) {
		var that = this;
	 
		this.t_userid =userid;
		this.getPage();

	},
	onHide: function() {
		clearInterval(timer);
		timer = 0;
	},
	onShow: function() {
		this.setTimer();
	},
	onPageScroll: function(e) {
		if (e.scrollTop == 0 && !inAjax) {
			this.getList();
			inAjax = true;
			setTimeout(function() {
				inAjax = false;
			}, 2000);
		}
	},
	methods: {
		scrollY: function(e) {
			this.sch = e.detail.scrollHeight;
		},
		scTop: function(e) {
			if (this.oldsch == 0) {
				this.oldsch = this.sch;
			}

			var that = this;
			that.scrollTop = 0;
			this.getList();
		},
		setTimer: function() {
			var that = this;
			if (timer > 0) {
				clearInterval(timer);
后面还有 89 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。