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.

54 lines
2.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<van-dialog id="van-dialog" />
<wxs src="./filter.wxs" module="filter"></wxs>
<!-- <scroll-view style="height: 100vh;" scroll-y="true" bindscroll="srollViewTop" scroll-top="{{top}}"> -->
<view class="box" id="box">
<!-- <van-sticky> -->
<view class="add1">
<scroll-view scroll-x="true" style=" white-space: nowrap; display: flex">
<view style="display: inline-block;" wx:for="{{boxArr}}" wx:key="idx" wx:for-index="index">
<view class="add_box1" style="{{index === boxArr.length -1 ? 'margin-right: 32rpx' : ''}}" wx:if="{{item==undefined}}">
<view class="heng1"></view>
<view class="shu1"></view>
<view class="event1">添加品牌{{ tempLate[index]}}</view>
</view>
<view class="del_box" wx:else>
<view class="del" bindtap="del" data-index="{{index}}">
<text style="font-size: 24rpx;display: inline-block;margin-left: 64rpx;">×</text>
<text style="font-size: 24rpx;font-weight: 100;"> 删除</text>
</view>
<view class="brand_img_box">
<image src="{{item.img}}" style="width:100%;" mode="widthFix" lazy-load="{{true}}"></image>
</view>
<view class="car_barnd">{{item.brandname}}</view>
</view>
</view>
</scroll-view>
<button class="btns" bindtap='startCp'>开始对比</button>
</view>
<!-- </van-sticky> -->
<view class="event_recom1">
<!-- 占位盒子 -->
<view style="height: 36rpx;background:white;border-top-left-radius: 24rpx;border-top-right-radius: 24rpx;">
</view>
<van-checkbox-group value="{{ result }}" bind:change="onChange">
<van-index-bar sticky="{{false}}">
<view wx:for="{{mockData}}" wx:key="index">
<van-index-anchor index="{{item.name}}" />
<view class="my_cell" wx:for="{{item.data}}" wx:key="index" wx:for-item="item2">
<van-checkbox name="{{filter.stringify(item2)}}" shape="square"></van-checkbox>
<view class="imgBox" style="display: inline-block;height: 96rpx;width: 96rpx; margin-left: 48rpx;">
<image src="{{item2.img}}" style="width:96rpx;" mode="widthFix" lazy-load="{{true}}">
</image>
</view>
<text>{{item2.brandname}}</text>
</view>
</view>
</van-index-bar>
</van-checkbox-group>
</view>
</view>
<!-- </scroll-view> -->
<view class="back" bindtap="backTop"><van-icon name="back-top" />顶部</view>