|
@@ -146,7 +146,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<loading></loading>
|
|
<loading></loading>
|
|
- <pop-up :type="type" @getClose="getClose"></pop-up>
|
|
|
|
|
|
+ <pop-up :type="type" @getClose="getClose" :phoneList="phoneList"></pop-up>
|
|
<footers v-if="isfootflag" :footerindex="footerindex"></footers>
|
|
<footers v-if="isfootflag" :footerindex="footerindex"></footers>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -157,6 +157,7 @@ import notice from '@/components/swiper/notice.vue'
|
|
import boxList from "@/components/box/list.vue"
|
|
import boxList from "@/components/box/list.vue"
|
|
import popUp from "@/components/box/popup.vue"
|
|
import popUp from "@/components/box/popup.vue"
|
|
import {houseInfoList} from "@/api/work/work.js"
|
|
import {houseInfoList} from "@/api/work/work.js"
|
|
|
|
+import {gesettingsList} from "@/api/work/index.js"
|
|
export default {
|
|
export default {
|
|
components:{footers,notice,boxList,popUp},
|
|
components:{footers,notice,boxList,popUp},
|
|
data(){
|
|
data(){
|
|
@@ -200,11 +201,12 @@ import {houseInfoList} from "@/api/work/work.js"
|
|
indicatorDotsh: true,
|
|
indicatorDotsh: true,
|
|
city:'幸福大街',
|
|
city:'幸福大街',
|
|
list:[{tit:'123'},{tit:'123'},{tit:'123'}],
|
|
list:[{tit:'123'},{tit:'123'},{tit:'123'}],
|
|
- // userId:this.$store.state.user.userId,
|
|
|
|
|
|
+ userId:this.$store.state.user.userId,
|
|
nickName:this.$store.state.user.nickName,
|
|
nickName:this.$store.state.user.nickName,
|
|
// avatar:this.$store.state.user.avatar,
|
|
// avatar:this.$store.state.user.avatar,
|
|
tabval:0,
|
|
tabval:0,
|
|
houselist:[],
|
|
houselist:[],
|
|
|
|
+ phoneList:[],
|
|
tablist:[{tit:'本地资讯',val:"0"},{tit:'供求资讯',val:"1"},{tit:'热门资讯',val:"2"}],
|
|
tablist:[{tit:'本地资讯',val:"0"},{tit:'供求资讯',val:"1"},{tit:'热门资讯',val:"2"}],
|
|
noticelist:[{noticeTitle:"您有1条报修信息,请及时查看处理!",num:'11-14'},{noticeTitle:"您有1条报修信息,请及时查看处理!",num:'11-14'}]
|
|
noticelist:[{noticeTitle:"您有1条报修信息,请及时查看处理!",num:'11-14'},{noticeTitle:"您有1条报修信息,请及时查看处理!",num:'11-14'}]
|
|
}
|
|
}
|
|
@@ -225,17 +227,15 @@ import {houseInfoList} from "@/api/work/work.js"
|
|
})
|
|
})
|
|
// 获取房子
|
|
// 获取房子
|
|
this.getDataFn()
|
|
this.getDataFn()
|
|
|
|
+ this.gesettingsList()
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
getDataFn(){
|
|
getDataFn(){
|
|
- var params={}
|
|
|
|
|
|
+ var params={
|
|
|
|
+ userId:this.userId
|
|
|
|
+ }
|
|
houseInfoList(params).then(res=>{
|
|
houseInfoList(params).then(res=>{
|
|
if(res.code==200){
|
|
if(res.code==200){
|
|
- // var newArr=JSON.parse(JSON.stringify(res.rows))
|
|
|
|
-
|
|
|
|
- // newArr.forEach(ite=>{
|
|
|
|
- // ite.right=0;
|
|
|
|
- // })
|
|
|
|
this.houselist = JSON.parse(JSON.stringify(res.rows));
|
|
this.houselist = JSON.parse(JSON.stringify(res.rows));
|
|
}else{
|
|
}else{
|
|
this.$toast(res.msg)
|
|
this.$toast(res.msg)
|
|
@@ -243,6 +243,13 @@ import {houseInfoList} from "@/api/work/work.js"
|
|
})
|
|
})
|
|
|
|
|
|
},
|
|
},
|
|
|
|
+ gesettingsList(){
|
|
|
|
+ gesettingsList().then(res=>{
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ this.phoneList=res.rows
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getClose(){
|
|
getClose(){
|
|
this.type=''
|
|
this.type=''
|
|
},
|
|
},
|