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