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
2.9 KiB
84 lines
2.9 KiB
<wxs module="tools"> |
|
var setTime = function (str, type) { |
|
var timer = str.split('-'); |
|
if (type === 'year') { |
|
return timer[0]; |
|
} else { |
|
return timer[1]; |
|
} |
|
}; |
|
module.exports = { setTime: setTime }; |
|
</wxs> |
|
<view class="pages"> |
|
<mp-navigation-bar ext-class="set-bar" title="日历" back="{{false}}"></mp-navigation-bar> |
|
<view class="main"> |
|
<!-- 日历部分 --> |
|
<view class="top"> |
|
<view class="screening"> |
|
<view class="address"> |
|
<picker mode="region" value="{{region}}" bindchange="bindAddressChange"> |
|
<view class="picker"> |
|
当前选择 |
|
</view> |
|
</picker> |
|
<text>{{cityName}}</text> |
|
<image class="tag" src="../../assets/images/arrow-down.png"></image> |
|
</view> |
|
|
|
|
|
</view> |
|
<view class="cal-box"> |
|
<image class="cal-back" src="../../assets/images/cal-back.png"></image> |
|
<view class="calendar-box"> |
|
<!-- <calendar bind:callSomeFun="onShow"></calendar> --> |
|
<ui-calendar ex-class="calendar-cm-month" bindtodayFun="todayFun" bindDateChange="bindDateChange" |
|
id='calendarId' bindonDayTap="onCalendarDayTap" auctionCount="{{auctionCount}}" year="{{year}}" |
|
month="{{month}}" listedCount="{{listedCount}}" displayTime="{{calendarDisplayTime}}" |
|
selectedDate="{{calendarSelectedDate}}" displayMonthNum="{{calendarDisplayMonthNum}}" |
|
is-show="{{isCalendarShow}}"></ui-calendar> |
|
</view> |
|
</view> |
|
</view> |
|
<view class="tab "> |
|
<view class="tag_ul"> |
|
<view class="tab-item {{item.id===active?'active':''}}" wx:for="{{tabList}}" wx:for-index="i" wx:for-item="item" |
|
wx:key="id" bindtap="tabDowm" data-id="{{item.id}}"> |
|
<view class="tab-title"> |
|
{{item.name}} ({{item.id == 1?info.length:infoT.length}}) |
|
</view> |
|
<image class="tab-tag" src="../../assets/images/tab-tag.png"></image> |
|
</view> |
|
</view> |
|
|
|
</view> |
|
<!-- 展示部分 --> |
|
<view wx:if="{{active == 1}}"> |
|
<view class="list" wx:if="{{info.length>0}}"> |
|
<view class="item one-title" wx:key="id" wx:for="{{info}}" wx:for-index="id" wx:for-item="item" |
|
bindtap="navigate" data-id="{{item.landListedId}}"> |
|
{{item.landListedId}} |
|
</view> |
|
</view> |
|
<view class="list" wx:if="{{info.length<=0}}"> |
|
<view class="item one-title noText"> |
|
暂无数据 |
|
</view> |
|
</view> |
|
</view> |
|
<view wx:else> |
|
<view class="list" wx:if="{{infoT.length>0}}"> |
|
<view class="item one-title" wx:key="id" wx:for="{{infoT}}" wx:for-index="id" wx:for-item="item" |
|
bindtap="navigate" data-id="{{item.landListedId}}"> |
|
{{item.landListedId}} |
|
</view> |
|
</view> |
|
<view class="list" wx:if="{{infoT.length<=0}}"> |
|
<view class="item one-title noText"> |
|
暂无数据 |
|
</view> |
|
</view> |
|
</view> |
|
|
|
|
|
</view> |
|
</view> |