| | |
| | | return; |
| | | } |
| | | |
| | | showLoadingToast('加载中...') |
| | | const param = { |
| | | customerId: customerId.value, |
| | | current: -1, |
| | |
| | | |
| | | customerInteractions(param).then((res) => { |
| | | tableData.value = res.data; |
| | | closeToast() |
| | | }).catch(() => { |
| | | closeToast() |
| | | uni.showToast({ |
| | | title: '查询失败', |
| | | icon: 'error' |
| | |
| | | return amount ? parseFloat(amount).toFixed(2) : '0.00'; |
| | | }; |
| | | |
| | | // 显示加载提示 |
| | | const showLoadingToast = (message) => { |
| | | uni.showLoading({ |
| | | title: message, |
| | | mask: true |
| | | }); |
| | | }; |
| | | |
| | | // 关闭提示 |
| | | const closeToast = () => { |
| | | uni.hideLoading(); |
| | | }; |
| | | |
| | | onShow(() => { |
| | | // 页面显示时获取参数并刷新列表 |
| | | getPageParams(); |