fix: make move content
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"path": "pages/make/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "讨论",
|
||||
"enablePullDownRefresh": false,
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user