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.
105 lines
5.3 KiB
105 lines
5.3 KiB
<swiper current="{{pageIndex}}" duration="0" style="height:{{fragment}}rpx">
|
|
<swiper-item catchtouchmove="stopTouchMove">
|
|
<article id="{{TabList[0].value}}" customHeight="{{customHeight}}" customWidth="{{customWidth}}" height="{{fragment}}" StatusBar="{{StatusBar}}" city-name="{{cityName}}" bind:click="onAgentClick"/>
|
|
</swiper-item>
|
|
<swiper-item catchtouchmove="stopTouchMove">
|
|
<moment id="{{TabList[1].value}}" customHeight="{{customHeight}}" customWidth="{{customWidth}}" height="{{fragment}}" StatusBar="{{StatusBar}}" safeBottom="{{safeBottom}}" city-name="{{cityName}}" bind:picker="onPicker"/>
|
|
</swiper-item>
|
|
<swiper-item catchtouchmove="stopTouchMove">
|
|
<agent id="{{TabList[2].value}}" customHeight="{{customHeight}}" customWidth="{{customWidth}}" height="{{fragment}}" StatusBar="{{StatusBar}}" city-list="{{cityList}}" bind:region="onRegionList" bind:picker="onPicker"/>
|
|
</swiper-item>
|
|
<swiper-item catchtouchmove="stopTouchMove">
|
|
<home id="{{TabList[3].value}}" height="{{fragment}}"/>
|
|
</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" mode="aspectFit">
|
|
<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" />
|
|
|
|
<wux-popup position="bottom" visible="{{ visible2 }}" mask="{{ true }}" bind:close="onClose">
|
|
<view class="flex flex-justify" style="height: 90rpx;border-bottom: 1rpx solid #f3f3f3;">
|
|
<view style="width: 120rpx;"></view>
|
|
<view class="text-black text-sg text-bold">选择城市</view>
|
|
<view class="text-gray text-df" hover-class="button--hover" style="width: 120rpx;line-height: 90rpx;" bindtap="onClose">取消</view>
|
|
</view>
|
|
<view class="flex flex-justify" style="padding: 24rpx 32rpx 0rpx 32rpx;" wx:if="{{historyList.length}}">
|
|
<view class="text-black text-df text-bold">历史选择</view>
|
|
<text class="cuIcon-delete" style="font-size: 17px" bindtap="clearHistory"></text>
|
|
</view>
|
|
<view class="bg-white" style="padding: 24rpx;" wx:if="{{historyList.length}}">
|
|
<wux-grids col="4" bordered="{{ false }}">
|
|
<wux-grid wx:for="{{historyList}}" wx:key="index" hover-class="none">
|
|
<view style="width: 160rpx;margin-bottom: 16rpx;">
|
|
<wux-button outline="{{cityId != item.cityId}}" block type="{{cityId == item.cityId ? 'positive' : 'stable'}}" size="city" data-id="{{item.cityId}}" bind:click="clickCity">{{item.cityName}}</wux-button>
|
|
</view>
|
|
</wux-grid>
|
|
</wux-grids>
|
|
</view>
|
|
<view class="flex flex-justify" style="padding: 24rpx 32rpx 0rpx 32rpx;">
|
|
<view class="text-black text-df text-bold">全部城市</view>
|
|
</view>
|
|
<view class="bg-white" style="padding: 24rpx;">
|
|
<wux-grids col="4" bordered="{{ false }}">
|
|
<wux-grid wx:for="{{cityList}}" wx:key="index" hover-class="none">
|
|
<view style="width: 160rpx;margin-bottom: 16rpx;">
|
|
<wux-button outline="{{cityId != item.cityId}}" block type="{{cityId == item.cityId ? 'positive' : 'stable'}}" size="city" data-id="{{item.cityId}}" data-index="{{index}}" bind:click="clickCity">{{item.cityName}}</wux-button>
|
|
</view>
|
|
</wux-grid>
|
|
</wux-grids>
|
|
</view>
|
|
</wux-popup>
|
|
|
|
<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>
|