update
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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]">
|
||||
|
||||
Reference in New Issue
Block a user