This commit is contained in:
2025-06-13 14:27:16 +08:00
parent 45edd2ef09
commit 376d9d5cfe
4 changed files with 29 additions and 5 deletions

View File

@@ -62,6 +62,7 @@
"dayjs": "^1.11.13",
"deep-pick-omit": "^1.2.1",
"destr": "^2.0.5",
"lodash": "^4.17.21",
"pinia": "^2.3.1",
"pinia-plugin-persistedstate": "^4.3.0",
"postcss": "^8.5.3",

3
pnpm-lock.yaml generated
View File

@@ -77,6 +77,9 @@ importers:
destr:
specifier: ^2.0.5
version: 2.0.5
lodash:
specifier: ^4.17.21
version: 4.17.21
pinia:
specifier: ^2.3.1
version: 2.3.1(vue@3.5.14)

View File

@@ -13,6 +13,7 @@ import {reactive, ref, onMounted} from "vue";
import {toPage} from "../../utils/uils.js";
import AddCustomerServiceModal from "../../components/AddCustomerServiceModal.vue";
import OpenTypeFun from "../../components/OpenTypeFun.js";
import XNoticeBar from "../../components/XNoticeBar.vue";
const showAddCustomer = ref(false);
const advList = reactive([]);
@@ -99,6 +100,7 @@ onMounted(() => {
<template>
<!--首页-->
<XNav :show-back="false"></XNav>
<x-notice-bar></x-notice-bar>
<add-customer-service-modal v-model:show="showAddCustomer"></add-customer-service-modal>

View File

@@ -1,5 +1,5 @@
<script setup>
import {defineAsyncComponent, onMounted, ref, reactive} from 'vue';
import {defineAsyncComponent, onMounted, reactive, ref} from 'vue';
import ICON1 from '../../static/icons/icon_提现记录.png';
import ICON2 from '../../static/icons/icon_变动记录.png';
import ICON3 from '../../static/icons/icon_我的钱包.png';
@@ -11,9 +11,11 @@ import Avatar from "../../static/images/Avatar.png";
import user_BG from '../../static/images/user_bg.png';
import XNav from "../../components/XNav.vue";
import CreditScore from "../../components/CreditScore.vue";
import {toPage} from "../../utils/uils.js";
import {copy, toPage} from "../../utils/uils.js";
import {useUserStore} from "../../pinia/UserStore/index.js";
import AddCustomerServiceModal from "../../components/AddCustomerServiceModal.vue";
import OpenTypeFun from "../../components/OpenTypeFun.js";
import Api from "../../api/index.js";
// #ifdef APP-PLUS
// #endif
@@ -25,6 +27,7 @@ const AccompanyingMentor = defineAsyncComponent(() => import('./components/Accom
// #endif
const tabCur = ref('MyTeam');
const advList = reactive([]);
const tabs = [
{
key: 'MyTeam',
@@ -50,6 +53,12 @@ const state = reactive({
onMounted(() => {
UserStore.getUserInfo();
Api.system.getAdvList({
position: 2,
}).then(({data}) => {
advList.length = 0;
advList.push(...data);
});
})
</script>
@@ -65,7 +74,10 @@ onMounted(() => {
<view class="!flex flex-col items-start justify-between box-border py-[4rpx]">
<view class="user_name">{{ UserStore?.userInfo?.nickname }}</view>
<view class="user_phone">手机号{{ UserStore?.userInfo?.mobile }}</view>
<view class="user_phone">uid{{ UserStore?.userInfo?.uid }}</view>
<view class="user_phone" @click="copy(UserStore?.userInfo?.uid)">uid{{
UserStore?.userInfo?.uid
}}
</view>
</view>
<credit-score class="!mr-[110rpx] !ml-auto"></credit-score>
@@ -80,7 +92,7 @@ onMounted(() => {
</view>
<view class="!mx-[20rpx] relative !mt-[-300rpx] z-10 bg-[#fff] rounded-[20rpx]">
<view class="balance-card">
<view class="balance-card" @click="toPage('/pages/wallet/index')">
<view class="py-[52rpx] px-[44rpx] !grid grid-cols-2">
<view>
<view class="info-title">总收益</view>
@@ -121,7 +133,13 @@ onMounted(() => {
</view>
</view>
<view class="h-[120rpx] rounded-[20rpx] bg-[#fff] !mx-[20rpx] !mt-[20rpx]"></view>
<view class="rounded-[20rpx] !mx-[20rpx] !mt-[20rpx]">
<swiper class="!h-[240rpx] !w-full overflow-hidden rounded-[8rpx]">
<swiper-item class="!w-full !h-full" v-for="i in advList">
<image @click="OpenTypeFun(i)" class="!w-full !h-full" mode="aspectFill" :src="i.file"></image>
</swiper-item>
</swiper>
</view>
<view class="rounded-[20rpx] bg-[#fff] !mx-[20rpx] !mt-[20rpx] py-[26rpx] px-[32rpx]">
<view class="!flex gap-[64rpx]">