赞
踩
、
<image :src=“thead_image” @tap=“tochatset()”>
<view class=“bubble voice” @tap=“playVoice(item.content)” >
<view class=“bubble voice” @tap=“playVoice(item.content)” >
{{val.create_time }}
<image :src=“thead_image” @tap=“tochatset()”>
<view class="bubble voice" @tap="playVoice(val.content)" > <!-- <text class="length">{{item.length}}</text> --> <text class="icon other-voice"></text> </view> </view> </view> </view> </view> <!-- 数据库返回消息 --> <!-- 缓存历史记录 --> <!-- <view v-for="(item, idx) in chatromlist" :key="idx"> <view class="back_msg_list"> <view class="item" v-if='item.type == "text"'> <!-- <view class="time">{{timestampToTime(item.create_time)}}</view> --> <!-- <view class="msg_right" > <image :src="thead_image"></image> <view class="msg_text" v-if="item.length == ''"> <rich-text :nodes="item.content"></rich-text> </view> <view class="msg_text" v-if="item.length != ''"> <view class="bubble voice" @tap="playVoice(item.content)" > <!-- <view class="length">{{item.length}}</view> --> <!-- <view class="icon other-voice"></view> </view> </view> </view> </view> --> <!-- </view> --> <!-- 我发送的信息 --> <!-- <view class="msg_list tototto"> <view class="item" v-if='item.type == "say" '> --> <!-- <view class="time">{{timestampToTime(item.date) }}</view> --> <!-- <view class="msg_right" > <view class="msg_text" v-if="item.length == ''"> <rich-text :nodes="item.content" ></rich-text> </view> --> <!-- 语音 --> <!-- <view class="msg_text" v-if="item.length != ''"> <view class="bubble voice" @tap="playVoice(item.content)" > --> <!-- <view class="length">{{item.length}}</view> --> <!-- <view class="icon my-voice"></view> </view> </view> --> <!-- 语音 --> <!-- <image :src="myhead_image"></image> </view> </view> </view> </view> --> <!-- 聊天记录 --> <!-- //不在线时,返回未读消息 --> <view class="back_msg_list"> <view class="item" v-for="(val,index) in UnreadMessages " :key="index"> <view class="time">{{val.create_time }}</view> <view class="msg_right"> <image :src="thead_image" @tap="tochatset()"></image> <view class="msg_text" v-if="val.length == ''"> <rich-text :nodes="val.content"></rich-text> </view> <view class="msg_text" v-if="val.length != ''"> <view class="bubble voice" @tap="playVoice(val.content)" > <!-- <text class="length">{{item.length}}</text> --> <text class="icon other-voice"></text> </view> </view> </view> </view> </view> <!-- //我收到的信息 --> <view v-for="(item, idx) in ChatRecord" :key="idx"> <view class="back_msg_list"> <view class="item" v-if='item.type == "text"'> <!-- <view class="time">{{timestampToTime(item.create_time)}}</view> --> <view class="msg_right"> <image :src="thead_image" @tap="tochatset()"></image> <view class="msg_text" v-if="item.length == ''"> <rich-text :nodes="item.content"></rich-text> </view> <view class="msg_text" v-if="item.length != ''"> <view class="bubble voice" @tap="playVoice(item.content)" > <!-- <text class="length">{{item.length}}</text> --> <text class="icon other-voice"></text> </view> </view> </view> </view> </view> <!-- 我发送的信息 --> <view class="msg_list tototto"> <view class="item" v-if='item.type == "say" '> <!-- <view class="time">{{timestampToTime(item.date) }}</view> --> <view class="msg_right"> <view class="msg_text" v-if="item.length == '' "> <rich-text :nodes="item.content" ></rich-text> </view> <view class="msg_text" v-if="item.length != '' "> <view class="bubble voice" @tap="playVoice(item.content)" > <text class="icon my-voice"></text> </view> </view> <image :src="myhead_image"></image> </view> </view> <view v-if="item.type!='say'&& imglist !='' "> <view class="item" v-for="(val,inde) in imglist" :key='inde.date'> <!-- <view class="time">{{ val.date}}</view> <view class="msg_right"> <!-- <view class="msg_text"> --> <rich-text :nodes="val.content"></rich-text> <!-- </view> --> <image :src="myhead_image"></image> </view> </view> </view> </view>
<!-- 我发送的图片 --> <view class="msg_list tototto"> <view class="item" v-for="(val,inde) in imglist" :key='inde'><strong></strong> <view class="msg_right"> <rich-text :nodes="item.content"></rich-text> <image :src="myhead_image" ></image> </view> </view> </view> <!-- 表情栏 --> <view class="emoji-box" :class="showEmji" @touchmove.stop.prevent="discard"> <swiper class="swiper" indicator-dots="true" duration="150"> <swiper-item v-for="(page,pid) in emojiList" :key="pid"> <view v-for="(em,eid) in page" :key="eid" @tap="addEmoji(em)"> <image mode="widthFix" :src="'http://djdl.chenzhuo.vip/emoji/'+em.url"></image> </view> </swiper-item> </swiper> </view> <!-- 发送的信息 --> <view class="input-box" :class="showEmji" @touchmove.stop.prevent="discard"> <!-- H5下不能录音,输入栏布局改动一下 --> <!-- #ifndef H5 --> <view class="voice"> <view class="icon" :class="isVoice?'jianpan':'yuyin'" @tap="switchVoice"></view> </view> <!-- #endif --> <!-- #ifdef H5 --> <view class="more" @tap="sel_img"> <view class="icon tupian"></view> </view> <!-- #endif --> <view class="textbox"> <view class="voice-mode" :class="[isVoice?'':'hidden',recording?'recording':'']" @touchstart="voiceBegin" @touchmove.stop.prevent="voiceIng" @touchend="voiceEnd" @touchcancel="voiceCancel">{{voiceTis}}</view> <view class="text-mode" :class="isVoice?'hidden':''"> <view class="box"> <textarea auto-height="true" v-model="textMsg" /> </view> <view class="em" @tap="chooseEmoji"> <view class="icon biaoqing"></view> </view> </view> </view> <!-- #ifndef H5 --> <view class="more" @tap="sel_img"> <view class="icon tupian"></view> </view> <!-- #endif --> <view class="send" :class="isVoice?'hidden':''" @tap="sendText"> <view class="btn"> 发送 </view> </view> </view> <!-- 录音效果(上滑取消) --> <view class="record" :class="recording?'':'hidden'"> <view class="ing" :class="willStop?'hidden':''"><view class="icon luyin2" ></view></view> <view class="cancel" :class="willStop?'':'hidden'"><view class="icon chehui" ></view></view> <view class="tis" :class="willStop?'change':''">{{recordTis}}</view> </view> </view> </view>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。