课程教师只显示一个

This commit is contained in:
daihh
2022-11-24 10:45:38 +08:00
parent 37f1126fea
commit 1052b0a918

View File

@@ -129,9 +129,9 @@
<view style="color: #999999;min-width: 160upx;text-align: right;font-size: 24upx;">{{formatUserNumber(courseInfo.studys)}}人学习</view>
</view>
<view class="desrow" style="justify-content: flex-start;">
<view><text class="desrow-name">讲师</text></view>
<view style="line-height: 60upx;"><text class="desrow-name">讲师</text></view>
<view style="flex: 1;">
<view v-for="tea in teachers" :key="tea.id" style="display: flex;justify-content: space-between;">
<view v-for="(tea,teaIdx) in teachers" :key="tea.id" v-if="teaIdx==0" style="display: flex;justify-content: space-between;line-height: 60upx;">
<view>
<text class="desrow-value">{{tea.teacherName}}</text>
<text class="desrow-value" style="font-size: 24upx;margin-left: 6upx;color: #999999;">({{tea.orgInfo}})</text>