select_index.wxml 16.3 KB
<view class='page {{show_cart_mask?"active":""}}'>
        <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='{{goods}}' wx:key='{{item.id}}' bindtap='get_goodsDetial'  data-goods='{{item.id}}'>
                                                <view class='good_img'>
                                                        <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' catchtap='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='{{goods}}' wx:key='{{item.id}}' bindtap='get_goodsDetial'  data-goods='{{item.id}}'>
                                        <view class='collocation_img'>
                                        <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 class='zhongjianwangge'>{{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='{{goods}}' wx:key='{{item.id}}' bindtap='get_goodsDetial'  data-goods='{{item.id}}'>
                                                <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>
<!--加购弹框 -->
<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'>¥{{goods_item.info.price}}</text>
                                        <text class='right_two_right'>¥{{goods_item.info.old_price}}</text>
                                </view>
                                <view class='goods_one_right_three'>
                                        <view class='right_three_left'>¥
                                                <text>{{goods_item.info.vip_price}}</text>
                                        </view>
                                        <text class='right_three_right'>会员专享</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>