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

刷新列表

parent 11666726
......@@ -120,7 +120,8 @@
{
"path": "pages/storeEntry/index",
"style": {
"navigationBarTitleText": "我的店铺"
"navigationBarTitleText": "我的店铺",
"enablePullDownRefresh": true
}
},
{
......
......@@ -52,6 +52,7 @@
import Header from '@/pages/order/components/Header/index.vue';
import { shopList, deleteShopInfoById } from '@/api/storeEntry';
const itemUrl = import.meta.env.VITE_APP_IMG_URL;
const shopStatus = reactive({
0: '停业中',
1: '营业中',
......@@ -83,7 +84,10 @@ const shopGto = (item) => {
onLoad(() => {
getList();
});
onPullDownRefresh(async () => {
await getList();
xma.stopPullDownRefresh();
});
const deleteShop = (shopId) => {
xma.showModal({
title: '删除提示',
......@@ -114,6 +118,9 @@ const deleteShop = (shopId) => {
</script>
<style lang="scss" scoped>
:deep(.uni-page-refresh) {
top: 50%;
}
.container {
position: relative;
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