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>

View File

@@ -79,15 +79,15 @@ onShow(() => {
<view class="w-full !grid grid-cols-3 gap-[20rpx]">
<view class="py-[24rpx] px-[20rpx] bg-[#fff] rounded-[16rpx]">
<view class="text-[#4E5969] test-22r">总收益</view>
<view class="test-36r" style="font-weight: 700;">0.00</view>
<view class="test-36r" style="font-weight: 700;">{{ UserStore.userInfo.total_money }}</view>
</view>
<view class="py-[24rpx] px-[20rpx] bg-[#fff] rounded-[16rpx]">
<view class="text-[#4E5969] test-22r">打款中</view>
<view class="test-36r" style="font-weight: 700;">0.00</view>
<view class="test-36r" style="font-weight: 700;">{{ UserStore.userInfo.tx_money }}</view>
</view>
<view class="py-[24rpx] px-[20rpx] bg-[#fff] rounded-[16rpx]">
<view class="text-[#4E5969] test-22r">已提现</view>
<view class="test-36r" style="font-weight: 700;">0.00</view>
<view class="test-36r" style="font-weight: 700;">{{ UserStore.userInfo.withraw_money }}</view>
</view>
</view>