替换了名字
This commit is contained in:
parent
0f03c543e1
commit
1c3ed37983
@ -284,7 +284,7 @@ export default {
|
|||||||
id:this.storeid
|
id:this.storeid
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
|
let user = new Friend(res.data.member_id,res.data.store_name,res.data.member_avatar)
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
url:"/pageD/privateChat/privateChat",
|
url:"/pageD/privateChat/privateChat",
|
||||||
params:{
|
params:{
|
||||||
|
@ -141,7 +141,7 @@ export default {
|
|||||||
id:this.sid
|
id:this.sid
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
|
let user = new Friend(res.data.member_id,res.data.store_name,res.data.member_avatar)
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
url:"/pageD/privateChat/privateChat",
|
url:"/pageD/privateChat/privateChat",
|
||||||
params:{
|
params:{
|
||||||
|
@ -430,7 +430,7 @@
|
|||||||
}
|
}
|
||||||
.chatInterface .action-top .file-icon{
|
.chatInterface .action-top .file-icon{
|
||||||
background: url("../images/vedio.png") no-repeat center;
|
background: url("../images/vedio.png") no-repeat center;
|
||||||
background-size: 70%;
|
background-size: 50%;
|
||||||
color: #9D9D9D;
|
color: #9D9D9D;
|
||||||
position: relative;
|
position: relative;
|
||||||
width:80rpx;
|
width:80rpx;
|
||||||
@ -445,7 +445,7 @@
|
|||||||
}
|
}
|
||||||
.chatInterface .action-top .img-video{
|
.chatInterface .action-top .img-video{
|
||||||
background: url("../images/file.png") no-repeat center;
|
background: url("../images/file.png") no-repeat center;
|
||||||
background-size: 74%;
|
background-size: 50%;
|
||||||
}
|
}
|
||||||
.chatInterface .record-input{
|
.chatInterface .record-input{
|
||||||
width: 480rpx;
|
width: 480rpx;
|
||||||
@ -468,9 +468,10 @@
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
.chatInterface .send-message-btn{
|
.chatInterface .send-message-btn{
|
||||||
font-size: 32rpx;
|
font-size: 28rpx;
|
||||||
width: 80rpx;
|
width: 80rpx;
|
||||||
line-height: 80rpx;
|
line-height: 80rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
}
|
}
|
||||||
.record-loading{
|
.record-loading{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -117,7 +117,7 @@ export default {
|
|||||||
id: 1 // 平台店铺 id
|
id: 1 // 平台店铺 id
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
|
let user = new Friend(res.data.member_id,res.data.store_name,res.data.member_avatar)
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
url:"/pageD/privateChat/privateChat",
|
url:"/pageD/privateChat/privateChat",
|
||||||
params:{
|
params:{
|
||||||
|
@ -136,7 +136,7 @@
|
|||||||
success(res){
|
success(res){
|
||||||
console.log(res)
|
console.log(res)
|
||||||
res = res.data
|
res = res.data
|
||||||
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
|
let user = new Friend(res.data.member_id,res.data.store_name,res.data.member_avatar)
|
||||||
that.$u.route({
|
that.$u.route({
|
||||||
url:"/pageD/privateChat/privateChat",
|
url:"/pageD/privateChat/privateChat",
|
||||||
params:{
|
params:{
|
||||||
|
@ -116,7 +116,7 @@ IMService.prototype.initialContacts = function (friendList) {
|
|||||||
},
|
},
|
||||||
success(res){
|
success(res){
|
||||||
console.log(res)
|
console.log(res)
|
||||||
that.friends[i[0]] = new Friend(res.data.data.member_id, res.data.data.member_nickname, res.data.data.member_avatar,i[1],i[2],i[3]);
|
that.friends[i[0]] = new Friend(res.data.data.member_id, res.data.data.store_name, res.data.data.member_avatar,i[1],i[2],i[3]);
|
||||||
console.log(that.friends)
|
console.log(that.friends)
|
||||||
let sorts = function (friends){
|
let sorts = function (friends){
|
||||||
let paixu = function (a,b){
|
let paixu = function (a,b){
|
||||||
@ -295,7 +295,7 @@ IMService.prototype.initialIMListeners = function () {
|
|||||||
},
|
},
|
||||||
success(res){
|
success(res){
|
||||||
console.log(res)
|
console.log(res)
|
||||||
that.friends[message.senderId] = new Friend(res.data.data.member_id, res.data.data.member_nickname, res.data.data.member_avatar);
|
that.friends[message.senderId] = new Friend(res.data.data.member_id, res.data.data.store_name, res.data.data.member_avatar);
|
||||||
friend = that.friends[message.senderId];
|
friend = that.friends[message.senderId];
|
||||||
console.log(friend)
|
console.log(friend)
|
||||||
friend.unReadMessage++;
|
friend.unReadMessage++;
|
||||||
@ -538,7 +538,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
|
|||||||
},
|
},
|
||||||
success(res){
|
success(res){
|
||||||
console.log(res)
|
console.log(res)
|
||||||
that.friends[friendId] = new Friend(res.data.data.member_id, res.data.data.member_nickname, res.data.data.member_avatar);
|
that.friends[friendId] = new Friend(res.data.data.member_id, res.data.data.store_name, res.data.data.member_avatar);
|
||||||
friend = that.friends[friendId];
|
friend = that.friends[friendId];
|
||||||
console.log(friend)
|
console.log(friend)
|
||||||
friend.text = message
|
friend.text = message
|
||||||
|
Loading…
Reference in New Issue
Block a user