代码提交

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" : "旅绊",
"appid" : "__UNI__7C06BEE",
"description" : "旅绊交友聊天分享和互动于一体的平台",
"versionName" : "1.0.7",
"versionCode" : 107,
"versionName" : "1.0.8",
"versionCode" : 108,
"transformPx" : false,
/* 5+App */
"app-plus" : {

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

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