|
|
|
@ -20,76 +20,117 @@
|
|
|
|
<view class="ltxinxi">
|
|
|
|
<view class="ltxinxi">
|
|
|
|
<!--循环用户的聊天信息-->
|
|
|
|
<!--循环用户的聊天信息-->
|
|
|
|
<view class="wchatfor" wx:for="{{messages}}" wx:key="index"><!--messages-->
|
|
|
|
<view class="wchatfor" wx:for="{{messages}}" wx:key="index"><!--messages-->
|
|
|
|
<!--显示时间框-->
|
|
|
|
<!--显示时间框-->
|
|
|
|
<view class="wchattime">{{item.createdAt}}</view>
|
|
|
|
<view class="wchattime">{{item.createdAt}}</view>
|
|
|
|
<!--自己发的消息-->
|
|
|
|
<!--自己发的消息-->
|
|
|
|
<view wx:if="{{item.isSelf}}" >
|
|
|
|
<view wx:if="{{item.isSelf}}" >
|
|
|
|
<!--发送图片消息-->
|
|
|
|
<!--发送图片消息-->
|
|
|
|
<view class="zjtableatp1" wx:if="{{item.type=='graphic'}}">
|
|
|
|
<view class="zjtableatp1" wx:if="{{item.type=='graphic'}}">
|
|
|
|
<!--自己的头像框-->
|
|
|
|
|
|
|
|
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image>
|
|
|
|
|
|
|
|
<!--聊天图片&已读未读-->
|
|
|
|
<!--聊天图片&已读未读-->
|
|
|
|
<view class="zttp11" data-id="{{item.id}}" id="{{'id001'+index}}" data-index="{{'id001'+index}}"
|
|
|
|
<view class="zttp11" data-id="{{item.id}}" id="{{'id001'+index}}" data-index="{{'id001'+index}}" bindlongpress="changAn">
|
|
|
|
bindlongpress="changAn">
|
|
|
|
|
|
|
|
<view class="zjydwdtp2">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<view class="zjydwdtp2">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<!--聊天图片-->
|
|
|
|
<!--聊天图片-->
|
|
|
|
<t-image src="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}" class="zjxftp2" mode="heightFix" bindtap="go2SeeHxDetail" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"></t-image>
|
|
|
|
<t-image src="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}" class="zjxftp2" mode="heightFix" bindtap="go2SeeHxDetail" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"></t-image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<!--自己的头像框-->
|
|
|
|
|
|
|
|
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!--发送信件消息-->
|
|
|
|
<!--发送信件消息-->
|
|
|
|
<view class="zjtablea1" wx:if="{{item.type=='xj'}}">
|
|
|
|
<view class="zjtablea1" wx:if="{{item.type=='xj'}}">
|
|
|
|
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
|
|
|
|
|
|
|
|
<view class="zjxf1"></view>
|
|
|
|
<view class="zjxf1"></view>
|
|
|
|
<view class="zjydwd1">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<view class="zjydwd1">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
|
|
|
|
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!--发送音频消息-->
|
|
|
|
<!--发送音频消息-->
|
|
|
|
<view class="zjtablea2" wx:if="{{item.type=='audio'}}">
|
|
|
|
<view class="zjtablea2" wx:if="{{item.type=='audio'}}">
|
|
|
|
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
|
|
|
|
<view class="zjypydwd" >{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<view data-bf="{{!item.extra.isBf}}" class="zjypk1" wx:if="{{!item.extra.isBf}}" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
|
|
|
|
<view
|
|
|
|
data-index="{{index}}" bindtap="doLuYINBoF"><view class="zjypt1"></view>
|
|
|
|
data-bf="{{!item.extra.isBf}}"
|
|
|
|
|
|
|
|
class="zjypk1" wx:if="{{!item.extra.isBf}}"
|
|
|
|
|
|
|
|
data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
|
|
|
|
|
|
|
|
data-index="{{index}}"
|
|
|
|
|
|
|
|
bindtap="doLuYINBoF"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view class="zjypt1"></view>
|
|
|
|
<view class="zjypwz1">{{item.extra.ssec}}</view>
|
|
|
|
<view class="zjypwz1">{{item.extra.ssec}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view data-bf="{{!item.extra.isBf}}" class="zjypk1" wx:if="{{item.extra.isBf}}" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
|
|
|
|
<view
|
|
|
|
data-index="{{index}}" bindtap="doLuYINBoF">
|
|
|
|
data-bf="{{!item.extra.isBf}}"
|
|
|
|
<view class="zjypt11"><view class="box2" style="float: left; height: 60rpx; width: 1000px; " >
|
|
|
|
class="zjypk1" wx:if="{{item.extra.isBf}}"
|
|
|
|
<image wx:for="{{xhCstP}}" wx:key="index" style="height: 60rpx;width: 60rpx;" src="https://oss.wish.ydxxkj.top/xy/yppic.png" mode=""/>
|
|
|
|
data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
|
|
|
|
</view></view>
|
|
|
|
data-index="{{index}}"
|
|
|
|
<view class="zjypwz1">1{{item.extra.ssec}}</view>
|
|
|
|
bindtap="doLuYINBoF"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view class="zjypt11">
|
|
|
|
|
|
|
|
<view class="box2" style="float: left; height: 60rpx; width: 1000px;">
|
|
|
|
|
|
|
|
<image wx:for="{{xhCstP}}" wx:key="index" style="height: 60rpx;width: 60rpx;"
|
|
|
|
|
|
|
|
src="https://oss.wish.ydxxkj.top/xy/yppic.png" mode=""/>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="zjypydwd" >{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<view class="zjypwz1">{{item.extra.ssec}}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!--发送文字消息-->
|
|
|
|
<!--发送文字消息-->
|
|
|
|
<view class="zjtable3" wx:if="{{item.type=='text'}}">
|
|
|
|
<view class="zjtable3" wx:if="{{item.type=='text'}}">
|
|
|
|
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
|
|
|
|
|
|
|
|
<view class="zjxxbox1" bindlongpress="changAn" id="{{'idtext001'+index}}" data-index="{{'idtext001'+index}}" data-id="{{item.id}}" bindtap="dKztDetial" data-xq="{{item}}"><view class="zjtextcontent"><text>{{item.content}}</text></view></view>
|
|
|
|
|
|
|
|
<view class="zjtextydwd1">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<view class="zjtextydwd1">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
|
|
|
|
<view class="zjxxbox1"
|
|
|
|
|
|
|
|
bindlongpress="changAn"
|
|
|
|
|
|
|
|
id="{{'idtext001'+index}}"
|
|
|
|
|
|
|
|
data-index="{{'idtext001'+index}}"
|
|
|
|
|
|
|
|
data-id="{{item.id}}"
|
|
|
|
|
|
|
|
bindtap="dKztDetial"
|
|
|
|
|
|
|
|
data-xq="{{item}}"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view class="zjtextcontent">
|
|
|
|
|
|
|
|
<text>{{item.content}}</text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<t-image src="{{userInfo.avatar}}" class="zjtx1" shape="circle" ></t-image><!--自己的头像框-->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!--对方发的消息-->
|
|
|
|
<!--对方发的消息-->
|
|
|
|
<view wx:if="{{!item.isSelf}}" >
|
|
|
|
<view wx:if="{{!item.isSelf}}" >
|
|
|
|
<!--聊天信息-->
|
|
|
|
<!--图片信息-->
|
|
|
|
<view wx:if="{{item.type=='graphic'}}" class="zjtableatp1">
|
|
|
|
<view wx:if="{{item.type=='graphic'}}" class="zjtableatp2">
|
|
|
|
<t-image src="{{loverInfo.avatar}}" class="wchattxk11" shape="circle" ></t-image><!--对方的的头像框-->
|
|
|
|
|
|
|
|
<view class="zttp12" wx:if="{{item.type=='graphic'}}">
|
|
|
|
<view class="zttp12" wx:if="{{item.type=='graphic'}}">
|
|
|
|
<view class="zjxftp3" >
|
|
|
|
<t-image src="{{loverInfo.avatar}}" class="wchattxk11" shape="circle" ></t-image><!--对方的的头像框-->
|
|
|
|
|
|
|
|
<!-- <view class="zjxftp3"></view> -->
|
|
|
|
</view>
|
|
|
|
<t-image
|
|
|
|
|
|
|
|
bindlongpress="changAn"
|
|
|
|
<!---->
|
|
|
|
src="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
|
|
|
|
<t-image bindlongpress="changAn" src="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}" class="zjxftp3" mode="heightFix" bindtap="go2SeeHxDetail" data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"></t-image>
|
|
|
|
class="zjxftp3" mode="heightFix"
|
|
|
|
|
|
|
|
bindtap="go2SeeHxDetail"
|
|
|
|
|
|
|
|
data-tp="{{'https://xzjl-api.windymuse.cn/api/resource/'+item.resourceId+'?k='+userInfo.id}}"
|
|
|
|
|
|
|
|
></t-image>
|
|
|
|
<view class="zjydwdtp3">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<view class="zjydwdtp3">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<t-image wx:if="{{item.type!='graphic'}}" src="{{loverInfo.avatar}}" class="wchattxk1" shape="circle" ></t-image><!--对方的的头像框-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<t-image
|
|
|
|
|
|
|
|
wx:if="{{item.type!='graphic'}}"
|
|
|
|
|
|
|
|
src="{{loverInfo.avatar}}"
|
|
|
|
|
|
|
|
class="wchattxk1"
|
|
|
|
|
|
|
|
shape="circle"
|
|
|
|
|
|
|
|
></t-image><!--对方的的头像框-->
|
|
|
|
<!--图片-->
|
|
|
|
<!--图片-->
|
|
|
|
|
|
|
|
|
|
|
|
<!--信件-->
|
|
|
|
<!--信件-->
|
|
|
|
<view class="dfxf" wx:if="{{item.type=='xj'}}"></view>
|
|
|
|
<view class="dfxf" wx:if="{{item.type=='xj'}}"></view>
|
|
|
|
<view class="dfxfydwd" wx:if="{{item.type=='xj'}}">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<view class="dfxfydwd" wx:if="{{item.type=='xj'}}">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<!--文本-->
|
|
|
|
<!--文本-->
|
|
|
|
<view bindtap="dKztDetial" data-xq="{{item}}" class="dftext" wx:if="{{item.type=='text'}}"><view class="xjtext">{{item.content}}</view></view>
|
|
|
|
<view
|
|
|
|
|
|
|
|
bindtap="dKztDetial"
|
|
|
|
|
|
|
|
data-xq="{{item}}"
|
|
|
|
|
|
|
|
class="dftext"
|
|
|
|
|
|
|
|
wx:if="{{item.type=='text'}}"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<view class="xjtext">{{item.content}}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view class="dftextwd" wx:if="{{item.type=='text'}}">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
<view class="dftextwd" wx:if="{{item.type=='text'}}">{{item.status=='unread'?'未读':'已读'}}</view>
|
|
|
|
|
|
|
|
|
|
|
|
<!--音频-->
|
|
|
|
<!--音频-->
|
|
|
|
<view class="dfaudio" wx:if="{{item.type=='audio'}}">
|
|
|
|
<view class="dfaudio" wx:if="{{item.type=='audio'}}">
|
|
|
|
<view class="dfaudiologo"></view>
|
|
|
|
<view class="dfaudiologo"></view>
|
|
|
|
|