diff --git a/components/uniapp-zaudio/index.scss b/components/uniapp-zaudio/index.scss index 6bc1672..c66033a 100644 --- a/components/uniapp-zaudio/index.scss +++ b/components/uniapp-zaudio/index.scss @@ -353,4 +353,137 @@ 100% { transform: translate(-50%, -50%) rotateZ(360deg) } -} \ No newline at end of file +} + + +.middles { + position: relative; + width: 420rpx; + height: 1020rpx; + + .ms-close { + position: absolute; + bottom: 20rpx; + left: 20rpx; + width: 40rpx; + height: 40rpx; + + image { + width: 40rpx; + height: 40rpx; + } + } + + .audio-flex { + position: absolute; + top: 50%; + left: 65%; + transform: translate(-50%, -50%); + display: flex; + align-items: center; + + .scroll-box { + width: 80rpx; + height: 800rpx; + display: flex; + justify-content: center; + + .slider-container { + position: relative; + width: 5rpx; + height: 100%; + background: #C0C0C0; + border-radius: 10rpx; + + .place-box { + width: 5rpx; + background: #2671E2; + } + + .slider-btn { + position: absolute; + left: -15rpx; + width: 30rpx; + height: 30rpx; + border-radius: 50%; + box-shadow: 0 0 10rpx #999; + background: #fff; + } + } + } + } + + .forwards { + position: absolute; + top: 50%; + left: 35%; + padding: 20rpx; + transform: translate(-50%, -50%) rotateZ(90deg); + width: 800rpx; + display: flex; + flex-direction: column; + justify-content: center; + + .audio-control-wrapper { + display: flex; + align-items: center; + } + + .imt-audioss { + position: relative; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: space-between; + + + .forward-item { + display: flex; + align-items: center; + + image { + width: 70rpx; + height: 70rpx; + } + + &.top { + // margin: 0 60rpx; + } + } + + .audio-wrapper { + padding: 0 0; + } + + .audio-slider { + width: 100%; + } + + .node-class { + width: 100%; + color: #333; + display: flex; + justify-content: center; + } + } + } +} + + +.playbackRate { + margin: 0 10rpx; + // padding: 0 10rpx; + width: 55rpx; + height: 55rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 24rpx; + + &.act { + color: #2671E2; + border: 5rpx solid #2671E2; + border-radius: 50%; + } +} diff --git a/components/uniapp-zaudio/static/kuaijin.png b/components/uniapp-zaudio/static/kuaijin.png new file mode 100644 index 0000000..6bcb6d1 Binary files /dev/null and b/components/uniapp-zaudio/static/kuaijin.png differ diff --git a/components/uniapp-zaudio/static/kuaitui.png b/components/uniapp-zaudio/static/kuaitui.png new file mode 100644 index 0000000..d626d2b Binary files /dev/null and b/components/uniapp-zaudio/static/kuaitui.png differ diff --git a/components/uniapp-zaudio/static/pausebtn.png b/components/uniapp-zaudio/static/pausebtn.png index f2bc86c..05e76dd 100644 Binary files a/components/uniapp-zaudio/static/pausebtn.png and b/components/uniapp-zaudio/static/pausebtn.png differ diff --git a/components/uniapp-zaudio/static/playbtn.png b/components/uniapp-zaudio/static/playbtn.png index 3f51b61..26ae9ba 100644 Binary files a/components/uniapp-zaudio/static/playbtn.png and b/components/uniapp-zaudio/static/playbtn.png differ diff --git a/components/uniapp-zaudio/static/quanping.png b/components/uniapp-zaudio/static/quanping.png new file mode 100644 index 0000000..c16588c Binary files /dev/null and b/components/uniapp-zaudio/static/quanping.png differ diff --git a/components/uniapp-zaudio/static/quxiaoquanping.png b/components/uniapp-zaudio/static/quxiaoquanping.png new file mode 100644 index 0000000..cdc2703 Binary files /dev/null and b/components/uniapp-zaudio/static/quxiaoquanping.png differ diff --git a/components/uniapp-zaudio/zaudio.vue b/components/uniapp-zaudio/zaudio.vue index 300e6e2..65f2613 100644 --- a/components/uniapp-zaudio/zaudio.vue +++ b/components/uniapp-zaudio/zaudio.vue @@ -3,17 +3,6 @@ + + + + + + + + + + + + + + + + + + + {{renderData('current') || '00:00:00'}} + + + + + + + + + + + + + + + + + + + + + + + {{renderData('duration') || '00:00:00'}} + + {{ duration || '00:00:00' }} + + + + + x{{ data.name }} + + + + + + + + + + + + @@ -366,10 +546,9 @@ } .play { - width: 48rpx; - height: 48rpx; + width: 44rpx; + height: 44rpx; z-index: 99; - background: rgba(0, 0, 0, 0.4); border-radius: 50%; position: absolute; top: 50%; @@ -384,8 +563,43 @@ } } + .forward { + padding: 0 20rpx 20rpx; + width: 100%; + display: flex; + align-items: flex-end; + + .forward-item { + margin-right: 20rpx; + display: flex; + align-items: center; + + .playbackRate { + margin: 0 10rpx; + // padding: 0 10rpx; + width: 55rpx; + height: 55rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 24rpx; + + &.act { + color: #2671E2; + border: 5rpx solid #2671E2; + border-radius: 50%; + } + } + + image { + width: 50rpx; + height: 50rpx; + } + } + } + .audio-flex { - padding: 0 32rpx 0 0; + padding: 0 16rpx 0 0; flex-grow: 1; display: flex; align-items: center; diff --git a/manifest.json b/manifest.json index d5bfc1e..16c8fd4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "数智工牌", + "name" : "去房智控管家", "appid" : "__UNI__7A1611D", "description" : "去房智控管家", "versionName" : "1.1.0", @@ -91,7 +91,7 @@ }, "quickapp" : {}, "mp-weixin" : { - "appid" : "wxe044603515ff2cb5", + "appid" : "wx8f883dca5ecc5510", "setting" : { "urlCheck" : false, "es6" : true, diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index dbaa2f5..cfab5de 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -84,7 +84,7 @@ - + @@ -457,6 +457,9 @@ duration: '', // 总时长 info: null, // 播放时间 isAudio: 0, // 第一时间定位播放 + + nowPlaying: 0, // 当前播放位置 + stepPosition: 0, // 需要跳转的播放位置 }; }, @@ -492,6 +495,7 @@ }) this.$zaudio.on('playing', this.ACTION, (obj) => { this.duration = obj.duration + this.nowPlaying = obj.current_value this.TimeUpdate(this.TIMEEVENT(obj.current)) }) this.$zaudio.on('error', this.ACTION, e => { @@ -1514,6 +1518,29 @@ }, + // 迅速切换音频源并切换回来 + checkPlaybackRate() { + this.stepPosition = this.nowPlaying + // + let data = [{ + src: 'https://static.quhouse.com/record/prop/2022-12-13/1670905992910-00066.mp3', + title: '录音音频', + singer: '', + coverImgUrl: '' + }] + this.$zaudio.setAudio(data) + //渲染第一首音频 + this.$zaudio.setRender(0) + if (!this.refresh) { + setTimeout(() => { + this.$zaudio.operate() + }, 150) + } + setTimeout(() => { + this.zyAudio() + }, 500) + }, + //录音实例 zyAudio() { let data = [{ @@ -1531,6 +1558,13 @@ this.isAudio = 0 }, 2000) } + + if (this.stepPosition != 0) { + setTimeout(() => { + this.stepPlay(this.stepPosition) + }, 1500) + } + setTimeout(() => { this.$zaudio.operate() }, 150) @@ -1595,7 +1629,7 @@ .bottombox { width: 100%; - height: 170rpx; + min-height: 170rpx; border-top: 1px solid #E0E0E0; .bottomhead { diff --git a/pages/center/prohibited/details.vue b/pages/center/prohibited/details.vue index d63fc8f..44965e6 100644 --- a/pages/center/prohibited/details.vue +++ b/pages/center/prohibited/details.vue @@ -145,7 +145,7 @@