update
This commit is contained in:
@@ -33,7 +33,7 @@ const list = computed(() => data.children.material[current.value].comment?.flatM
|
||||
|
||||
<template v-if="true">
|
||||
<view class="block"
|
||||
v-if="data.material_type?.title_limit > 0 && data.children.material[current].title.length > 0">
|
||||
v-if="data.material_type?.title_limit > 0 && data.children.material[current].title?.length > 0">
|
||||
<view class="block-title">
|
||||
标题:
|
||||
</view>
|
||||
@@ -67,7 +67,7 @@ const list = computed(() => data.children.material[current.value].comment?.flatM
|
||||
:show-s-y="home"></x-square-carousel-image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="block" v-if="list.length > 0">
|
||||
<view class="block" v-if="list?.length > 0">
|
||||
<view class="block-title">
|
||||
评论区案例:
|
||||
</view>
|
||||
|
||||
@@ -112,24 +112,26 @@ onLoad((options) => {
|
||||
});
|
||||
|
||||
const init = () => {
|
||||
let ALGL = 0;
|
||||
let HTYQ = 0;
|
||||
let SJYQ = 0;
|
||||
nextTick(() => {
|
||||
let ALGL = 0;
|
||||
let HTYQ = 0;
|
||||
let SJYQ = 0;
|
||||
|
||||
const mainDetailBox = document.querySelector('#mainDetailBox');
|
||||
const taskHeader = document.querySelector('#taskHeader');
|
||||
const fbyq = document.querySelector('#FBYQ');
|
||||
const htyq = document.querySelector('#HTYQ');
|
||||
mainDetailWidth.value = mainDetailBox.clientWidth;
|
||||
ALGL += taskHeader.clientHeight + 12.5;
|
||||
HTYQ += ALGL + mainDetailBox.clientHeight + fbyq.clientHeight + 25;
|
||||
SJYQ += HTYQ + htyq.clientHeight + 12.5;
|
||||
const mainDetailBox = document.querySelector('#mainDetailBox');
|
||||
const taskHeader = document.querySelector('#taskHeader');
|
||||
const fbyq = document.querySelector('#FBYQ');
|
||||
const htyq = document.querySelector('#HTYQ');
|
||||
mainDetailWidth.value = mainDetailBox.clientWidth;
|
||||
ALGL += taskHeader.clientHeight + 12.5;
|
||||
HTYQ += ALGL + mainDetailBox.clientHeight + fbyq.clientHeight + 25;
|
||||
SJYQ += HTYQ + htyq.clientHeight + 12.5;
|
||||
|
||||
menuTabs[0].value = ALGL;
|
||||
menuTabs[1].value = HTYQ;
|
||||
menuTabs[2].value = SJYQ;
|
||||
menuTabs[0].value = ALGL;
|
||||
menuTabs[1].value = HTYQ;
|
||||
menuTabs[2].value = SJYQ;
|
||||
|
||||
if (home.value) showInitModal.value = true;
|
||||
if (home.value) showInitModal.value = true;
|
||||
})
|
||||
}
|
||||
|
||||
const scrollState = reactive({
|
||||
|
||||
Reference in New Issue
Block a user