123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <wxs src='../../../utils/format.wxs' module="utils"></wxs>
- <wxs src='../../../utils/formatFuc.wxs' module="format"></wxs>
- <view>
- <view class="center-top">
- <image src="https://jzmall.lifejingzhi.com/file/wx-servant/badge-star.png" class="badge" mode="aspectFit"></image>
- <view class="learn-time">
- <van-icon name="clock-o" size="24px" color="#231F20"/>
- <view>累计学习时长</view>
- </view>
- <view class="time-detail">
- <text>{{utils.learnTimeHour(sumStudyTime)}}</text> 小时
- <text>{{utils.learnTimeMinute(sumStudyTime)}}</text> 分钟
- </view>
- <!-- 待获取技能 -->
- <view class="get-skill">
- <view class="skill-title">待获取技能</view>
- <view class="skill-list">
- <view class="skill-item" wx:for="{{skillList}}" wx:key="index">{{item.skillName}}
- </view>
- </view>
- </view>
- <!-- 巩固已学内容 -->
- <view class="learned-content" bindtap="goCurrent">
- <text>正在学习</text>
- <view class="arrow"></view>
- </view>
- </view>
-
- <!-- 课程 -->
- <van-sticky>
- <!-- <view class="tab-sticky">
- <view class="{{currentTab=='my'?'active-tab':''}}" bindtap="switchTab" data-tab="my">我的课程</view>
- <view class="{{currentTab=='history'?'active-tab':''}}" data-tab="history" bindtap="switchTab">历史课程</view>
- </view> -->
- <view class="tabs-wrapper">
- <van-tabs active="{{currentTab}}" bind:change="switchTab" color="#426D3B" id="tabs">
- <van-tab title="公开课程" name="1"></van-tab>
- <van-tab title="培训课程" name="2"></van-tab>
- <van-tab title="历史课程" name="3"></van-tab>
- </van-tabs>
- </view>
-
- <view class="drop-block">
- <van-dropdown-menu active-color="#09afff">
- <van-dropdown-item value="{{ type }}" options="{{ typeList }}" bind:change="dropdownChange"/>
-
- </van-dropdown-menu>
- <view class="after-wrapper">
-
- <view class="arrow after-arrow"></view>
- <view class="date-wrapper" bindtap="dateSelect">
- <view>{{date}}
- </view>
- <view class="arrow"></view>
- </view>
- </view>
- </view>
- </van-sticky>
-
- <view class="course-list">
- <view class="course-item" wx:for="{{courseList}}" wx:key="index">
- <image src="{{item.course.courseBackimg}}" class="video-cover" mode="aspectFill"></image>
- <view class="course-info">
- <view class="course-title" >
- <view class="title-left">
- {{item.course.courseName}}
- </view>
- <view class="title-right"
- >
- <van-icon name="clock-o" size="20px" color="#666666"/>
- <view class="hour">{{utils.learnTime(item.course.courseDuration)}}</view>
- </view>
- </view>
- <view class="course-time">
- 培训时间: {{format.formatDate(item.studyStart)}}
- </view>
- <view class="finish-time">
- 完成时间: {{format.formatDate(item.studyEnd)}}
- </view>
- <view class="course-operate" >
- <view class="course-btn" bindtap="goLearn" wx:if="{{currentTab!='3'&&item.id==''}}" data-id="{{item.id}}" data-courseid="{{item.course.id}}"> 开始学习</view>
- <view class="course-btn" bindtap="continueLearn" wx:if="{{currentTab!='3'&&item.id!=''}}" data-id="{{item.id}}" data-courseid="{{item.course.id}}"> 继续学习</view>
- <view class="course-btn" bindtap="goStar" wx:if="{{item.isCompleted==1&&ITEM.workerScore==''}}" data-id="{{item.id}}"> 评价课程</view>
- <view class="course-btn" bindtap="goLearn" wx:if="{{currentTab=='3'}}"> 再次学习</view>
- </view>
- </view>
- </view>
- </view>
- <view class="no-msg" wx:if="{{courseList.length==0}}">暂无内容~</view>
- </view>
- <van-popup
- show="{{ pickerShow }}"
- position="bottom"
-
-
- >
- <van-datetime-picker
- type="year-month"
- value="{{ currentDate }}"
- min-date="{{ minDate }}"
- bind:confirm="onConfirm"
- bind:cancel="onCancel"
- />
- </van-popup>
- <!-- 课程评价 -->
- <van-overlay show="{{evalShow}}" custom-style="background: rgba(194,191,191,0.61); z-index:999;" bind:click="onClickShow">
- <view class="overlay-wrapper" >
- <view class="star-wrapper" catchtap="stop">
- <view class="title">
- 课程评价
- </view>
- <view class="van-rate-wrapper">
- <van-rate value="{{ star }}" bind:change="onChange" size="{{ 36 }}"/>
- </view>
- </view>
- <view class="submit-eval" catchtap="submitEval">立即提交</view>
- </view>
- </van-overlay>
|