diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 52af9596..02274432 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -10,11 +10,11 @@ @@ -46,19 +46,19 @@ - - - - - - @@ -100,7 +100,7 @@ {{item.label}} - statusBarHeight + 'px') - + const activeTagPop = ref([]) - + const chooseTagPop = (item) => { if(!item.value){ activeTagPop.value = [] @@ -210,7 +210,7 @@ import { onShow } from "@dcloudio/uni-app" } const showTypeName = computed(()=>{ return (activeTab.value === '全部' && activeCourseType.value === '') || (activeTab.value === '生产线' && activePrdlineType.value === '') - }) + }) const tagsList = computed(()=>{ let _arr = [] tagsTree.value.forEach(t=>{ @@ -221,7 +221,7 @@ import { onShow } from "@dcloudio/uni-app" let _reqListN = _arr.filter(t=>t.required === "N") return _reqList.concat(_reqListN) }) - + const courseListBase = ref([]) const courseList = computed(()=>{ if(activeTag.value.length > 0 && !!activeTag.value[0]){ @@ -244,10 +244,10 @@ import { onShow } from "@dcloudio/uni-app" }) // 整理树形 const courseListTree = computed(()=>{ - let _arr = activeTab.value === '全部'? courseTypeList.value + let _arr = activeTab.value === '全部'? courseTypeList.value : activeTab.value === '生产线'? coursePrdlineList.value: [] let _idKey = activeTab.value === '全部'? 'tagId': 'prdLineId' - + let _tree = _arr.map(t=>{ let _children = t.children||[] return { @@ -397,7 +397,7 @@ import { onShow } from "@dcloudio/uni-app" } } .input-view{ - + } .tabs-view{ background: #ffffff; diff --git a/src/pages/courseDetail/components/comment.vue b/src/pages/courseDetail/components/comment.vue index fe673655..befb52ba 100644 --- a/src/pages/courseDetail/components/comment.vue +++ b/src/pages/courseDetail/components/comment.vue @@ -121,9 +121,6 @@ const popup = ref(null); const popup_input_bottom = ref('0px'); - - const inputValue = ref(''); - const placeholder = ref(''); const message_list = reactive([]); const status = ref(''); // loadmore - 加载前,loading - 加载中,nomore - 没有数据 const limit = 20; @@ -182,7 +179,7 @@ }; const getData = (from = '') => { - if (from == 'submit') { + if (from === 'submit') { status.value = ''; total.value = -1; page.value = 1; diff --git a/src/pages/courseDetail/components/introduce.vue b/src/pages/courseDetail/components/introduce.vue index a2cbd135..ed90ad6a 100644 --- a/src/pages/courseDetail/components/introduce.vue +++ b/src/pages/courseDetail/components/introduce.vue @@ -48,7 +48,6 @@