<view class="search">
    <view class="left">
        <van-icon name="arrow-left" size="20" catchtap="tapUpper"></van-icon>
        <view class="searchBox">
            <input type="search" placeholder="请输入内容" type="text" confirm-type="搜索" value="{{inputs}}" bindfocus="searchfocus" bindblur="search" bindinput="inpbtn" bindconfirm="search" />
            <view class="img-icon" catchtap='search'>
                <view class="img-icon-btn"></view>
            </view>
        </view>
    </view>
    <view class="right" catchtap="classifyBolbtn">
        <view wx:if="{{showcccc}}">
            <icon class="iconfont icon-sort_a"></icon>
        </view>
        <view wx:if="{{!showcccc}}">
            <icon class="iconfont icon-sort_b"></icon>
        </view>
    </view>
</view>
<view class="supplier">
    <view class="sort_box">
        <view class="sort_a ul">
            <view class="li" bindtap="toggle" data-idx="{{5}}">
                <view class="left {{hascolor=='5'?'sel':''}}">
                    综合
                </view>
                <view class="right">
                    <text class="icon_up {{colorshow=='5_1'?'sel':''}}"></text>
                    <text class="icon_down {{colorshow=='5_2'?'sel':''}}"></text>
                </view>
            </view>
        </view>
        <view class="sort_b ul">
            <view class="li" bindtap="toggle" data-idx="{{2}}">
                <view class="left {{hascolor=='2'?'sel':''}}">
                    销量
                </view>
                <view class="right">
                    <text class="icon_up {{colorshow=='2_1'?'sel':''}}"></text>
                    <text class="icon_down {{colorshow=='2_2'?'sel':''}}"></text>
                </view>
            </view>
        </view>
        <view class="sort_c ul">
            <view class="li" bindtap="toggle" data-idx="{{3}}">
                <view class="left {{hascolor=='3'?'sel':''}}">
                    价格
                </view>
                <view class="right">
                    <text class="icon_up {{colorshow=='3_1'?'sel':''}}"></text>
                    <text class="icon_down {{colorshow=='3_2'?'sel':''}}"></text>
                </view>
            </view>
        </view>
    </view>
    <view class="goods-box">
        <view class="goods-list_1">
            <view wx:if="{{!showcccc}}" class="goods" wx:for-item="item" wx:for="{{goodsArr}}" wx:key="index" catchtap="goToDetail" data-id="{{item.id}}">
                <view class="img">
                    <image src="{{item.thumb}}" mode='aspectFill' />
                </view>
                <view class="ul info">
                    <view class="li">{{item.title}}</view>
                    <view class="li">
                        <view class="span left">
                            <text class="font">{{language['money']}}</text>{{item.has_option == 1 && item.min_price ? item.min_price :item.price}}
                        </view>
                        <view class="span left" style="color: #999;font-size: 24rpx;font-weight: 400;">
                            <text class="font">会员价：{{language['money']}}</text>{{item.vip_price}}
                        </view>
                    </view>
                </view>
            </view>
            <view class="goods-list_2" wx:if="{{showcccc}}" wx:for-item="item" wx:for="{{goodsArr}}" wx:key="index" catchtap="goToDetail" data-id="{{item.id}}">
                <view class="imgs">
                    <image src="{{item.thumb}}"></image>
                </view>
                <view class="shop_info">
                    <view class="ul">
                        <view class="top">
                            <view class="li title">{{item.title}}</view>
                        </view>
                        <view class="bottom">
                            <view class="li member">
                                {{language['money']}}{{item.has_option == 1 && item.min_price ? item.min_price :item.price}}
                            </view>
                            <view class="li member" style="font-size: 24rpx;color: #999999;" wx:if="{{util.inOf(item.price,item.vip_price)}}">
                                会员价：{{language['money']}}{{item.vip_price}}
                            </view>
                        </view>
                    </view>
                </view>
            </view>
        </view>
    </view>
</view>
<wxs module="util">
    var inOf = function (val, bval) {
        console.log('ssssssssssssss',number(val) , number(bval))
        if (number(val) == number(bval)) {
            return false
        } else {
            return true
        }
    };
    module.exports.inOf = inOf;
</wxs>