|
@@ -10,8 +10,9 @@
|
|
<view class="subject-content-box">
|
|
<view class="subject-content-box">
|
|
<!-- 产品 -->
|
|
<!-- 产品 -->
|
|
<view v-for="item in xuekeList" :key="item.id" :id="`s_${item.id}`" @click="handleSelectGrade(item)"
|
|
<view v-for="item in xuekeList" :key="item.id" :id="`s_${item.id}`" @click="handleSelectGrade(item)"
|
|
- :class="[ 'subject-item', item.typeId === 1 && 'subject-jstx-item' ]">
|
|
|
|
- <icon v-if="item.id == activeProduct" class="subject-active-icon"></icon>
|
|
|
|
|
|
+ :class="[ 'subject-item', item.typeId === 1 && 'subject-jstx-item',{
|
|
|
|
+ 'active': item.id == activeProduct
|
|
|
|
+ } ]">
|
|
<img :src="item.cover" class="subject-item-img" />
|
|
<img :src="item.cover" class="subject-item-img" />
|
|
<view class="subject-item-text"><text>{{item.lable}}</text></view>
|
|
<view class="subject-item-text"><text>{{item.lable}}</text></view>
|
|
</view>
|
|
</view>
|