| | |
| | | getdataList(need) { |
| | | this.fromW = need; |
| | | var that = this; |
| | | |
| | | uni.request({ |
| | | url:"http://s16s652780.51mypc.cn/map/chat.json", |
| | | url:"http://s16s652780.51mypc.cn/api/blade-jfpts/chat-records/getChatListPage", |
| | | method:"get", |
| | | data:{ |
| | | senderId: WxStorage.get("ids") |
| | | }, |
| | | success:(res)=> { |
| | | that.dataListP = res.data.contacts |
| | | var resdata = res.data.data.records; |
| | | for (var i = 0; i < resdata.length; i++) { |
| | | if(resdata[i].avatar == null || resdata[i].avatar == ""){ |
| | | resdata[i].avatar = "http://s16s652780.51mypc.cn/img/bg/img-logo.png"; |
| | | } |
| | | } |
| | | that.dataListP = resdata; |
| | | } |
| | | }) |
| | | |
| | |
| | | padding-bottom: 0.5rem; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | } |
| | | |
| | | .m-main { |