mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-14 05:16:46 +08:00
133 lines
2.6 KiB
Vue
133 lines
2.6 KiB
Vue
<template>
|
|
<view class="all_path">
|
|
<view class="headers">
|
|
<text>全岗位路径图</text>
|
|
<view class="go_to" @click="goSearch">
|
|
<text class="text">筛选</text>
|
|
<image class="img" src="../../static/images/learnpath/uotdown.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
<view class="path">
|
|
<view class="item">
|
|
<image class="img" src="../../static/images/learnpath/thispath.png" mode=""></image>
|
|
<text class="text">当前路径</text>
|
|
</view>
|
|
<view class="item">
|
|
<image class="img" src="../../static/images/learnpath/otherpath.png" mode=""></image>
|
|
<text class="text">当前路径</text>
|
|
</view>
|
|
<view class="item">
|
|
<image class="img" src="../../static/images/learnpath/notpath.png" mode=""></image>
|
|
<text class="text">当前路径</text>
|
|
</view>
|
|
</view>
|
|
<view class="table">
|
|
<view class="table-row" v-for="(row, rowIndex) in tableData" :key="rowIndex">
|
|
<view class="table-cell" v-for="(cell, cellIndex) in row" :key="cellIndex">
|
|
{{ cell }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
tableData: [
|
|
['Header 1', 'Header 2', 'Header 3'],
|
|
['Row 1, Cell 1', 'Row 1, Cell 2', 'Row 1, Cell 3'],
|
|
['Row 2, Cell 1', 'Row 2, Cell 2', 'Row 2, Cell 3']
|
|
]
|
|
}
|
|
},
|
|
onLoad() {
|
|
|
|
},
|
|
methods: {
|
|
goSearch(){
|
|
uni.navigateTo({
|
|
url: '/pages/learnPath/pathSearch'
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.all_path{
|
|
padding: 0 30rpx;
|
|
padding-top: 38rpx;
|
|
background: #fff;
|
|
height: 100vh;
|
|
.table {
|
|
display: table;
|
|
width: 100%;
|
|
}
|
|
.table-row {
|
|
display: table-row;
|
|
}
|
|
|
|
.table-cell {
|
|
display: table-cell;
|
|
border: 1px solid #ddd;
|
|
padding: 10px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
}
|
|
.headers{
|
|
/* margin-top: 38rpx; */
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 40rpx;
|
|
font-weight: 500;
|
|
font-size: 36rpx;
|
|
color: #333333;
|
|
.go_to{
|
|
display: flex;
|
|
align-items: center;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
.text{
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
color: #666666;
|
|
line-height: 40rpx;
|
|
text-align: left;
|
|
margin-right: 16rpx;
|
|
}
|
|
.img{
|
|
width: 24rpx;
|
|
height: 16rpx;
|
|
}
|
|
}
|
|
}
|
|
.path{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30rpx;
|
|
.item{
|
|
display: flex;
|
|
align-items: center;
|
|
.img{
|
|
width: 40rpx;
|
|
height: 36rpx;
|
|
margin-right: 8rpx;
|
|
}
|
|
.text{
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
line-height: 40rpx;
|
|
text-align: left;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|