search_result.wxml 21.8 KB
<view class='page {{flag?"active":""}}'>
  <view class='banner'>
                <!-- <view class='iconfont icon-fanhui'></view> -->
                <view class='input_box'>
                        <view> 
                                <input type="text" placeholder='请输入搜索内容' class='input_placeholder' placeholder-class='banner_input' value='{{keyword}}' bindinput='get_keyWords' class='input_placeholder'></input>
                        </view>
                        <view class='iconfont icon-quxiao' bindtap='clear_keyword'></view>
                </view>
                <view class='serach' bindtap='send_search'>搜索</view>
        </view>
        <view class='nav_type_boxs'>
                <view class='nav_type_left'>
                        <view class='nav_type {{wangge==0?"type_active":""}}' bindtap='changeWangGe0'>
                                <text class='iconfont icon-liebiao'></text>
                                <text>列表</text> 
                        </view>
                        <view class='nav_type {{wangge==1?"type_active":""}}' bindtap='changeWangGe1'>
                                <text class='iconfont icon-wangge'></text>
                                <text>网格</text>
                        </view>
                        <view class='nav_type {{wangge==2?"type_active":""}}' bindtap='changeWangGe2'>
                                <text class='iconfont icon-datu'></text>
                                <text>大图</text>
                        </view>
                </view>
                <view class='nav_type_right'>
                        <text class='iconfont icon-shaixuan'></text>
                        <text bindtap='select'>筛选</text>
                </view>
        </view>
        <view class='item_list6'>

                <view wx:if='{{wangge==0}}'>
                        <view>
                                <view class='goodbox'> 
                                        <view class='good_item' wx:for='{{searchList}}' wx:key='{{item.id}}' data-goods='{{item.id}}'>
                                                <view class='good_img' bindtap='get_goodsDetial' data-goods='{{item.id}}'>
                                                        <image src='{{item.label}}' class='good_img_label'></image>
                                                        <image src='{{item.more.thumbnail}}' class='good_img_img'></image>
                                                </view>
                                                <view class='good_right'>
                                                        <view class='good_name'>{{item.title}}</view>
                                                        <view class='good_stand'>{{item.excerpt}}</view>
                                                        <view class='good_price_three'>
                                                                <text class='good_pprice'><text class='rmb'>¥</text>{{item.price}}</text>
                                                                <text class='good_oprice'><text class='rmb'>¥</text>{{item.old_price}}</text>
                                                        </view>
                                                        <view>
                                                                <view class='good_vipbox'>
                                                                        <view class='good_vipbox_left'>
                                                                                <text class='good_vip'><text class='rmb red_rmb'>¥</text> {{item.vip_price}}</text>
                                                                                <view class='good_vip_spec'>
                                                                                        <image class='vipvip' src='{{imgUrl}}vipvip.png'></image>
                                                                                </view>
                                                                        </view>
                                                                        <view class='good_btn'>
                                                                                <view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
                                                                        </view>
                                                                </view>
                                                        </view>
                                                </view>
                                        </view>

                                </view>
                                <view class='ad_box' bindtap='show_ad' wx:if='{{showad}}'>
                                        <image src='{{imgUrl}}atan@2x.png' mode='widthFix' catchtap='goad'></image>
                                        <view class='iconfont icon-quxiao'></view>
                                </view>
                        </view>
                        <view>
                                <view class='goodbox goods_margin_top'>
                                        <view class='good_item' wx:for='{{groupList}}' wx:key='{{item.id}}' data-goods='{{item.id}}' >
                                                <view class='good_img' bindtap='get_goodsDetial' data-goods='{{item.id}}'>
                                                        <image src='{{item.label}}' class='good_img_label'></image>
                                                        <image class='group_image' src='{{item.more.thumbnail}}'></image>
                                                        <view class='group_time {{item.group_status==1?"active":""}}'>

                                                                <text wx:if='{{item.group_status==1}}'>开始\t\t\t</text>
                                                                <text wx:elif='{{item.group_status==2}}'>结束\t\t\t</text> {{day}}天{{hour}}小时
                                                        </view>
                                                </view>
                                                <view class='good_right'>
                                                        <view class='good_name'>{{item.title}}</view>
                                                        <view class='good_stand'>{{item.excerpt}}</view>
                                                        <view class='good_price_progress'>
                                                                <progress show-info border-radius='4' activeColor='#ffda44' stroke-width='8' percent='{{percent}}' font-size='12'></progress>
                                                                <text class='group_font'>已拼{{item.group_number}}份\t\t\t\t目标{{item.group_min_number}}份</text>
                                                        </view>
                                                        <view>
                                                                <view class='good_vipbox'>
                                                                        <view class='good_vipbox_left good_price_three'>
                                                                                <text class='good_vip  red_rmb_right'><text class='rmb red_rmb'>¥</text> {{item.vip_price}}</text>
                                                                                <text class='good_oprice'><text class='rmb'>¥</text>{{item.old_price}}</text>
                                                                        </view>
                                                                        <view class='good_btn' wx:if='{{0}}'>
                                                                                <view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
                                                                        </view>
                                                                </view>
                                                        </view>
                                                </view>
                                        </view>
                                </view>
                        </view>
                        <!-- <view class='else'>亲,没有商品啦?</view> -->
                </view>


                <view wx:if='{{wangge==1}}' class='wangge_box'>
                        <view class='collocation collections'>
                                <view class='collocation_box' wx:for='{{searchList}}' wx:key='{{item.id}}'>
                                        <view class='collocation_img' data-goods='{{item.id}}' bindtap='get_goodsDetial'>
                                        <image src='{{item.label}}' class='collocation_img_label'></image>
                                                <image src='{{item.more.thumbnail}}' class='collocation_img_image'></image>
                                        </view>
                                        <view class='collocation_content'>

                                                <view>{{item.title}}</view>
                                                <view class='introduce introduces'>{{item.excerpt}}</view>
                                                <view>
                                                        <view class='price_big_box'>
                                                                <text class='money_icon2 money_icon2s'>¥</text>
                                                                <text class='money2 money2s'>{{item.price}}</text>
                                                                <text class='original_price original_prices'>¥{{item.old_price}}</text>
                                                        </view>
                                                        <view class='good_vipbox good_vipboxs'>
                                                                <view class='good_vipbox_left'>
                                                                        <text class='good_vip'><text class='rmb red_rmb'>¥</text> {{item.vip_price}}</text>
                                                                        <view class='good_vip_spec'>
                                                                                <image class='vipvip' src='{{imgUrl}}vipvip.png'></image>
                                                                        </view>
                                                                </view>
                                                                <view class='good_btn cart_icon'>
                                                                        <view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
                                                                </view>
                                                        </view>
                                                </view>
                                        </view>
                                </view>

                        </view>
                        <!-- <view class='else'>亲,没有商品啦?</view> -->
                </view>

                <view wx:if='{{wangge==2}}'>
                        <view class='back_white'>
                                <view class='big_img_box'>
                                        <view class='goods_for' wx:for='{{searchList}}' wx:key='{{item.id}}'  data-goods='{{item.id}}' bindtap='get_goodsDetial'>
                                                <view class='goods_for_img'>
                                                        <image class='goods_for_img_label' src='{{item.label}}'></image>
                                                        <image src='{{item.more.thumbnail}}' class='goods_for_img_image'></image>
                                                </view>
                                                <view class='goods_for_font'>
                                                        <view class='good_btn cart_icons'>
                                                                <view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
                                                        </view>
                                                        <view class='goods_for_font_one'>{{item.title}}</view>
                                                        <view class='goods_for_font_two'>{{item.excerpt}}</view>
                                                        <view class='goods_for_font_three'>
                                                                <view class='goods_for_font_three_one'>
                                                                        <view>¥</view>
                                                                        {{item.price}}
                                                                </view>
                                                                <view class='goods_for_font_three_two'>¥{{item.old_price}}</view>
                                                                <view class='goods_for_font_three_three'>
                                                                        <view>¥</view>
                                                                        {{item.vip_price}}
                                                                </view>
                                                                <view class='goods_for_three_four'>
                                                                        <image class='vipvip' src='{{imgUrl}}vipvip.png'></image>
                                                                </view>
                                                        </view>
                                                </view>
                                        </view>
                                        <!-- <view class='else'>亲,没有商品啦?</view> -->
                                </view>
                        </view>
                </view>


        </view>
        
</view>

<!-- 筛选弹窗LXY  -->
<view class='masx_box' wx:if='{{flag}}' bindtap='close_flag'>
        <view class='popup_box'>
                <view class='popup_content' wx:for='{{screen}}' wx:key='{{item.id}}' wx:for-item="cell" wx:for-index="cellindex">
                        <view class='popup_title'>{{cell.name}}</view>
                        <view class='popup_item'>
                                <view class='popup_item_content {{item.t?"active":"" }}' wx:for='{{cell.item}}' wx:key='{{item.attribute_value}}' data-id='{{item.id}}' data-select="{{cell.is_checkbox}}" data-parent="{{cellindex}}" data-item="item" data-index="{{index}}"catchtap='changeId'>{{item.attribute_value}}</view>
                        </view>
                </view>
        </view>
        <view class='popup_hint' wx:if='{{select.length>5}}'>菜系(↓往下轮播可筛选更多属性)</view>
        <view class='popup_btn'>
                <view class='btn1' catchtap='reset_select'>重置</view>
                <view class='btn2' catchtap='close_all'>完成</view>
        </view>
</view>
<!--加购弹框 -->
        <!-- <view class='jump_cart_mask' wx:if='{{show_cart_mask}}'>
                <view class='cart_jump_diceng'>
                        <view class='close_jump_cart iconfont icon-cuowu' bindtap='close_jump_msk'></view>
                        <view class='good_one'>
                                <view class='goods_one_left'>
                                        <image src='{{goods_item.info.more.thumbnail}}'></image>
                                </view>
                                <view class='goods_one_right'>
                                        <view class='goods_one_right_one'>{{goods_item.info.title}} </view>
                                        <view class='goods_one_right_two'>
                                                <text class='right_two_left'>¥{{skuid_price}}</text>
                                                <text class='right_two_right'>¥{{old_skuid_price}}</text>
                                        </view>
                                        <view class='goods_one_right_three'>
                                                <view class='right_three_left'>¥
                                                        <text>{{vip_skuid_price}}</text>
                                                </view>
                                                <text class='right_three_right'>                                                                              <image class='vipvip' src='{{imgUrl}}vipvip.png'></image></text>
                                        </view>
                                        <text class='goods_one_right_four'>选择\t\t\t{{idss_item}}</text>
                                </view>

                        </view>
                        <view class='goods_two_right' wx:for='{{goods_item.attr.attr_sku}}' wx:key='{{item.id}}' wx:for-item="cell" wx:for-index="cellindex">
                                <view class='goods_two_right_one'>{{cell.name}}</view>
                                <view class='goods_two_right_two'>
                                        <view class='goods_two_right_two_item {{value.t?"active":"" }}' wx:for='{{cell.item}}' wx:key='{{key}}' data-id='{{value.id}}' data-parent="{{cellindex}}" data-item="{{value.attribute_value}}" data-index="{{index}}" wx:key='{{index}}' wx:for-item='value'
                                                bindtap='changeIds'>{{value.attribute_value}}</view>
                                </view>
                        </view>

                        <view class='goods_three'>
                                <view class='goods_three_one'>
                                        <view class='goods_three_one_left'>购买数量</view>
                                        <view class='goods_three_one_right'>
                                                <view class='jian_dec' bindtap='dec_item'>-</view>
                                                <view class='jian_dec item'>{{item}}</view>
                                                <view class='jian_dec' bindtap='add_item'>+</view>
                                        </view>
                                </view>
                        </view>

                        <view class='goods_four' bindtap='jump_cart_id'>加入购物车</view>
                </view>

        </view> -->
        
        <!--加购弹框 -->
        <view class='jump_cart_mask' wx:if='{{show_cart_mask}}'>
                <view class='cart_jump_diceng'>
                        <view class='close_jump_cart iconfont icon-cuowu' bindtap='close_jump_msk'></view>
                        <view class='good_one'>
                                <view class='goods_one_left'>
                                        <image src='{{goods_item.info.more.thumbnail}}'></image>
                                </view>
                                <view class='goods_one_right'>
                                        <view class='goods_one_right_one'>{{goods_item.info.title}} </view>
                                        <view class='goods_one_right_two'>
                                                <text class='right_two_left'>¥{{skuid_price}}</text>
                                                <text class='right_two_right'>¥{{old_skuid_price}}</text>
                                        </view> 
                                        <view class='goods_one_right_three'>
                                                <view class='right_three_left'>¥
                                                        <text>{{vip_skuid_price}}</text>
                                                </view>
                                                <!-- <text class='right_three_right'>-->
                                                  <image class='vipvip' src='../../imgs/vip_du.png'></image>
                                                  <!-- </text> -->
                                        </view>
                                        <text class='goods_one_right_four'>选择\t\t\t{{sku_values}}</text>
                                </view>

                        </view>
                        <view class='goods_two_right' wx:for='{{goods_item.attr.attr_sku}}' wx:key='{{item.id}}' wx:for-item="cell" wx:for-index="cellindex">
                                <view class='goods_two_right_one'>{{cell.name}}</view>
                                <view class='goods_two_right_two'>
                                        <view class='goods_two_right_two_item {{value.t?"active":"" }}' wx:for='{{cell.item}}' wx:key='{{key}}' data-id='{{value.id}}' data-parent="{{cellindex}}" data-item="{{value.attribute_value}}" data-index="{{index}}" wx:key='{{index}}' wx:for-item='value'
                                                bindtap='changeIds'>{{value.attribute_value}}</view>
                                </view>
                        </view>

                        <view class='goods_three'>
                                <view class='goods_three_one'>
                                        <view class='goods_three_one_left'>购买数量</view>
                                        <view class='goods_three_one_right'>
                                                <view class='jian_dec' bindtap='dec_item'>-</view>
                                                <view class='jian_dec item'>{{item}}</view>
                                                <view class='jian_dec' bindtap='add_item'>+</view>
                                        </view>
                                </view>
                        </view>

                        <view class='goods_four' data-limit='{{goods_item.info.limit_numer}}' bindtap='jump_cart_id'>加入购物车</view>
                </view>

        </view>