diff --git a/pages/make/index.vue b/pages/make/index.vue
index 26b5539..8e1e735 100644
--- a/pages/make/index.vue
+++ b/pages/make/index.vue
@@ -70,12 +70,7 @@
热门模板
-
+
没有更多了
-
+
@@ -199,7 +194,7 @@ import { ref, onMounted } from "vue";
import { getBavBarHeight, getDeviceInfo } from "@/utils/system";
import { createCardTmp, getCardTemplateList } from "@/api/make";
import { createCardShareToken } from "@/api/card";
-import { onShareAppMessage, onLoad } from "@dcloudio/uni-app";
+import { onShareAppMessage, onLoad, onReachBottom } from "@dcloudio/uni-app";
import { useUserStore } from "@/stores/user";
const templatePage = ref(1);
@@ -237,6 +232,12 @@ onLoad((options) => {
getTemplateList();
});
+onReachBottom(() => {
+ if (activeTool.value === "template") {
+ loadMoreTemplates();
+ }
+});
+
const createCard = async () => {
const res = await createCardTmp({
targetName: targetName.value,
@@ -811,7 +812,6 @@ function drawRoundRect(ctx, x, y, w, h, r, color) {
}
.tpl-scroll {
margin-top: 12rpx;
- height: 600rpx; /* 增加高度以展示纵向列表 */
}
.tpl-grid {
display: grid;