index.vue 7.2 KB
<template>
	<view>
		<!-- 轮播图区域 -->
		<view class="swiperBgWrap">
			<u-swiper @change="change" :height="326" :list="list" :title="title" :effect3d="effect3d"
			:indicator-pos="indicatorPos" :mode="mode" :interval="3000" @click="click"></u-swiper>
		</view>
		<!-- 单位简介区域 -->
		<view class="unitDescWrap">
			<img-txt-title :imgSize="48" :imgUrl="'../../static/image/index/ic_4@2x.png'" :txtInfo="'企业介绍'"></img-txt-title>
			<view class="unitDesc">
				中国冶金地质总局成立于1952年,隶属国务院国有资产监督管理委员会,是中央管理的地质勘查单位,肩负着提高资源保障能力的公益性央企,主要从事固体矿产地质勘查、研究、开发、服务,超硬材料生产及机械装备制造。资产总额230多亿元。 中国冶金地质下属11个局院(中心)、6个控股公司,队伍驻地分布在全国20个省、自治区和直辖市。   宗旨和业务范围:为国家冶金地质工作提供管理保障;固体矿产地质勘查、研究、开发、服务;超硬材料生产及机械设备研制;冶金地质勘查发展规划和规章制度制定;冶金地质行业标准研究;冶金地质勘查业务管理;相关地质勘查组织实施;所属地质单位队伍管理;国外重要地质矿产勘查;找矿理论和勘查技术等相关研究,提供技术服务
			</view>
			<view class="companyVideo">
				<video 
					id="myVideo" 
					src="https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20200317.mp4"
				    controls
				></video>
			</view>
		</view>
		<!-- 主要产品区域 -->
		<view class="unitCaseWrap">
			<view class="imgTxtTitle">
				<view class="titleLeft">
					<image src="../../static/image/index/ic_6@2x.png" style="width:48rpx;height:48rpx;" mode=""></image>
					主要产品
				</view>
				<view class="titleRight">
					查看更多
					<image src="../../static/image/ic_7@2x.png" mode=""></image>
				</view>
			</view>
			<view class="productItem">
				<view class="productLeft">
					<view class="productName">
						自主研发核心技术
					</view>
					<view class="productDesc">
						多层次主动防御系统+自主知识产权多层次主动防御+自主知识产权多层次主动防御+自主知识产权多层次主动防御
					</view>
				</view>
				<view class="productRight">
					<image src="../../static/image/del/ic_90@2x.png" mode=""></image>
				</view>
			</view>
			<view class="productItem">
				<view class="productLeft">
					<view class="productName">
						自主研发核心技术
					</view>
					<view class="productDesc">
						多层次主动防御系统+自主知识产权多层次主动防御+自主知识产权多层次主动防御+自主知识产权多层次主动防御
					</view>
				</view>
				<view class="productRight">
					<image src="../../static/image/del/ic_90@2x.png" mode=""></image>
				</view>
			</view>
			<view class="productItem">
				<view class="productLeft">
					<view class="productName">
						自主研发核心技术
					</view>
					<view class="productDesc">
						多层次主动防御系统+自主知识产权多层次主动防御+自主知识产权多层次主动防御+自主知识产权多层次主动防御
					</view>
				</view>
				<view class="productRight">
					<image src="../../static/image/del/ic_90@2x.png" mode=""></image>
				</view>
			</view>
		</view>
		<u-tabbar
		    v-model="tabBarCurrent"
		    :show="show"
		    :bg-color="bgColor"
		    :border-top="borderTop"
		    :list="tabBarList"
			:mid-button="midButton"
			:inactive-color="inactiveColor"
			:activeColor="activeColor"
		></u-tabbar>
	</view>
</template>

<script>
	import imgTxtTitle from '@/components/imgTxtTitle.vue'
	export default {
		data() {
			return {
				//底部导航栏区域 开始
				tabBarCurrent: 0,
				show: true,
				bgColor: '#ffffff',
				borderTop: true,
				tabBarList: [{
						iconPath: "/static/image/ic_8@2x.png",
						selectedIconPath: "/static/image/ic_8_select@2x.png",
						text: '首页',
						customIcon: false,
					},
					{
						iconPath: "/static/image/ic_9@2x.png",
						selectedIconPath: "/static/image/ic_9_select@2x.png",
						text: '需求',
						customIcon: false,
					},
					{
						iconPath: "/static/image/ic_10@2x.png",
						selectedIconPath: "/static/image/ic_10_select@2x.png",
						text: '我的',
						customIcon: false,
					},
				],
				midButton: false,
				inactiveColor: '#909399',
				activeColor: '#5098FF',
				//底部导航栏区域 结束
				
				list: [{
						image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
						title: '昨夜星辰昨夜风,画楼西畔桂堂东'
					},
					{
						image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
						title: '身无彩凤双飞翼,心有灵犀一点通'
					},
					{
						image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
						title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
					}
				],
				title: false,
				mode: 'round',
				indicatorPos: 'bottomCenter',
				effect3d: false,
			}
		},
		components:{
			imgTxtTitle
		},
		onLoad() {

		},
		methods: {
			change(index) {
				// console.log(index);
			}
		}
	}
</script>

<style lang="scss" scoped>
	// 轮播图背景区域
	.swiperBgWrap{
		height: 352rpx;
		background: linear-gradient(180deg,$uni-bg-main-color, $uni-bg-bai-color, $uni-bg-bai-color);
		padding: 20rpx 32rpx 0 32rpx;
	}
	// 单位简介区域
	.unitDescWrap{
		margin: 20rpx 32rpx 0 32rpx;
		background: #ffffff;
		border-radius: 20rpx;
		box-shadow: 0rpx 2rpx 16rpx 0rpx rgba(97,97,97,0.05); 
		.unitDesc{
			padding: 0 24rpx;
			font-size: $uni-font-size-28;
			color: $uni-text-color-hui;
			line-height: $uni-font-lh-40;
		}
		.companyVideo{
			padding: 32rpx;
			video{
				width: 100%;
				border-radius: $uni-border-radius-20;
				height: 300rpx;
			}
		}
	}
	// 主要产品区域
	.unitCaseWrap{
		padding: 20rpx 30rpx 32rpx 30rpx;
		.imgTxtTitle{
			height: 108rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.titleLeft{
				display: flex;
				align-items: center;
				justify-content: space-between;
				image{margin-right: 16rpx;}
				font-size: $uni-font-size-40;
			}
			.titleRight{
				display: flex;
				align-items: center;
				justify-content: space-between;
				color: #d2d2d5;
				image{width: 28rpx;height: 28rpx;}
			}
		}
		.productItem{
			height: 218rpx;
			padding: 32rpx 0 32rpx 0;
			display: flex;
			border-bottom: 2rpx solid #ebedf0;
			.productLeft{
				width: 428rpx;
				.productName{
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp:1;
					-webkit-box-orient:vertical;
					font-size: $uni-font-size-36;
				}
				.productDesc{
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp:2;
					-webkit-box-orient:vertical;
					padding-top: 24rpx;
					color: $uni-text-color-hui;
					font-size: $uni-font-size-28;
				}
			}
			.productRight{
				flex: 1;
				display: flex;
				justify-content: flex-end;
				image{width: 230rpx;height: 130rpx;border-radius: 20rpx;}
			}
		}
	}
	
</style>