mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-14 21:36:45 +08:00
考试
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user