|
|
@ -1,5 +1,3 @@ |
|
|
<wxs module="index" src="./index.wxs"></wxs> |
|
|
|
|
|
|
|
|
|
|
|
<swiper current="{{pageIndex}}" duration="0" style="height:{{fragment}}rpx"> |
|
|
<swiper current="{{pageIndex}}" duration="0" style="height:{{fragment}}rpx"> |
|
|
<swiper-item catchtouchmove="stopTouchMove"> |
|
|
<swiper-item catchtouchmove="stopTouchMove"> |
|
|
<article id="{{TabList[0].value}}" city-name="{{cityName}}" bind:click="onAgentClick"/> |
|
|
<article id="{{TabList[0].value}}" city-name="{{cityName}}" bind:click="onAgentClick"/> |
|
|
@ -19,7 +17,7 @@ |
|
|
style="height:{{100 + safeBottom}}rpx;padding-bottom:{{safeBottom}}rpx"> |
|
|
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 wx:for="{{TabList}}" wx:key="index" class="action" bindtap="onNavChange" data-tab="{{item.index}}"> |
|
|
<view class="cuIcon-cu-image"> |
|
|
<view class="cuIcon-cu-image"> |
|
|
<image mode="aspectFill" src="{{index.tabImage(pageIndex, item.index)}}"></image> |
|
|
|
|
|
|
|
|
<image mode="aspectFill" src="{{tabImage(pageIndex, item.index)}}"></image> |
|
|
</view> |
|
|
</view> |
|
|
<view class="{{pageIndex == item.index?'text-blue':'text-gray'}}">{{item.name}}</view> |
|
|
<view class="{{pageIndex == item.index?'text-blue':'text-gray'}}">{{item.name}}</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -43,4 +41,32 @@ |
|
|
</view> |
|
|
</view> |
|
|
</wux-popup> |
|
|
</wux-popup> |
|
|
|
|
|
|
|
|
<wux-dialog id="wux-dialog" /> |
|
|
|
|
|
|
|
|
<wux-dialog id="wux-dialog" /> |
|
|
|
|
|
|
|
|
|
|
|
<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> |