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.
108 lines
6.6 KiB
108 lines
6.6 KiB
<!--pages/activity/index.wxml-->
|
|
<title-header title="活动日历"></title-header>
|
|
<view class="top-fixed-box">
|
|
<view class="acitivity-search-box" hidden="{{type==4}}">
|
|
<picker mode="selector" value="{{area}}" range="{{areas}}" range-key="area_name" bindchange="changeArea">
|
|
<view class="picker">
|
|
<view class="areatext">{{areas[area].area_name}}</view>
|
|
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activity/arrow.png" mode="widthFix"></image>
|
|
</view>
|
|
</picker>
|
|
<view class="my-search-box">
|
|
<view class="iconfont icon-sousuo"></view>
|
|
<input bindinput="changeKeywords" value="{{realKeywords}}" type="text" placeholder="请输入搜索关键字" />
|
|
<view class="search-btn" bindtap="search">搜索</view>
|
|
</view>
|
|
</view>
|
|
<view class="types">
|
|
<view class="type-item" bindtap="changeType" data-type="2">
|
|
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon2{{type==2?'_active':''}}.png" mode="widthFix"></image>
|
|
<view style="{{type==2?'color:#C155E9':''}}">展览</view>
|
|
</view>
|
|
<view class="type-item" bindtap="changeType" data-type="3">
|
|
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon3{{type==3?'_active':''}}.png" mode="widthFix"></image>
|
|
<view style="{{type==3?'color:#358FE4':''}}">景区</view>
|
|
</view>
|
|
<view class="type-item" bindtap="changeType" data-type="4">
|
|
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon4{{type==4?'_active':''}}.png" mode="widthFix"></image>
|
|
<view style="{{type==4?'color:#63B71F':''}}">电影</view>
|
|
</view>
|
|
<view class="type-item" bindtap="changeType" data-type="5">
|
|
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon5{{type==5?'_active':''}}.png" mode="widthFix"></image>
|
|
<view style="{{type==5?'color:#0B898E':''}}">讲座</view>
|
|
</view>
|
|
<view class="type-item" bindtap="changeType" data-type="1">
|
|
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon1{{type==1?'_active':''}}.png" mode="widthFix"></image>
|
|
<view style="{{type==1?'color:#FFB423':''}}">演出</view>
|
|
</view>
|
|
<view class="type-item" bindtap="changeType" data-type="6" style="margin-right:30rpx">
|
|
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activitynew/icon6{{type==6?'_active':''}}.png" mode="widthFix"></image>
|
|
<view style="{{type==6?'color:#54b9ed':''}}">其他</view>
|
|
</view>
|
|
<view style="width:1rpx;flex-shrink:0;height:1rpx"></view>
|
|
</view>
|
|
<view class="date-box" hidden="{{type==4}}">
|
|
<view class="yulan{{isYL?' active':''}}" data-flag="0" bindtap="yulan">预览</view>
|
|
<view class="date-item {{item.times==selectDay?'active':''}}" wx:for="{{weeks}}" bindtap="changeDate" data-times="{{item.times}}">
|
|
<view>{{item.date}}</view>
|
|
<view>周{{item.day}}</view>
|
|
</view>
|
|
<picker mode="date" value="{{date}}" start="1970-01-01" end="2027-09-01" bindchange="bindDateChange">
|
|
<view class="picker calendar-img{{isYL?'':' active'}}">
|
|
<image width="56rpx" height="60rpx" mode="aspectFill" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/activity/calendar{{isYL?'':'1'}}.png"></image>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="activity-list activity-list1">
|
|
<view class="movie-types" wx:if="{{type==4}}">
|
|
<view bindtap="changeMovieType" data-type='1' class="movie-type {{movieType==1?'active':''}}">热映</view>
|
|
<view bindtap="changeMovieType" data-type='2' class="movie-type {{movieType==2?'active':''}}">影院</view>
|
|
<view bindtap="changeMovieType" data-type='3' class="movie-type {{movieType==3?'active':''}}">即将上映</view>
|
|
</view>
|
|
<view class="sort-box" wx:if="{{type==4 && movieType==2}}">
|
|
<view class="{{sort=='distance'?'active':''}}" bindtap="setSort" data-sort="distance">离我最近</view>
|
|
<view class="{{sort=='price'?'active':''}}" bindtap="setSort" data-sort="price">价格最低</view>
|
|
</view>
|
|
<view wx:if="{{list.length>0 && type!=4}}" style="background:#0B898E;padding:1rpx 0">
|
|
<view wx:for="{{list}}" bindtap="gotoDetail" data-item="{{item}}" class="activity-item-out">
|
|
<view class="activity-item">
|
|
<view class="activity-info">
|
|
<view class="activity-title textOver2">{{item.name || item.title}}</view>
|
|
<view>
|
|
<view style="margin-bottom:10rpx">{{item.begin_date}}—{{item.end_date}}</view>
|
|
<view class="textOver2">{{item.detail_address?item.detail_address:""}}</view>
|
|
</view>
|
|
</view>
|
|
<common-image width="320rpx" height='220rpx' src="{{item.post_url || item.cover}}" defaultImage="/images/place3.jpg" mode="aspectFill"></common-image>
|
|
</view>
|
|
<view class="new-tip">{{item.from_platform}}</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{list.length>0 && type==4 && movieType!=2}}">
|
|
<view bindtap="gotoDetail" data-item="{{item}}" class="activity-item activity-item-out" style="margin-top:0" wx:for="{{list}}">
|
|
<common-image width="180rpx" height='180rpx' src="{{item.headimg}}" mode="aspectFill"></common-image>
|
|
<view style="height:180rpx;margin:0;margin-left:20rpx;display:block" class="activity-info">
|
|
<view class="activity-title textOver2" style="margin-bottom:20rpx">{{item.title}}</view>
|
|
<view class="textOver" wx:if="{{item.director}}" style="margin-bottom:10rpx">导演:{{item.director}}</view>
|
|
<view class="textOver2" wx:if="{{item.leading_role}}">主演:{{item.leading_role}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{list.length>0 && type==4 && movieType==2}}">
|
|
<view bindtap="gotoDetail" data-item="{{item}}" class="activity-item activity-item-out" style="margin-top:0;padding:10rpx 20rpx" wx:for="{{list}}">
|
|
<view class="activity-info" style="height:160rpx;width:500rpx">
|
|
<view class="activity-title textOver2">{{item.title}}</view>
|
|
<view class="textOver" wx:if="{{item.address}}">{{item.address}}</view>
|
|
</view>
|
|
<view class="activity-info" style="height:160rpx;text-align:right;margin:0;flex-shrin:0;">
|
|
<view><text style="color:#FF5555;font-size:30rpx">¥{{item.price/100}}</text><text style="color:#333">起</text></view>
|
|
<view wx:if="{{lat && lon}}">{{item.distance}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{list.length==0}}" class="common-empty" style="z-index:-1;top:430rpx">
|
|
<image mode="widthFix" src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/other/nodata.png"></image>
|
|
<view>暂无内容</view>
|
|
</view>
|
|
</view>
|