Commit 3e90ffba by 冷斌

fix bug

parent d3e9f5b5
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
<template v-if="tab == 1"> <template v-if="tab == 1">
<div v-for="(item, index) in options[1].items" :key="index" class="layout_v collect_question_item"> <div v-for="(item, index) in options[1].items" :key="index" class="layout_v collect_question_item">
<span class="text_14_600 color_333333">[班级课程]透视理论01——认识透视[班级课程]透视理论01——认识透视</span> <span class="text_14_600 color_333333">{{item.exams_info.exams_paper_title}}</span>
<div class="layout_h_b"> <div class="layout_h_b">
<span class="text_14_600 color_FF3B3B">¥100</span> <span class="text_14_600 color_FF3B3B">{{(item.exams_info.price == 0) ? '免费' : ('¥' + item.exams_info.price) }}</span>
<div class="collect_view_button layout_center text_12_400 color_white">查看</div> <div @click="onShow2(item)" class="collect_view_button layout_center text_12_400 color_white">查看</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -91,8 +91,8 @@ ...@@ -91,8 +91,8 @@
window.location.href = url; window.location.href = url;
}, },
onShow2: function(item) { onShow2: function(item) {
let url = "{:U('course/Video/view')}" let url = "{:U('exams/index/examsroom')}" + "&paper_id=" + item.exams_info.exams_paper_id + "&joinType=1"
window.location.href = url.replace(/\[.*?\]/g, item.id) window.location.href = url;
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment