special_list.wxml 5.7 KB
<view class='page {{show_cart_mask?"active":""}}'>
        <view class='top'>
                <view class='banner'>
                        <view class='iconfont icon-fanhui' catchtap='get_back'></view>
                        <view class='coupons'>{{info.title}}</view>
                </view>
                <swiper previous-margin='40rpx' next-margin='40rpx' circular='true' display-multiple-items='1' class='swiper_banner_box'>
                        <swiper-item wx:for='{{info.photos}}' wx:for-index='index' wx:key='{{index}}' bindtap='jump' data-url='{{item.jump}}'>
                                <image src='{{item.url}}' class="slide-image {{currentIndex == 0 ? 'active': ''}}"></image>
                        </swiper-item>
                </swiper>
        </view>
        <view>
                <view>
                        <view class='goodbox'>
                                <view class='good_item' wx:for='{{special_list}}' wx:key='{{item.id}}' data-id='{{item.id}}' bindtap='get_goodsDetial'>
                                        <view class='good_img' data-goods='{{item.id}}'>
                                                <image src='{{item.more.thumbnail}}'></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></text>
                                                        <text class='good_oprice'><text class='rmb'></text></text>
                                                </view>
                                                <view>
                                                        <view class='good_vipbox'>
                                                                <text class='good_vip'><text class='rmb red_rmb'>¥</text> {{item.price}}</text>
                                                                <text class='good_oprice'><text class='rmb'>¥</text>{{item.old_price}}</text>
                                                                <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>
        </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' catchtap='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'>会员专享</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'
                                        catchtap='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' catchtap='dec_item'>-</view>
                                        <view class='jian_dec item'>{{item}}</view>
                                        <view class='jian_dec' catchtap='add_item'>+</view>
                                </view>
                        </view>
                </view>

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

</view>