function.vue
2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<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>