|
|
@ -1,30 +1,31 @@ |
|
|
|
<template> |
|
|
|
<view class="task-info"> |
|
|
|
<block v-if="false"> |
|
|
|
<block v-if="taskInfo.course_kind == '私教课'"> |
|
|
|
<view class="i-header"> |
|
|
|
<picker> |
|
|
|
<view class="top-bar"><text>12</text></view> |
|
|
|
<picker disabled> |
|
|
|
<view class="top-bar"><text>{{optionsQuery.course_name || '-'}}</text></view> |
|
|
|
</picker> |
|
|
|
<picker class="select-picker" disabled> |
|
|
|
<view> |
|
|
|
<input disabled value="小小李木子" /> |
|
|
|
<image></image> |
|
|
|
<input disabled :value="taskInfo.homework_record.created_at.substr(0,10)" /> |
|
|
|
<!-- <image></image> --> |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="i-user"> |
|
|
|
<image></image> |
|
|
|
<image mode="aspectFit" :src="optionsQuery.user_avatar"></image> |
|
|
|
<view> |
|
|
|
<text>学员姓名:</text>小李张净水器净 |
|
|
|
<text>学员姓名:</text>{{ optionsQuery.user_name || '-'}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</block> |
|
|
|
|
|
|
|
<view class="ti-section"> |
|
|
|
<block> |
|
|
|
<block v-if="taskInfo.course_kind == '成班课'"> |
|
|
|
<view class="s-name"> |
|
|
|
<view>羽毛球课包学会(带体验课)</view> |
|
|
|
<view>一班</view> |
|
|
|
<view>{{optionsQuery.course_name || '-'}}</view> |
|
|
|
<view>{{optionsQuery.class_name || ''}}</view> |
|
|
|
</view> |
|
|
|
<view class="s-user"> |
|
|
|
<view>学员名称:</view> |
|
|
@ -39,15 +40,15 @@ |
|
|
|
|
|
|
|
<view class="s-detail"> |
|
|
|
<view>完成情况</view> |
|
|
|
<view>{{ taskInfo.completion || '-' }}</view> |
|
|
|
<view>{{ taskInfo.homework_record.completion || '-' }}</view> |
|
|
|
</view> |
|
|
|
<view class="s-addr"> |
|
|
|
<view>视频链接:</view> |
|
|
|
<view>{{ taskInfo.video_url || '-' }}</view> |
|
|
|
<view>{{ taskInfo.homework_record.video_url || '-' }}</view> |
|
|
|
<view @click="copyUrl">复制</view> |
|
|
|
</view> |
|
|
|
<view class="s-imgs"> |
|
|
|
<image v-for="(e,i) in taskInfo.images" :key="i" mode="aspectFit" :src="e"></image> |
|
|
|
<image v-for="(e,i) in taskInfo.homework_record.images" :key="i" mode="aspectFit" :src="e"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -74,7 +75,7 @@ export default { |
|
|
|
copyUrl(){ |
|
|
|
let { taskInfo } = this; |
|
|
|
uni.setClipboardData({ |
|
|
|
data: taskInfo.video_url, |
|
|
|
data: taskInfo.homework_record.video_url, |
|
|
|
}) |
|
|
|
}, |
|
|
|
getTaskInfo( homework_record_id ){ |
|
|
@ -86,7 +87,7 @@ export default { |
|
|
|
failMsg: '加载失败!' |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
this.taskInfo = res; |
|
|
|
this.taskInfo = res || {}; |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|