86 lines
1.4 KiB
Vue
86 lines
1.4 KiB
Vue
<template>
|
|
<view class="app">
|
|
<head-info></head-info>
|
|
<view class="container">
|
|
<side-bar></side-bar>
|
|
<view class="content">
|
|
<view class="form">
|
|
<input class="input" type="text" placeholder="港区" />
|
|
<input class="input" type="text" placeholder="船名/航次" />
|
|
</view>
|
|
<view class="itemList">
|
|
<view v-for="(item, index) in ltemList" :key="index" class="item">
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import SideBar from '@/components/sider-bar/slider-bar';
|
|
import HeadInfo from '@/components/head-info/head-info';
|
|
export default {
|
|
data() {
|
|
return {
|
|
ltemList:[1,1,1,1,2,1,1,1,1],
|
|
}
|
|
},
|
|
onLoad() {
|
|
|
|
},
|
|
components: {
|
|
SideBar,
|
|
HeadInfo
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
.container {
|
|
display: flex;
|
|
}
|
|
|
|
.content {
|
|
flex: 1;
|
|
padding: 20px;
|
|
|
|
.form {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
.input {
|
|
width: 200px;
|
|
height: 35px;
|
|
line-height: 35px;
|
|
border: 1px solid #c9cacb;
|
|
border-radius: 5px;
|
|
padding-left: 10px;
|
|
margin-left: 15px;
|
|
}
|
|
}
|
|
|
|
.itemList {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
flex-wrap: wrap;
|
|
.item {
|
|
width: 32%;
|
|
margin-top: 15px;
|
|
margin-right: 2%;
|
|
height: 190px;
|
|
border: 1px solid #c9cacb;
|
|
}
|
|
.item:nth-child(3n) {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
</style>
|