You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
3.0 KiB
84 lines
3.0 KiB
<view class="m-title">{{pageTitle}}</view>
|
|
|
|
<view class="g-page"
|
|
wx:if="{{ gardenTabIsLoaded }}"
|
|
hidden="{{currentTab !== 'garden'}}">
|
|
<tab-index id="garden"></tab-index>
|
|
</view>
|
|
<view class="g-page"
|
|
wx:if="{{ eventTabIsLoaded }}"
|
|
hidden="{{currentTab !== 'event'}}">
|
|
<tab-event id="event"></tab-event>
|
|
</view>
|
|
<view class="g-page"
|
|
wx:if="{{ issueTabIsLoaded }}"
|
|
hidden="{{currentTab !== 'issue'}}">
|
|
<tab-discussion id="issue"></tab-discussion>
|
|
</view>
|
|
<view class="g-page"
|
|
wx:if="{{ groupTabIsLoaded }}"
|
|
hidden="{{currentTab !== 'group'}}">
|
|
<tab-group bind:switchTab="handleCptSwitchTab" id="group"></tab-group>
|
|
</view>
|
|
<view class="g-page"
|
|
wx:if="{{ heartTabIsLoaded }}"
|
|
hidden="{{currentTab !== 'heart'}}">
|
|
<tab-heart bind:switchTab="handleCptSwitchTab" id="heart"></tab-heart>
|
|
</view>
|
|
<view class="g-page"
|
|
wx:if="{{ serviceTabIsLoaded }}"
|
|
hidden="{{currentTab !== 'service'}}">
|
|
<tab-service bind:switchTab="handleCptSwitchTab" id="service"></tab-service>
|
|
</view>
|
|
<view class="g-page"
|
|
wx:if="{{ mineTabIsLoaded }}"
|
|
hidden="{{currentTab !== 'mine'}}">
|
|
<tab-mine bind:switchTab="handleCptSwitchTab" id="mine"></tab-mine>
|
|
</view>
|
|
|
|
|
|
<view wx:if="{{ tabList.length>0 }}" class="m-nav_tabs a-fade-in-up">
|
|
<!-- <image class="bg" wx:if="{{tabStyle===1}}" src="/assets/images/footer-bg.png" mode="aspectFill"></image> -->
|
|
<view class="tab-item {{currentTab == item.barKey ? 'z-active' : '' }}"
|
|
wx:for="{{ tabList }}"
|
|
wx:key="barKey"
|
|
wx:for-index="idx"
|
|
wx:for-item="item"
|
|
data-current="{{ item.barKey }}"
|
|
bindtap="handleTapTab">
|
|
<view class="tab-text"
|
|
wx:if="{{!(tabStyle===1 && homeIndex==idx)}}"
|
|
data-current="{{ item.barKey }}"
|
|
src="{{currentTab == item.barKey ? item.selectedIconPath : item.iconPath }}">{{ item.barName }}</view>
|
|
|
|
<image class="iconPath {{tabStyle===1 && homeIndex==idx ?'z-home2':''}}"
|
|
mode="aspectFit"
|
|
data-current="{{ item.barKey }}"
|
|
wx:if="{{ tabStyle===1 && homeIndex===idx }}"
|
|
src="{{ currentTab == item.barKey ? item.selectedIconPath : item.iconPath }}"></image>
|
|
<image class="iconPath"
|
|
mode="aspectFit"
|
|
data-current="{{ item.barKey }}"
|
|
wx:elif="{{ item.iconPath }}"
|
|
src="{{currentTab == item.barKey ? item.selectedIconPath : item.iconPath }}"></image>
|
|
<!-- <image class="iconPath"
|
|
data-current="{{ item.barKey }}"
|
|
wx:else
|
|
src="{{currentTab == item.barKey ? '/assets/images/'+item.barKey+'Selected.png' : '/assets/images/'+item.barKey+'.png' }}"></image> -->
|
|
</view>
|
|
</view>
|
|
|
|
<loading showed="{{!iniLoaded}}"></loading>
|
|
<modal id="modal"></modal>
|
|
|
|
|
|
<view class="m-guide"
|
|
wx:if="{{guide.pic && guide.cd && (guide.currentCd!=0 || !iniLoaded)}}">
|
|
<image src="{{guide.pic}}" mode="aspectFill"></image>
|
|
|
|
<view class="hint">
|
|
<view class="cd">{{guide.currentCd}}s</view>
|
|
<view class="btn {{!iniLoaded ? 'z-disabled' : ''}}"
|
|
bind:tap="skipGuide">跳过</view>
|
|
</view>
|
|
</view>
|