From 5ca38e4ef60e35f08e87d6569b72c25433c311ca Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 26 三月 2024 17:05:14 +0800 Subject: [PATCH] 答题器bug修改,添加请求地址 --- packageDomain/pages/resourceDetails/myAudio/index.wxml | 51 ++++++++++++++++++++++++++++----------------------- 1 files changed, 28 insertions(+), 23 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myAudio/index.wxml b/packageDomain/pages/resourceDetails/myAudio/index.wxml index daf0f65..22dee84 100644 --- a/packageDomain/pages/resourceDetails/myAudio/index.wxml +++ b/packageDomain/pages/resourceDetails/myAudio/index.wxml @@ -9,26 +9,21 @@ -<view class="audioPlayerBox"> - <view class="audioBackground" style="background-image: url('/static/images/resourceDetailsMyAudio/video-bg.png');"> +<view class="audioPlayerBox"> + <view class="audioBackground" style="background-image: url('http://182.92.203.7:3007/jsek/website/image/video-bg.png');"> <image src="/static/images/resourceDetailsMyAudio/cd.png" alt="" /> </view> <!-- 瑙嗛鎾斁鐨勬寜閽� --> <view class="bigFunctionBox"> - <slider activeColor='#FF6C00' class="mp-slider-bar" block-size="16" value="{{myAudioPos}}" bindchange="hanle_slider_change"></slider> - <view class="functionBox"> - - - <!-- 宸﹀垏鎹� --> - <view class="leftSwitchBox color" bind:tap="onLeftSwitch"> + <!-- <view class="leftSwitchBox color" bind:tap="onLeftSwitch"> <t-icon name="previous" size="24" /> - </view> + </view> --> <!-- 鏆傚仠鎾斁 --> - <view class="audioIconBox color"> + <view class="audioIconBox color" style="margin-left: 30rpx; margin-right: 10rpx;"> <view wx:if="{{!isplay}}" bind:tap='play'> <t-icon name="play-circle-stroke" size="24" /> </view> @@ -36,30 +31,40 @@ <t-icon name="pause-circle-stroke" size="24" /> </view> </view> - + <slider style="width: 300rpx;" activeColor='#FF6C00' class="mp-slider-bar" block-size="16" value="{{myAudioPos}}" bindchange="hanle_slider_change"></slider> <!-- 鍙冲垏鎹� --> - <view class="rightSwitchBox color" bind:tap="onRightSwitch"> + <!-- <view class="rightSwitchBox color" bind:tap="onRightSwitch"> <t-icon name="next" size="24" /> - </view> + </view> --> <!-- 鏃堕棿 --> <view class="current-time color">{{myAudioCurrent}} </view> <view class="color" style="margin: 0 10rpx;">/</view> <view class="duration-time color"> {{myAudioDuration}} </view> - <view class="publicBtn color" style="margin-left:100rpx ;" bind:tap="onSpeed"> - <text class="publicText">{{"x "+speed}}</text> + <!-- bind:tap="onSpeed" --> + <view class="publicBtn color"> + <view class="publicText" bind:tap="toggleDropdown"> + <view> + {{"x "+speed}} + </view> + <t-icon style="margin-top: 10rpx;" wx:if="{{showDropdown}}" name="caret-up-small" size="14" bind:click="onIconTap" /> + <t-icon style="margin-top: 10rpx;" wx:else name="caret-down-small" size="14" bind:click="onIconTap" /> + </view> + <view class="multipleBox" wx:if="{{showDropdown}}"> + <view wx:if="{{speed != 0.5}}" style="margin: 5rpx 0;" bind:tap="smallSpeed">x0.5</view> + <view wx:if="{{speed != 1}}" style="margin: 5rpx 0;" bind:tap="smallSpeeDmultiple">x1</view> + <view wx:if="{{speed != 1.5}}" style="margin: 5rpx 0;" bind:tap="centreSpeed">x1.5</view> + <view wx:if="{{speed != 2}}" style="margin: 5rpx 0;" bind:tap="bigSpeed">x2</view> + </view> </view> </view> </view> - - </view> <!-- 鏍囬 --> <view class="titleBox">{{titleName}}</view> - <view class="contentBox"> <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel"> <!-- 璧勬簮鍒楄〃 --> @@ -78,10 +83,14 @@ <t-tab-panel label="绗旇" value="1" style="{{tabPanelstyle}}"> <view class="wrapper"> <t-collapse value="{{activeValues}}" bind:change="handleChange"> + <view wx:if="{{noteList.length == 0}}" class="noData"> + <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> + </view> + <t-collapse-panel value="{{item.id}}" expandIcon wx:for="{{noteList}}"> <view slot="header" class="collapse-header"> <t-image class="note-icon" src="/static/images/bookService/detail/note-icon.png"></t-image> - <view class="header-name">{{item.name}}</view> + <view class="header-name">{{titleName}}</view> </view> <view> <view class="note-content">{{item.content}}</view> @@ -121,10 +130,6 @@ <t-input value="{{titleName}}" style="{{inputStyle}}" data-value="{{false}}" bind:enter="changeTitle" bind:blur="changeTitle" maxlength="{{50}}" bind:change="inputChange"></t-input> </view> </view> - - - - <view slot='content'> <view class="textarea-example"> <text class="textarea-example__label">鍐呭:</text> -- Gitblit v1.9.1