goodsDetial.wxml 28.7 KB
<!--pages/index/goodsDetial/goodsDetial.wxml-->
<import src="../../../wxParse/wxParse/wxParse.wxml" />
<view class='big_box'>
        <view class='detail_container {{show||shows||basicInfo?"active":""}}'>
                <view class='banner'>
                        <view class='iconfont icon-fanhui' catchtap='get_back'></view>
                        <view class='coupons'> 
                                <view class='goods_detail {{active?"active":""}}' bindtap='jump_goods' id='NAV{{one}}'>商品详情</view>
                                <view class='graphic_detail {{!active?"active":""}}' bindtap='jump_detail' id='NAV{{two}}'>图文详情</view>
                        </view>
                        <view class=' share '>
                                <button open-type='share' type='false' class='share_btn' plain='true'>分享</button>
                                <!-- <button open-type='share' class='btn1'>立即邀请</button> -->
                        </view>
                </view>
                <scroll-view scroll-y scroll-into-view="NAV{{statestatus}}" style='height:100%' scroll-with-animation='true'>
                <view  id='NAV{{one}}'></view>
                        <view class='banner_box'>
                                <!-- <view class='banner_box_group ' wx:if='{{groupList.length>0}}'> -->
                                        <view wx:if='{{yesno}}'>
                                                <view wx:if='{{goods.groupType.group_status==3}}' class='banner_box_group active '>已结束</view>
                                                <view wx:else class='banner_box_group '>
                                                        距离团购
                                                        <text wx:if='{{goods.groupType.group_status==1}}'>开始\t\t\t</text>
                                                        <text wx:elif='{{goods.groupType.group_status==2}}'>结束\t\t\t</text> {{day}}天{{hour}}小时{{minute}}分钟
                                                </view>
                                        </view>
                                <!-- </view> -->
                                <view>
                                        <swiper circular='true ' display-multiple-items='1 ' class='banner_img '>
                                                <swiper-item wx:for='{{goods.info.more.photos}}' wx:key='{{item}}'>
                                                        <image src='{{item.url}}'></image>
                                                </swiper-item>
                                        </swiper>
                                </view>
                        </view>

                        <view class='content_item '>
                                <view class='item_list '>
                                        <view class='banner_title '>{{goods.info.title}}</view>
                                        <view class='introduce '>{{goods.info.excerpt}}</view>
                                        <view wx:if='{{groupList.length>0}}'>
                                                <view class='good_price_progress ' wx:if='{{goods.groupType.group_status==2}} '>
                                                        <progress show-info border-radius='4 ' activeColor='#ffda44 ' stroke-width='8 ' percent='{{percent}} ' font-size='12 '></progress>
                                                        <text class='group_font '>已拼{{goods.info.group_number}}份\t\t\t\t目标{{goods.info.group_min_number}}份</text>
                                                </view>
                                        </view>
                                        <view class='banner_character '>
                                                <view class='banner_price '>
                                                        <view class=' '>
                                                                <text class='money_icon '>¥</text>
                                                                <text class='money '>{{goods.info.price}}</text>
                                                                <text class='original_price '>¥{{goods.info.old_price}}</text>
                                                        </view>
                                                        <view class='display_box '>
                                                                <text class='money_icon2 '>¥</text>
                                                                <text class='money2 '>{{goods.info.vip_price}}</text>
                                                                <view class='vip '>
                                                                        <image class='vipvip ' src='{{imgUrl}}vipvip.png '></image>
                                                                </view>
                                                        </view>
                                                </view>
                                                <view>已售出:{{goods.info.sale_number}}份</view>
                                        </view>
                                </view>
 
                                <view class='item_list '>
                                        <view class='list_content ' bindtap='chooseStandard'>
                                                <view class='content_title '>
                                                        <view class='title '>商品规格</view>
                                                        <view class='content '>选择 处理方式 份量</view>
                                                </view>
                                                <view class='iconfont icon-jinru '></view>
                                        </view>
                                        <view class='list_contents ' bindtap='jumpBasicInfo'>
                                                <view class='content_title '>
                                                        <view class='title '>基本参数</view>
                                                        <view class='content '>
                                                                <view wx:for='{{goods.attr.attr_com}} ' wx:key='{{cell.id}} ' wx:for-item='cell '>{{cell.name}}
                                                                        <text wx:for='{{cell.item}} ' wx:key='{{item.id}} '>\t\t{{item.attribute_value}}</text>
                                                                </view>
                                                        </view>
                                                </view>
                                                <view class='iconfont icon-jinru '></view>
                                        </view>
                                        <view class='graphic_ingredients_box ' wx:if='{{goods.info.more.images.length>0}}'>
                                                <view class='graphic_ingredients' bindtap='get_recipe'> 
                                                        <view class='graphic_ingredients_background'>
                                                                <view class='graphic_ingredients_border'>浏览图文食谱</view>
                                                        </view>
                                                </view>
                                        </view>
                                </view>
                                <view class='templates'  id='NAV{{two}}'>
                                        <template is="wxParse" data="{{wxParseData:content.nodes}}" />
                                </view>

                                <view class='item_list7' wx:if='{{goods.attr.attr_cook.length>0}}'>
                                        <view class='list_content'>
                                                <view>
                                                        <view class='attribute' wx:for='{{goods.attr.attr_cook}}' wx:key='{{item.id}}' wx:index='index'>
                                                                <view class='attribute_titel'>{{item.name}}</view>
                                                                <view class='stars' wx:for="{{item.item}}" wx:for-item="value" wx:key='{{value.id}}'>{{value.attribute_value}}</view>
                                                        </view>

                                                </view>
                                        </view>
                                        <view class='more_box' wx:if='{{goods.attr.attr_cook.length>8}}'>
                                                <view>展开更多</view>
                                                <view class='iconfont icon-zhankai'></view>
                                        </view>
                                </view>


                                <view class='item_list1' id='yyh'>
                                        <view class='hint1'>
                                                <view>{{goods.vips.sale_price}}元升级SVIP,立享{{goods.vips.slideCount}}特权</view>
                                                <view class='cash_back'>
                                                        本商品
                                                        <text class='red_font'>更返{{goods.vips.cashback_price}}元</text>
                                                </view>
                                        </view>
                                        <view class='hint1'>
                                                <view>分享商品邀请新人下单</view>
                                                <view class='cash_back'>
                                                        即得
                                                        <text class='red_font'>{{goods.sharePrice}}元</text> 红包
                                                </view>
                                        </view>
                                </view>

                                <view class='item_list2'>
                                        <view class='user_evaluation'>
                                                <view class='user_evaluation_title'>用户评价</view>
                                                <view class='user_evaluation_time' bindtap='jump_user_comment'>
                                                        <view>({{goods.info.comment_count}})</view>
                                                        <view class='iconfont icon-jinru icon-jinrus'></view>
                                                </view>
                                        </view>
                                        <view class='user_information_box' wx:for='{{comment}}' wx:for-index='index' wx:key='{{index}}'>
                                                <view class='user_information'>
                                                        <view class='the_star'>
                                                                <view class='head_portrait'>
                                                                        <image src='{{item.avatar}}'></image>
                                                                </view>
                                                                <view class='star_box'>
                                                                        <view class='user_name'>{{item.full_name}}</view>
                                                                       <view class='oneoneonestar'>
                                                                                <view class='stars1'>
                                                                                        <view class='iconfont icon-pingfen'></view>
                                                                                        <view class='iconfont icon-pingfen'></view>
                                                                                        <view class='iconfont icon-pingfen'></view>
                                                                                        <view class='iconfont icon-pingfen'></view>
                                                                                        <view class='iconfont icon-pingfen'></view>
                                                                                </view>
                                                                                <view class='stars1s'>
                                                                                        <view class='iconfont icon-pingfen icon-pingfens' wx:for='{{item.stars_arr}}' wx:key='{{item}}'></view>
                                                                                </view>
                                                                       </view>
                                                                </view>
                                                        </view>
                                                        <view class='title'>{{item.create_time}}</view>
                                                </view>
                                                <view class='evaluation'>{{item.content}}</view>
                                                <view class='evaluation_img'>
                                                        <view class='upload_img_box'>
                                                                <view class='upload_img' wx:for='{{item.more.photos}}' wx:for-item='child' wx:key='{{child}}'>
                                                                        <image src='{{child}}'></image>
                                                                </view>
                                                        </view>
                                                </view>
                                                <view class='comments_btn'>
                                                        <view class='iconfont icon-message'></view>
                                                        <view class='comments'>评论</view>
                                                </view>
                                        </view>
                                </view>
                                <view class='item_list3' wx:if='{{goods.promotion.length>0}}'>
                                        <view class='package_title'>购买含本商品套餐更优惠</view>
                                        <view class='package_box' bindtap='jump_goodsDetial2' data-id='{{item.promotion_id}}' wx:for='{{goods.promotion}}' wx:key='{{item.id}}'>
                                                <view class='package_img_box'>
                                                        <view class='package_img'>
                                                                <image src='{{item.thumbnail}}'></image>
                                                        </view>
                                                </view>
                                                <view class='package_content'>
                                                        <view>{{item.title}}</view>
                                                        <view class='package_hint'>{{item.excerpt}}</view>
                                                        <view class='pickage_display'>最多可省
                                                                <text class='money_icon2'>¥</text>
                                                                <text class='money2'>{{item.save_price}}</text> </view>
                                                </view>
                                        </view>
                                </view>

                                <view class='item_list4' wx:if='{{goods.safety.length>0}}'>
                                        <view class='detection'>
                                                <view class='line1'></view>
                                                <view class='detection_title'>安心检测</view>
                                                <view class='line2'></view>
                                        </view>
                                        <view class='detection_hint'>经过14项感官排查,100%可溯,点标签查看。</view>
                                        <view class='detection_item'>
                                                <view class='detection_box' wx:for='{{goods.safety}}' wx:for-index='index' wx:key='{{index}}'>
                                                        <view class='detection_img'>
                                                                <image src='{{item.icon}}'></image>
                                                        </view>
                                                        <view>{{item.name}}</view>
                                                </view>
                                        </view>
                                </view>


                                <view class='itme_list5' bindtap='checkHeight' wx:if='{{goods.info.buyer_content}}'>
                                        <view class='recommended_box'>
                                                <view class='iconfont icon-maishoutuijian'></view>
                                                <view>买手推荐</view>
                                        </view>
                                        <view class='foretaste_box'>
                                                <view class='head_portrait'>
                                                        <image src='{{imgUrl}}icon32.png'></image>
                                                </view>
                                                <view class='buyer_recommend'>
                                                        <view class='buyer_name'>{{goods.buyer.name}}</view>
                                                        <view>{{goods.buyer.signature}}</view>
                                                </view>
                                        </view>
                                        <view class='aaa'></view>

                                        <view class='recommend_content'>
                                                <view class='iconfont icon-shangyinhao'></view>
                                                <view class='recommend_character'>{{goods.info.buyer_content}}</view>
                                                <view class='triangle'></view>
                                        </view>
 
                                        <view class='ingredients'>
                                                <view class='ingredients_title'>食材包内含{{goods.food_material.length}}件</view>
                                                <view class='ingredients_box'>
                                                        <view class='ingredients_img'>
                                                                <image src='{{goods.info.more.cookbook}}'></image>
                                                        </view>
                                                        <view>
                                                                <view class='ingredients_item' wx:for='{{goods.food_material}}' wx:key='{{cell}}' wx:for-item='cell'>
                                                                        <view class='ingredients_name'>{{cell.name}}</view>
                                                                        <view class='ingredients_content'>
                                                                                <view class='marginRight' wx:for='{{cell.child}}' wx:key='{{item}}'>{{item}}</view>
                                                                        </view> 
                                                                </view>
                                                        </view>
                                                </view>
                                        </view>

                                </view>

                                <view class='item_list6' wx:if='{{collocation.length>0}}'>

                                        <view class='collocation_title'>建议搭配 酸梅汁或红酒 解腻助消化</view>
                                        <view class='collocation'>
                                                <view class='collocation_box' wx:for='{{collocation}}' wx:for-item='cell' wx:key='{{cell.id}}' wx:for-index='index' bindtap='jump_collocation_detail' 
                                                data-jid='{{cell.other_id}}'>
                                                        <view class='collocation_img'>
                                                                <image src='{{cell.more.thumbnail}}'></image>
                                                        </view>
                                                        <view class='collocation_content'>

                                                                <view>{{cell.title}}</view>
                                                                <view class='introduce'>{{cell.excerpt}}</view>
                                                                <view class=''>
                                                                        <text class='money_icon2'>¥</text>
                                                                        <text class='money2'>{{cell.price}}</text>
                                                                        <text class='original_price'>¥{{cell.old_price}}</text>
                                                                </view>
                                                        </view>
                                                </view>
                                        </view>
                                </view>
                        </view>
                </scroll-view>

                <view class='bottom_btn'>
                        <view class='hint_btn'>
                                <view>
                                                <navigator class='shop_car'  url='../../cart/cart'  open-type="switchTab">
                                        <view class='iconfont icon-gouwuche'></view>
                                        <view>购物车</view>
                                        <view class='cart_count'>{{goods.cartCount}}</view>
                                </navigator>
                                </view>
                                <view bindtap='collection' bindtap='collection_true' data-id='{{goods.info.id}}'>
                                        <view class='iconfont icon-shoucang {{goods.is_favorite==1||shoucang?"active":""}}'></view>
                                        <view class='shop_car {{goods.is_favorite==1||shoucang?"active":""}}'>收藏</view>
                                </view>
                        </view>
                        <view wx:if='{{!goods.groupType}}' class='join_btn' bindtap='get_car'>加入购物车</view>
                        <!-- <view wx:if='{{goods.groupType}}' class='join_btns'></view> -->
                        <view class='immediately_btn {{minute==null?"active":""}} {{goods.groupType?"activity":""}}' bindtap='get_settle'>立即购买</view>
                </view>

        </view>
        <!-- 加购弹框 -->
        <view class='cart_mask' wx:if='{{show}}'>
                <view class='cart_mask_diceng'>
                        <view class='close_jump_cart iconfont icon-cuowu' bindtap='close_mask_cart'></view>
                        <view class='goods_name'>{{goods.info.title}}</view>
                        <view class='weight' wx:for='{{goods.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='changeIds' wx:for-item='value'>{{value.attribute_value}}</view>
                                </view>
                        </view>

                        <view class='last_box'>
                                <view class='last_box_top'>
                                        <view class='last_box_top_price'>
                                                <view>¥{{skuid_price}}</view>
                                        </view>
                                </view>
                                <view class='last_box_top'>
                                        <view class='last_box_top_price'>
                                                <view class='member_price'>¥{{vip_skuid_price}}</view>
                                                <text class='member'>会员专享</text>
                                        </view> 
                                        <view class='jiajian'>
                                                <view bindtap='dec_num' class='dec_num'>-</view>
                                                <view class='numnum'> {{num}}</view>
                                                <view bindtap='add_num' class='dec_num'>+</view>
                                        </view>
                                        <view class='purchase' data-limit='{{goods.info.limit_numer}}' bindtap='hide_mask'>加入购物车</view>
                                </view>
                        </view>
                </view>
        </view>
        <!-- 直接购买弹框 -->
        <view class='cart_mask' wx:if='{{shows}}'>
                <view class='cart_mask_diceng'>
                        <view class='close_jump_cart iconfont icon-cuowu' bindtap='close_mask_carts'></view>
                        <view class='goods_name'>{{goods.info.title}}</view>
                        <view class='weight' wx:for='{{goods.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='changeIds' wx:for-item='value'>{{value.attribute_value}}</view>
                                </view>
                        </view>

                        <view class='last_box'>
                                <view class='last_box_top'>
                                        <view class='last_box_top_price'>
                                                <view>¥{{goods.info.price}}</view>
                                        </view>
                                </view>
                                <view class='last_box_top'>
                                        <view class='last_box_top_price'>
                                                <view class='member_price'>¥{{goods.info.vip_price}}</view>
                                                <text class='member'>会员专享</text> 
                                        </view>
                                        <view class='jiajian' wx:if='{{!goods.groupType}}'>
                                                <view bindtap='dec_num' class='dec_num'>-</view>
                                                <view class='numnum'> {{num}}</view>
                                                <view bindtap='add_num' class='dec_num'>+</view>
                                        </view>
                                        <view class='purchase' bindtap='hide_masks'>确定</view>
                                </view>
                        </view>
                </view>
        </view>
        <!-- 基本信息弹框 -->
        <view class='cart_mask' wx:if='{{basicInfo}}'>
                <view class='info_mask_diceng'>
                        <view class='close_jump_cart iconfont icon-cuowu' bindtap='close_mask_info'></view>
                        <view class='goods_name'>基本参数</view>
                        <view class='weight' wx:for='{{goods.attr.attr_com}}' 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 active' wx:for='{{cell.item}}' wx:key='{{key}}' wx:for-item='value'>{{value.attribute_value}}</view>
                                </view>
                        </view>
                        <view class='iKnowLast' bindtap='iKnow'>
                                我知道了
                        </view>
                </view>
        </view>
</view>