This commit is contained in:
zhangsir
2024-06-27 10:57:02 +08:00
parent ec31eec938
commit 0932610f9b
6 changed files with 176 additions and 10 deletions

View File

@@ -9,12 +9,15 @@
</view>
</view>
<view class="check">
<view :style="{marginRight:index/2!=0||index==0?'12rpx':''}" :class="indexs.includes(index)?'items':'item'" @click="searchItem(item,index)" v-for="(item,index) in posiLists" :key="index" class="item">
{{item.positionName}}
</view>
<view v-if="startList.length > 9 && isTrue" class="item" @click="allList">
<text class="text">查看更多</text>
<image class="img" src="../../static/images/learnpath/uotdown.png" mode=""></image>
<view style="display: flex;flex-wrap: wrap;">
<view :style="{marginRight:index/2!=0||index==0?'12rpx':''}" :class="indexs.includes(index)?'items':'item'" @click="searchItem(item,index)" v-for="(item,index) in posiLists" :key="index" class="item">
{{item.positionName}}
</view>
<view v-if="startList.length > 9 && isTrue" class="item" @click="allList">
<text class="text">查看更多</text>
<image class="img" src="../../static/images/learnpath/uotdown.png" mode=""></image>
</view>
</view>
</view>
</view>
@@ -114,6 +117,10 @@
});
this.posiData = matchedItemsWithIndexes.map(item=> item.matchedItem)
this.indexs = matchedItemsWithIndexes.map(item=> item.indexInPosiLists)
if(this.$route.query.positionId == ''){
this.posiData.push(this.posiLists[0])
this.indexs.push(0)
}
if(this.posiLists.length > 9){
this.posiLists = this.posiLists.slice(0, 9)
}