|
@@ -218,13 +218,18 @@ export default {
|
|
|
return this.pageData?.hot && this.pageData?.hot.slice(5)
|
|
|
},
|
|
|
adHeight () {
|
|
|
- return vw2px(px2viewport(80, 'vw', {
|
|
|
+ const setheight = vw2px(px2viewport(80, 'vw', {
|
|
|
viewportWidth: 1224,
|
|
|
unitPrecision: 3
|
|
|
}), 'px', {
|
|
|
viewportWidth: document.body.clientWidth,
|
|
|
unitPrecision: 3
|
|
|
})
|
|
|
+ if (setheight === '0px') {
|
|
|
+ return '80px'
|
|
|
+ } else {
|
|
|
+ return setheight
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -347,7 +352,7 @@ export default {
|
|
|
getSearchTag().then(data => {
|
|
|
const res = data.data
|
|
|
if (res && res.error_code === 0) {
|
|
|
- this.wordModel = res.data.map((item, index) => ({ value: item, active: index === 0 ? true : false }))
|
|
|
+ this.wordModel = res.data.map((item, index) => ({ value: item, active: index === 0 }))
|
|
|
this.$nextTick(() => {
|
|
|
this.checkIsOneRow()
|
|
|
})
|