diff --git a/components/side.vue b/components/side.vue
new file mode 100644
index 0000000..87b6899
--- /dev/null
+++ b/components/side.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index e0d9c07..9620df7 100644
--- a/pages.json
+++ b/pages.json
@@ -14,7 +14,25 @@
"enablePullDownRefresh": false
}
- }
+ },
+ {
+ "path": "pages/index/countryside",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "components/side",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/index/addr",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ }
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/index/addr.vue b/pages/index/addr.vue
new file mode 100644
index 0000000..ddadfea
--- /dev/null
+++ b/pages/index/addr.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/countryside.vue b/pages/index/countryside.vue
new file mode 100644
index 0000000..0a1ec9c
--- /dev/null
+++ b/pages/index/countryside.vue
@@ -0,0 +1,177 @@
+
+
+
+
+ 友邻社区
+
+
+
+
+
+
+
+ {{value[1]}}
+
+
+
+ {{value[2]}}
+
+
+
+
+
+
+
+ {{part[0]}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 22ad13b..5adb527 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -30,12 +30,31 @@
{{content[1]}}
- 据您{{content[2]}}m
+ 据您{{content[2]}}km
-
+
+
+ 社会动态
+ 查看更多
+
+
+
+
+ {{active_content[2][1]}}
+ {{active_content[2][3]}}评论 {{active_content[2][4]}}
+
+
+
+
+
+
+
+ {{part[0]}}
+
+
@@ -43,14 +62,18 @@
import bannerlist from "../../components/bannerlist"
export default {
components: {
- bannerlist
+ bannerlist,
},
data() {
+ let list = ["首页", "友邻社区", "", "社区服务", "数据分析"].map((value, index) => [value,
+ `../../static/${["首页.png","友邻社区.png","c1.png","社区服务.png","组 153.png"][index]}`
+ ])
return {
notice: null,
imagePath: null,
notices: null,
- active_content: null
+ active_content: null,
+ list
}
},
methods: {
@@ -89,12 +112,9 @@
x.unit
])
this.active_content = (await this.request("get", "/api/cms/article/list")).rows.map(x => [
- `http://124.93.196.45:10091/Neusoft/community${x.cover}`, x.title,
- x.commentNum
+ `http://124.93.196.45:10091/Neusoft/community${x.cover}`, x.title, parseFloat(x.location), x
+ .commentNum, x.createTime
])
- // await this.request("get","/api/visitor/list")
-
-
}
}
@@ -149,33 +169,147 @@
.active {
margin: 10px;
+ padding: 5px;
+ border-radius: 10px;
border: 1px #999999 solid;
}
.active-title {
display: flex;
justify-content: space-between;
+ align-items: center;
height: 3.5vh;
+ padding-left: 10px;
}
.active-title view {
display: flex;
align-items: center;
+ padding-left: 5px;
+ }
+
+ .active-title view:first-child {
+ border-left: 5px solid black;
+ height: 20px;
}
.active-title view:nth-child(2) image {
width: 2vw;
height: 2vh;
+ padding-left: 10px;
+ }
+
+ .active-content {
+ display: flex;
+ overflow: scroll;
}
.active-content>view {
+ flex-shrink: 0;
+ width: 70vw;
border: 1px #999999 solid;
+ margin: 10px;
display: flex;
-
+ justify-content: center;
}
.active-content>view image {
width: 30vw;
height: 10vh;
+ flex-shrink: 0
}
-
+
+ .active-content>view view {
+ flex-shrink: 0;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ }
+
+ .society {
+ margin: 10px;
+ padding: 5px;
+ border-radius: 10px;
+ border: 1px #999999 solid;
+ }
+
+ .society-title {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ height: 3.5vh;
+ padding-left: 10px;
+ }
+
+ .society-title view {
+ display: flex;
+ align-items: center;
+ padding-left: 5px;
+ }
+
+ .society-title view:first-child {
+ border-left: 5px solid black;
+ height: 20px;
+ }
+
+ .society-title view:nth-child(2) image {
+ width: 2vw;
+ height: 2vh;
+ padding-left: 10px;
+ }
+
+ .society-content {
+ display: flex;
+ justify-content: space-between;
+ margin: 10px;
+ height: 12vh;
+ align-items: center;
+ }
+
+
+ .society-content>view:first-child view:first-child {
+ font-size: 1.1rem;
+ font-weight: bold;
+ margin-bottom: 10px;
+ }
+
+ .society-content>view:first-child view:nth-child(2) {
+ color: #dadada;
+ }
+
+ .society-content image {
+ width: 20vw;
+ height: 8vh;
+ }
+
+ .bottom {
+ display: flex;
+ position: fixed;
+ border: 1px solid black;
+ bottom: 0;
+ width: 100%;
+ }
+
+ .list-li {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ .list-li image {
+ height: 20px;
+ width: 20px;
+ }
+
+ .list-li:nth-child(1) {
+ color: dodgerblue;
+ }
+
+ .list-li:nth-child(3) image {
+ width: 40px;
+ height: 40px;
+ border-radius: 50%;
+ border: 2px solid black;
+ }
+
\ No newline at end of file
diff --git a/static/友邻社区.png b/static/友邻社区.png
new file mode 100644
index 0000000..daf8265
Binary files /dev/null and b/static/友邻社区.png differ
diff --git a/static/已收藏.png b/static/已收藏.png
new file mode 100644
index 0000000..43bcf31
Binary files /dev/null and b/static/已收藏.png differ
diff --git a/static/社区服务.png b/static/社区服务.png
new file mode 100644
index 0000000..2548898
Binary files /dev/null and b/static/社区服务.png differ
diff --git a/static/组 153.png b/static/组 153.png
new file mode 100644
index 0000000..1f52595
Binary files /dev/null and b/static/组 153.png differ
diff --git a/static/组 341.png b/static/组 341.png
new file mode 100644
index 0000000..ccfec90
Binary files /dev/null and b/static/组 341.png differ
diff --git a/static/首页.png b/static/首页.png
new file mode 100644
index 0000000..70b01dc
Binary files /dev/null and b/static/首页.png differ