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