fix: make move content
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
"path": "pages/make/index",
|
"path": "pages/make/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "讨论",
|
"navigationBarTitleText": "讨论",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": true,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
<view class="tip-line">
|
<view class="tip-line">
|
||||||
<view class="interaction-tip">
|
<view class="interaction-tip">
|
||||||
<uni-icons type="hand-up" size="14" color="#ff3b30"></uni-icons>
|
<uni-icons type="hand-up" size="14" color="#ff3b30"></uni-icons>
|
||||||
<text>点击标题、祝福语或个人信息可拖动,双指可缩放标题</text>
|
<text>标题、祝福语、个人信息可拖动改变位置,双指可缩放标题</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -415,6 +415,7 @@ import {
|
|||||||
onLoad,
|
onLoad,
|
||||||
onReachBottom,
|
onReachBottom,
|
||||||
onShow,
|
onShow,
|
||||||
|
onPullDownRefresh,
|
||||||
} from "@dcloudio/uni-app";
|
} from "@dcloudio/uni-app";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
import LoginPopup from "@/components/LoginPopup/LoginPopup.vue";
|
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 () => {
|
const handleLogind = async () => {
|
||||||
syncUserInfo();
|
syncUserInfo();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user