diff --git a/src/views/member/index.vue b/src/views/member/index.vue index b3ec2e9..58f413d 100644 --- a/src/views/member/index.vue +++ b/src/views/member/index.vue @@ -8,7 +8,7 @@ + :row-class-name="tableRowClassName" @cell-click="cellclicktableData" v-loading="loading"> @@ -212,6 +212,8 @@ const props = defineProps({//首页传值 } }) +const loading = ref(false) + const flowingwater = reactive({//获取流水初始化 total: '', list: [] @@ -288,6 +290,7 @@ const inputChange = lodash.debounce(function () { //搜索手机号 }, 500) const asyncqueryMembermember = async () => {//会员列表数据 + loading.value = true let res = await queryMembermember({ shopId: store.userInfo.shopId, page: tableData.page, @@ -295,10 +298,11 @@ const asyncqueryMembermember = async () => {//会员列表数据 phone: tableData.phone }) if (res) { - if (res.list.length != 0) { - tableData.list = res.list - MemberAccount() - } + setTimeout(() => { + loading.value = false + }, 300) + tableData.list = res.list + MemberAccount() tableData.total = res.total } }