mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
SZX-1045
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user