diff --git a/pages/home/liquidation.vue b/pages/home/liquidation.vue index 72f80b2..f9c6a3c 100644 --- a/pages/home/liquidation.vue +++ b/pages/home/liquidation.vue @@ -7,7 +7,7 @@ - 当前可提现金额 + 当前钱包余额 {{ $fen2yuan(walletBalanceCents || 0) }} @@ -107,7 +107,7 @@ const refreshWallet = async () => { const res = await payApi.getWallet().catch(() => ({ code: -1 })); - if (res?.code === 0) walletBalanceCents.value = res?.data?.withdrawAmount ?? 0; + if (res?.code === 0) walletBalanceCents.value = res?.data?.balance ?? 0; }; const onAmountBlur = () => { diff --git a/pages/index/aiStore.vue b/pages/index/aiStore.vue index b524f91..849ddcb 100644 --- a/pages/index/aiStore.vue +++ b/pages/index/aiStore.vue @@ -34,6 +34,27 @@ + + + + + @@ -62,8 +83,21 @@ :oneShow="true" > @@ -87,6 +121,7 @@ import * as api from '@/sheep/api/ai/index'; import card_pages from '@/components/card_pages/card_pages'; import card_payment from '@/components/card_payment/card_payment'; + import maoScroll from '@/components/mao-scroll/mao-scroll'; import aistore_tab1 from './components/aistore_tab1.vue'; import aistore_tab2 from './components/aistore_tab2.vue'; @@ -104,6 +139,7 @@ const timeRound = ref([]); const selectedTimeId = ref(null); const navName = ref(''); + const mesArr = ref([]); function changeTimeRound(e) { navName.value = e.name; @@ -128,9 +164,15 @@ } }; + const getMessageList = async () => { + const res = await api.getMessageList({ pageNo: 1, pageSize: 10 }).catch(() => ({ code: -1 })); + mesArr.value = res?.code === 0 ? res?.data || [] : []; + }; + onShow(() => { getSpuTimeList(); getCartList(); + getMessageList(); }); const update = () => { @@ -323,6 +365,33 @@ background: linear-gradient(to bottom right, #2c8cfa 0%, #3d5efb 100%); } + .notice-card { + margin-top: 18rpx; + padding: 0 40rpx; + } + + .notice-item { + height: 50rpx; + padding: 0 24rpx; + border-radius: 999rpx; + background: rgba(255, 255, 255, 0.95); + } + + .notice-icon { + width: 34rpx; + height: 34rpx; + border-radius: 50%; + background: rgba(37, 86, 236, 0.12); + margin-right: 16rpx; + } + + .notice-text { + flex: 1; + font-size: 22rpx; + color: #111111; + line-height: 60rpx; + } + .time-scroll { width: 100%; white-space: nowrap;