11<template >
22 <div class =" problemRecommendationBox" >
33 <header class =" problemRecommendationBoxHeader" >
4- <span @click =" handleRoute('problem')" >{{
5- $t("m.HomeProblemRecommendation")
6- }}</span >
4+ <span >{{ $t("m.HomeProblemRecommendation") }}</span >
75 <div class =" plusDiv" >
86 <Icon type="ios-information" size="13" color="#7a7a7a "></Icon >
97 <span class =" plusSpan" >{{
1311 </header >
1412 <div class =" problemRecommendationBoxBody" >
1513 <template v-for =" (problem , index ) in problems " v-if =" index <= 2 " >
16- <div
17- @click =" enterProblemDetail(problem._id)"
18- class =" bonusProblem"
19- :style =" {
20- 'background-image':
21- 'url(' + FIELD_MAP[problem.field].backgroundImage + ')',
22- }"
23- >
14+ <div @click =" enterProblemDetail(problem._id)" class =" bonusProblem" :style =" {
15+ 'background-image':
16+ 'url(' + FIELD_MAP[problem.field].backgroundImage + ')',
17+ }" >
2418 <span >{{ problem.title }}</span >
25- <FieldCategoryBox
26- :boxType =" true "
27- :value =" FIELD_MAP [problem .field ].value "
28- :boxColor =" FIELD_MAP [problem .field ].boxColor "
29- />
19+ <FieldCategoryBox :boxType =" true " :value =" FIELD_MAP [problem .field ].value "
20+ :boxColor =" FIELD_MAP [problem .field ].boxColor " />
3021 <template v-for =" category in [problem .tags [0 ]]" >
31- <FieldCategoryBox
32- :boxType =" false "
33- :value =" ' #' + category "
34- :boxColor =" ' #ffffff' "
35- />
22+ <FieldCategoryBox :boxType =" false " :value =" ' #' + category " :boxColor =" ' #ffffff' " />
3623 </template >
3724 </div >
3825 </template >
@@ -95,6 +82,7 @@ export default {
9582 padding-left : 30px ;
9683 padding-right : 30px ;
9784 transition : all 0.3s cubic-bezier (0.25 , 0.8 , 0.25 , 1 );
85+
9886 .problemRecommendationBoxHeader {
9987 padding-top : 15px ;
10088 padding-bottom : 15px ;
@@ -110,17 +98,20 @@ export default {
11098
11199 .plusDiv {
112100 cursor : pointer ;
101+
113102 .plusSpan {
114103 color : #7a7a7a ;
115104 font-size : 12px ;
116105 }
117106 }
118107 }
108+
119109 .problemRecommendationBoxBody {
120110 display : flex ;
121111 justify-content : space-between ;
122112 align-items : center ;
123113 padding : 20px 0 ;
114+
124115 span {
125116 font-size : medium ;
126117 font-weight : bold ;
@@ -129,6 +120,7 @@ export default {
129120 white-space : nowrap ;
130121 overflow : hidden ;
131122 }
123+
132124 .bonusProblem {
133125 cursor : pointer ;
134126 align-items : center ;
@@ -138,11 +130,13 @@ export default {
138130 background-color : #e9ece9 ;
139131 transition : all 0.2s ease-in-out ;
140132 }
133+
141134 .bonusProblem :hover {
142135 transform : scale (1.11 );
143136 }
144137 }
145138}
139+
146140.problemRecommendationBox :hover {
147141 border : 1px solid #cccccc ;
148142}
0 commit comments