This commit is contained in:
2025-07-07 15:23:10 +08:00
parent d9ef508399
commit 2d03c09cc1
3 changed files with 43 additions and 31 deletions

View File

@@ -17,7 +17,7 @@ import XNoticeBar from "../../components/XNoticeBar.vue";
import {onShow} from "@dcloudio/uni-app";
const showAddCustomer = ref(false);
const textContent = ref(null);
const textContent = reactive([]);
const advList = reactive([]);
const nav = [
{
@@ -102,10 +102,8 @@ onMounted(() => {
advList.push(...data);
});
Api.system.getBarrageList().then(({data}) => {
textContent.value = '';
data.forEach((v, index) => {
textContent.value += `${index + 1}.${v}    `;
});
textContent.length = 0;
textContent.push(...data);
});
})
</script>
@@ -113,7 +111,7 @@ onMounted(() => {
<template>
<!--首页-->
<XNav :show-back="false"></XNav>
<x-notice-bar :text="textContent" v-if="textContent"></x-notice-bar>
<x-notice-bar :text="textContent" v-if="textContent.length"></x-notice-bar>
<add-customer-service-modal v-model:show="showAddCustomer"></add-customer-service-modal>