Browse Source

增加计算特训背景图

tanxue 4 months ago
parent
commit
316481c723

+ 2 - 1
common/styles/global/pages.scss

@@ -221,7 +221,8 @@
 		background-image: url("@/static/images/grade/grades-item.png");@include ezy-no-repeat-cover;
 		position: absolute;top: 5rpx;
 	}
-	.subject-item.active::before{background-image: url("@/static/images/grade/grades-item-active.png");}
+	.subject-jstx-item::before{background-image: url("@/static/images/grade/grades-jstx-item.png");}
+	.subject-item.active::before,.subject-jstx-item.active::before{background-image: url("@/static/images/grade/grades-item-active.png");}
 	.subject-item:nth-child(3n+3){margin-right: 0;}
 	.subject-item:nth-child(3n+1)::after{
 		content: '';width: 750rpx;height: 72rpx;position: absolute;left: -20rpx;bottom: -80rpx;z-index: 1;

+ 7 - 1
pages/selectGradesTerms/index.vue

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

BIN
static/images/grade/grades-jstx-item.png