diff --git a/src/api/home.js b/src/api/home.js new file mode 100644 index 0000000..ee3615b --- /dev/null +++ b/src/api/home.js @@ -0,0 +1,11 @@ +// axios +import request from '@/utils/request' + +// 【社区服务】活动列表+轮播图 +export function communityActivity(params) { + return request({ + url: `/actual/base/communityActivity/page`, + method: 'get', + params + }) + } diff --git a/src/assets/css/index.less b/src/assets/css/index.less index 7036c7d..dade3bd 100644 --- a/src/assets/css/index.less +++ b/src/assets/css/index.less @@ -9,21 +9,43 @@ body #app { #app { font-size: 16px; background-size: 100% auto; + font-family:pingfang-ordinary; } .card{ background-color: #fff; border-radius: 8px; - box-shadow: 0 1px 3px rgba(0,0,0,.3); + // box-shadow: 0 1px 3px rgba(0,0,0,.3); padding: 13px; box-sizing: border-box; width: auto; + .title{ + display: flex; + justify-content: space-between; + align-items: center; + :nth-child(1){ + font-family:pingfang-bold; + } + :nth-child(2){ + color: #B4B4B4; + font-size: 14px; + } + } +} +.white{ + color: #fff; +} +.gray{ + color: #999999; } .flex{ display: flex; .flex1{ flex: 1; } + &-1{ + flex: 1; + } &-y{ flex-direction: column; } @@ -69,10 +91,27 @@ body #app { &-bottom{ margin-bottom: 5px; } + &-right10{ + margin-right: 10px; + } + &-top15{ + margin-top: 15px; + } + &-top10{ + margin-top: 10px; + } + &-top18{ + margin-top: 18px; + } } -.p-18{ - padding: 0 18px; +.p{ + &-18{ + padding: 0 18px; + } + &-12{ + padding: 12px; + } } .bto_btn{ @@ -116,4 +155,26 @@ body #app { .container { padding: 10px; } - +.img{ + &_17{ + width: 17px; + height: 17px; + } + &_16{ + width: 16px; + height: 16px; + } + &_20{ + width: 20px; + height: 20px; + } +} +.font-size13{ + font-size: 13px; +} +.font-size14{ + font-size: 13px; +} +.font-bold{ + font-weight: bold; +} diff --git a/src/assets/images/home/appeal.png b/src/assets/images/home/appeal.png new file mode 100644 index 0000000..6795cbc Binary files /dev/null and b/src/assets/images/home/appeal.png differ diff --git a/src/assets/images/home/verify.png b/src/assets/images/home/verify.png new file mode 100644 index 0000000..ac576d2 Binary files /dev/null and b/src/assets/images/home/verify.png differ diff --git a/src/assets/images/icons/home.png b/src/assets/images/icons/home.png new file mode 100644 index 0000000..5eb52f2 Binary files /dev/null and b/src/assets/images/icons/home.png differ diff --git a/src/assets/images/icons/mine.png b/src/assets/images/icons/mine.png new file mode 100644 index 0000000..85311fe Binary files /dev/null and b/src/assets/images/icons/mine.png differ diff --git a/src/assets/images/icons/notice.png b/src/assets/images/icons/notice.png new file mode 100644 index 0000000..2f636f8 Binary files /dev/null and b/src/assets/images/icons/notice.png differ diff --git a/src/assets/images/icons/oppose.png b/src/assets/images/icons/oppose.png new file mode 100644 index 0000000..32dac68 Binary files /dev/null and b/src/assets/images/icons/oppose.png differ diff --git a/src/assets/images/icons/resi.png b/src/assets/images/icons/resi.png new file mode 100644 index 0000000..54e42f0 Binary files /dev/null and b/src/assets/images/icons/resi.png differ diff --git a/src/assets/images/icons/search.png b/src/assets/images/icons/search.png new file mode 100644 index 0000000..2006b1e Binary files /dev/null and b/src/assets/images/icons/search.png differ diff --git a/src/assets/images/icons/support.png b/src/assets/images/icons/support.png new file mode 100644 index 0000000..2639945 Binary files /dev/null and b/src/assets/images/icons/support.png differ diff --git a/src/assets/images/nav/1.png b/src/assets/images/nav/1.png new file mode 100644 index 0000000..83b971e Binary files /dev/null and b/src/assets/images/nav/1.png differ diff --git a/src/assets/images/nav/2.png b/src/assets/images/nav/2.png new file mode 100644 index 0000000..3b8a773 Binary files /dev/null and b/src/assets/images/nav/2.png differ diff --git a/src/assets/images/nav/3.png b/src/assets/images/nav/3.png new file mode 100644 index 0000000..9e268fe Binary files /dev/null and b/src/assets/images/nav/3.png differ diff --git a/src/assets/images/nav/4.png b/src/assets/images/nav/4.png new file mode 100644 index 0000000..ac95057 Binary files /dev/null and b/src/assets/images/nav/4.png differ diff --git a/src/assets/images/nav/5.png b/src/assets/images/nav/5.png new file mode 100644 index 0000000..516177a Binary files /dev/null and b/src/assets/images/nav/5.png differ diff --git a/src/assets/images/zhishu.png b/src/assets/images/zhishu.png new file mode 100644 index 0000000..871c377 Binary files /dev/null and b/src/assets/images/zhishu.png differ diff --git a/src/assets/images/zhishu1.png b/src/assets/images/zhishu1.png new file mode 100644 index 0000000..be65a1c Binary files /dev/null and b/src/assets/images/zhishu1.png differ diff --git a/src/plugins/vant.js b/src/plugins/vant.js index 0339413..45cebf6 100644 --- a/src/plugins/vant.js +++ b/src/plugins/vant.js @@ -22,7 +22,10 @@ import { Step, Divider, List, - ActionSheet + ActionSheet, + Search, + Swipe, + SwipeItem, } from 'vant' Vue.use(Button) @@ -47,3 +50,6 @@ Vue.use(Button) .use(Divider) .use(List) .use(ActionSheet) + .use(Search) + .use(Swipe) + .use(SwipeItem) diff --git a/src/views/home/index.less b/src/views/home/index.less new file mode 100644 index 0000000..0b0bc91 --- /dev/null +++ b/src/views/home/index.less @@ -0,0 +1,57 @@ +.blueBg{ + background: #3974F6; + border-radius: 0px 0px 20px 20px; + width: 100%; + height: 160px; +} +.content{ + position: relative; + top: -150px; + padding: 0 15px; + box-sizing: border-box; +} +.notice_time{ + padding-right: 5px; + box-sizing: border-box; + border-right: solid 1px #999999; + margin-right: 6px; + height: 20px; + line-height: 20px; +} +.van-ellipsis{ + color: #555555; +} +.notice{ + height: 50px; + line-height: 50px; +} +.appeal,.verify{ + width: 158px; + height: 73px; + background-size: 100% 100%; + padding: 17px 14px; + box-sizing: border-box; + :nth-child(1){ + font-family:pingfang-bold; + } +} +.appeal{ + background-image: url('@/assets/images/home/appeal.png'); +} +.verify{ + background-image: url('@/assets/images/home/verify.png'); +} +.nav{ + color: #333333; + img{ + width: 41px; + height: 40px; + } +} +.activity_content{ + width: 100%; + .img{ + width: 231px; + height: 33px; + } +} diff --git a/src/views/home/index.vue b/src/views/home/index.vue index ddd7efe..b821f6d 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,26 +1,153 @@ -