Commit f89e11cb authored by Facius's avatar Facius

improvement: 题库选择UI微调

parent dcf64cfe
...@@ -32,8 +32,12 @@ ...@@ -32,8 +32,12 @@
key == secondKey ? labels[firstKey][0][index].label : '非煤矿类' key == secondKey ? labels[firstKey][0][index].label : '非煤矿类'
}}</view> }}</view>
</view> </view>
<view class="label-content"> <view :class="['label-content', { first: key == firstKey }]">
<view v-for="(label, ind) in list" :key="ind" class="label-item"> <view
v-for="(label, ind) in list"
:key="ind"
:class="['label-item', { first: key == firstKey }]"
>
<!-- 选中为蓝底,非选中状态为白底 --> <!-- 选中为蓝底,非选中状态为白底 -->
<view <view
:class="[ :class="[
...@@ -220,10 +224,16 @@ export default { ...@@ -220,10 +224,16 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
&.first {
justify-content: flex-start;
}
.label-item { .label-item {
padding-bottom: 24rpx; padding-bottom: 24rpx;
flex-shrink: 0; flex-shrink: 0;
display: inline-block; display: inline-block;
&.first {
padding-right: 24rpx;
}
.label-normal { .label-normal {
height: 104rpx; height: 104rpx;
width: 200rpx; width: 200rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment