代码提交

main
123456 4 weeks ago
parent cc93bba59a
commit f574466010
  1. 4
      manifest.json
  2. 15
      pages/users/chat/index.vue
  3. 12
      pages/users/yuyin/index.vue
  4. 4
      unpackage/dist/build/app-plus/app-service.js
  5. 6
      unpackage/dist/build/app-plus/app-view.js
  6. 2
      unpackage/dist/build/app-plus/manifest.json
  7. 20
      unpackage/dist/dev/app-plus/app-service.js
  8. 2
      unpackage/dist/dev/app-plus/manifest.json

@ -2,8 +2,8 @@
"name" : "旅绊", "name" : "旅绊",
"appid" : "__UNI__7C06BEE", "appid" : "__UNI__7C06BEE",
"description" : "旅绊交友聊天分享和互动于一体的平台", "description" : "旅绊交友聊天分享和互动于一体的平台",
"versionName" : "1.0.7", "versionName" : "1.0.8",
"versionCode" : 107, "versionCode" : 108,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

@ -262,11 +262,13 @@
recorderManager.onStop(function (res) { recorderManager.onStop(function (res) {
that.uploadAudio(res.tempFilePath); that.uploadAudio(res.tempFilePath);
clearInterval(timer); clearInterval(timer);
uni.hideLoading();
that.isPlay = true that.isPlay = true
}); });
innerAudioContext.onEnded(res=>{ innerAudioContext.onEnded(res=>{
that.isPlay = false uni.hideLoading();
// that.isPlay = false
}) })
that.watchSocket(); that.watchSocket();
}, },
@ -291,6 +293,10 @@
this.isPlay1 = !this.isPlay1 this.isPlay1 = !this.isPlay1
if(this.isPlay1){ if(this.isPlay1){
innerAudioContext.src = this.userInfo.voice; innerAudioContext.src = this.userInfo.voice;
uni.hideLoading();
uni.showLoading({
title: "播放中"
})
innerAudioContext.play(); innerAudioContext.play();
}else{ }else{
innerAudioContext.pause(); innerAudioContext.pause();
@ -429,6 +435,10 @@
}, },
toAudio(url) { toAudio(url) {
innerAudioContext.src = url; innerAudioContext.src = url;
uni.hideLoading();
uni.showLoading({
title: "播放中"
})
innerAudioContext.play(); innerAudioContext.play();
}, },
toPlay(url){ toPlay(url){
@ -570,6 +580,9 @@
const that = this; const that = this;
clearInterval(timer) clearInterval(timer)
that.isPlay = false; that.isPlay = false;
uni.showLoading({
title: "录音中"
})
timer = setInterval(()=>{ timer = setInterval(()=>{
that.count++ that.count++
},1000) },1000)

@ -68,11 +68,13 @@
that.isRest = true; that.isRest = true;
clearInterval(timer); clearInterval(timer);
that.$forceUpdate(); that.$forceUpdate();
uni.hideLoading();
console.log('that.yuyinInfo:' +JSON.stringify(that.yuyinInfo)); console.log('that.yuyinInfo:' +JSON.stringify(that.yuyinInfo));
console.log(that.yuyinInfo.voice) console.log(that.yuyinInfo.voice)
console.log(that.yuyinInfo.voiceTime) console.log(that.yuyinInfo.voiceTime)
}); });
innerAudioContext.onEnded(res=>{ innerAudioContext.onEnded(res=>{
uni.hideLoading();
that.isPlay = false that.isPlay = false
}) })
innerAudioContext.onTimeUpdate(res=>{ innerAudioContext.onTimeUpdate(res=>{
@ -122,6 +124,7 @@
that.show=true that.show=true
}else{ }else{
that.show=false that.show=false
that.yuyinInfo.voice = "" that.yuyinInfo.voice = ""
that.yuyinInfo.voiceTime = that.formatFun(0); that.yuyinInfo.voiceTime = that.formatFun(0);
that.yuyinInfo.voiceTimes = 0; that.yuyinInfo.voiceTimes = 0;
@ -155,6 +158,9 @@
if(innerAudioContext){ if(innerAudioContext){
console.log(innerAudioContext.src) console.log(innerAudioContext.src)
} }
uni.showLoading({
title: "播放中"
})
innerAudioContext.src = that.yuyinInfo.voice; innerAudioContext.src = that.yuyinInfo.voice;
innerAudioContext.play(); innerAudioContext.play();
that.isPlay = true; that.isPlay = true;
@ -178,6 +184,9 @@
that.yuyinInfo.voiceTime = that.formatFun(0); that.yuyinInfo.voiceTime = that.formatFun(0);
that.isPlays = true; that.isPlays = true;
clearInterval(timer) clearInterval(timer)
uni.showLoading({
title: "录音中"
})
timer = setInterval(()=>{ timer = setInterval(()=>{
that.count++ that.count++
that.yuyinInfo.voiceTime = that.formatFun(that.count) that.yuyinInfo.voiceTime = that.formatFun(that.count)
@ -203,6 +212,9 @@
that.yuyinInfo.voiceTime = that.formatFun(that.count) that.yuyinInfo.voiceTime = that.formatFun(that.count)
that.yuyinInfo.voiceTimes = that.count that.yuyinInfo.voiceTimes = that.count
},1000) },1000)
uni.showLoading({
title: "录音中"
})
recorderManager.start({ recorderManager.start({
format: "mp3" format: "mp3"
}) })

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save