...
|
...
|
@@ -315,6 +315,22 @@ |
|
|
onLoad(){
|
|
|
this.getData()
|
|
|
},
|
|
|
onShow(){
|
|
|
//获取成为地主图片
|
|
|
this.$request('/common/getConfig',{type:'1'}).then((res)=>{
|
|
|
this.becomeLandImg = res.data.landlord_index
|
|
|
})
|
|
|
//获取用户信息
|
|
|
this.$request('/user/info').then((res)=>{
|
|
|
this.userInfo = res.data
|
|
|
let starList = []
|
|
|
for(let i = 0; i < res.data.star; i ++){
|
|
|
starList.push(i)
|
|
|
}
|
|
|
this.startList = starList
|
|
|
this.showMy = true
|
|
|
})
|
|
|
},
|
|
|
onHide() {
|
|
|
this.showMoreService = false
|
|
|
},
|
...
|
...
|
@@ -328,16 +344,6 @@ |
|
|
},
|
|
|
methods:{
|
|
|
getData(){
|
|
|
//获取用户信息
|
|
|
this.$request('/user/info').then((res)=>{
|
|
|
this.userInfo = res.data
|
|
|
let starList = []
|
|
|
for(let i = 0; i < res.data.star; i ++){
|
|
|
starList.push(i)
|
|
|
}
|
|
|
this.startList = starList
|
|
|
this.showMy = true
|
|
|
})
|
|
|
if(this.otherTabIndex == 0){
|
|
|
this.$request('/article/userList',this.param).then((res)=>{
|
|
|
this.current_page = res.data.current_page
|
...
|
...
|
@@ -363,10 +369,6 @@ |
|
|
this.showList = true
|
|
|
})
|
|
|
}
|
|
|
//获取成为地主图片
|
|
|
this.$request('/common/getConfig',{type:'1'}).then((res)=>{
|
|
|
this.becomeLandImg = res.data.landlord_index
|
|
|
})
|
|
|
},
|
|
|
scrolltolower(){
|
|
|
console.log('滚动到底部了')
|
...
|
...
|
|