帖子详情加载优化
This commit is contained in:
parent
fc9666f151
commit
3cf8db0450
@ -9,7 +9,7 @@
|
|||||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
</script>
|
</script>
|
||||||
<title></title>
|
<title>林风社交论坛开源版</title>
|
||||||
<!--preload-links-->
|
<!--preload-links-->
|
||||||
<!--app-context-->
|
<!--app-context-->
|
||||||
</head>
|
</head>
|
||||||
|
@ -355,6 +355,10 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getPostDetail() {
|
getPostDetail() {
|
||||||
|
uni.showLoading({
|
||||||
|
mask: true,
|
||||||
|
title: '加载中'
|
||||||
|
});
|
||||||
this.$H
|
this.$H
|
||||||
.get('post/detail', {
|
.get('post/detail', {
|
||||||
id: this.postId
|
id: this.postId
|
||||||
@ -369,6 +373,7 @@
|
|||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
}
|
||||||
this.postDetail = res.result;
|
this.postDetail = res.result;
|
||||||
|
uni.hideLoading();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancelCollection() {
|
cancelCollection() {
|
||||||
|
Loading…
Reference in New Issue
Block a user