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.
74 lines
3.0 KiB
74 lines
3.0 KiB
<swiper current="{{pageIndex}}" duration="0" style="height:{{fragment}}rpx">
|
|
<swiper-item catchtouchmove="stopTouchMove">
|
|
<article id="{{TabList[0].value}}" city-name="{{cityName}}" bind:click="onAgentClick"/>
|
|
</swiper-item>
|
|
<swiper-item catchtouchmove="stopTouchMove">
|
|
<mall id="{{TabList[1].value}}" city-name="{{cityName}}" bind:calendar="onCalendarClick"/>
|
|
</swiper-item>
|
|
<swiper-item catchtouchmove="stopTouchMove">
|
|
<agent id="{{TabList[2].value}}" />
|
|
</swiper-item>
|
|
<swiper-item catchtouchmove="stopTouchMove">
|
|
<home id="{{TabList[3].value}}" />
|
|
</swiper-item>
|
|
</swiper>
|
|
|
|
<view class="cu-bar tabbar bg-white shadow foot"
|
|
style="height:{{100 + safeBottom}}rpx;padding-bottom:{{safeBottom}}rpx">
|
|
<view wx:for="{{TabList}}" wx:key="index" class="action" bindtap="onNavChange" data-tab="{{item.index}}">
|
|
<view class="cuIcon-cu-image">
|
|
<image mode="aspectFill" src="{{tabImage(pageIndex, item.index)}}"></image>
|
|
</view>
|
|
<view class="{{pageIndex == item.index?'text-blue':'text-gray'}}">{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
<wux-popup wux-class="wux-landscape" wux-content-class="wux-landscape__popup" wux-body-class="wux-landscape__popup-body"
|
|
hasHeader="{{ false }}" hasFooter="{{ false }}" visible="{{ landInfo }}" mask="{{ true }}" bind:close="onClose">
|
|
<view class="wux-close" bindtap="onClose" wx:if="{{visible}}">
|
|
<text class="cuIcon-roundclose text-white" style="font-size:64rpx"></text>
|
|
</view>
|
|
<view class="wux-landscape__inner">
|
|
<wux-image width="{{654}}" height="{{680}}" nuit="{{'rpx'}}" src="{{landInfo.picUrl}}"
|
|
bind:load="onImageLoad" bind:click="onImageClick">
|
|
<view class="flex flex-center" slot="loading" style="height:654rpx;width:680rpx">
|
|
<text class="icon--refresher"></text>
|
|
</view>
|
|
</wux-image>
|
|
<view class="text-df" style="margin-top:16rpx" wx:if="{{visible && landInfo.ruleRedirectInfo}}">
|
|
<text style="color:#FFEF93;padding:12rpx 24rpx;" catchtap="toRule">活动规则</text>
|
|
</view>
|
|
</view>
|
|
</wux-popup>
|
|
|
|
<wux-dialog id="wux-dialog" />
|
|
<wux-date-picker visible="{{ show }}" controlled mode="date" min-date="{{minDate}}" max-date="{{maxDate}}" value="{{ calendar }}" lang="zh_CN" bind:confirm="onConfirm" bind:visibleChange="onVisibleChange" />
|
|
|
|
|
|
<wxs module="tabImage">
|
|
function tabImage(tabIndex, index) {
|
|
if (index == 0) {
|
|
if(tabIndex == index){
|
|
return '/assets/tabs/tab-host-blue.png'
|
|
}
|
|
return '/assets/tabs/tab-host-gray.png'
|
|
} else if (index == 1) {
|
|
if(tabIndex == index){
|
|
return '/assets/tabs/tab-infi-blue.png'
|
|
}
|
|
return '/assets/tabs/tab-infi-gray.png'
|
|
} else if (index == 2) {
|
|
if(tabIndex == index){
|
|
return '/assets/tabs/tab-trans-blue.png'
|
|
}
|
|
return '/assets/tabs/tab-trans-gray.png'
|
|
} else if (index == 3) {
|
|
if(tabIndex == index){
|
|
return '/assets/tabs/tab-self-blue.png'
|
|
}
|
|
return '/assets/tabs/tab-self-gray.png'
|
|
}
|
|
return ''
|
|
}
|
|
module.exports = tabImage
|
|
</wxs>
|