| | |
| | | |
| | | <view class="im_interface_content" ref='container'> |
| | | <view :class="item.user_id == user_id?'im_text':'im_text2'" class="m-item" v-for="(item,index) in content_list" :key="index"> |
| | | <image class="avatar" :src="item.user_id != user_id?item.user.avatarUrl:avatarUrl" |
| | | <image class="avatar" :src="item.user_id == user_id?myavatarUrl:(item.user&&item.user.avatarUrl?item.user.avatarUrl:otherAvatarUrl)" |
| | | mode=""></image> |
| | | <view> |
| | | <view class="my_date">{{item.create_time}}</view> |
| | |
| | | return { |
| | | user_id: '', //我的user_id |
| | | you_user_id: '', //对方的suser_id |
| | | myavatarUrl: '', |
| | | avatarUrl: '', |
| | | myavatarUrl: '', //我的头像 |
| | | otherAvatarUrl: '', //对方的头像 |
| | | phoneHeight: 0, |
| | | /*可滚动视图区域高度*/ |
| | | scrollviewHigh: 0, |
| | |
| | | let self = this; |
| | | self.you_user_id = option.you_user_id; |
| | | self.nickName = option.nickname; |
| | | self.avatarUrl = option.avatarurl; |
| | | self.otherAvatarUrl = option.avatarurl; // 对方的头像 |
| | | uni.setNavigationBarTitle({ |
| | | title: self.nickName |
| | | }) |