function.vue 2.59 KB
<template>
	<view class="page-home">
		<navigation-bar :title="'产品功能'"/>
		<view class="content">
			<view class="title">你写我记是一款基于传统书写的智能笔记类APP,用户可根据自己习惯自由书写,书写内容实时呈现在你写我记APP上,线下线上任务同步进行使得工作学习效率更高。</view>
			<view class="list_item" v-for="(item,index) in list" :key="index">
				<view class="image_wrapper">
					<image class="image" :src="item.icon" mode="aspectFit"></image>
				</view>
				<view class="des_wrapper" :style="{ borderColor: index % 2 == 0 ? '#D65656' : '#A5A5A5' }">{{item.title}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import navigationBar from '../components/navigationBar.vue';
	export default {
		components: {
			navigationBar
		},
		data() {
			return {
				list: [{title: "实体纸笔,传统书写", icon: "../static/function_list_1.png"}, 
					{title: "蓝牙传输,一键连接", icon: "../static/function_list_2.png"},
					{title: "线上线下,同步展示", icon: "../static/function_list_3.png"},
					{title: "笔迹色彩,随心变换", icon: "../static/function_list_4.png"},
					{title: "自由擦写,分类保存", icon: "../static/function_list_5.png"}
				] 
			}
		},
		onLoad() {
	
		},
		methods: {
				
			getClass(index) {
				return index % 2 == 0 ? "" : "";
			}
		}
	}
	
</script>

<style lang="scss" scoped>
	.page-home {
		display: flex;
		position: relative;
		flex-direction: column;
		width: 100%;
		height:100vh;
		background-color: #F5F5F5;
		.content {
			display: flex;
			flex-direction: column;
			// align-items: center;
			// justify-content: center;
			position: relative;
			width: 100%;
			.title {
				display: flex;
				margin-top: 20px;	
				margin-left: 20px;
				margin-right: 20px;
				flex-wrap: wrap;
				line-height: 24px;
				font-size: 14px;
				color: #1F2229;
			}
			.list_item {
				display: flex;
				position: relative;
				flex-direction: column;
				// justify-content: center;
				align-items: center;
				margin-top: 30px;
				.image_wrapper {
					display: flex;
					position: absolute;
					top: 0;
					left: 50%;
					right: 50%;
					width: 32px;
					height: 32px;
					.image {
						width: 32px;
						height: 32px;
					}
				}
				.des_wrapper {
					display: flex;
					justify-content: center;
					align-items: center;
					// border-color: #D65656;
					border-radius: 8px;
					border-style: solid;
					border-width: 1px;	
					width: 80%;
					height: 50px;
					margin-top: 20px;
					font-size: 16px;
					color: #2D2D2D;
					font-weight: 500;
				}
			}
		}
	}
</style>