添加默认头像
This commit is contained in:
parent
686955424b
commit
05aa790d32
@ -437,6 +437,10 @@ export default {
|
|||||||
friend_tomid:id
|
friend_tomid:id
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//获取默认头像
|
||||||
|
getDefaultAvatar(){
|
||||||
|
return vm.$u.post("member/getDefaultAvatar")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -222,6 +222,7 @@
|
|||||||
import zhiboItem from "@/components/index/zhibo-item/index"
|
import zhiboItem from "@/components/index/zhibo-item/index"
|
||||||
import indexad from "@/components/index/ad/index"
|
import indexad from "@/components/index/ad/index"
|
||||||
import darenItem from "@/components/index/daren-item/index"
|
import darenItem from "@/components/index/daren-item/index"
|
||||||
|
import chatVue from '../../pageD/chat/chat.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "index",
|
name: "index",
|
||||||
@ -290,6 +291,11 @@
|
|||||||
// console.log("lianjie")
|
// console.log("lianjie")
|
||||||
that.imService.connectIM()
|
that.imService.connectIM()
|
||||||
},2000)
|
},2000)
|
||||||
|
}else{
|
||||||
|
this.$u.api.getDefaultAvatar().then((res)=>{
|
||||||
|
console.log(res)
|
||||||
|
uni.setStorageSync("morenimg",res.data.avatar)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
|
Loading…
Reference in New Issue
Block a user