赋能案例bug修改
This commit is contained in:
parent
96ef90a216
commit
2218e034bd
|
@ -108,6 +108,11 @@
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
let val = router.currentRoute.value.query.val
|
let val = router.currentRoute.value.query.val
|
||||||
|
const scrollTop = ref(0)
|
||||||
|
let dataFrom = ref({})
|
||||||
|
const domArr = ref([])
|
||||||
|
const selectNow = ref('')
|
||||||
|
let tabName = ref('案例背景')
|
||||||
console.log('val', val)
|
console.log('val', val)
|
||||||
//图片样式切换
|
//图片样式切换
|
||||||
function pictureFormat(name) {
|
function pictureFormat(name) {
|
||||||
|
@ -122,9 +127,9 @@
|
||||||
val = name
|
val = name
|
||||||
router.push({ path: 'AssignCaseDetailPage', query: { val } })
|
router.push({ path: 'AssignCaseDetailPage', query: { val } })
|
||||||
}
|
}
|
||||||
let dataFrom = ref({})
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
val = router.currentRoute.value.query.val
|
val = router.currentRoute.value.query.val
|
||||||
|
tabName.value = '案例背景'
|
||||||
if (val == '道路保洁监管场景') {
|
if (val == '道路保洁监管场景') {
|
||||||
dataFrom.value = {
|
dataFrom.value = {
|
||||||
name: '道路保洁监管场景',
|
name: '道路保洁监管场景',
|
||||||
|
@ -216,7 +221,6 @@
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
)
|
)
|
||||||
let tabName = ref('案例背景')
|
|
||||||
//tab点击事件
|
//tab点击事件
|
||||||
const tabSwitch = (item, index) => {
|
const tabSwitch = (item, index) => {
|
||||||
tabName.value = item.title
|
tabName.value = item.title
|
||||||
|
@ -258,13 +262,9 @@
|
||||||
view.style.top = '220px'
|
view.style.top = '220px'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const scrollTop = ref(0)
|
|
||||||
const domArr = ref([])
|
|
||||||
const selectNow = ref('')
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// console.clear()
|
// console.clear()
|
||||||
window.addEventListener('scroll', () => {
|
window.addEventListener('scroll', () => {
|
||||||
debugger
|
|
||||||
domArr.value = document.querySelectorAll(
|
domArr.value = document.querySelectorAll(
|
||||||
'.assign-case-detail-page-content-center-card'
|
'.assign-case-detail-page-content-center-card'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue