| | |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/detail/buyResource/index?productLinkPath=${this.properties.buyResourceData.productLinkPath}&refCode=${this.properties.buyResourceData.refCode}&bookId=${this.properties.bookId}`, |
| | | }) |
| | | |
| | | }, |
| | | |
| | | changeReceive(type) { |
| | |
| | | // pages/resourceDetails/index.js |
| | | const app = getApp() |
| | | const myAudio = wx.createInnerAudioContext(); |
| | | // innerAudioContext.onPlay(function callback), |
| | | // InnerAudioContext.onTimeUpdate(function callback) |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | */ |
| | | onShow() { |
| | | |
| | | this.pubulicPlayFun() |
| | | |
| | | }, |
| | | |
| | | /** |
| | |
| | | myAudio.duration; //必须写,不然获取不到。。。 |
| | | setTimeout(() => { |
| | | console.log(myAudio.duration, 'myAudio.duration'); |
| | | // debugger |
| | | |
| | | this.setData({ |
| | | myAudioDuration: this.format(myAudio.duration), |
| | | myAudioCurrent: this.format(myAudio.currentTime) |
| | | }); |
| | | }, 1000); |
| | | }, 100); |
| | | }); |
| | | |
| | | |
| | | // myAudio.onSeeked(() => { |
| | | // this.setData({ |
| | | // myAudioDuration: this.format(myAudio.duration), |
| | | // myAudioCurrent: this.format(myAudio.currentTime) |
| | | // }) |
| | | // }) |
| | | // 播放完成处理,按钮变一下 |
| | | myAudio.onEnded((res) => { |
| | | this.setData({ |
| | |
| | | background-color: #fff; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | } |
| | | |
| | | .navbar-title { |
| | |
| | | /* overflow: hidden; */ |
| | | text-overflow: ellipsis; |
| | | color: #0F1214; |
| | | |
| | | margin-bottom: 5rpx; |
| | | font-weight: bold; |
| | | font-size: 36rpx; |
| | |
| | | height: 0 !important; |
| | | } |
| | | |
| | | /* .t-button--primary { |
| | | .t-button--primary { |
| | | color: #fff !important; |
| | | background-color: #FF6C00 !important; |
| | | |
| | | border: 1rpx #fff solid !important; |
| | | } |
| | | |
| | | .t-button--light { |
| | | color: #fff !important; |
| | | /* background-color: #FF6C00 !important; */ |
| | | /* } */ |
| | | color: #000 !important; |
| | | background-color: #fff !important; |
| | | } |
| | | |
| | | /* |
| | | */ |
| | | |
| | | .menu--t-dropdown-menu::after { |
| | | background-color: var(--td-component-border, var(--td-gray-color-4, #fff)) !important; |
| | | |
| | | } |
| | | |
| | | .noData { |
| | | /* display: flex; |
| | | justify-content: center; */ |
| | | |
| | | margin: 0 auto; |
| | | margin-top: 100rpx; |
| | | } |
| | | |
| | | .t-checkbox--tag .t-checkbox__title--checked { |
| | | color: var(--td-checkbox-tag-active-color, var(--td-brand-color, var(--td-primary-color-7, #fff))) !important; |
| | | } |
| | | |
| | | .t-checkbox--tag.t-checkbox--checked { |
| | | color: var(--td-checkbox-tag-active-color, var(--td-brand-color, var(--td-primary-color-7, #fff))) !important; |
| | | background-color: var(--td-checkbox-tag-active-bg-color, var(--td-brand-color-light, var(--td-primary-color-1, #FF6C00))) !important; |
| | | } |
| | |
| | | this.setData({ |
| | | isMore: false |
| | | }) |
| | | }, 100) |
| | | console.log('300'); |
| | | }, 300) |
| | | |
| | | } |
| | | }, |
| | |
| | | "t-image": "tdesign-miniprogram/image/image" |
| | | }, |
| | | "enablePullDownRefresh": true, |
| | | "onReachBottomDistance": 200, |
| | | "onReachBottomDistance": 100, |
| | | "backgroundTextStyle": "dark" |
| | | } |
| | |
| | | } |
| | | |
| | | .bottomBox { |
| | | position: fixed; |
| | | /* bottom: 0; */ |
| | | /* position: fixed; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: calc(env(safe-area-inset-bottom) + 88rpx); |
| | | bottom: calc(env(safe-area-inset-bottom) + 88rpx); */ |
| | | height: 120rpx; |
| | | background: #FFFFFF; |
| | | box-shadow: 0rpx -2rpx 0rpx 2rpx rgba(0, 0, 0, 0.08); |
| | | display: flex; |
| | | align-items: center; |
| | | position: fixed; |
| | | bottom: 0; |
| | | left: 0; |
| | | right: 0; |
| | | height: 44px; |
| | | padding-bottom: 80px; |
| | | padding-top: 10rpx; |
| | | } |
| | | |
| | | .checkGroupBox { |