src/pages/cooperativeOffice/clientVisit/index.vue
@@ -165,6 +165,7 @@ // 查询列表 const getList = () => { showLoadingToast('加载中...') const params = { current: -1, size: -1, @@ -173,12 +174,27 @@ getVisitRecords(params) .then((res) => { visitList.value = res.records || res.data?.records || [] closeToast() }) .catch(() => { closeToast() showToast('获取数据失败') }) } // 显示加载提示 const showLoadingToast = (message) => { uni.showLoading({ title: message, mask: true }); }; // 关闭提示 const closeToast = () => { uni.hideLoading(); }; // 新增拜访 - 跳转到登记页面 const addVisit = () => { uni.navigateTo({