|
|
@ -76,36 +76,47 @@ |
|
|
|
|
|
|
|
|
<view class="after-class-con" v-for="(v,k) in jobAssignmentsInfo" :key="k" @click="openViewWorkDetails(v)"> |
|
|
<view class="after-class-con" v-for="(v,k) in jobAssignmentsInfo" :key="k" @click="openViewWorkDetails(v)"> |
|
|
<view class="after-class-con-txt"> |
|
|
<view class="after-class-con-txt"> |
|
|
<view style="width: 25%;margin-top: 5%;"> |
|
|
<!-- <view style="width: 25%;margin-top: 5%;">--> |
|
|
<view style="font-size: 55rpx;color: #fff;"><span style="color: #29d3b4;">12</span>/23 |
|
|
<!-- <view style="font-size: 55rpx;color: #fff;"><span style="color: #29d3b4;">12</span>/23--> |
|
|
</view> |
|
|
<!-- </view>--> |
|
|
<view style="font-size: 35rpx;color: #ccc;padding-left: 10rpx;">已完成</view> |
|
|
<!-- <view style="font-size: 35rpx;color: #ccc;padding-left: 10rpx;">已完成</view>--> |
|
|
</view> |
|
|
<!-- </view>--> |
|
|
<view style="width: 70%;"> |
|
|
<view style="width: 100%;"> |
|
|
<view style="color: #fff;display: flex;justify-content: space-between;align-items: center;"> |
|
|
<view style="color: #fff;display: flex;justify-content: space-between;align-items: center;"> |
|
|
<view style="display: flex;align-items: center;"> |
|
|
<view style="display: flex;align-items: center;"> |
|
|
<image :src="$util.img(v.coach_pic)" style="width: 50rpx;height: 50rpx;"> |
|
|
<image :src="v.student.customerResources.member.headimg ? v.student.customerResources.member.headimg : $util.img('/uniapp_src/static/images/common/yong_hu.png')" style="width: 50rpx;height: 50rpx;"> |
|
|
</image> |
|
|
</image> |
|
|
<span style="padding-left: 10rpx;font-size: 35rpx;">{{v.coach_name}}</span> |
|
|
<span style="padding-left: 10rpx;font-size: 35rpx;">{{v.student.name}}</span> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
<fui-button background="#404045" color="#F59A23" borderColor="#F59A23" |
|
|
<fui-button background="#404045" color="#F59A23" borderColor="#F59A23" |
|
|
btnSize="mini" @click="submitJob(v)">上传</fui-button> |
|
|
btnSize="mini" @click="submitJob(v)">上传</fui-button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view style="color: #fff;padding: 10rpx;">时间:{{v.create_time}}</view> |
|
|
<view style="color: #fff;padding: 10rpx;">时间:{{$util.formatToDateTime(v.created_at, "Y-m-d H:i")}}</view> |
|
|
<view class="multi-line-ellipsis" v-html="v.content_text"> |
|
|
<view style="color: #fff;padding: 10rpx;">类型:{{v.content_type == 1 ? '图片' : (v.content_type == 2 ? '视频':'文本')}}</view> |
|
|
|
|
|
<view class="description"> |
|
|
|
|
|
{{v.description}} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 已提交的作业列表--> |
|
|
<view class="item" v-for="(v,k) in assignmentsList" :key="k" @click="openViewWorkDetails(v)"> |
|
|
<view class="item" v-for="(v,k) in assignmentsList" :key="k" @click="openViewWorkDetails(v)"> |
|
|
<view class="multi-line-ellipsis text-style" v-html="v.content_text"></view> |
|
|
<view class="box"> |
|
|
<view style="width: 92%;margin: auto;border-radius: 15rpx;" v-if="v.student_file"> |
|
|
<view class="description"> |
|
|
<video v-if="v.student_file_type == 2" style="width: 100%;border-radius: 15rpx;" :src="$util.img(v.student_file)"></video> |
|
|
描述:{{v.description}} |
|
|
<image v-else style="width: 100%;border-radius: 15rpx;" :src="$util.img(v.student_file)" mode="aspectFit"></image> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="content_box" v-if="v.content_text"> |
|
|
|
|
|
<video class="video" v-if="v.content_type == 2" :src="v.content_text"></video> |
|
|
|
|
|
|
|
|
|
|
|
<image class="image" v-else-if="v.content_type == 1" :src="v.content_text" mode="aspectFit"></image> |
|
|
|
|
|
|
|
|
|
|
|
<view class="text" v-else-if="v.content_type == 3" >作业内容:{{ v.content_text }}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
@ -303,9 +314,10 @@ |
|
|
let data = { |
|
|
let data = { |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
status: '2',//1=未提交,2=已提交,3=已批改 |
|
|
resources_id: this.member_info.id, |
|
|
|
|
|
status: '3',//1待批改 2未提交 3已提交 |
|
|
} |
|
|
} |
|
|
let res = await memberApi.assignmentsList(data) |
|
|
let res = await apiRoute.xy_assignment(data) |
|
|
if(res.code != 1){ |
|
|
if(res.code != 1){ |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: res.msg, |
|
|
title: res.msg, |
|
|
@ -322,9 +334,10 @@ |
|
|
let data = { |
|
|
let data = { |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 1, |
|
|
limit: 1, |
|
|
status: '1',//1=未提交,2=已提交,3=已批改 |
|
|
resources_id: this.member_info.id, |
|
|
|
|
|
status: '2',//状态 1待批改 2未提交 3已提交 |
|
|
} |
|
|
} |
|
|
let res = await memberApi.assignmentsList(data) |
|
|
let res = await apiRoute.xy_assignment(data) |
|
|
if(res.code != 1){ |
|
|
if(res.code != 1){ |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: res.msg, |
|
|
title: res.msg, |
|
|
@ -569,6 +582,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.multi-line-ellipsis { |
|
|
.multi-line-ellipsis { |
|
|
|
|
|
width: 100%; |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
padding: 5rpx 10rpx; |
|
|
padding: 5rpx 10rpx; |
|
|
display: -webkit-box; |
|
|
display: -webkit-box; |
|
|
@ -779,7 +793,7 @@ |
|
|
|
|
|
|
|
|
.after-class-con { |
|
|
.after-class-con { |
|
|
width: 92%; |
|
|
width: 92%; |
|
|
height: 246rpx; |
|
|
//height: 246rpx; |
|
|
background-color: #404045; |
|
|
background-color: #404045; |
|
|
border-radius: 20rpx; |
|
|
border-radius: 20rpx; |
|
|
margin: 15rpx auto; |
|
|
margin: 15rpx auto; |
|
|
@ -791,9 +805,11 @@ |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
justify-content: space-between; |
|
|
padding: 20rpx; |
|
|
padding: 20rpx; |
|
|
height: 95%; |
|
|
|
|
|
width: 100%; |
|
|
width: 100%; |
|
|
align-content: space-around; |
|
|
align-content: space-around; |
|
|
|
|
|
.description{ |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.pic { |
|
|
.pic { |
|
|
@ -801,4 +817,33 @@ |
|
|
height: 144rpx; |
|
|
height: 144rpx; |
|
|
border-radius: 50%; |
|
|
border-radius: 50%; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.item{ |
|
|
|
|
|
padding: 40rpx; |
|
|
|
|
|
.box{ |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
.description{ |
|
|
|
|
|
} |
|
|
|
|
|
.content_box{ |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
margin: auto; |
|
|
|
|
|
margin-top: 20rpx; |
|
|
|
|
|
border-radius: 15rpx; |
|
|
|
|
|
.video{ |
|
|
|
|
|
border: 1px solid red; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
border-radius: 15rpx; |
|
|
|
|
|
} |
|
|
|
|
|
.image{ |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
border-radius: 15rpx; |
|
|
|
|
|
} |
|
|
|
|
|
.text{ |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |