19 changed files with 615 additions and 173 deletions
@ -0,0 +1,8 @@ |
|||
import request from '@/utils/request' |
|||
//扫描二维码获取房屋信息
|
|||
export function newsTrendsdetail(id) { |
|||
return request({ |
|||
url: `/voluntary/newsTrends/detail/${id}`, |
|||
method: 'get', |
|||
}) |
|||
} |
@ -0,0 +1,8 @@ |
|||
import request from '@/utils/request' |
|||
export function allgrids(data) { |
|||
return request({ |
|||
url: `/gov/org/grid/allgrids`, |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 6.4 KiB |
@ -0,0 +1,192 @@ |
|||
<template> |
|||
<div> |
|||
<div class="flex flex-mean" style="background-color: #FFFFFF;"> |
|||
<!-- <van-search class=".flex flex-1" v-model="searchValue" left-icon="" shape="round" placeholder="请输入搜索关键词" /> |
|||
<van-button round type="info" class="custom-button font-size13 m-top10 m-right12" @click="onSearch()">查询</van-button> --> |
|||
<!-- <van-image src="../../assets/images/servicePhone/" /> --> |
|||
<img :src="discussionList.coverImg" style="width: 100%; height: 150px; " /> |
|||
</div> |
|||
<div class='' style="position: relative;top: -10px;"> |
|||
|
|||
<div class="activity_content card" > |
|||
<div class="van-multi-ellipsis--l2 text"> |
|||
{{ discussionList.title }} |
|||
</div> |
|||
<div class="flex flex-end"> |
|||
<div class="font-size13 flex flex-y"> |
|||
<!-- <img src="@/assets/images/icons/resi.png" class="img_17"> --> |
|||
<!-- <div class="text3"><span class="text2">联系人:</span>{{ discussionList.releaseTime }}</div> --> |
|||
<div class="text3"><span class="text2">发布单位:</span>{{ discussionList.agencyName }}</div> |
|||
</div> |
|||
|
|||
</div> |
|||
<div class="van-hairline--bottom"></div> |
|||
<div v-html="discussionList.content" ></div> |
|||
</div> |
|||
|
|||
<register-dialog v-if="showRegister" @close="showRegister = false" :registerFlag="registerFlag" :content="'请您先进行注册。'"></register-dialog> |
|||
|
|||
</div> |
|||
<Android></Android> |
|||
</div> |
|||
|
|||
|
|||
</template> |
|||
|
|||
<script> |
|||
// import { communityActivity,icEventOldDiscuss,handelClicsupport } from '@/api/home'; |
|||
import {newsTrendsdetail} from '@/api/dynamic' |
|||
import registerDialog from '@/components/registerDialog'; |
|||
export default { |
|||
data() { |
|||
return { |
|||
discussionList: [ |
|||
], |
|||
pageSize: 5, |
|||
pageNo: 1, |
|||
agencyId: null, |
|||
finished: false, |
|||
loading: false, |
|||
showRegister: false, |
|||
searchValue: "", |
|||
userId:"" |
|||
}; |
|||
}, |
|||
created() { |
|||
this.id = this.$route.query.id?this.$route.query.id:''; |
|||
this.userId = this.$store.state.app.appId; |
|||
this.newsTrendsdetail() |
|||
}, |
|||
methods: { |
|||
callPhone(phone){ |
|||
window.location.href = `tel:${phone}`; |
|||
}, |
|||
async newsTrendsdetail(){ |
|||
|
|||
let res = await newsTrendsdetail(this.id) |
|||
if (res.code === 0) { |
|||
this.discussionList = res.data |
|||
} |
|||
}, |
|||
|
|||
handelClickJump(path) { |
|||
if (path === 'activityDetail') { |
|||
if (this.$store.state.app.userInfo.mobile) { |
|||
this.$router.push({ path: `/${path}` }); |
|||
} else { |
|||
this.showRegister = true; |
|||
} |
|||
} |
|||
|
|||
} |
|||
}, |
|||
components: { registerDialog }, |
|||
computed: {}, |
|||
watch: {}, |
|||
} |
|||
</script> |
|||
|
|||
<style lang='less' scoped> |
|||
.text{ |
|||
font-family: PingFang SC; |
|||
font-weight: 600; |
|||
font-size: 16px; |
|||
color: #000000; |
|||
|
|||
} |
|||
.text2{ |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
font-size: 15px; |
|||
color: #999999; |
|||
line-height:25px |
|||
} |
|||
.text3{ |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
font-size: 15px; |
|||
color: #333333; |
|||
line-height:25px |
|||
|
|||
} |
|||
.custom-button { |
|||
width: 60px; |
|||
height: 33px; |
|||
} |
|||
|
|||
.activity_content { |
|||
padding-bottom: 10px; |
|||
box-sizing: border-box; |
|||
width: 100%; |
|||
min-height: 50px; |
|||
|
|||
.img { |
|||
width: 231px; |
|||
height: 33px; |
|||
margin: 5px 3px 0 3px; |
|||
} |
|||
|
|||
&:last-child { |
|||
border-bottom: none; |
|||
} |
|||
|
|||
|
|||
.content { |
|||
|
|||
width: 325px; |
|||
height: 40px; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
font-size: 16px; |
|||
color: #333333; |
|||
line-height: 23px; |
|||
} |
|||
|
|||
.dianzan { |
|||
width: 325px; |
|||
height: 20px; |
|||
display: flex; |
|||
font-size: 13px; |
|||
color: #AAAAAA; |
|||
flex-direction: row; |
|||
justify-content: space-evenly; |
|||
align-items: center; |
|||
|
|||
.img { |
|||
width: 14.5px; |
|||
height: 15px; |
|||
} |
|||
} |
|||
|
|||
|
|||
} |
|||
|
|||
.header {} |
|||
|
|||
.header .input_search { |
|||
width: 279px; |
|||
height: 33px; |
|||
background: rgba(193, 193, 193, 0.16); |
|||
border-radius: 17px; |
|||
// flex: 1; |
|||
color: #333333; |
|||
border: none; |
|||
/* 取消边框 */ |
|||
margin-left: 10px; |
|||
} |
|||
|
|||
.header .btn_search { |
|||
width: 60px; |
|||
height: 33px; |
|||
background: #3974F6; |
|||
border-radius: 17px; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
font-size: 14px; |
|||
color: #FFFFFF; |
|||
line-height: 23px; |
|||
border: none; |
|||
/* 取消边框 */ |
|||
margin-right: 10px; |
|||
} |
|||
</style> |
Loading…
Reference in new issue