Commit e8eb48d0 authored by 刘玉宏's avatar 刘玉宏

刷新列表

parent 11666726
...@@ -120,7 +120,8 @@ ...@@ -120,7 +120,8 @@
{ {
"path": "pages/storeEntry/index", "path": "pages/storeEntry/index",
"style": { "style": {
"navigationBarTitleText": "我的店铺" "navigationBarTitleText": "我的店铺",
"enablePullDownRefresh": true
} }
}, },
{ {
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
import Header from '@/pages/order/components/Header/index.vue'; import Header from '@/pages/order/components/Header/index.vue';
import { shopList, deleteShopInfoById } from '@/api/storeEntry'; import { shopList, deleteShopInfoById } from '@/api/storeEntry';
const itemUrl = import.meta.env.VITE_APP_IMG_URL; const itemUrl = import.meta.env.VITE_APP_IMG_URL;
const shopStatus = reactive({ const shopStatus = reactive({
0: '停业中', 0: '停业中',
1: '营业中', 1: '营业中',
...@@ -83,7 +84,10 @@ const shopGto = (item) => { ...@@ -83,7 +84,10 @@ const shopGto = (item) => {
onLoad(() => { onLoad(() => {
getList(); getList();
}); });
onPullDownRefresh(async () => {
await getList();
xma.stopPullDownRefresh();
});
const deleteShop = (shopId) => { const deleteShop = (shopId) => {
xma.showModal({ xma.showModal({
title: '删除提示', title: '删除提示',
...@@ -114,6 +118,9 @@ const deleteShop = (shopId) => { ...@@ -114,6 +118,9 @@ const deleteShop = (shopId) => {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
:deep(.uni-page-refresh) {
top: 50%;
}
.container { .container {
position: relative; position: relative;
width: 375 * 2rpx; width: 375 * 2rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment