|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div :class="mobile ? 'mobileMain' : ''" :style="{marginTop: showWxHeader ? '64px' : '0'}">
|
|
|
+ <div :class="mobile ? 'mobileMain' : ''" :style="{marginTop: mainMarginTop}">
|
|
|
<div class="works-wrapper" v-if="!mobile" v-loading="firstLoad">
|
|
|
<div class="works-category">
|
|
|
<div class="works-category-one">
|
|
|
@@ -272,6 +272,15 @@ export default {
|
|
|
showWxHeader () {
|
|
|
return !this.deviceType.app && !this.isWeixinApp &&
|
|
|
(this.deviceType.android || this.deviceType.ios)
|
|
|
+ },
|
|
|
+ mainMarginTop () {
|
|
|
+ if (this.mobile && this.showWxHeader) {
|
|
|
+ return '64px'
|
|
|
+ } else if (this.mobile) {
|
|
|
+ return '0px'
|
|
|
+ } else {
|
|
|
+ return '20px'
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
async asyncData ({...params}) {
|