|
@@ -32,8 +32,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bottom_btn">
|
|
|
- <view class="submit_btn defult" @click="showShareImage">生成分享图</view>
|
|
|
- <view class="submit_btn" @click="_continue">{{ type == "exam" ? "重新练习" : "继续课后评测" }}</view>
|
|
|
+ <view class="submit_btn defult" v-if="reportInfo?.is_self" @click="showShareImage">生成分享图</view>
|
|
|
+ <view class="submit_btn start_learn" v-if="!reportInfo?.is_self" @click="toLearn">开启我的学习计划</view>
|
|
|
+ <view class="submit_btn" v-if="reportInfo?.is_self" @click="_continue">{{ type == "exam" ? "重新练习" : "继续课后评测" }}</view>
|
|
|
</view>
|
|
|
<uni-popup ref="filePathPopup" type="center" class="center_popup" >
|
|
|
<view class="cover_black" :style="windowWidth">
|
|
@@ -62,6 +63,7 @@ export default {
|
|
|
isanswer_total: 0,
|
|
|
answer_total: 0,
|
|
|
get_score: 0,
|
|
|
+ is_self:1,
|
|
|
},
|
|
|
filePath:"",
|
|
|
queston_list: [],
|
|
@@ -104,6 +106,18 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ toLearn(){
|
|
|
+ if( !this.reportInfo?.course_id ) {
|
|
|
+ uni.showToast({
|
|
|
+ icon:"none",
|
|
|
+ title:"无对应课程ID",
|
|
|
+ })
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pages/video/detail?id=${this.reportInfo.course_id}`,
|
|
|
+ });
|
|
|
+ },
|
|
|
showShareImage(){
|
|
|
this.$http.request(`api/${this.type}_report_share_image/get_after`, {course_id: this.reportInfo.course_id,record_id:this.record_id,scene:`type=${this.type}&record_id=${this.record_id}`}).then((callback) => {
|
|
|
if( callback.code == 'success'){
|
|
@@ -298,6 +312,10 @@ export default {
|
|
|
color: #333;
|
|
|
}
|
|
|
}
|
|
|
+ .submit_btn.start_learn{
|
|
|
+ width: 90%;
|
|
|
+ margin: 0rpx auto;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.center_popup{
|