静态部分页面
parent
f72d87783e
commit
3967cba687
|
@ -1,32 +1,60 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="sidebar">
|
<view class="sidebar">
|
||||||
<view class="item">
|
<navigator url="/pages/index/index" open-type="redirect">
|
||||||
装船指令
|
<view class="item" :class="path==1?'active':''">
|
||||||
|
装船指令
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator url="/pages/discharge/index" open-type="redirect">
|
||||||
|
<view class="item" :class="path==2?'active':''">
|
||||||
|
卸船指令
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<navigator url="/pages/shipWork/index" open-type="redirect">
|
||||||
|
<view class="item" :class="path==3?'active':''">
|
||||||
|
船舶作业
|
||||||
|
</view>
|
||||||
|
</navigator>
|
||||||
|
<view class="item">
|
||||||
|
货物质量
|
||||||
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
场位监控
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
</template>
|
||||||
卸船指令
|
<script>
|
||||||
</view>
|
export default {
|
||||||
<view class="item">
|
name: "footTab",
|
||||||
船舶作业
|
props: {
|
||||||
</view>
|
path: {
|
||||||
<view class="item">
|
type: [String || Number]
|
||||||
货物质量
|
},
|
||||||
</view>
|
},
|
||||||
<view class="item">
|
onLoad() {
|
||||||
场位监控
|
|
||||||
</view>
|
},
|
||||||
</view>
|
components: {},
|
||||||
</template>
|
methods: {
|
||||||
|
|
||||||
<style>
|
}
|
||||||
.sidebar {
|
};
|
||||||
width: 100px;
|
</script>
|
||||||
background-color: #f2f2f2;
|
|
||||||
.item {
|
<style>
|
||||||
height: 45px;
|
.sidebar {
|
||||||
line-height: 45px;
|
width: 100px;
|
||||||
text-align: center;
|
background-color: #f2f2f2;
|
||||||
color: #999999;
|
|
||||||
}
|
.item {
|
||||||
}
|
height: 45px;
|
||||||
</style>
|
line-height: 45px;
|
||||||
|
text-align: center;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
color: #5573d7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
12
pages.json
12
pages.json
|
@ -5,6 +5,18 @@
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "首页"
|
"navigationBarTitleText": "首页"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/discharge/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "卸船指令"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/shipWork/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "船舶作业"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
|
|
|
@ -0,0 +1,96 @@
|
||||||
|
<template>
|
||||||
|
<view class="app">
|
||||||
|
<head-info></head-info>
|
||||||
|
<view class="container">
|
||||||
|
<side-bar path='2'></side-bar>
|
||||||
|
卸船指令
|
||||||
|
</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: 160px;
|
||||||
|
border: 1px solid #c9cacb;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.item:nth-child(3n) {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -2,7 +2,7 @@
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<head-info></head-info>
|
<head-info></head-info>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<side-bar></side-bar>
|
<side-bar path='1'></side-bar>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="form">
|
<view class="form">
|
||||||
<input class="input" type="text" placeholder="港区" />
|
<input class="input" type="text" placeholder="港区" />
|
||||||
|
@ -10,7 +10,27 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="itemList">
|
<view class="itemList">
|
||||||
<view v-for="(item, index) in ltemList" :key="index" class="item">
|
<view v-for="(item, index) in ltemList" :key="index" class="item">
|
||||||
|
<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>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -74,8 +94,29 @@
|
||||||
width: 32%;
|
width: 32%;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
margin-right: 2%;
|
margin-right: 2%;
|
||||||
height: 190px;
|
height: 160px;
|
||||||
border: 1px solid #c9cacb;
|
border: 1px solid #c9cacb;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.item:nth-child(3n) {
|
.item:nth-child(3n) {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
|
|
@ -0,0 +1,150 @@
|
||||||
|
<template>
|
||||||
|
<view class="app">
|
||||||
|
<head-info></head-info>
|
||||||
|
<view class="container">
|
||||||
|
<side-bar path='3'></side-bar>
|
||||||
|
<view class="content">
|
||||||
|
<view class="form">
|
||||||
|
<view class="select">
|
||||||
|
<uni-data-select v-model="value" :localdata="range" @change="change">
|
||||||
|
</uni-data-select>
|
||||||
|
</view>
|
||||||
|
<input class="input" type="text" placeholder="船名/航次" />
|
||||||
|
</view>
|
||||||
|
<view class="itemList">
|
||||||
|
<view v-for="(item, index) in ltemList" :key="index" class="item">
|
||||||
|
<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>
|
||||||
|
</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 {
|
||||||
|
value: 0,
|
||||||
|
range: [{
|
||||||
|
value: 0,
|
||||||
|
text: "篮球"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 1,
|
||||||
|
text: "足球"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 2,
|
||||||
|
text: "游泳"
|
||||||
|
},
|
||||||
|
],
|
||||||
|
ltemList: [1, 1, 1, 1, 2, 1, 1, 1, 1],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
SideBar,
|
||||||
|
HeadInfo
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
change(e) {
|
||||||
|
console.log("e:", e);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.container {
|
||||||
|
background-color: #f5f6fa;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
padding: 20px;
|
||||||
|
.form {
|
||||||
|
display: flex;
|
||||||
|
.select {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
.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: 48%;
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-right: 4%;
|
||||||
|
height: 160px;
|
||||||
|
border: 1px solid #c9cacb;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item:nth-child(2n) {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -2977,7 +2977,7 @@ swiper.round-dot .uni-swiper-dot.uni-swiper-dot-active {
|
||||||
}
|
}
|
||||||
.content{
|
.content{
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
image{
|
image{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Reference in New Issue