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.

70 lines
3.6 KiB

<wxs src="./filter.wxs" module="filter"></wxs>
<van-dialog id="van-dialog" />
<view class="box">
<view class="add">
<view wx:for="{{boxArr}}" wx:key="{{item.events_id}}">
<view class="add_box" bindtap="add" wx:if="{{item == undefined }}" data-index="{{index}}">
<view class="heng"></view>
<view class="shu"></view>
<view class="event">添加事件一</view>
</view>
<view class="del_box" wx:else>
<view class="del_top">
<view style="display:inline-block;margin-left:48rpx;" bindtap="switchEvent" data-index="{{index}}">
<van-icon name="sort" size="12px" color="white" />
<text style="font-size: 24rpx; color: rgba(255, 255, 255, 1);">切换</text>
</view>
<view style="display:inline-block;margin-left:32rpx;color: rgba(255, 255, 255, 1);">|</view>
<view style="display:inline-block;margin-left:36rpx;" bindtap="del" data-index="{{index}}">
<van-icon name="cross" size="12px" color="white" />
<view style="margin-left: 2rpx; display: inline-block;"></view>
<text style="font-size: 24rpx; color: rgba(255, 255, 255, 1);">删除</text>
</view>
</view>
<view class="del_title">
{{item.events_title}}
</view>
<view class="del_foot">
<text>事件</text>
<text>{{item.events_type}}</text>
</view>
</view>
</view>
</view>
<button class="btns" bindtap='startCp'>开始对比</button>
<view class="event_recom">
<van-checkbox-group value="{{ result }}" bind:change="onChange">
<text style="font-size: 40rpx;font-weight: bolder;">事件推荐</text>
<view class="event_card" wx:for="{{eventList}}" wx:key="idxa">
<view class="card_head">
<van-checkbox name="{{filter.stringify(item)}}" shape="square" class="van-checkbox"></van-checkbox>
<view style="display: inline-block; font-size: 24rpx;color: rgba(153, 153, 153, 1);margin-left:16rpx;">
{{item.maxSourcetime}}
</view>
<view class="tag"> {{item.events_type}}</view>
</view>
<view class="card_title">
<text>{{item.events_title}}</text>
</view>
<view class="card_label" style="margin-top: 32rpx;">
<text style="color: rgba(153, 153, 153, 1);">文章篇数(条)</text>
<text>{{item.events_count}}</text>
</view>
<view class="card_label" style="margin-top: 24rpx;">
<text style="color: rgba(153, 153, 153, 1);">相关品牌</text>
<text>{{item.events_brand}}</text>
</view>
<view class="card_label" style="margin-top: 24rpx;">
<text style="color: rgba(153, 153, 153, 1);">相关车型</text>
<text>{{item.events_series}}</text>
</view>
<view class="card_label" style="margin-top: 24rpx;">
<text style="color: rgba(153, 153, 153, 1);">传播周期(条)</text>
<text>{{item.events_influence}}</text>
</view>
</view>
</van-checkbox-group>
</view>
<van-popup show="{{ show }}" position="bottom" custom-style="height: 70%;" bind:close="onClose" />
</view>