goodsDetial2.wxml 7.0 KB
<!--pages/index/goodsDetial/goodsDetial.wxml-->
<view class='page {{show1||show2||show3||show4?"active":""}}'>
        <view class='banner'>
                  <view class='iconfont icon-fanhui' catchtap='get_back'></view>
                <view class='coupons'>商品详情</view>
                  <view class='share'> 
                                <button open-type='share' type='false' class='share_btn' plain='true'>分享</button>
                        </view>
        </view>
        <view class='banner_box'>
                <!-- <view class='banner_img' wx:for='{{goodsList}}' wx:key='{{item.id}}'> -->
                        <image src='{{info.thumbnail}}'></image>
                <!-- </view> -->
        </view>
        <view class='content_item'>
                <view class='item_list'>
                        <view class='banner_title'>{{info.title}}</view>
                        <view class='introduce'>{{info.excerpt}}</view>
                        <view class='banner_character'>
                                <view class='banner_price'>
                                       <view class='pickage_display'>最多可省
                                                        <text class='money_icon2'>¥</text>
                                                        <text class='money2'>{{info.save_price}}</text> </view>
                                </view>
                                <!-- <view>已售出:1566份</view> -->
                        </view>
                </view>
                <view class='product_list'>
                        <view class='singlepart'> 
                                <view class='single_part_top'>
                                        <view class='single_part_left'>
                                                <view class='iconfont icon-weixuanzhong single_part_left_icon {{chooseAll?"active":""}}' bindtap='chooseAll'></view>
                                                促销商品
                                        </view>
                                </view>
                                <view class='single_part_items'>
                                        <view class='single_part_item' wx:for='{{goodsList}}' wx:key='*this' wx:for-index='index' wx:for-item='value'>
                                                <view class='iconfont icon-weixuanzhong iconfonts {{value.t?"active":""}}' bindtap='choose' data-id='{{value.id}}' data-flag='{{value.flag}}' data-index='{{index}}'></view>
                                                <view class='single_part_imgbox' bindtap='jump_goods_detail' data-id='{{value.id}}'>
                                                        <image src='{{value.more.thumbnail}}' mode='widthFix'></image>
                                                </view>
                                                <view class='single_part_detail'>
                                                        <view class='product_title'>{{value.title}}</view>
                                                        <view class='product_type'>{{value.excerpt}}</view>
                                                        <view class='choose_sku'  bindtap='chooseStandard'  data-shop="{{value}}" data-origin='{{index}}' data-index='{{index}}'>
                                                                <view class='product_types'> 请选择菜品属性</view>
                                                                <view iconfont icon-position></view>
                                                        </view>
                                                        <view class='product_action'>
                                                                <view class='price'>¥
                                                                <!-- <view> -->
                                                                        <text class='detail_price' wx:if='{{value.ggprice}}'>{{value.showjine}}</text>
                                                                         <text wx:else class='detail_price'>{{value.new_price}}</text>
                                                                        <!-- </view> -->
                                                                        <text class='save_after'>已省</text>
                                                                        <text>{{value.save_price}}</text>
                                                                </view>

                                                        </view>
                                                </view>
                                        </view>
                                </view>
                        </view>
                </view>
        </view>

        <view class='bottom_btn'>
                <view class='hint_btn'>
                       <view class='shangmianbyn'>
                                <view class='shangmianbyi'>套餐价</view>
                                <view class='shangmianber'>¥</view>
                                <view class='shangmianbsan'>{{jine}}</view>
                       </view>
                       <view class='yisheng'>已省¥{{jiesheng}}</view>
                </view>
                <view class='join_btn' bindtap='join_btn'>加入购物车</view>
                <view class='immediately_btn' bindtap='go_pay_sale'>立即购买</view>
        </view>

</view>
<!-- 加购弹框 -->
<view class='cart_mask' wx:if='{{show1}}'>
        <view class='cart_mask_diceng'>
                <view class='close_jump_cart iconfont icon-cuowu' bindtap='close_mask_cart1'></view>
                <view class='goods_name'>{{goods1.title}}</view>
                <view class='weight' wx:for='{{goods1.attr.attr_sku}}' wx:key='{{item.id}}' wx:for-index='cellindex' wx:for-item='cell'> 
                        <view class='weight_view'>{{cell.name}}</view>
                        <view class='quality'>
                                <view class='quality_left {{value.t?"active":""}}' wx:for='{{cell.item}}' wx:key='{{key}}' data-gid='{{value.id}}' data-parent="{{cellindex}}" data-item="{{value.attribute_value}}" data-index="{{index}}" bindtap='changeIds1' wx:for-item='value' data-origin='{{origin}}'>{{value.attribute_value}}</view>
                        </view>
                </view>

                <view class='last_box'>
                        <view class='last_box_top'>
                                <view class='last_box_top_price'>
                                        <view>¥{{goods1.attprice}}</view>
                                </view>
                        </view>
                        <view class='last_box_top'>
                                <view class='last_box_top_price'>
                                        <view class='member_price'>¥{{goods1.attvipprice}}</view>
                                        <text class='member'>会员专享</text>
                                </view>
                                <view class='purchase' bindtap='hide_mask1' data-index='{{originIndex}}'>确定</view>
                        </view>
                </view>
        </view>
</view>