diff --git a/src/api/democratic.js b/src/api/democratic.js new file mode 100644 index 0000000..e6dafd4 --- /dev/null +++ b/src/api/democratic.js @@ -0,0 +1,26 @@ +// axios +import request from '@/utils/request' + +//扫描二维码获取房屋信息 +export function communityDemocry(data) { + return request({ + url: `/governance/democracyelection/resi/list`, + method: 'post', + data + }) + } + +export function getDemocryDetail(data) { + return request({ + url: `/governance/democracyelection/resi/info?electionId=${data.electionId}&resiId=${data.resiId}`, + method: 'get' + }) + } + +export function democraticVote(data) { + return request({ + url: `/governance/democracyelection/resi/vote`, + method: 'post', + data + }) + } \ No newline at end of file diff --git a/src/api/good.js b/src/api/good.js new file mode 100644 index 0000000..08eac88 --- /dev/null +++ b/src/api/good.js @@ -0,0 +1,10 @@ +// axios +import request from '@/utils/request' + +//扫描二维码获取房屋信息 +export function getGoodInfoQR(id) { + return request({ + url: `/actual/base/materialcode/hfive/info/${id}`, + method: 'get', + }) + } diff --git a/src/assets/images/houseQR/10.png b/src/assets/images/houseQR/10.png new file mode 100644 index 0000000..6251200 Binary files /dev/null and b/src/assets/images/houseQR/10.png differ diff --git a/src/assets/images/houseQR/11.png b/src/assets/images/houseQR/11.png new file mode 100644 index 0000000..26553d5 Binary files /dev/null and b/src/assets/images/houseQR/11.png differ diff --git a/src/assets/images/houseQR/9.png b/src/assets/images/houseQR/9.png new file mode 100644 index 0000000..4b02517 Binary files /dev/null and b/src/assets/images/houseQR/9.png differ diff --git a/src/router/router.config.js b/src/router/router.config.js index a6e77de..d7e78e9 100644 --- a/src/router/router.config.js +++ b/src/router/router.config.js @@ -240,6 +240,21 @@ export const constantRouterMap = [ name: 'communityPublicity', component: () => import('@/views/communityPublicity'), meta: { title: '一次办结清单', keepAlive: false } + },{ + path: '/goodsQR', + name: 'goodsQR', + component: () => import('@/views/goodsQR'), + meta: { title: '物品详情', keepAlive: false } + },{ + path: '/democratic', + name: 'democratic', + component: () => import('@/views/democratic'), + meta: { title: '民主选举', keepAlive: false } + },{ + path: '/democraticDetail', + name: 'democraticDetail', + component: () => import('@/views/democratic/detail'), + meta: { title: '民主选举', keepAlive: false } } ] diff --git a/src/views/activity/index.vue b/src/views/activity/index.vue index 2a0d610..e22b163 100644 --- a/src/views/activity/index.vue +++ b/src/views/activity/index.vue @@ -11,8 +11,8 @@
时间:{{ item.strTime }} 至 {{ item.endTime }}
- 报名人数: {{ item.currentParticipants - }}/{{ item.participants }}人 + 报名人数: {{ item.registered + }}/{{ item.quota }}人
{{ recordFlag(item) ? '已报名' : '报名' }} diff --git a/src/views/democratic/detail.vue b/src/views/democratic/detail.vue new file mode 100644 index 0000000..974f5f5 --- /dev/null +++ b/src/views/democratic/detail.vue @@ -0,0 +1,349 @@ + + + + + diff --git a/src/views/democratic/index.vue b/src/views/democratic/index.vue new file mode 100644 index 0000000..4222273 --- /dev/null +++ b/src/views/democratic/index.vue @@ -0,0 +1,231 @@ + + + + + diff --git a/src/views/goodsQR/index.less b/src/views/goodsQR/index.less new file mode 100644 index 0000000..d5b267e --- /dev/null +++ b/src/views/goodsQR/index.less @@ -0,0 +1,117 @@ +.header{ + background:url('@/assets/images/houseQR/header_bg.png') no-repeat; + background-size: 100%; + width: 100%; + height: 210px; + z-index: 1; +} +.mask{ + background:url('@/assets/images/houseQR/header_bg_mask.png'); + background-size: 100%; + position: fixed; + width: 100%; + top: 0; + left: 0; + height: 210px; + z-index: 2; +} +section{ + position: absolute; + top: 120px; + z-index: 3; + .house_base{ + position: relative; + height: 80px; + background: url('@/assets/images/houseQR/house_bg.png') no-repeat; + background-size: 85% 100% ; + background-position: center center; + font-size: 18px; + font-weight: bold; + padding: 0 30px 0 0 ; + box-sizing: border-box; + img{ + width: 115px; + height: 102px; + position: relative; + top: -20px; + } + } +} +.basi_content{ + border-radius: 0 0 8px 8px; + position: relative; + &::after{ + content: ''; + position: absolute; + left: 0; + top: -13px; + width: 0; + height: 0; + border-left:9px solid transparent; + border-right:12px solid transparent; + border-bottom:12px solid #dfe9ef; + } + &::before{ + content: ''; + position: absolute; + right: 0; + top: -13px; + width: 0; + height: 0; + border-left:9px solid transparent; + border-right:12px solid transparent; + border-bottom:12px solid #dfe9ef; +} +} +a{ + padding: 5px 17px; + color: #ffffff; + background: #3974f6; + border-radius: 30px; + height: 28px; + text-align: center; + line-height: 18px; + font-size: 14px; + box-sizing: border-box; +} +.my_community{ + padding-top: 8px; + box-sizing: border-box; + font-family: pingfang-bold; +} +.footer{ + color: #ffffff; + background-color: rgba(51,51,51,0.9) ; + border-radius: 7px; + height: 38px; + padding: 7px 16px; + position: fixed; + bottom: 10px; + left: 10px; + box-sizing: border-box; + z-index: 10; +} + +.title { + display: flex; + flex-direction: column; + align-items: flex-start; /* 左对齐 */ + } + +.title span:first-child { +margin-bottom: 10px; /* 设置上下行间距 */ +} + +.img_header{ + img{ + width: 100%; + height: 210px; + } +} + +.intro { + text-indent: 2em; + font-size: 16px; + color: #333333; + line-height: 25px; +} \ No newline at end of file diff --git a/src/views/goodsQR/index.vue b/src/views/goodsQR/index.vue new file mode 100644 index 0000000..1ca5e4b --- /dev/null +++ b/src/views/goodsQR/index.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/src/views/home2/index.vue b/src/views/home2/index.vue index 66fe1ca..d3a53df 100644 --- a/src/views/home2/index.vue +++ b/src/views/home2/index.vue @@ -70,15 +70,15 @@ 更多
- +
{{ item.activityName }}
地点:{{ item.address }}
-
时间:{{ item.startTime }}
+
时间:{{ item.strTime }} 至 {{ item.endTime }}
- 报名人数: {{ item.currentParticipants }}/{{ item.participants }}人 + 报名人数: {{ item.registered }}/{{ item.quota }}人
{{recordFlag(item)?'已报名':'报名'}} @@ -172,7 +172,7 @@ export default { { imgSrc: require('@/assets/images/squaredPaper/2.png'), title: '民生选举', - path: 'communityPublicity' + path: 'democratic' }, { imgSrc: require('@/assets/images/squaredPaper/3.png'),