You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
4.5 KiB

<view class="page flex-col" style="position:relative;height:auto;background-color:#F8F6ED;"><view class="group_1 flex-col" style="height:calc(100% - 50px);"><view class="section_2 flex-col" style="height:auto;"><view class="block_1 flex-col" style="border-radius:0;"><view class="text-wrapper_1 flex-row"><text class="text_2">{{list.b.title}}</text></view><view class="text-wrapper_2 flex-row justify-between"><text class="text_3">{{"¥"+list.b.price}}</text><text class="text_4">{{"已有"+list.b.num+"人学习"}}</text></view></view><video class="block_2 flex-col" style="z-index:3;" src="{{videoUrl}}" controls="{{true}}" poster="{{poster}}" object-fit="fill" data-event-opts="{{[['timeupdate',[['handleTimeUpdate',['$event']]]],['play',[['play',['$event']]]]]}}" bindtimeupdate="__e" bindplay="__e"></video></view><view class="section_3 flex-col" style="height:auto;border-radius:0;margin-top:20rpx;padding-bottom:20rpx;"><view class="tabs_1 flex-col _div" style="height:70rpx;"><view class="text-wrapper_3 flex-row justify-between"><text data-event-opts="{{[['tap',[['changeTab',['介绍']]]]]}}" class="{{['text_5',(activeTab==='介绍')?'active':'']}}" style="height:50rpx;width:100rpx;text-align:center;" bindtap="__e">介绍</text><text data-event-opts="{{[['tap',[['changeTab',['目录']]]]]}}" class="{{['text_6',(activeTab==='目录')?'active':'']}}" style="height:50rpx;width:100rpx;text-align:center;" bindtap="__e">目录</text></view></view><block wx:if="{{activeTab==='介绍'}}"><view style=";"><view style="margin-left:5%;font-weight:900;font-size:18px;">授课老师</view><view data-event-opts="{{[['tap',[['go1']]]]}}" style="margin-left:3%;width:94%;margin-top:20rpx;margin-bottom:20rpx;" bindtap="__e"><image style="width:120rpx;height:120rpx;border-radius:100px;float:left;" src="{{list.a.image}}"></image><view style="float:left;margin-left:20rpx;margin-top:15rpx;"><view style="font-size:16px;font-weight:900;">{{list.a.name}}</view><view style="font-size:12px;margin-top:10rpx;color:gray;">{{"共计"+list.a.num+"课时"}}</view></view><image style="width:20rpx;height:30rpx;margin-top:50rpx;float:right;" src="/static/lanhu_kechengxiangqingmulu/4467bb13053bcc92fb9c10452b036fd7.png"></image></view><view style="width:100%;height:20rpx;background-color:#F8F6ED;clear:both;"></view><view style="margin-left:5%;font-weight:900;font-size:18px;margin-top:20rpx;margin-bottom:10rpx;">课程介绍</view><rich-text style="width:95%;margin-left:2.5%;" nodes="{{list.b.content}}"></rich-text></view></block><block wx:if="{{activeTab==='目录'}}"><view style="height:auto;padding-bottom:200rpx;"><text class="text_7">可免费试看视频/音频前60s</text><block wx:for="{{list.d}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view><view data-event-opts="{{[['tap',[['hideElement',[index]]]]]}}" class="box_2 flex-row" bindtap="__e"><text class="text_8">{{item[0].title2}}</text><image class="label_1" referrerpolicy="no-referrer" src="/static/lanhu_kechengxiangqingmulu/4fcce6f6b93750a3be24b81f9dbaa542.png"></image></view><view id="{{index}}"><block wx:for="{{item}}" wx:for-item="item2" wx:for-index="index2" wx:key="index2"><view class="box_3 flex-row"><image class="icon_2" src="/static/lanhu_kechengxiangqingmulu/35d5a4228d4ae5e616779e122f9cd5fa.png" data-event-opts="{{[['tap',[['bofang',['$0'],[[['list.d','',index],['','',index2,'mp4']]]]]]]}}" bindtap="__e"></image><text class="text_9">{{item2.title}}</text><text class="text_10">{{item2.min}}</text></view></block></view></view></block></view></block></view></view><view class="section_4 flex-row" style="margin:0;position:fixed;bottom:0;left:0;width:100%;height:100rpx;background-color:#f0f0f0;"><view data-event-opts="{{[['tap',[['shoucang1',['$event']]]]]}}" class="image-text_3 flex-col justify-between" bindtap="__e"><block wx:if="{{!shoucang}}"><image class="icon_6" src="/static/lanhu_kechengxiangqingmulu/02f3eef93d8ab189249aebc2d123e124.png"></image></block><block wx:if="{{shoucang}}"><image class="icon_6" src="/static/lanhu_kechengxiangqingmulu/22.png"></image></block><text class="text-group_3">收藏</text></view><view data-event-opts="{{[['tap',[['showModal',['share']]]]]}}" class="image-text_2 flex-col justify-between" bindtap="__e"></view><block wx:if="{{list.buy==0&&!is_buy}}"><button data-event-opts="{{[['tap',[['go',['$0'],['list.b.id']]]]]}}" class="button_1 flex-col" bindtap="__e"><text class="text_12">{{"¥"+list.b.price}}</text></button></block><block wx:if="{{list.buy==1||is_buy}}"><button class="button_1 flex-col"><text class="text_12">已购买</text></button></block></view></view>