This commit is contained in:
670788339
2025-03-28 13:17:06 +08:00
parent b16c12cd51
commit ce428a3b1f

View File

@@ -143,6 +143,20 @@
</view>
</view>
</u-grid-item>
<template v-if="showGrowthNav">
<u-grid-item>
<view class="one" @click="navigateTo('growth')">
<view class="one-img">
<img src="../../static/images/center/growth.jpg">
</view>
<view class="one-text">
专业力必修
</view>
</view>
</u-grid-item>
</template>
<u-grid-item>
<view class="one" @click="navigateTo('growth')">
<view class="one-img">
@@ -318,6 +332,7 @@
import {userAvatarText} from '@/utils/tools.js';
import apiStart from '@/api/phase2/stat.js';
import apiFollow from "@/api/phase2/userfollow.js";
import { studentGrowthList } from "@/api/modules/growth";
export default {
computed: {
...mapGetters(['userInfo']),
@@ -327,6 +342,7 @@
},
data() {
return {
showGrowthNav:false,
concernme:'',
myconcern:'',
userInfoObj:{
@@ -366,6 +382,9 @@
onShow() {
this.userInfoObj=this.userInfo;
// console.log(this.userInfoObj,"我拿到的数据")
studentGrowthList().then(res =>{
this.showGrowthNav = !!res.data.length
})
},
onload(){
//this.load()