fix: make move content

This commit is contained in:
zzc
2026-02-06 00:20:34 +08:00
parent dced5471c5
commit b3de7defdc
2 changed files with 14 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
"path": "pages/make/index",
"style": {
"navigationBarTitleText": "讨论",
"enablePullDownRefresh": false,
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
},

View File

@@ -98,7 +98,7 @@
<view class="tip-line">
<view class="interaction-tip">
<uni-icons type="hand-up" size="14" color="#ff3b30"></uni-icons>
<text>点击标题祝福语个人信息可拖动双指可缩放标题</text>
<text>标题祝福语个人信息可拖动改变位置双指可缩放标题</text>
</view>
</view>
@@ -415,6 +415,7 @@ import {
onLoad,
onReachBottom,
onShow,
onPullDownRefresh,
} from "@dcloudio/uni-app";
import { useUserStore } from "@/stores/user";
import LoginPopup from "@/components/LoginPopup/LoginPopup.vue";
@@ -762,6 +763,17 @@ onReachBottom(() => {
}
});
onPullDownRefresh(async () => {
templatePage.value = 1;
hasMoreTemplates.value = true;
titlePage.value = 1;
hasMoreTitles.value = true;
await Promise.all([getTemplateList(), getTemplateTitleList()]);
uni.stopPullDownRefresh();
uni.showToast({ title: "已为你更新内容", icon: "success" });
});
const handleLogind = async () => {
syncUserInfo();
};