| | |
| | | <template> |
| | | <!-- <view v-if="isshowtype"> |
| | | <indexnewPage></indexnewPage> |
| | | </view> --> |
| | | <view class="index-wrapper wrapperLayer borderBox"> |
| | | <view v-if="isshowtype"> |
| | | <indexnewPage :Topheight="Topheight" :recomendType="recomendType" :canrefush='canrefush' :fixedClass='fixedClass'></indexnewPage> |
| | | </view> |
| | | <view v-else class="index-wrapper wrapperLayer borderBox"> |
| | | <view class="fixed-container colCen borderBox" :style="'background:'+ (categoryCurrent>0?'#EE1B14':(scrollTop>30?'#EE1B14;':bannerColor) +';')"> |
| | | <view class="topbarbox"></view> |
| | | <view class="headerSearch-container rowCenBet borderBox"> |
| | |
| | | this.recomendType = open_like_recommend == "" ? 1 : open_like_recommend; |
| | | }, |
| | | onReady() { |
| | | console.log("获取高低") |
| | | this.getTopheight() |
| | | }, |
| | | watch: {}, |
| | |
| | | stopswiper(){ |
| | | this.canrefush = true |
| | | }, |
| | | |
| | | // 路由跳转 |
| | | goPath(url) { |
| | | if (url == 'search') { |
| | |
| | | getTopheight() { |
| | | // 获取顶部高度 |
| | | uni.createSelectorQuery().in(this).select('.fixed-container').boundingClientRect(data => { |
| | | console.log(data.height+":----------------"); |
| | | this.Topheight = data.height |
| | | }).exec(); |
| | | }, |