帖子详情加载优化

This commit is contained in:
linfeng 2023-08-28 09:35:49 +08:00
parent fc9666f151
commit 3cf8db0450
2 changed files with 6 additions and 1 deletions

View File

@ -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>

View File

@ -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() {