You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
3.9 KiB
Vue

<template>
<view class="content">
<!-- <view class="content-bg"></view> -->
<image class="content-bg" src="@/static/image/index_bg.png" mode=""></image>
<view class="content-top">
<view class="banner">
<image src="@/static/image/huatai.png"></image>
</view>
<!-- <view class="nav">
<view class="nav-btn">
<image class="nav-img" src="@/static/image/manifest.png"></image>
<view class="nav-text">航单申报</view>
</view>
<view class="nav-btn">
<image class="nav-img" src="@/static/image/move-trace.png"></image>
<view class="nav-text">运踪</view>
</view>
<view class="nav-btn">
<image class="nav-img" src="@/static/image/vgm.png"></image>
<view class="nav-text">VGM</view>
</view>
<view class="nav-btn" @click="changePage('/pages/manifest/cabinQuery/cabinQuery')">
<image class="nav-img" src="@/static/image/buy.png"></image>
<view class="nav-text">舱位查询</view>
</view>
</view> -->
<!-- <view class="content-main"></view> -->
<view class="image-box">
<image class="tab-2" src="../../../static/image/buy-3.png" @click="changePage('/pages/manifest/cabinQuery/cabinQuery')"></image>
<image class="tab-2" src="../../../static/image/move-trace-3.png"></image>
<image class="tab-2" src="../../../static/image/vgm-3.png"></image>
<image class="tab-2" src="../../../static/image/manifest-3.png" @click="changeTab(0)"></image>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
changePage(url){
if(!getApp().globalData.isLogin){
this.$util.Tips({
title: "请您登录/注册",
success: () => {
uni.navigateTo({
url: '/pages/homePage/login/login'
})
}
});
return false
}
uni.navigateTo({
url: url
})
},
changeTab(type){
this.$emit('changeTab',type)
}
}
}
</script>
<style lang="less">
.content {
display: flex;
flex-direction: column;
padding: 30rpx 20rpx 60rpx;
position:relative;
background: #f4f4f4;
height: 100vh;
position:relative;
padding-bottom: 167rpx;
box-sizing: border-box;
.content-bg{
position:absolute;
top: 0;left: 0;
z-index: 0;
width: 100%;
height: 240rpx;
margin-top: -4rpx;
// background: #2c96fb;
// background: #7ec0ff;
}
.content-top{
position:absolute;
top: 0;left: 0;
width: 100%;
height: 100vh;
padding: 20rpx;
box-sizing: border-box;
}
.banner{
height: 240rpx;
width: 100%;
margin:0 auto;
background: #fff;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
border-bottom-left-radius: 20rpx;
border-bottom-right-radius: 20rpx;
overflow: hidden;
box-shadow: 0 -22px 10rpx -18px rgba(0, 111, 165, 0.4);
margin-bottom: 20rpx;
image{
width: 100%;
height: 240rpx;
}
}
.nav{
display: flex;
background: #fff;
// height: 160rpx;
border-bottom-left-radius: 20rpx;
border-bottom-right-radius: 20rpx;
box-shadow:0px 15px 10px -15px #ccc;
.nav-btn{
width: calc((100% - 20rpx) / 4);;
padding-top: 20rpx;
padding-bottom: 20rpx;
text-align: center;
image{
width: 90rpx;
height: 90rpx;
margin: 0 auto;
display: block;
}
.nav-text{
text-align: center;
font-size: 24rpx;
line-height: 30rpx;
color: #666;
margin-top: 20rpx;
font-weight:600;
}
}
}
.content-main{
width:100%;
height: 600rpx;
background: #fff;
border-radius: 20rpx;
margin-top: 30rpx;
box-shadow:0px 0 10px #ccc;
}
.image-box{
// display: flex;
.tab-2{
width: 350rpx;
height: 370rpx;
display: block;
float: left;
&:nth-of-type(2n){
margin-left: 10rpx;
}
&:nth-of-type(3){
margin-top: 10rpx;
}
&:nth-of-type(4){
margin-top: 10rpx;
}
}
}
}
</style>