This commit is contained in:
Pengxiansen
2025-02-27 23:21:54 +08:00
parent bd7e7c7bdf
commit b16c12cd51
8 changed files with 14 additions and 7 deletions

View File

@@ -11,7 +11,7 @@
titleStyle="color:#fff"
>
<template slot="right">
<view class="select-growth" @click="show = true">
<view class="select-growth" @click="show = true" v-if="selectData.id">
<u-image
width="30rpx"
height="30rpx"
@@ -23,7 +23,7 @@
</u-navbar>
<!-- 有数据 -->
<template v-if="selectData">
<template v-if="selectData.id">
<view class="growth-name">
{{ selectData.growthName }}
</view>
@@ -218,9 +218,16 @@ export default {
},
onLoad: function (options) {
// 获取专业力必修
uni.showLoading({
title: "加载中",
mask: true,
});
studentGrowthList().then((res) => {
this.list = res.data;
this.selectData = this.list[0];
if (this.list[0]) {
this.selectData = this.list[0];
}
uni.hideLoading()
});
},
methods: {