|
@@ -143,10 +143,9 @@ function handleGoodjob() {
|
|
|
}
|
|
|
|
|
|
function isShowHomework() {
|
|
|
- // return props.type === 'kclx' && detail.value?.tmz_zy
|
|
|
- return true
|
|
|
+ return props.type === 'mszy_zj'
|
|
|
}
|
|
|
-
|
|
|
+isShowHomework()
|
|
|
function routerToHomework() {
|
|
|
console.log('routerToHomework')
|
|
|
sessionStorage.setItem('tmp_detail', JSON.stringify(detail.value))
|
|
@@ -218,13 +217,13 @@ function routerToLearningGuide() {
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div v-if="isShowHomework" class="flex items-center justify-between px-14px mb-2" @click="routerToHomework">
|
|
|
+ <div v-if="isShowHomework()" class="flex items-center justify-between px-14px mb-2" @click="routerToHomework">
|
|
|
<div class="text-16px font-bold">
|
|
|
作业 & 答案
|
|
|
</div>
|
|
|
<van-icon name="arrow" size="18" />
|
|
|
</div>
|
|
|
- <div v-if="isShowHomework" class="flex items-center justify-between px-14px mb-2" @click="routerToLearningGuide">
|
|
|
+ <div v-if="isShowHomework()" class="flex items-center justify-between px-14px mb-2" @click="routerToLearningGuide">
|
|
|
<div class="text-16px font-bold">
|
|
|
导学案
|
|
|
</div>
|