|
|
<template>
|
|
|
<div class="cate-res">
|
|
|
<div class="cate-res" :class="{'fix-ios-top': needFix}">
|
|
|
<brand-search></brand-search>
|
|
|
<tab :page="page"></tab>
|
|
|
<tab :page="page" :fix-ios-top="true"></tab>
|
|
|
<resources :content-code="contentCode"></resources>
|
|
|
</div>
|
|
|
</template>
|
...
|
...
|
@@ -19,12 +19,17 @@ |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.fix-ios-top {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
</style>
|
|
|
<script>
|
|
|
import contentCode from 'content-code';
|
|
|
import qs from 'yoho-qs';
|
|
|
import cookie from 'yoho-cookie';
|
|
|
|
|
|
import yoho from 'yoho';
|
|
|
import tab from 'channel/tab.vue';
|
|
|
import resources from 'component/resources/index.vue';
|
|
|
import brandSearch from 'channel/brand-search.vue';
|
...
|
...
|
@@ -36,13 +41,19 @@ |
|
|
data() {
|
|
|
return {
|
|
|
page: 'cate',
|
|
|
contentCode: contentCode.cate[detaultChannel]
|
|
|
contentCode: contentCode.cate[detaultChannel],
|
|
|
needFix: false
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
tab,
|
|
|
resources,
|
|
|
brandSearch
|
|
|
},
|
|
|
created() {
|
|
|
if (yoho.isiOS) {
|
|
|
this.needFix = true;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script> |
...
|
...
|
|