| | |
| | | |
| | | <!-- 头部 --> |
| | | <u-navbar style="position: relative;" :is-fixed="false" :border-bottom="true" :is-back="true" :title="recName" |
| | | back-icon-color="#fff" :background="{ background: '#0BB9C8' }" title-color="#fff"> |
| | | back-icon-color="#fff" :background="{ background: '#0BB9C8' }" :placeholder="true" title-color="#fff"> |
| | | |
| | | <view slot='right'> |
| | | <!-- <view slot='right'> |
| | | <u-icon @click="chatMessageDetail" class="set-icon" name="more-dot-fill" color="#fff" size="28"> |
| | | </u-icon> |
| | | </view> |
| | | </view> --> |
| | | </u-navbar> |
| | | |
| | | |
| | |
| | | </view> |
| | | <!-- voice --> |
| | | <view class="message" v-if="item.messageType == 2"> |
| | | <view class="msg-text voice" :style="{width:item.postMessage.time * 4 + 50 + 'px'}" |
| | | <view class="msg-text voice" :style="{width:item.postMessage.time * 4 + 60 + 'px'}" |
| | | @tap="playVoice(item.postMessage)"> |
| | | |
| | | <image src="../../static/images/chatroom/sound.png" mode="" class="voice-img" /> |
| | |
| | | </view> |
| | | <!-- voice --> |
| | | <view class="message" v-if="item.messageType == 2"> |
| | | <view class="msg-text voice" :style="{width:item.postMessage.time * 4 + 50 + 'px'}" |
| | | <view class="msg-text voice" :style="{width:item.postMessage.time * 4 + 60 + 'px'}" |
| | | @tap="playVoice(item.postMessage)"> |
| | | {{ item.postMessage.time }}" |
| | | <image src="@/static/images/chatroom/sound.png" mode="" class="voice-img" /> |
| | |
| | | this._getMsg(this.nowpage) |
| | | // this.nextPage() |
| | | var data = option.data |
| | | |
| | | option.data = option.data + `"}` |
| | | |
| | | if (this.isJSON(option.data) == true) { |
| | | data = JSON.parse(option.data) |
| | | } |
| | | |
| | | console.log(data) |
| | | |
| | | |
| | | console.log(data, 55555555555555555555555) |
| | | this.name = ['wo', option.chatID]; |
| | | |
| | | if (typeof data.recipientName == "undefined") { |
| | | this.callName = data.realName; |
| | | } else { |
| | |
| | | let that = this; |
| | | uni.getSystemInfo({ |
| | | success(e) { |
| | | // console.log(e); |
| | | let { |
| | | windowWidth, |
| | | windowHeight, |
| | |
| | | .exec(); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | onUnload() { |
| | | var innerAudioContext = this.innerAudioContext = uni.createInnerAudioContext() |
| | | |
| | | innerAudioContext.destroy() |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | }, |
| | | // 音频播放 |
| | | playVoice(e) { |
| | | console.log(e, 'ok') |
| | | |
| | | var innerAudioContext = this.innerAudioContext = uni.createInnerAudioContext() |
| | | // innerAudioContext.autoplay = false |
| | |
| | | }, |
| | | // 接收输入内容 |
| | | inputs(e) { |
| | | |
| | | console.log(e, 999) |
| | | |
| | | var that = this; |
| | | this.isanimation = true |
| | | let len = this.msgs.length - 1 |
| | |
| | | }, |
| | | success: (res) => { |
| | | |
| | | console.log(res, 89898) |
| | | |
| | | } |
| | | }); |