update
This commit is contained in:
@@ -62,6 +62,7 @@
|
|||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"deep-pick-omit": "^1.2.1",
|
"deep-pick-omit": "^1.2.1",
|
||||||
"destr": "^2.0.5",
|
"destr": "^2.0.5",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
"pinia": "^2.3.1",
|
"pinia": "^2.3.1",
|
||||||
"pinia-plugin-persistedstate": "^4.3.0",
|
"pinia-plugin-persistedstate": "^4.3.0",
|
||||||
"postcss": "^8.5.3",
|
"postcss": "^8.5.3",
|
||||||
|
|||||||
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@@ -77,6 +77,9 @@ importers:
|
|||||||
destr:
|
destr:
|
||||||
specifier: ^2.0.5
|
specifier: ^2.0.5
|
||||||
version: 2.0.5
|
version: 2.0.5
|
||||||
|
lodash:
|
||||||
|
specifier: ^4.17.21
|
||||||
|
version: 4.17.21
|
||||||
pinia:
|
pinia:
|
||||||
specifier: ^2.3.1
|
specifier: ^2.3.1
|
||||||
version: 2.3.1(vue@3.5.14)
|
version: 2.3.1(vue@3.5.14)
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import {reactive, ref, onMounted} from "vue";
|
|||||||
import {toPage} from "../../utils/uils.js";
|
import {toPage} from "../../utils/uils.js";
|
||||||
import AddCustomerServiceModal from "../../components/AddCustomerServiceModal.vue";
|
import AddCustomerServiceModal from "../../components/AddCustomerServiceModal.vue";
|
||||||
import OpenTypeFun from "../../components/OpenTypeFun.js";
|
import OpenTypeFun from "../../components/OpenTypeFun.js";
|
||||||
|
import XNoticeBar from "../../components/XNoticeBar.vue";
|
||||||
|
|
||||||
const showAddCustomer = ref(false);
|
const showAddCustomer = ref(false);
|
||||||
const advList = reactive([]);
|
const advList = reactive([]);
|
||||||
@@ -99,6 +100,7 @@ onMounted(() => {
|
|||||||
<template>
|
<template>
|
||||||
<!--首页-->
|
<!--首页-->
|
||||||
<XNav :show-back="false"></XNav>
|
<XNav :show-back="false"></XNav>
|
||||||
|
<x-notice-bar></x-notice-bar>
|
||||||
|
|
||||||
<add-customer-service-modal v-model:show="showAddCustomer"></add-customer-service-modal>
|
<add-customer-service-modal v-model:show="showAddCustomer"></add-customer-service-modal>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import {defineAsyncComponent, onMounted, ref, reactive} from 'vue';
|
import {defineAsyncComponent, onMounted, reactive, ref} from 'vue';
|
||||||
import ICON1 from '../../static/icons/icon_提现记录.png';
|
import ICON1 from '../../static/icons/icon_提现记录.png';
|
||||||
import ICON2 from '../../static/icons/icon_变动记录.png';
|
import ICON2 from '../../static/icons/icon_变动记录.png';
|
||||||
import ICON3 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 user_BG from '../../static/images/user_bg.png';
|
||||||
import XNav from "../../components/XNav.vue";
|
import XNav from "../../components/XNav.vue";
|
||||||
import CreditScore from "../../components/CreditScore.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 {useUserStore} from "../../pinia/UserStore/index.js";
|
||||||
import AddCustomerServiceModal from "../../components/AddCustomerServiceModal.vue";
|
import AddCustomerServiceModal from "../../components/AddCustomerServiceModal.vue";
|
||||||
|
import OpenTypeFun from "../../components/OpenTypeFun.js";
|
||||||
|
import Api from "../../api/index.js";
|
||||||
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// #endif
|
// #endif
|
||||||
@@ -25,6 +27,7 @@ const AccompanyingMentor = defineAsyncComponent(() => import('./components/Accom
|
|||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
const tabCur = ref('MyTeam');
|
const tabCur = ref('MyTeam');
|
||||||
|
const advList = reactive([]);
|
||||||
const tabs = [
|
const tabs = [
|
||||||
{
|
{
|
||||||
key: 'MyTeam',
|
key: 'MyTeam',
|
||||||
@@ -50,6 +53,12 @@ const state = reactive({
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
UserStore.getUserInfo();
|
UserStore.getUserInfo();
|
||||||
|
Api.system.getAdvList({
|
||||||
|
position: 2,
|
||||||
|
}).then(({data}) => {
|
||||||
|
advList.length = 0;
|
||||||
|
advList.push(...data);
|
||||||
|
});
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -65,7 +74,10 @@ onMounted(() => {
|
|||||||
<view class="!flex flex-col items-start justify-between box-border py-[4rpx]">
|
<view class="!flex flex-col items-start justify-between box-border py-[4rpx]">
|
||||||
<view class="user_name">{{ UserStore?.userInfo?.nickname }}</view>
|
<view class="user_name">{{ UserStore?.userInfo?.nickname }}</view>
|
||||||
<view class="user_phone">手机号:{{ UserStore?.userInfo?.mobile }}</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>
|
</view>
|
||||||
|
|
||||||
<credit-score class="!mr-[110rpx] !ml-auto"></credit-score>
|
<credit-score class="!mr-[110rpx] !ml-auto"></credit-score>
|
||||||
@@ -80,7 +92,7 @@ onMounted(() => {
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="!mx-[20rpx] relative !mt-[-300rpx] z-10 bg-[#fff] rounded-[20rpx]">
|
<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 class="py-[52rpx] px-[44rpx] !grid grid-cols-2">
|
||||||
<view>
|
<view>
|
||||||
<view class="info-title">总收益(元)</view>
|
<view class="info-title">总收益(元)</view>
|
||||||
@@ -121,7 +133,13 @@ onMounted(() => {
|
|||||||
</view>
|
</view>
|
||||||
</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="rounded-[20rpx] bg-[#fff] !mx-[20rpx] !mt-[20rpx] py-[26rpx] px-[32rpx]">
|
||||||
<view class="!flex gap-[64rpx]">
|
<view class="!flex gap-[64rpx]">
|
||||||
|
|||||||
Reference in New Issue
Block a user