pad-app/pages/index/index.vue

127 lines
2.7 KiB
Vue
Raw Normal View History

2023-07-03 17:49:29 +08:00
<template>
<view class="app">
<head-info></head-info>
<view class="container">
2023-07-05 10:56:11 +08:00
<side-bar path='1'></side-bar>
2023-07-03 17:49:29 +08:00
<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">
2023-07-05 10:56:11 +08:00
<view class="title">
<view class="name">
海王星领袖
</view>
<view class="status">
<text v-if="item==1" class="green"> </text>
<text v-else> </text>
</view>
</view>
<view class="">
<view class="table">
<view class="row">
<text>航次:735546</text>
<text>贸易类型: 内贸</text>
</view>
<view class="row">
<text>进出口: 进口</text>
<text>泊位: 一泊位</text>
</view>
</view>
</view>
2023-07-03 17:49:29 +08:00
</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%;
2023-07-05 10:56:11 +08:00
height: 160px;
2023-07-03 17:49:29 +08:00
border: 1px solid #c9cacb;
2023-07-05 10:56:11 +08:00
padding: 22px 15px;
.title {
display: flex;
justify-content: space-between;
font-size: 21px;
margin-bottom: 20px;
font-weight: 700;
}
.status {
font-size: 16px;
font-weight: 400;
}
.row {
display: flex;
justify-content: space-between;
font-size: 18px;
margin: 10px 0;
.text {
display: block;
}
}
2023-07-03 17:49:29 +08:00
}
.item:nth-child(3n) {
margin-right: 0;
}
}
}
</style>