<!-- 顶部的优化 -->
<top_nav wx:if="{{!istop || activeCategoryId>0}}" nav_type="{{-1}}" nav_frontColor="{{nav_frontColor}}" nav_backgroundColor="{{nav_backgroundColor}}" nav_title="{{gtitle}}"></top_nav>

<!-- 判断隐私是不是显示 -->
<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop>
<!-- 促销弹出框 -->
<pro_pop id="pro_pop"></pro_pop>

<import src="../../../utils/wxParse/wxParse.wxml"></import>
<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
<wxs module="g_filters" src="g_filter.wxs"></wxs>
<wxs module="tool" src="filter.wxs"></wxs>

<!-- 商品内容区域,普通商品,秒杀,拼团 -->
<block wx:if="{{isshow}}">
  <view class="container">
    <!-- 拼单规则规则 -->
    <view wx:if="{{prom_type== 6}}" class="rules" bindtap="showRules">规则</view>

    <view class="type-navbar_box">
          <top_nav id="my-nav" bindclickShare="clickShare" nav_type="{{nav_type}}" is_share="1"
                   nav_frontColor="{{nav_frontColor}}" istop="{{(istop && searchbox_transparent && activeCategoryId==0)  ? 1 : 0 }}" nav_backgroundColor="{{nav_backgroundColor}}" nav_title="{{gtitle}}"></top_nav>
    </view>

    <view class="type-navbar" style="top:{{top_nav?(top_nav-4):0}}px" wx:if="{{activeCategoryId>0 || !istop || ( istop && !searchbox_transparent)}}" >
      <view class="type-box" wx:for="{{categories}}" wx:key="id">
        <view bindtap="tabClick" class="type-navbar-item {{activeCategoryId==item.id?'type-item-on':''}}" id="{{item.id}}">{{item.name}}</view>
      </view>
    </view>

    
    <view class="goods-detail">
      <view class="goods-info" style="position: relative;" hidden="{{activeCategoryId==0?false:true}}">

        <!-- 左上角轮播 历史购买记录 -->
        <view class="swiper-container" wx:if="{{historyBuyInfo.length}}">
          <swiper class="swiper" autoplay="true" circular="true" vertical="true" interval="3000">
            <swiper-item class="swiper-item" wx:for="{{historyBuyInfo}}" wx:key="order_id">
              <view class="item">
                <view class="avatar-container">
                  <image src="{{item.head_pic}}"></image>
                </view>
                <view class="flex ai_c pd10">
                  <view class="nickname ellipsis-1x">{{item.nickname}}下单成功</view>
                </view>
              </view>
            </swiper-item>
          </swiper>
        </view>

        <view id="id" bindtouchstart="handletouchtart" bindtouchmove="handletouchmove">
          <view class="xc-videos-picture rel">
            <swiper autoplay="{{false}}" current="{{swiperCurrent}}" class="swiper_box  swiperContainer rel" duration="{{1000}}" indicatorDots="{{mapurl?false:true}}" interval="{{3000}}" vertical="{{false}}" bindchange="swiperChange">
              <swiper-item wx:if="{{mapurl}}">
                <view wx:if="{{noon == 0}}">
                  <image class="xc-picturess" src="{{iurl+mapurl_f_img}}" mode="aspectFit">
                    <image id="{{index}}" class="xc-play" src="{{iurl}}/miniapp/images/pofang.png" bindtap="videoPlay"></image>
                  </image>
                </view>
                <view wx:else>
                  <video bindfullscreenchange="screenChange" class="xc-videos" src="{{iurl+mapurl}}" id="{{index}}" wx:if="{{_index == index}}"></video>
                </view>
              </swiper-item>
              <swiper-item wx:for="{{gallery}}" wx:key="gallery">
                <view data-index="{{index}}" bindtap='pre_gallery_img' class="wh100 g_img_box" style="background-image:url({{item.image_url}});"></view>
              </swiper-item>
            </swiper>
            <block wx:if="{{mapurl}}">
              <view wx:if="{{hiddenn==1}}">
                <view class="xc-imageCount">{{current}}/{{gallery.length}}</view>
              </view>
              <view class="xc-video-picture abs">
                <view class="xc-video" data-vipi="0" bindtap="videopicture">
                  <view class="{{videopicture==0 ? 'xc-video-button':'xc-video-buttons'}}  {{videopicture==0 ? 'xc-sn':''}}">
                    视频
                  </view>
                </view>
                <view class="xc-picture  {{videopicture==1 ? 'xc-sn':''}}" data-vipi="1" bindtap="videopicture">
                  <view>图片</view>
                </view>
              </view>
            </block>
          </view>
        </view>

        <!-- --显示秒杀的定时器 -->
        <view class="prom_show rel" wx:if="{{prom_type==1}}">
          <image class="secondkill-img" src='{{f_prom_st==1? iurl+"/miniapp/images/red_jx.png":iurl+"/miniapp/images/blue_ks.png"}}'></image>
          <image class="abs spike-img" src="{{iurl}}/miniapp/images/xsmiaosha.png"></image>
          <view class="stop fs26 abs" wx:if="{{f_prom_st==1}}">距活动结束还有</view>
          <view class="start fs26  abs" wx:if="{{f_prom_st==2}}">距活动开始还有</view>
          <view class="secview  flex abs fs24 xc-miaosha-time">
            <block wx:if="djs.day">
              <view class='day-val' style="color:{{f_prom_st==1?'#d40022':'#0097e0'}}">
                {{djs.day}}
              </view>
              <view class="day white" style="color: {{f_prom_st==1?'#d40022':'#0097e0'}}">天</view>
            </block>
            <view class='time-val white t-c' style=" background:{{f_prom_st==1?'#d40022':'#0097e0'}}">
              {{djs.hou}}
            </view>
            <view class="time" style="color: {{f_prom_st==1?'#d40022':'#0097e0'}}">时</view>
            <view class='time-val white t-c' style=" background:{{f_prom_st==1?'#d40022':'#0097e0'}}">
              {{djs.min}}
            </view>
            <view class="time" style="color: {{f_prom_st==1?'#d40022':'#0097e0'}}">分</view>
            <view class='time-val white t-c' style="background:{{f_prom_st==1?'#d40022':'#0097e0'}}">
              {{djs.sec}}
            </view>
            <view class="time" style="color: {{f_prom_st==1?'#d40022':'#0097e0'}}">秒</view>
          </view>
        </view>

        <!-- --显示团购价和剩余时间 -->
        <view class="prom_show rel" wx:if="{{prom_type==2}}">
 
          <view class="abs flex fs36" style="align-items:flex-end;color: #fff; margin-top: 34rpx; margin-left: 10rpx; height: 60rpx">￥{{prom_price}}

            <view wx:if="{{is_retail_price}}" class="word-line fs24 no_line_c" style="margin-left: 10rpx;position: relative;top: -6rpx; color:#fff !important">零售价：￥{{filters.toFix(front_g.market_price,2)}}</view>
            <view wx:else class="word-line no_line_x fs24" style="margin-left: 10rpx;position: relative;top: -6rpx;color:#fff !important">￥{{filters.toFix(front_g.shop_price,2)}}</view>
          </view>

          <image class="abs" style="width: 120rpx;top: 32rpx; right: 220rpx;" mode="widthFix" src='{{iurl+"/miniapp/images/activity-time.png"}}'></image>

          <image class="secondkill-img" src='{{iurl+"/miniapp/images/group_img.png"}}'></image>
          <view class="stop fs26 abs"  style="color: #fff;top: 22rpx">

            <block wx:if="{{prom_st==0 && !prom_r_null}}">开始时间</block>
            <block wx:else>结束时间</block>

          </view>
          <view class="secview  flex abs fs24 xc-miaosha-time" style="color: #fff;top: 68rpx">
            <block wx:if="djs.day">{{djs.day}}天</block>{{djs.hou}}小时{{djs.min}}分{{djs.sec}}秒
          </view>
        </view>

        <!-- --拼单-- -->
        <view class="pt_show " wx:if="{{prom_type==6}}">
          <view class="pt_view rel">
            <!-- 许程 7. 24 -->
            <image class="secondkill-img" src="{{prom_st==1? iurl+'/miniapp/images/red_jx.png':iurl+'/miniapp/images/blue_ks.png'}}"></image>
            <view class="abs xc-qt-price">
              <view class="flex" style='height:40rpx; margin-top:5rpx'>
                <view class="flex fs35 xc-qtsign">￥</view>
                <view class="fs50 val">{{prom_price}}</view>
              </view>
              <view wx:if="{{is_retail_price}}" class="word-line fs20 xc-qtunit-price no_line_c" style="color:#fff !important ">零售价：￥{{filters.toFix(front_g.market_price,2)}}</view>
              <view wx:else class="word-line no_line_x fs20 xc-qtunit-price" style="color:#fff !important ">￥{{filters.toFix(front_g.shop_price,2)}}</view>
            </view>

            <view class="abs white xc-nanber">
              <text class="fs22">已拼{{prom_act.buy_num}}件</text>
              <view class="flex" style='margin-top:-34rpx'>
                <view class="xc-people-img">
                  <image class="imgs" src="{{prom_st==1? iurl+'/miniapp/images/r_logo_red.png':iurl+'/miniapp/images/r_logo.png'}}"></image>
                </view>
                <view class="t-s fs20 xc-people-val">{{prom_act.ct_num}}人拼</view>
              </view>
            </view>

            <!-- 幸运购 -->
            <view class="abs white xc-nanber" wx:if="{{false}}">
              <text class="fs22">已成团{{prom_act.buy_num}}期</text>
              <view class="flex" style='margin-top:-34rpx'>
                <view class="xc-people-img">
                  <image class="imgs" src="{{prom_st==1? iurl+'/miniapp/images/r_logo_red.png':iurl+'/miniapp/images/r_logo.png'}}"></image>
                </view>
                <view class="t-s fs20 xc-people-val">{{prom_act.ct_num}}人团</view>
              </view>
            </view>

            <view class="hy-stop word-color fs26 abs" wx:if="{{prom_st==1}}">距活动结束还有</view>
            <view class="hy-stop word-color-lan fs26  abs" wx:if="{{prom_st==0}}">距活动开始还有</view>
            <view class="secview  flex abs fs24 " style="color: black;right: 3px; top:46rpx;">
              <block wx:if="djs.day">
                <view class='day-val' style="color:{{prom_st==1?'#d40022':'#0097e0'}};margin-top:-34rpx;">
                  {{djs.day}}
                </view>
                <view class="day white" style="margin-top:-34rpx;margin-right:10rpx;color: {{prom_st==1?'#d40022':'#0097e0'}}">
                  天
                </view>
              </block>
              <view class='xc-time-val white t-c' style=" background:{{prom_st==1?'#d40022':'#0097e0'}}">
                {{djs.hou}}
              </view>
              <view class="xc-time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}">时</view>
              <view class='xc-time-val white t-c' style=" background:{{prom_st==1?'#d40022':'#0097e0'}}">
                {{djs.min}}
              </view>
              <view class="xc-time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}">分</view>
              <view class='xc-time-val white t-c' style="background:{{prom_st==1?'#d40022':'#0097e0'}}">
                {{djs.sec}}
              </view>
              <view class="xc-time" style="color: {{prom_st==1?'#d40022':'#0097e0'}}">秒</view>
            </view>
          </view>
          <view class="pt_fir pd20">
            <!-- --显示团类型和团价格-- -->
            <view class="pt_fir_title ">
              <!-- 许程 商家团主页 -->
              <view class="xc-goods-explain flex-vertical-between">
                <view class="xc-explain fs32 ellipsis-2" wx:if="{{prom_type!=0 }}">
                  <text bindtouchstart="handtouch"  data-name="gn_sele_fir" selectable='{{gn_sele_fir}}'   user-select="{{gn_sele_fir}}"   >{{front_g.goods_name}}</text>
                </view>
                <!-- 这个是分享按钮 -->
                <view wx:if="{{isLogin}}" class="xc-share-frame t-c shrink0" bindtap="clickShare">
                  <view class="iconfont icon-share"></view>
                  <view class="fs22 c-7b">分享</view>
                </view>
              </view>
            </view>
            <!-- --显示价格,阶梯团-- -->
            <block wx:if="{{prom_act.kttype==3}}">
              <view class="jie_price  flex">
                <view style='margin-right:26rpx' wx:for="{{prom_act.ct_rylist}}">
                  <view class="fs35 word-color">
                    <text class="fs24">￥</text>
                    {{item.price}}
                  </view>
                  <view class="fs24 t-c xc-person-number ">满{{item.rynum}}人</view>
                </view>
              </view>
            </block>
          </view>
          <view class="t_gz" wx:if="{{is_show_gz==1}}">{{prom_act.remark}}</view>
          <!-- --------正有多少人在开团-------- -->
          <view class="pt_fir se2 bdt16" wx:if="{{teamgroup}}">
            <view class="xc-partner-frame">
              <view class="zzk-1 flex jc_sb" bindtap="go_t_more">
                <view class="pdl10">以下小伙伴正在拼单，可直接参与</view>
                <view class="ckgd flex ai_c">
                  查看详细
                  <view class="bg_right arrow-one"></view>
                </view>
              </view>
            </view>

            <block wx:for="{{teamgroup}}" wx:for-index="t_ind">
              <view class='group' wx:if="{{item.open_num>0}}" >
              <view class='group-list' bindtap="go_cj_team" data-ind="{{t_ind}}" data-goodsid="{{front_g.goods_id}}">
                <!-- <view class="flex ai_c"> -->
                <!-- //选项框头像 -->
                <view class='gtou'>
                  <image src='{{item.user.head_pic}}'></image>
                </view>
                <!-- //等你来拼 -->
                <view class='gdn ellipsis-1'>{{item.user.nickname}}</view>
                <!-- </view> -->
                <!-- //还差几人，剩余时间 -->
                <view class="rel">
                  <view class='ghaicha ellipsis-2'>
                    <text class='gred' wx:if="{{prom_act.max_ct_num >0}}">
                      <text class="flex" wx:if="{{prom_act.max_ct_num - item.open_num>0}}">还差<text class="word-color">{{prom_act.max_ct_num - item.open_num}}</text>人享最低优惠</text>
                      <text wx:else>您已经享最低优惠</text>
                    </text>
                    <text class='gred' wx:else>还差<text style='color:#ff2753'>{{prom_act.ct_num - item.open_num}}</text>人成团</text>
                    <view class="t_show">剩余<text wx:if="{{timer[t_ind].day}}">{{timer[t_ind].day}}天:</text><text>{{timer[t_ind].hou}}</text>:<text>{{timer[t_ind].min}}</text>:<text>{{timer[t_ind].sec}}</text>
                    </view>
                  </view>
                </view>
                <!-- //参加团 -->
                <view class='cjt t-c'>去参团</view>
                <!-- <view class="clear"></view> -->
              </view>
            </view>
            </block>
          </view>


        </view>
        <!-- 积分购 -->
        <view wx:if="{{prom_type==4}}">
          <view class="goods-price">
            <!-- 价格显示 -->
            <view class="co-red flex jc_sb ai-center">
              <view class="market-price" style="overflow: hidden; height: 66rpx;display: flex; align-items: flex-end;line-height: normal;">
                <image class="rel_img"  style="display: block;top:12rpx" src="{{iurl}}/miniapp/images/integral/integral_red.png"></image>
                <block wx:if="{{prom_integral}}">
                  <text style="display: block;font-size:58rpx; line-height: 58rpx;position: relative;top:8rpx ">{{prom_integral}}</text>
                  <text class="rel_txt">积分</text>
                </block>
                <text class="rel_txt" wx:if="{{prom_integral && prom_price}}">+</text>
                <text class="rel_txt" wx:if="{{prom_price}}">{{filters.toFix(prom_price,2)}}元</text>
                <text class="rel_txt" wx:if="{{!prom_integral && !prom_price}}">0积分</text>

                <text wx:if="{{is_retail_price}}" class="rel_txt fs22 no_line_x" decode="{{true}}" space="{{true}}" style="color: #999; text-decoration: line-through;">
                  &nbsp;&nbsp;&nbsp;零售价：￥{{filters.toFix(front_g.market_price,2)}}
                </text>

                <text wx:else class="rel_txt fs22" decode="{{true}}" space="{{true}}" style="color: #999; text-decoration: line-through;">
                  &nbsp;&nbsp;&nbsp;￥{{filters.toFix(front_g.shop_price,2)}}
                </text>

              </view>
              <!-- 这个是分享按钮 -->
              <!-- <view class="xc-share-frame {{prom_type==1?'s_ms_bth':''}} t-c"  bindtap="saveImageToPhotosAlbum"> -->
              <view wx:if="{{isLogin}}" class="xc-share-frame t-c shrink0" bindtap="clickShare">
                <!-- <image class="share-frame" src="{{iurl}}/miniapp/images/share.png"></image> -->
                <view class="iconfont icon-share"></view>
                <!-- <view class="share-font">1分享</view> -->
                <view class="fs22 c-7b">分享</view>
              </view>
            </view>
            <view class="goods-num" style="font-size: 30rpx;margin: 18rpx 0;" wx:if="{{ prom_act.show_time_off}}">
              {{prom_act.show_time_off}}开始兑换
            </view>
            <view class="goods-title">
              <image wx:if="{{front_g.commission > 0}}" style="width: 25rpx;height: 25rpx;margin-right: 6rpx;" src="https://mshop-lib.yolipai.net/template/mobile/new/static/images/addmoney.png"></image>
              <view class="goods-name elli"><text bindtouchstart="handtouch" data-name="gn_sele_fir" selectable='{{gn_sele_fir}}' user-select="{{gn_sele_fir}}">{{front_g.goods_name}}</text></view>
            </view>
            <view class="goods-num">
              <view class="sales">销量：{{prom_act.buy_num+prom_act.virtual}}件</view>
              <view class="stock">
                折扣：{{g_filters.num((prom_price?prom_price:0)*10/front_g.shop_price)}}折
              </view>
              <view class="stock">{{categories3[0].num}}人评价</view>
            </view>
          </view>
        </view>
        <!-- 不是拼团，不是积分购 -->
        <block wx:if="{{prom_type!=6 && prom_type!=4}}">



          <view class="goods-price">

            <view class="flex jc_sb ai_c">
              <view class="co-red" wx:if="{{prom_type==0 || prom_type==3}}">




                <view class="market-price flex" style="align-items: baseline;">
                  <block wx:if="{{card_field && front_g[card_field]>0}}">
                    <view class="flex ai-center  grade-card-frame">
                      <image class="img" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
                      <view class="fs24 white view card-name ellipsis-1">{{card_name}}</view>
                    </view>
                    <text class="rel yuan">￥</text>
                    {{filters.toFix(front_g[card_field],2)}}
                  </block>

                  <block  wx:else >
                    <text class="rel yuan">￥</text>{{filters.toFix(front_g.shop_price,2)}}
                  </block>

                  <view  wx:if="{{is_retail_price}}"  class='yj' style="margin-left:10rpx">
                    <text class="no_line_x">零售价：￥{{filters.toFix(front_g.market_price,2)}}</text>
                  </view>

                </view>
              </view>
              <!-- 这个是分享按钮 -->
              <view class="xc-share-frame t-c shrink0" bindtap="clickShare" wx:if="{{prom_type != 1 && prom_type != 2 && isLogin}}">
                <!-- <image class="share-frame" src="{{iurl}}/miniapp/images/share.png"></image> -->
                <view class="iconfont icon-share"></view>
                <view class="fs22 c-7b">分享</view>
              </view>
            </view>
            <!-- 不是秒杀 -->
            <!-- 等级卡的价格,不是等级卡会员，且商品又有设置等级级价，商家后台有开通升级卡同能 -->
            <view class="flex ai_and" wx:if="{{!card_field && is_no_plus && g_filters.is_has_rank(rank_switch,front_g) && prom_type!=1 && prom_type!=2 && prom_type!=4 && card_list && card_list.length>0 && g_filters.get_card_price(front_g,card_list,1)!=''}}">
              <view class="flex ai-center  grade-card-frame card-frame">
                <image class="img" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
                <view class="fs24 white view card-name ellipsis-1">
                  {{g_filters.get_card_price(front_g,card_list,1)}}
                </view>
              </view>
              <view class="fs32 xc-black3 ai_and carde_frame">
                <text class="fs26">￥</text>{{g_filters.get_card_price(front_g,card_list,0)}}
              </view>
            </view>
            <!-- 等级卡的显示,购买, 等级卡近30天要显示续费 -->
            <block wx:if="{{g_filters.is_has_rank(rank_switch,front_g) && is_no_plus}}">
              <!-- 不是秒杀，且会员不是等级会员 -->
              <view wx:if="{{!card_field && prom_type!=1 && prom_type!=2  && card_list && card_list.length>0 && g_filters.get_card_price(front_g,card_list,1)!=''}}">
                <view class="beauty-makeup-frame flex ai-center">
                  <view class="left flex ai-center jc_sa">
                    <view class="flex ai-center  grade-card-frame card-frame advert-card">
                      <image class="img" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
                      <view class="fs24 white view card-name ellipsis-1">
                        {{g_filters.get_card_price(front_g,card_list,1)}}
                      </view>
                    </view>
                    <view class="card-effect">
                      <view class="fs24 xc-black3">
                        成为{{g_filters.get_card_price(front_g,card_list,1)}}立
                        <text class="co-red">省{{filters.toFix(front_g.shop_price-g_filters.get_card_price(front_g,card_list,0),2)}}</text>元
                      </view>
                      <view class="fs22 xc-ash">开通会员 尽享更多优惠</view>
                    </view>
                  </view>
                  <view class="right flex jc-center ai-center" bindtap="go_plus">
                    <view class="at_once_carde xc-black3 fs28">立即开卡</view>
                    <view class="bg_right"></view>
                  </view>
                </view>
              </view>
              <!-- 立即续费的显示 -->
              <view wx:elif="{{is_near_date && front_g[card_field]>0 && prom_type!=1 && prom_type!=2 && card_name!=''}}">
                <view class="beauty-makeup-frame flex ai-center">
                  <view class="left flex ai-center jc_sa">
                    <view class="flex ai-center grade-card-frame card-frame advert-card">
                      <image class="img" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
                      <view class="fs24 white view card-name ellipsis-1">{{card_name}}</view>
                    </view>
                    <view class="card-effect">
                      <view class="fs24 xc-black3">
                        成为{{card_name}}立
                        <text class="co-red">
                          省{{filters.toFix(front_g.shop_price[card_field],2)}}
                        </text>
                        元
                      </view>
                      <view class="fs22 xc-ash">开通会员 尽享更多优惠</view>
                    </view>
                  </view>
                  <view class="right flex jc-center ai-center" bindtap="go_card_info">
                    <view class="at_once_carde xc-black3 fs28">立即续费</view>
                    <view class="bg_right"></view>
                  </view>
                </view>
              </view>
            </block>

            <!-- 许程商品名字 -->
            <view wx:if="{{prom_type!=1 && prom_type!=2 }}">
              <view class="goods-title">
                <image wx:if="{{front_g.commission > 0}}" style="width: 25rpx;height: 25rpx;margin-right: 6rpx;" src="https://mshop-lib.yolipai.net/template/mobile/new/static/images/addmoney.png"></image>
                <view class="goods-name elli"><text bindtouchstart="handtouch"  data-name="gn_sele_fir" selectable='{{gn_sele_fir}}' user-select="{{gn_sele_fir}}" >{{front_g.goods_name}}</text></view>
              </view>
            </view>
            <view class="goods-num" wx:if="{{prom_type!=1 && prom_type!=2}}">
              <view class="sales">销量：{{front_g.sales_sum}}件</view>
              <view class="stock">折扣：{{g_filters.num(front_g.disc)}}折</view>
              <view class="stock">{{categories3[0].num}}人评价</view>
            </view>

            <view wx:if="{{prom_type==1}}">
              <view class="flex jc_sb ai_c">
                <view class="flex" style="align-items: baseline;">
                  <view class="flex xc-price-frame">
                    <text class="fs30">￥</text>
                    {{f_prom_price}}
                  </view>
                  <view wx:if="{{is_retail_price}}" class="word-line fs24 no_line_x">零售价：￥{{filters.toFix(front_g.market_price,2)}}</view>
                  <view wx:else class="word-line no_line_x fs24">￥{{filters.toFix(front_g.shop_price,2)}}</view>
                </view>
                <!-- 这个是分享按钮 -->
                <view wx:if="{{isLogin}}" class="xc-share-frame t-c shrink0" bindtap="clickShare">
                  <view class="iconfont icon-share"></view>
                  <view class="fs22 c-7b">分享</view>
                </view>

              </view>
            </view>

            <!-- 秒杀的活动名称 -->
            <view class="xc-explain fs32 ellipsis-2" wx:if="{{prom_type!=0 && prom_type!=4  && prom_type!=2}}">
              <text bindtouchstart="handtouch" data-name="gn_sele_fir"  selectable='{{gn_sele_fir}}' user-select="{{gn_sele_fir}}">{{front_g.goods_name}}</text>
            </view>

            <view class="xc-explain flex jc_sb" wx:if="{{prom_type==2}}">
              <view class="fs32 ellipsis-2" style="max-width:80%; max-height: 90rpx;"><text bindtouchstart="handtouch" data-name="gn_sele_fir" selectable='{{gn_sele_fir}}' user-select="{{gn_sele_fir}}">{{front_g.goods_name}}</text></view>
              <!-- 这个是分享按钮 -->
              <view wx:if="{{isLogin}}" class="xc-share-frame t-c shrink0" bindtap="clickShare" style="flex-shrink:0;position: relative;top: -22rpx;">
                <view class="iconfont icon-share"></view>
                <view class="fs22 c-7b">分享</view>
              </view>
            </view>

            <!-- 许程 7.24 暂时注释，秒杀才有多规格-->
            <view wx:if="{{prom_type==1}}">
              <view class="goods-num">
                <block wx:if="f_prom_st>0">
                  <view class="stock">总数量：{{f_prom_act.is_virtual_count ? f_prom_act.goods_num : (f_prom_act.goods_num+f_prom_act.virtual)}}件</view>
                  <view class="stock" wx:if="{{f_prom_act.buy_limit>0}}">限购:{{f_prom_act.buy_limit}}件</view>
                  <view class="stock" wx:else>限购:不限</view>

                  <block wx:if="{{f_prom_st==0}}">
                    <view class="sales">已购:0件</view>
                  </block>
                  <block wx:else>
                    <view class="sales">已购:{{f_prom_act.buy_num+f_prom_act.virtual}}件</view>
                  </block>
                </block>
                <block wx:else>
                  <view class="stock">总数量：{{f_prom_act.goods_num}}件</view>
                  <view class="stock" wx:if="{{f_prom_act.buy_limit>0}}">限购:{{f_prom_act.buy_limit}}件</view>
                  <view class="stock" wx:else>限购:不限</view>
                  <view class="sales">已购:{{f_prom_act.buy_num}}件</view>
                </block>
              </view>
            </view>
            <view wx:if="{{prom_type==2}}">

              <view class="goods-num">
                <block wx:if="prom_st>0">
                  <view class="stock">总数量：{{prom_act.goods_num+prom_act.virtualNum}}件</view>
                  <view class="stock" wx:if="{{prom_act.buy_limit>0}}">限购:{{prom_act.buy_limit}}件</view>
                  <view class="stock" wx:else>限购:不限</view>

                  <block wx:if="{{prom_st==0}}">
                    <view class="sales">已购:0件</view>
                  </block>
                  <block wx:else>
                    <view class="sales">已购:{{prom_act.buy_num+prom_act.virtualNum}}件</view>
                  </block>
                </block>
                <block wx:else>
                  <view class="stock">总数量：{{prom_act.goods_num}}件</view>
                  <view class="stock" wx:if="{{prom_act.buy_limit>0}}">限购:{{prom_act.buy_limit}}件</view>
                  <view class="stock" wx:else>限购:不限</view>
                  <view class="sales">已购:{{prom_act.buy_num}}件</view>
                </block>
              </view>
            </view>
          </view>
        </block>


        <!-- 要判断是不是有促销活动 -->

<!--        <block wx:if="{{prom_goods}}">-->
<!--          <view class="cx-frame flex" style="position: relative; height: auto" hidden="{{prom_type==4 || prom_type==6}}">-->
<!--            &lt;!&ndash; 中间显示层 &ndash;&gt;-->
<!--            <block>-->
<!--              <view class="cx-sizs fs30 pdr20">促销</view>-->
<!--              <view class="f1">-->
<!--                <view class="fs28 f1" wx:for="{{prom_goods}}">-->
<!--                  <view>-->
<!--                    <text class="prom_condition">-->
<!--                      <text class="fill-box">消费满{{item.condition}}{{item.prom_type==1 ? '件':'元'}}</text>享优惠(每人{{item.limit_num ? '限参与'+item.limit_num+'次' : '参与不限次' }})-->
<!--                    </text>-->
<!--                  </view>-->

<!--                  <view class="word f1 fs26">-->
<!--                    <text class="tick lh2 pdr20" wx:if="{{item.money>0}}">减价{{item.money}}元</text>-->
<!--                    <text class="tick lh2 pdr20" wx:if="{{item.sale>0}}">打{{item.sale}}折</text>-->
<!--                    <text class="tick lh2 pdr20" wx:if="{{item.past==1}}">包邮</text>-->
<!--                    <text class="tick lh2 pdr20" wx:if="{{item.intValue>0}}">送{{item.intValue}}积分</text>-->
<!--                    <view class="tick lh2 pdr20" wx:if="{{item.couponId>0}}">送{{item.couponMoney}}元优惠券</view>-->

<!--                    <block wx:if="{{item.gift_id}}">-->
<!--                      <view class="tick ellipsis-1x lh2 details pdr40" bindtap="show_zp" data-index="{{index}}" data-prom="{{item.prom_id}}" wx:if="{{g_filters.is_more_gift(item.gift_id)>1}}">送赠品</view>-->
<!--                      <view class="tick ellipsis-1x lh2" style="display: flex;align-items: center;" wx:else>-->
<!--                        <block wx:if="{{item.zp_num>0}}">-->
<!--                          <view class="ellipsis-1x">送{{item.goods_name}}</view>-->
<!--                          <view style="color: red;margin-left: 20rpx;">x{{item.zp_num}}</view>-->
<!--                        </block>-->
<!--                      </view>-->
<!--                    </block>-->



<!--                    <view class="tick ellipsis-1x lh2 details pdr40" wx:if="{{item.lb_id>0}}" data-id="{{item.lb_id}}" bindtap="viewLbDetails">送{{item.lbtitle}}</view>-->
<!--                    <view class="tick ellipsis-1x lh2 details pdr40" wx:if="{{item.zxlb_id>0}}" data-id="{{item.zxlb_id}}" data-flag="1" bindtap="viewLbDetails">送{{item.zxlbtitle}}</view>-->
<!--                  </view>-->
<!--                </view>-->
<!--              </view>-->

<!--            </block>-->
<!--          </view>-->
<!--        </block>-->

<!--        <block wx:if="{{jieti_prom}}">-->
<!--          <view class="cx-frame flex jc_sb" bindtap="go_more_ladder" data-id="{{ladder_act_id}}" style="position: relative; height: auto">-->
<!--            <view class="flex" style="width: 92%">-->
<!--              <view class="cx-sizs fs30" style="width: 90rpx;flex-shrink: 0">阶梯促</view>-->
<!--              &lt;!&ndash; 中间显示层 &ndash;&gt;-->
<!--              <view class="ellipsis-1 fs24">-->
<!--                <text class="jie_show fs22">阶</text>-->
<!--                {{jieti_prom}}-->
<!--              </view>-->
<!--            </view>-->
<!--            <view data-coupon="1" bindtap="show_more_cx" class="cx-obtain-coupon wsize">-->
<!--              <text class="bg_jj" style="position: relative;right: 3rpx"></text>-->
<!--            </view>-->
<!--          </view>-->
<!--        </block>-->
        
        <block wx:if="{{f_order_prom}}">
          <view class="cx-frame flex" style="position: relative; height: auto">
            <view class="cx-sizs fs30 pdr20">订单优惠</view>
            <!-- 中间显示层 -->
            <view class="flex ai-center">
              <image class="hui_img" src="{{iurl}}/miniapp//images/hui.png"></image>
              <view class="order_hui">
                <view class="fs28 ellipsis-1">{{f_order_prom.name}}</view>
                <view class="fs26">
                  (活动时间：{{tool.format_tt(f_order_prom.start_time)}} - {{tool.format_tt(f_order_prom.end_time)}})
                </view>
              </view>
            </view>
          </view>
        </block>

<!--        <block wx:if="{{zh_act}}">-->
<!--          <view class="cx-frame flex" style="position: relative; height: auto">-->
<!--            <view class="cx-sizs wsize" style="width: 144rpx">组合购</view>-->
<!--            &lt;!&ndash; 中间显示层 &ndash;&gt;-->
<!--            <view class="flex ai-center jc_sb" style="width: 570rpx" bindtap="go_zh" data-id="{{zh_act.id}}">-->
<!--              <view class="flex">-->
<!--                <image class="hui_img" src="{{iurl}}/miniapp//images/hui.png"></image>-->
<!--                <view class="order_hui">-->
<!--                  <view class="fs28 ellipsis-1">{{zh_act.name}}</view>-->
<!--                  <view class="fs26">-->
<!--                    (活动时间：{{tool.format_tt(zh_act.start_time)}} - {{tool.format_tt(zh_act.end_time)}})-->
<!--                  </view>-->
<!--                </view>-->
<!--              </view>-->
<!--              <view>-->
<!--                <text class="bg_jj is_more_cx" style="position: relative;top:-10rpx"></text>-->
<!--              </view>-->
<!--            </view>-->
<!--          </view>-->
<!--        </block>-->


        <!-- 判断是不是有秒杀 -->
           <!-- 判断是不是有秒杀 -->
        <block wx:if="{{f_more_flash}}">

          <block wx:for="{{f_more_flash}}">
<!--            <view class="cx-frame flex" style="position: relative; height: auto" wx:if="{{item.prom_type==1}}">-->
            <view class="cx-frame flex" style="position: relative; height: auto" >
               <view wx:if="{{item.prom_type==1}}"  class="cx-sizs wsize" style="width: 144rpx">秒杀</view>
               <view wx:if="{{item.prom_type==2}}"  class="cx-sizs wsize" style="width: 144rpx">团购</view>
               <view wx:if="{{item.prom_type==4}}"  class="cx-sizs wsize" style="width: 144rpx">积分购</view>
               <view wx:if="{{item.prom_type==6}}"  class="cx-sizs wsize" style="width: 144rpx">天天拼单</view>
               <view wx:if="{{item.prom_type==8}}"  class="cx-sizs wsize" style="width: 144rpx">预售</view>
               <view wx:if="{{item.prom_type==9}}"  class="cx-sizs wsize" style="width: 144rpx">幸运购</view>

              <!-- 中间显示层 -->
              <view class="flex ai-center jc_sb" style="width: 570rpx" bindtap="go_more_flash"  data-prom_type="{{item.prom_type}}"  data-id="{{item.act_id}}">
                <view class="flex">

                  <view wx:if="{{item.prom_type==1}}" class="miao_lab">秒</view>
                  <view wx:if="{{item.prom_type==2}}" class="miao_lab">团</view>
                  <view wx:if="{{item.prom_type==4}}" class="miao_lab">积</view>
                  <view wx:if="{{item.prom_type==6}}" class="miao_lab">拼</view>
                  <view wx:if="{{item.prom_type==8}}" class="miao_lab">预</view>
                  <view wx:if="{{item.prom_type==9}}" class="miao_lab">幸</view>



                  <view class="order_hui">
                    <view class="fs28 ellipsis-1">{{item.act_name}}</view>
                    <view class="fs26">
                      (活动时间：{{tool.format_tt(item.s_time)}} - {{tool.format_tt(item.e_time)}})
                    </view>
                  </view>
                </view>
                <view>
                  <text class="bg_jj is_more_cx" style="position: relative;top:-10rpx"></text>
                </view>
              </view>
            </view>
          </block>
        </block>

        <!-- 新增促销多活动的排版 -->
        <view class="bdt16" wx:if="{{ prom_type!=1 && prom_type!=2 && prom_type!=4 && prom_type!=6 && f_cx_prom_group.length>0}}">
          <view data-coupon="1" bindtap="switch_cx_group" class="cx-frame flex" style="position: relative">
            <view class="cx-sizs fs30">促销</view>
            <view class="flex ai_c f1 pdh20">
                <view class="xc-coupon-fram" wx:for="{{f_cx_prom_group}}" >
                  <view wx:if="{{item.prom_type==3}}" class="xc-coupon t-c four-level-word">优惠促销</view>
                  <view wx:if="{{item.prom_type==5}}" class="xc-coupon t-c four-level-word">搭配促销</view>
                  <view wx:if="{{item.prom_type==7}}" class="xc-coupon t-c four-level-word">组合购</view>
                  <view wx:if="{{item.prom_type==10}}" class="xc-coupon t-c four-level-word">阶梯促销</view>
                </view>
            </view>
            <view class="cx-obtain-coupon wsize">
              <text class="bg_jj"></text>
            </view>
          </view>
        </view>


        <!-- 许程 7.24暂时注释，秒杀，团购，积分，拼团的详情页面不显示券的领取 -->
        <view class="bdt16" wx:if="{{ f_prom_type!=1 &&  f_prom_type!=2 &&  f_prom_type!=4 &&  f_prom_type!=6 && prom_act.kttype!=3&&prom_act.kttype!=2&&prom_act.kttype!=1 && is_closecoupon!=1 && front_g.is_xz_yh !=1 && fir_quan.length>0 }}">
          <view data-coupon="1" bindtap="switchCoupon" class="cx-frame flex" style="position: relative">
            <view class="cx-sizs fs30">领券</view>
            <view class="flex ai_c f1 pdh20">
              <view class="xc-coupon-fram" wx:for="{{fir_quan}}" wx:key="id">
                <view class="circle xc-circular xc-one"></view>
                <view class="xc-coupon t-c four-level-word">
                  满{{item.condition}}减{{item.money}}
                </view>
                <view class="circle xc-circular xc-two"></view>
              </view>
            </view>
            <view class="cx-obtain-coupon wsize">
              <text class="bg_jj"></text>
            </view>
          </view>
        </view>

        <!-- 门店收货地址 -->
        <view class="xc-address_frame bdt16 flex-vertical xc-ash {{front_pick!=null?'sn_height':'on_height'}}">
          <view class="address_frame" bindtap="choice_store" data-ind="0" data-isfront="1"  >
            <view class="flex-vertical-between ">
              <view class="flex-vertical select_store_height">
                <image class="stores-img" src="{{iurl}}/miniapp/images/stores.png"></image>
                <view class="fs30" style="color:black;">选择门店</view>
              </view>
              <view hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red_bb fs26">更多门店<text class="bg_jj"></text></view>
            </view>
            <view wx:if="{{front_pick && front_pick.pickup_name}}">
              <view class="flex-space-between address ai_end pdv10">
                <view>
                  <text class="fs30 xc-black3 shop_name bold">{{front_pick.pickup_name}}</text>
                </view>
                <view class="distance fs24" wx:if="{{front_pick.distance!=null}}">
                  距离：{{front_pick.distance>1000?filters.toFix(front_pick.distance/1000,2)+"km":filters.toFix(front_pick.distance,0)+"m"}}
                </view>
              </view>
              <view class="no_store" wx:if="{{front_only_pk && !front_only_pk.length}}">(库存不足)</view>
              <block wx:else>
                <view class="no_store" wx:if="{{front_def_pickpu_list && !front_def_pickpu_list.length}}">
                  (库存不足)
                </view>
                <block wx:else>
                  <view class="no_store" wx:if="{{front_pick && front_pick.is_no_dis}}">
                    (配送不匹配)
                  </view>
                  <view class="no_store" wx:elif="{{front_pick && front_pick.is_no_dis_nor && prom_type==0}}">
                    (该店不可售)
                  </view>
                  <view class="no_store" wx:elif="{{front_pick && front_pick.is_no_dis_act}}">
                    (该店不可售)
                  </view>
                  <view class="no_store" wx:elif="{{front_pick && !front_pick.CanOutQty && !filters.is_virtual_gd(front_g.is_virtual)  && sales_rules>=2 && prom_type==0 && !front_g.whsle_id}}">
                    (库存不足)
                  </view>
                </block>
              </block>
              <view class="fs24 xc-ash-9f">地址:{{front_pick.fulladdress}}</view>
            </view>
          </view>
        </view>
        <!-- 保障服务 -->
        <view class="bz_view flex bdt16 ai_c" wx:if="{{bconfig.service_bz}}">
          <image class="bzfu_img" src="{{iurl}}/miniapp/images/bzfu_w.png"></image>
          <view class="flex f1 ai_c rel" style="position: relative;" bindtap="{{showFold ? 'clickCollapse':''}}">
            <view class="bz-content showArea {{flag ? '':'ellipsis-1x'}}">{{bconfig.service_bz}}</view>
            <view class="bz-content hideArea">{{bconfig.service_bz}}</view>
            <view class="cx-obtain-coupon wsize arrow" wx:if="{{showFold}}">
              <text class="bg_jj down {{flag ? 'up':''}}"></text>
            </view>
          </view>
        </view>
       
        <!-- - 宝贝评价 -- -->
        <view class="bdt16">
          <view class="bb_view">
            <view class="bold">宝贝评价({{categories3[0].num}})</view>
            <view class="red_bb fs26" bindtap="look_pj">
              查看全部
              <text class="bg_jj"></text>
            </view>
          </view>
          <view class="xc_comment">
            <view class="xc_comment-have-pictures" data-val="5" bindtap="clik_evaluate">
              有图({{categories3[1].num}})
            </view>
            <view class="xc_comment-discuss" data-val="2" bindtap="clik_evaluate">
              好评({{categories3[2].num}})
            </view>
            <view class="xc_comment-discuss" data-val="3" bindtap="clik_evaluate">
              中评({{categories3[3].num}})
            </view>
            <view class="xc_comment-discuss" data-val="4" bindtap="clik_evaluate">
              差评({{categories3[4].num}})
            </view>
          </view>
          <scroll-view scroll-x="true" class="pj_scroll">
            <view class="flex">
              <view class="xc_comment-detail" style="" wx:for="{{fir_comments}}" wx:key="fir_comments">
                <view class="xc_comment-left">
                  <view class="xc_comment-user">
                    <view class="xc_user-img">
                      <image class="xc_imgs" src='{{item.is_anonymous!=1?item.head_pic:iurl+"/miniapp/images/hui_hear_pic.png"}}' binderror="bind_bnerr2" data-errorimg="fir_comments[{{index}}].head_pic"></image>
                    </view>
                    <view class="xc_user">
                      <view class="xc_user-name five-level-word">
                        {{item.is_anonymous!=1?item.username:'匿名'}}
                      </view>
                      <image class="xc_comment-img" src="{{iurl}}/miniapp/images/star-red.png" wx:for="{{item.sum_rank}}" wx:key="{{index}}"></image>
                    </view>
                  </view>
                  <view class="xc_comment-font pj_word_size ellipsis-1 pdt12">
                    <text class="ellipsis-1">{{item.content?item.content:'此用户没有填写评价。'}}</text>
                  </view>
                  <view class="xc_comment-val">
                    <view class="xc_comment-time">{{item.add_time}}</view>
                  </view>
                </view>
                <view class="xc_goods-img-frame">
                  <image wx:if="{{item.img[0]!=undefined && item.img[0]!=null}}" class="xc_goods-img" src='{{iurl+item.img[0]}}'></image>
                  <image wx:elif="{{item.weapp_img[0]!=undefined && item.weapp_img[0]!=null}}" class="xc_goods-img" src='{{item.weapp_img[0]}}'></image>
                  <image wx:else class="xc_goods-img" src='{{gallery[0].image_url}}'></image>
                </view>
              </view>
            </view>
          </scroll-view>
        </view>

        <!-- 图文详情 -->
        <view class="bdt16">
          <view class="t_g_info">
            <view class="red_shu"></view>
            <view class="fs30 bold">商品详情</view>
          </view>
          <view class="pd20">
            <view class="table_s">
              <view class="tb_item tb-l">
                <view class="item_left">
                  <text>商品名称</text>
                </view>
                <view class="item_right" bindtouchstart="handtouch" data-name="gn_sele_sec">
                  <text   selectable='{{gn_sele_sec}}' user-select="{{gn_sele_sec}}">{{front_g.goods_name}}</text>
                </view>
              </view>
              <view class="tb_item tb-l">
                <view class="item_left">
                  <text>商品编号</text>
                </view>
                <view class="item_right" bindtouchstart="handtouch" data-name="sn_sele_sec" >
                  <text  selectable='{{sn_sele_sec}}'  user-select="{{sn_sele_sec}}" >{{front_g.goods_sn}}</text>
                </view>
              </view>
              <view class="tb_item tb-l">
                <view class="item_left">
                  <text>商品条码</text>
                </view>
                <view class="item_right" bindtouchstart="handtouch" data-name="sku_sele_sec" >
                  <text  selectable='{{sku_sele_sec}}'  user-select="{{sku_sele_sec}}" >{{front_g.sku}}</text>
                </view>
              </view>
              <view class="tb_item tb-l" wx:if="{{cat_name && is_show_pl}}">
                <view class="item_left">
                  <text>品类</text>
                </view>
                <view class="item_right" bindtouchstart="handtouch" data-name="cate_sele_sec" >
                  <text  selectable='{{cate_sele_sec}}' user-select="{{cate_sele_sec}}" >{{cat_name}}</text>
                </view>
              </view>
              <view class="tb_item tb-l" wx:if="{{brand_name && is_show_pp}}">
                <view class="item_left">
                  <text>品牌</text>
                </view>
                <view class="item_right" bindtouchstart="handtouch" data-name="brand_sele_sec" >
                  <text  selectable='{{brand_sele_sec}}'  user-select="{{brand_sele_sec}}"  >{{brand_name}}</text>
                </view>
              </view>
              <view class="tb_item tb-l" wx:if="{{nation_name && is_show_gb}}">
                <view class="item_left">
                  <text>国别</text>
                </view>
                <view class="item_right"  bindtouchstart="handtouch" data-name="nation_sele_sec" >
                  <text  selectable='{{nation_sele_sec}}'  user-select="{{nation_sele_sec}}" >{{nation_name}}</text>
                </view>
              </view>
              <view class="tb_item tb-l">
                <view class="item_left">
                  <text>规格</text>
                </view>
                <view class="item_right"  bindtouchstart="handtouch" data-name="guige_sele_sec" >
                  <text selectable='{{guige_sele_sec}}'   user-select="{{guige_sele_sec}}"  >{{filters.show_gui_ge(front_g.goods_spec,front_g.goods_color)}}</text>
                </view>
              </view>
              <view class="tb_item tb-l">
                <view class="item_left">
                  <text>上架时间</text>
                </view>
                <view class="item_right" bindtouchstart="handtouch" data-name="ontime_sele_sec">
                  <text   selectable='{{ontime_sele_sec}}' user-select="{{ontime_sele_sec}}"  >{{front_g.on_time}}</text>
                </view>
              </view>
            </view>
          </view>

          <!-- 详情广告顶部-->
          <view class="wxParse">
            <template is="wxParse" data="{{wxParseData:goodInfo_ad2.nodes}}"></template>
          </view>

          <!-- 详情图片 -->
          <view class="wxParse">
            <template is="wxParse" data="{{wxParseData:content.nodes}}"></template>
          </view>
         <!-- 详情广告 -->
         <view class="wxParse">
            <template is="wxParse" data="{{wxParseData:goodInfo_ad.nodes}}"></template>
          </view>
        </view>
        <!-- 推荐商品 -->
        <view class="flex-center rel xc-linellae-frame">
          <view class="xc-linellae"></view>
          <view class="abs flex-center xc-recommend-frame ">
            <image class=" xc-recommend" src="{{iurl}}/miniapp/images/diamond.png"></image>
            <view class="xc-recommend-word">推荐</view>
          </view>
        </view>
        <goods_recommend id="goods_list"></goods_recommend>
      </view>
      <!-- ----------商品详情图片页面-------------- -->
      <view class="goods-norms" hidden="{{activeCategoryId==1?false:true}}">
        <view class="table_s">
          <view class="tb_item tb-l">
            <view class="item_left">
              <text>商品名称</text>
            </view>
            <view class="item_right" bindtouchstart="handtouch" data-name="gn_sele_sec">
              <text selectable='{{gn_sele_sec}}'  user-select="{{gn_sele_sec}}"  >{{front_g.goods_name}}</text>
            </view>
          </view>
          <view class="tb_item tb-l">
            <view class="item_left">
              <text>商品编号</text>
            </view>
            <view class="item_right" bindtouchstart="handtouch" data-name="sn_sele_sec" >
              <text  selectable='{{sn_sele_sec}}'   user-select="{{sn_sele_sec}}" >{{front_g.goods_sn}}</text>
            </view>
          </view>
          <view class="tb_item tb-l">
            <view class="item_left">
              <text>商品条码</text>
            </view>
            <view class="item_right" bindtouchstart="handtouch" data-name="sku_sele_sec">
              <text  selectable='{{sku_sele_sec}}'  user-select="{{sku_sele_sec}}" >{{front_g.sku}}</text>
            </view>
          </view>
          <view class="tb_item tb-l" wx:if="{{cat_name && is_show_pl}}">
            <view class="item_left">
              <text>品类</text>
            </view>
            <view class="item_right" bindtouchstart="handtouch" data-name="cate_sele_sec" >
              <text   selectable='{{cate_sele_sec}}'  user-select="{{cate_sele_sec}}"  >{{cat_name}}</text>
            </view>
          </view>
          <view class="tb_item tb-l" wx:if="{{brand_name && is_show_pp}}">
            <view class="item_left">
              <text>品牌</text>
            </view>
            <view class="item_right"  bindtouchstart="handtouch" data-name="brand_sele_sec" >
              <text  selectable='{{brand_sele_sec}}'   user-select="{{brand_sele_sec}}"  >{{brand_name}}</text>
            </view>
          </view>
          <view class="tb_item tb-l" wx:if="{{nation_name && is_show_gb}}">
            <view class="item_left">
              <text>国别</text>
            </view>
            <view class="item_right" bindtouchstart="handtouch" data-name="nation_sele_sec" >
              <text  selectable='{{nation_sele_sec}}'  user-select="{{nation_sele_sec}}"   >{{nation_name}}</text>
            </view>
          </view>
          <view class="tb_item tb-l">
            <view class="item_left">
              <text>规格</text>
            </view>
            <view class="item_right" bindtouchstart="handtouch" data-name="guige_sele_sec" >
              <text  selectable='{{guige_sele_sec}}'   user-select="{{guige_sele_sec}}"   >{{front_g.goods_spec==""?"规格1":front_g.goods_spec}}</text>
            </view>
          </view>
          <view class="tb_item tb-l">
            <view class="item_left">
              <text>上架时间</text>
            </view>
            <view class="item_right" bindtouchstart="handtouch" data-name="ontime_sele_sec">
              <text  selectable='{{ontime_sele_sec}}'  user-select="{{ontime_sele_sec}}"    >{{front_g.on_time}}</text>
            </view>
          </view>
        </view>

        <!-- 详情广告顶部-->
        <view class="wxParse">
          <template is="wxParse" data="{{wxParseData:goodInfo_ad2.nodes}}"></template>
        </view>

        <view class="wxParse">
          <template is="wxParse" data="{{wxParseData:content.nodes}}"></template>
        </view>
         <!-- 详情广告 -->
         <view class="wxParse">
            <template is="wxParse" data="{{wxParseData:goodInfo_ad.nodes}}"></template>
          </view>
      </view>
      <!-- -------------评价页面------------ -->
      <view class="goods-comment" hidden="{{activeCategoryId==2?false:true}}">
        <view class="topframe">
          <view class="topframe-top">
            <view class="topframe-top-content">
              <view>宝贝评价</view>
              <view class="topframe-top-val">({{categories3[0].num}})</view>
            </view>
            <view class="topframe-praise" wx:if="{{categories3[0].num}}">
              好评{{ filters.toFix(categories3[2].num/categories3[0].num*100,2) }}%
            </view>
            <view wx:else>好评 0%</view>
          </view>
          <view class="buttem-list">
            <view bindtap="tabClick3" id="{{item.id}}" wx:for="{{categories3}}" wx:key="categories3" class="item {{activeCategoryId3==item.id?'red':''}}">
              {{item.name}}({{item.num}})
            </view>
          </view>
        </view>
        <block wx:for="{{comments}}" wx:for-index="cIdx" wx:key="{{cIdx}}">
          <view style='border-bottom:4rpx solid #eee;'>
            <view class="middle">
              <view class="middle-img-frame">
                <image class="middle-img" src="{{item.is_anonymous!=1?item.head_pic:iurl+'/miniapp/images/hui_hear_pic.png'}}" binderror="bind_bnerr2" data-errorimg="comments[{{cIdx}}].head_pic"></image>
                <view class="middle-user-frame">
                  <view class="middle-user">
                    {{item.username==''||item.is_anonymous==1 ?'匿名用户':item.username}}
                  </view>
                  <image class="star" src="{{iurl}}/miniapp/images/star-red.png" wx:for="{{item.sum_rank}}" wx:key="{{index}}"></image>
                </view>
              </view>
              <view class="xc-pirces">
                <view class="middle-font {{item.seeMore==true?'ellipsis-3':''}}">
                  {{item.content?item.content:'此用户没有填写评价。'}}
                </view>
              </view>
              <view wx:if='{{item.seeMore}}' data-index='{{cIdx}}' class="s_btn fs30 red-co" catchtap='toggleHandler'>
                全部显示
              </view>
              <view wx:if='{{!item.seeMore && item.auto}}' data-index='{{cIdx}}' class="s_btn fs30 red-co" catchtap='toggleContent'>
                收起
              </view>
              <view class="img-ul">
                <block wx:if="{{item.source_type==0}}">
                  <view class="img-li" wx:for="{{item.img}}" wx:key="{{index}}">
                    <image bindtap="previewCommentImgs" class="wh100" data-cidx="{{cIdx}}" data-img="{{iurl}}{{item}}" data-id="{{index}}" src="{{iurl}}{{item}}"></image>
                  </view>
                </block>
                <block wx:if="{{item.source_type==1}}">
                  <view class="img-li" wx:for="{{item.weapp_img}}" wx:if="{{aitem.length>10}}" wx:key="{{index}}" wx:for-item="aitem">
                    <image bindtap="previewCommentImgs_w" class="wh100" data-cidx="{{cIdx}}" data-img="{{aitem}}" data-id="{{index}}" src="{{aitem}}"></image>
                  </view>
                </block>
              </view>
              <view class="z_parameter">
                <view class="parameter-font">{{item.add_time}}</view>
                <view class="parameter-dian" bindtap="click_zan" data-com_id="{{item.comment_id}}" data-item_id="{{cIdx}}">
                  <image wx:if="{{item.userZanNum==1}}" class="parameter-img" src="{{iurl}}/miniapp/images/zan_red.png"></image>
                  <image wx:else class="parameter-img" src="{{iurl}}/miniapp/images/dianzan.png"></image>
                  <view class="parameter-val" style='color:{{item.userZanNum==1? "#d60022":"#999" }}'>
                    {{item.zan_num}}
                  </view>
                </view>
              </view>
            </view>
            <view class="reply rel" wx:if="{{item.replay_list}}">
              <view class="line_bulge"></view>
              <view class="shop-reply">店家回复:</view>
              <view class="shop-font" wx:for="{{item.replay_list}}" wx:for-item="r_item" wx:key="{{index}}">
                {{r_item.content}}
              </view>
            </view>
          </view>
        </block>
        <block wx:if="{{(!comments || comments.length==0) && get_c }}">
          <text class="no_pj_list">暂无评价</text>
        </block>
        <block wx:if="{{comments.length>10 && comments_no_more}}">
          <text class="no_pj_list">已经加载到底部</text>
        </block>
      </view>
    </view>
    <!-- 技术支持 -->
    <view class="logo-container t-c">
      <view class="flex ai_c fs24 jc-center pdv30 white">
        <image src="{{iurl + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>
        提供技术支持
      </view>
    </view>
  </view>
  <!-- -滚动到顶部-- -->
  <view bindtap="doScrollTop" class="toTop" wx:if="{{supportPageScroll}}">
    <image class="wh100" src="{{iurl}}/miniapp/images/topup.png"></image>
  </view>

  <!-- -----------------底部按钮------------------ -->
  <view class="join-cart">
    <!-- bindtap="contactService" -->
    <!-- <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" bindtap="click_contact"  open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">
      <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image>
      <view>客服</view>
    </button>

    <view wx:elif="{{sys_switch.weapp_customertype==2}}" class="custom-service cart-ico new_split" bindtap="con_weixin">
      <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image>
      <view>客服</view>
    </view>

    <view wx:else class="custom-service cart-ico new_split" bindtap="contactService">
      <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image>
      <view>客服</view>
    </view> -->
    

    <view class="custom-service cart-ico new_split" bindtap="openCS">
      <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image>
      <view>客服</view>
    </view>

    <view bindtap="collectGoods" class="custom-service cart-ico new_split">
      <image hidden="{{is_collect}}" class="cs-img" src="{{iurl}}/miniapp/images/heart.png"></image>
      <image hidden="{{!is_collect}}" class="cs-img" src="{{iurl}}/miniapp/images/heart-h.png"></image>
      <view>收藏</view>
    </view>
    <view class="shopping-cart cart-ico new_split">
      <navigator open-type="switchTab" url="/pages/cart/cart/cart">
        <image class="sc-img" src="{{iurl}}/miniapp/images/shopping-cart.png"></image>
        <!-- <view class="cart-num ellipsis-1">{{cartGoodsNum}}</view> -->
        <view>购物车</view>
      </navigator>
    </view>
    <view bindtap="openSpecModel" class="buy-btn cart-btn cart-btn-lg" wx:if="{{front_g.goods.is_virtual}}">
      立即购买
    </view>
    <!-- 普通商品购买 -->
    <block wx:if="{{prom_type==0 || prom_type==3}}">
      <!-- 线上销售的时候，要判断库存量，  线下库存的时候不用判断 -->
      <block wx:if="{{(front_g.store_count>0 && sales_rules==1) || sales_rules>=2 }}">
        <view bindtap="openSpecModel" data-ind="1" class="join-btn cart-btn">加入购物车</view>
        <view bindtap="openSpecModel" data-ind="2" class="buy-btn cart-btn">立即购买</view>
      </block>
      <block wx:else>
        <view class="is_stock cart-btn is_stock xc-ash-b " style="width:55.5%">库存不足</view>
      </block>
    </block>
    <!-- -----秒杀------ -->
    <block wx:if="{{prom_type==1}}">
      <block wx:if="{{f_prom_st==1 && !f_prom_r_null}}">
        <view bindtap="openSpecModel" data-ind="1" class="join-btn cart-btn">加入购物车</view>
        <view bindtap="openSpecModel" data-ind="2" class="buy-btn cart-btn">立即抢购</view>
      </block>

      <block wx:if="{{f_prom_st==0 && !f_prom_r_null}}">
        <!-- 秒杀预热要单独购买  -->
        <block wx:if="{{prom_type==1 && f_prom_act.is_shop_buy}}">
          <view bindtap="openSpecModel_Nor" data-nor="1" class="join-btn cart-btn">单独购买</view>
          <view class="buy-btn cart-btn lanse">即将开始</view>
        </block>
        <block wx:else>
          <view class="buy-btn cart-btn cart-btn-lg lanse set_width">即将开始</view>
        </block>
      </block>


      <block wx:if="{{f_prom_r_null}}">
        <block wx:if="{{prom_type==1}}">

          <!-- 多个秒杀的时候 -->
          <block wx:if="{{is_more_flash}}">
              <block wx:if="{{f_prom_act.is_shop_buy}}">
                <view bindtap="openSpecModel_Nor" data-nor="1" class="join-btn cart-btn">单独购买</view>
                <view bindtap="openSpecModel" data-ind="2"  class="buy-btn cart-btn">立即抢购</view>
              </block>
              <block wx:else>
                <view bindtap="openSpecModel" data-ind="1" class="join-btn cart-btn">加入购物车</view>
                <view bindtap="openSpecModel" data-ind="2" class="buy-btn cart-btn">立即抢购</view>
              </block>
          </block>
          <block wx:else>
              <block wx:if="{{f_prom_act.is_shop_buy}}">
                <view bindtap="openSpecModel_Nor" data-nor="1" class="join-btn cart-btn">单独购买</view>
                <view  class="buy-btn cart-btn huise">已抢光</view>
              </block>
              <block wx:else>
                <view  class="buy-btn cart-btn huise">已抢光</view>
              </block>
          </block>


        </block>

        <view wx:else class="buy-btn cart-btn cart-btn-lg huise set_width">已抢光</view>

      </block>
      <block wx:if="{{f_prom_st==3 && !f_prom_r_null}}">
        <block wx:if="{{prom_type==1 && f_prom_act.is_shop_buy}}">
          <view bindtap="openSpecModel_Nor" data-nor="1" class="join-btn cart-btn">单独购买</view>
          <view class="buy-btn cart-btn huise">活动已经结束</view>
        </block>
        <view wx:else class="buy-btn cart-btn cart-btn-lg lanse set_width">活动已经结束</view>
      </block>
    </block>


    <!-- -----团购------ -->
    <block wx:if="{{prom_type==2}}">
      <block wx:if="{{prom_st==1 && !prom_r_null}}">
        <view bindtap="openSpecModel" data-ind="1" class="join-btn cart-btn">加入购物车</view>
        <view bindtap="openSpecModel" data-ind="2" class="buy-btn cart-btn">立即抢购</view>
      </block>

      <block wx:if="{{prom_st==0 && !prom_r_null}}">
        <!-- 秒杀预热要单独购买  -->
        <block wx:if="{{prom_type==1 && prom_act.is_shop_buy}}">
          <view bindtap="openSpecModel_Nor" data-nor="1" class="join-btn cart-btn">单独购买</view>
          <view class="buy-btn cart-btn lanse">即将开始</view>
        </block>
        <block wx:else>
          <view class="buy-btn cart-btn cart-btn-lg lanse set_width">即将开始</view>
        </block>
      </block>


      <block wx:if="{{prom_r_null}}">
        <block wx:if="{{prom_type==1}}">

          <!-- 多个秒杀的时候 -->
          <block wx:if="{{is_more_flash}}">
            <block wx:if="{{prom_act.is_shop_buy}}">
              <view bindtap="openSpecModel_Nor" data-nor="1" class="join-btn cart-btn">单独购买</view>
              <view bindtap="openSpecModel" data-ind="2"  class="buy-btn cart-btn">立即抢购</view>
            </block>
            <block wx:else>
              <view bindtap="openSpecModel" data-ind="1" class="join-btn cart-btn">加入购物车</view>
              <view bindtap="openSpecModel" data-ind="2" class="buy-btn cart-btn">立即抢购</view>
            </block>
          </block>
          <block wx:else>
            <block wx:if="{{prom_act.is_shop_buy}}">
              <view bindtap="openSpecModel_Nor" data-nor="1" class="join-btn cart-btn">单独购买</view>
              <view  class="buy-btn cart-btn huise">已抢光</view>
            </block>
            <block wx:else>
              <view  class="buy-btn cart-btn huise">已抢光</view>
            </block>
          </block>


        </block>

        <view wx:else class="buy-btn cart-btn cart-btn-lg huise set_width">已抢光</view>

      </block>
      <block wx:if="{{prom_st==3 && !prom_r_null}}">
        <block wx:if="{{prom_type==1 && prom_act.is_shop_buy}}">
          <view bindtap="openSpecModel_Nor" data-nor="1" class="join-btn cart-btn">单独购买</view>
          <view class="buy-btn cart-btn huise">活动已经结束</view>
        </block>
        <view wx:else class="buy-btn cart-btn cart-btn-lg lanse set_width">活动已经结束</view>
      </block>
    </block>

    <!-- -----拼单------ -->
    <block wx:if="{{prom_type==6}}">
      <view bindtap="openSpecModel_pt" data-it="1" data-ind="1" class="join-btn cart-btn line-h">
        <view class="fir-v">

          <block wx:if="{{card_field && front_g[card_field]>0}}">
            {{filters.toFix(front_g[card_field],2)}}
          </block>
          <block wx:else>{{filters.toFix(front_g.shop_price,2)}}</block>
        </view>
        <view>单独购买</view>
      </view>
      <block wx:if="{{user_order_pt_state==0}}">
        <!-- --商家团-- -->
        <view bindtap="sendsm" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==1}}" class="buy-btn cart-btn line-h">
          <view class="fir-v">￥{{prom_act.price}}</view>
          <view>去参团</view>
        </view>
        <!-- --会员团-- -->
        <view bindtap="sendsm" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==2}}" class="buy-btn cart-btn line-h">
          <!-- <view class="fir-v">￥{{prom_act.price}}</view> -->
          <view class="pd_top1" wx:if="{{prom_act.tz_yhjgtype>1}}">
            <view>一键开团</view>
            <view wx:if="{{prom_act.tz_yhjgtype==3}}">
              佣金
              <text style="font-size: 23rpx">￥</text>
              {{filters.toFix(prom_act.tz_yyhjg,2)}}
            </view>
            <view style="margin-top:2rpx" wx:if="{{prom_act.tz_yhjgtype==2}}">团长免单</view>
            <view style="margin-top:2rpx"  wx:if="{{prom_act.tz_yhjgtype==4}}">送礼包</view>
          </view>
          <view wx:else>
            <view class="fir-v">￥{{ filters.toFix(prom_act.price,2)}}</view>
            <view>一键开团</view>
          </view>
        </view>
        <!-- -阶梯团-- -->
        <view bindtap="sendsm" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==3 && user_order_pt_state!=3 }}" class="buy-btn cart-btn line-h">
          <view class="fir-v">￥{{filters.toFix(prom_act.yf_price,2)}}</view>
          <view>支付定金</view>
        </view>
        <view wx:if="{{prom_st==0}}" class="buy-btn cart-btn lanse">即将开始</view>
        <view wx:if="{{prom_r_null}}" class="buy-btn cart-btn huise">已抢光</view>
        <view wx:if="{{prom_st==3 && !prom_r_null}}" class="buy-btn cart-btn lanse">活动已经结束</view>
      </block>
      <block wx:else>
        <view bindtap="go_to_nopay" wx:if="{{user_order_pt_state==1}}" class="buy-btn cart-btn huise">
          您还未支付
        </view>
        <view bindtap="go_to_team_show" wx:if="{{user_order_pt_state==2}}" class="buy-btn cart-btn">
          查看支付详情
        </view>
        <view wx:if="{{user_order_pt_state==3}}" bindtap="go_pay_wk" class="buy-btn cart-btn">
          支付尾款
        </view>
      </block>
    </block>

    <!-- -----积分购------ -->
    <block wx:if="{{prom_type==4}}">
      <block wx:if="{{is_shopbuy}}">
        <view bindtap="go_pay_integral_normal" class="join-btn cart-btn line-h">
          <view class="fir-v">
            <block wx:if="{{card_field && front_g[card_field]>0}}">
              {{filters.toFix(front_g[card_field],2)}}
            </block>
            <block wx:else>{{filters.toFix(front_g.shop_price,2)}}</block>
          </view>
          <view>单独购买</view>
        </view>
        <!-- <block wx:if="{{can_integral}}">        
          <view  class="buy-btn cart-btn" wx:if="{{false && prom_act.show_time_off}}" style="background-color: #aaa;" >
            即将开始1
          </view>
          <view bindtap="go_pay_integral" class="buy-btn cart-btn" wx:else>
            立即兑换1
          </view>

        </block> -->
        <view  class="buy-btn-all cart-btn" style="width: 30%;border-radius:0rpx 55rpx 55rpx 0rpx;overflow: hidden; "  wx:if="{{can_integral}}">
          <!-- 立即兑换 -->
          <!-- <view wx:if="{{ prom_act.show_time_off}}" >即将开始</view> -->
          <view wx:if="{{ prom_act.show_time_off}}" style="background-color: #aaa;">即将开始</view>
          <view wx:elif="{{ prom_act.limitqty<= prom_act.buy_num}}" style="background-color: #aaa;">已兑光</view>
          <view bindtap="go_pay_integral" wx:else>立即兑换</view>
        </view>
        <view class="buy-btn cart-btn" style="background-color: #aaa;border-radius:0rpx 55rpx 55rpx 0rpx;" wx:else>积分不足</view>
      </block>
      <block wx:else>
        <view  class="buy-btn-all cart-btn" style="width: 58%; margin-left:1%;overflow: hidden;" wx:if="{{can_integral}}">
          <view wx:if="{{ prom_act.show_time_off}}" style="background-color: #aaa;" >即将开始</view>
          <view wx:elif="{{ prom_act.limitqty<= prom_act.buy_num}}" style="background-color: #aaa;" >已兑光</view>
          <view bindtap="go_pay_integral" wx:else>立即兑换</view>
        </view>
        <!-- <block wx:if="{{can_integral}}">        
          <view  class="buy-btn cart-btn" wx:if="{{false && prom_act.show_time_off}}" style="background-color: #aaa;" >
            即将开始
          </view>
          <view bindtap="go_pay_integral" class="buy-btn cart-btn" wx:else>
            立即兑换1
          </view> -->

        <!-- </block> -->
        <view class="buy-btn-all cart-btn" style="background-color: #aaa; width: 58%;margin-left:1%" wx:else>
          积分不足
        </view>
      </block>
    </block>

  </view>
  <!-- 制作一个圆球导航 -->
  <nav_box></nav_box>
</block>

<!-- --弹起来,选择规格数量,普通商品购买和秒杀---- -->
<view hidden="{{!openSpecModal}}">
  <view bindtap="closeSpecModal" class="cover-layer"></view>
  <view class="spec-model">
    <view class="pding">
      <icon bindtap="closeSpecModal" class="modal-close" color="black" size="22" type="cancel"></icon>
      <view class="spec-goods">
        <image class="wh100 spec-img xc-distance-bottom" bindtap="previewImage" src="{{sele_g.original_img}}" binderror="pop_err_img" data-errorimg="sele_g.original_img"></image>
        <view class="spec-goods-info">
          <view class="spec-goods-name ellipsis-2">{{sele_g.goods_name}}</view>
          <view class="flex ai_end xc-val-money">
            <view class="spec-goods-price" wx:if="{{prom_price==null}}">
              <text class="fs20">￥</text>
              <!-- 如果是等级会员，且有等级价 -->
              <block wx:if="{{card_field && sele_g[card_field]>0}}">{{sele_g[card_field]}}</block>
              <block wx:else>{{sele_g.shop_price}}</block>
            </view>
            <view class="spec-goods-price" wx:else><text class="fs20">￥</text>{{prom_price}}</view>
            <!-- <view class="spec-goods-price" wx:elif="{{prom_type!=2}}"><text class="fs20">￥</text>{{prom_price}}</view> -->
            <!-- 显示线下价格 -->
            <view wx:if="{{sele_g.offline_price}}" class="quan_price flex ai-center jc-center">
              券后￥
              <text class="fs32">{{sele_g.offline_price}}</text>
            </view>
          </view>

          <block wx:if="{{prom_type==0}}">
            <view class="flex">
              <view class="spec-goods-stock">已售：{{sele_g.sales_sum}}</view>
              <!-- 线下门店销售的时候 -->
              <block wx:if="{{sales_rules>=2}}">

                <!-- 如果不是虚拟商品的时候 -->
                <block wx:if="{{!filters.is_virtual_gd(sele_g.is_virtual)}}">
                  <view class="spec-goods-stock" wx:if="{{def_pick_store && def_pick_store.CanOutQty}}">
                    可售：{{def_pick_store.CanOutQty}}
                  </view>
                  <view class="spec-goods-stock" wx:else>可售:0</view>
                </block>

              </block>

              <block wx:else>
                <view class="spec-goods-stock">可售：{{sele_g.store_count}}</view>
              </block>
            </view>
          </block>
          <block wx:if="{{prom_type==1}}">
            <view class="flex">
              <view class="spec-goods-stock" wx:if="{{prom_st>0}}">
                已售：{{prom_act.buy_num+prom_act.virtual}}
              </view>
              <view class="spec-goods-stock" wx:else>已售：{{prom_act.buy_num}}</view>
              <view class="spec-goods-stock">可售：{{(prom_act.is_virtual_count && prom_act.virtual) ? (prom_act.goods_num - prom_act.buy_num - prom_act.virtual) : (prom_act.goods_num-prom_act.buy_num)}}</view>
            </view>
          </block>
          <block wx:if="{{prom_type==2}}">
            <view class="flex">
              <view class="spec-goods-stock" wx:if="{{prom_st>0}}">
                已售：{{prom_act.buy_num+prom_act.virtualNum}}
              </view>
              <view class="spec-goods-stock" wx:else>已售：{{prom_act.buy_num}}</view>
              <view class="spec-goods-stock">可售：{{prom_act.goods_num-prom_act.buy_num}}</view>
            </view>
          </block>
        </view>

        <!-- 选择门店模块 -->
        <view class="flex-space-between address ai_end xc-width ">
          <view class="flex" wx:if="{{def_pick_store && def_pick_store.pickup_name}}">
            <text class="fs30 xc-black3 shop_name bold  {{def_pick_store.distance!=null?'max':''}} ">{{def_pick_store.pickup_name}}</text>
            <view class="distance fs24 xc-ash" wx:if="{{def_pick_store.distance!=null}}">
              距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}}
            </view>
          </view>
          <!-- 没有门店的时候 -->
          <view class="flex" bindtap="choice_store" wx:else>
            <image class="stores-img" src="{{iurl}}/miniapp/images/stores.png"></image>
            <view class="fs30" style="color:black;">选择门店</view>
          </view>
          <view hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red-co fs28" bindtap="choice_store">更多门店<text class="right-arrow"></text></view>
        </view>
        <view wx:if="{{only_pk && !only_pk.length}}">(库存不足)</view>
        <block wx:else>
          <view wx:if="{{def_pickpu_list && !def_pickpu_list.length}}">(库存不足)</view>
          <block wx:else>
            <view class="no_store" wx:if="{{def_pick_store.is_no_dis}}">(配送不匹配)</view>

            <view class="no_store" wx:elif="{{def_pick_store.is_no_dis_nor}}">(该店不可售)</view>
            <view class="no_store" wx:elif="{{def_pick_store.is_no_dis_nor && is_normal}}">(该店不可售)</view>
            <view class="no_store" wx:elif="{{def_pick_store.is_no_dis_act && !is_normal}}">(该店不可售)</view>
            <view wx:elif="{{def_pick_store && !def_pick_store.CanOutQty && !filters.is_virtual_gd(sele_g.is_virtual) && sales_rules>=2 && prom_type==0 &&!sele_g.whsle_id }}">
              (库存不足)
            </view>
          </block>
        </block>
        <view class="fs24 xc-ash-9f xc-distance-top " wx:if="{{def_pick_store && def_pick_store.fulladdress}}">
          地址:{{def_pick_store.fulladdress}}
        </view>

      </view>

      <!-- 商品的属性项目 -->
      <view class="xc-goods-attribute">
        <view hidden="{{ismend==1}}" class="spec-name">商品规格</view>
        <view hidden="{{ismend==1}}" style="max-height: 120rpx;overflow-y: auto;">

          <block wx:if="{{sku_g_pt}}">
            <view class="spec_bt {{sele_g.goods_id==item.goods_id?'act':''}}" bindtap="sele_spec" data-gid='{{item.goods_id}}' wx:for="{{sku_g_pt}}" wx:key="sku_g">
              {{item.gg}}
            </view>
          </block>
          <block wx:else>
            <view class="spec_bt {{sele_g.goods_id==item.goods_id?'act':''}}" bindtap="sele_spec" data-gid='{{item.goods_id}}' wx:for="{{sku_g}}" wx:key="sku_g">
              {{item.gg}}
            </view>
          </block>
        </view>
      </view>

      <view class="b_num">
        <view>购买数量</view>
        <view class="count">
          <view bindtap="{{goodsInputNum <= 1 ? '':'subCartNum'}}" class="sub {{goodsInputNum <= 1 ? 'active':''}}">
            -
          </view>
          <input bindblur="inputCartNum" type="number" value="{{goodsInputNum}}"></input>
          <view bindtap="addCartNum" class="add">+</view>
        </view>
      </view>
      <!-- 提示再买多少优惠 -->
      <view style="margin-top: 35rpx;color:#333;font-size:28rpx;" wx:if="{{hui_condition && openSpecModal_ind==2 && (!hui_condition.limit_num || user_pre_buynum<hui_condition.limit_num)}}">
        再买{{hui_condition.need}}
        <text wx:if="{{hui_condition.money}}">，免{{hui_condition.money}}元</text>
        <text wx:if="{{hui_condition.sale}}">，打{{hui_condition.sale}}折</text>
        <text wx:if="{{hui_condition.past==1}}">，包邮</text>
        <text wx:if="{{hui_condition.intValue>0}}">，送{{hui_condition.intValue}}积分</text>
        <text wx:if="{{hui_condition.couponId>0}}">，送优惠券</text>
        <text wx:if="{{hui_condition.gift_id}}">，送赠品</text>
        <text wx:if="{{hui_condition.lb_id>0}}">，送礼包</text>
        <text wx:if="{{hui_condition.zxlb_id>0}}">，送专享礼包</text>
        <text wx:if="{{hui_condition.monthgiftbag_id>0}}">，送每月礼包</text>
      </view>
    </view>

    <!-- 底部处理按钮 -->
    <view class="spec-cart-btns">
      <view wx:if="{{def_pick_store && def_pick_store.is_no_dis}}" class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">
        配送不匹配
      </view>
      <view wx:elif="{{def_pick_store && def_pick_store.is_no_dis_nor}}" class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">
        该店不可售
      </view>
      <view wx:elif="{{def_pick_store && def_pick_store.is_no_dis_nor && is_normal}}" class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">
        该店不可售
      </view>
      <view wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act && !is_normal}}" class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">
        该店不可售
      </view>
      <block wx:else>
        <!-- 根本就找不到门店 -->
        <block wx:if="{{!only_pk && !def_pickpu_list}}">
          <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">
            库存不足
          </view>
        </block>
        <block wx:else>
          <block wx:if="{{only_pk && !only_pk.length}}">
            <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">
              库存不足
            </view>
          </block>
          <block wx:else>
            <block wx:if="{{def_pickpu_list && !def_pickpu_list.length}}">
              <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">
                库存不足
              </view>
            </block>
            <block wx:else>
              <block wx:if="{{!def_pick_store}}">
                <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">
                  请先选择门店
                </view>
              </block>
              <block wx:else>

                <!-- 如果是线下库存购买的时候,且是普通商品购买的时候 -->
                <block wx:if="{{sales_rules>=2 && prom_type==0 && !sele_g.whsle_id}}">

                  <block wx:if="{{!def_pick_store.CanOutQty || def_pick_store.CanOutQty<1 }}">
                    <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">
                      库存不足
                    </view>
                  </block>
                  <block wx:else>
                    <view wx:if="{{openSpecModal_ind==1}}" bindtap="addCart" data-openSpecModal_ind="{{openSpecModal_ind}}" class="spec-cart-btn yellow {{sp_seleing?'gray':''}}" data-action="add">
                      加入购物车
                    </view>
                    <view wx:if="{{openSpecModal_ind==2}}" bindtap="addCart" data-openSpecModal_ind="{{openSpecModal_ind}}" class="spec-cart-btn spec-buy {{sp_seleing?'gray':''}}" data-action="buy">
                      {{sele_g.offline_price?"券后购买":"立即购买"}}
                    </view>
                  </block>
                </block>
                <!-- 线上销售 -->
                <block wx:else>

                  <block wx:if="{{prom_type==1  && !is_normal && pro_null}}">
                    <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">
                      已抢光
                    </view>
                  </block>
                  <block wx:elif="{{ sele_g.store_count<1  && is_no_new}}">
                    <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">
                      库存不足
                    </view>
                  </block>
                  <block wx:else>
                    <view wx:if="{{openSpecModal_ind==1}}" bindtap="addCart" data-openSpecModal_ind="{{openSpecModal_ind}}" class="spec-cart-btn yellow {{sp_seleing?'gray':''}}" data-action="add">
                      加入购物车
                    </view>
                    <view wx:if="{{openSpecModal_ind==2}}" bindtap="addCart" data-openSpecModal_ind="{{openSpecModal_ind}}" class="spec-cart-btn spec-buy {{sp_seleing?'gray':''}}" data-action="buy">
                      {{sele_g.offline_price?"券后购买":"立即购买"}}
                    </view>
                  </block>
                </block>
              </block>
            </block>
          </block>
        </block>
      </block>
    </view>
    <view class="clear"></view>


    <!-- 选择门店的列表 -->
    <view hidden="{{ismend==0}}" class="sto_v">
      <view class="title" hidden="{{is_sec_mend==1}}" bindtap="hidemend">
        <image class="tubiao" src="{{iurl}}/miniapp/images/icon-left.png"></image>
        选择门店
      </view>
      <!-- ---第一级显示---- -->
      <view class="itemlists" hidden="{{is_sec_mend==1}}">
        <block wx:if="{{is_show_sto_cat}}">
          <view wx:for="{{all_sto}}" wx:key="all_sto" class="item" bindtap="show_sec" data-index="{{index}}">
            {{item.name}}
          </view>
        </block>
        <block wx:else>
          <view wx:for="{{only_pk}}" wx:key="only_pk" class="item" bindtap="hidemend" data-p_id="{{item.pickup_id}}" data-p_name="{{item.pickup_name}}" data-p_dis="{{item.distr_type}}">
            {{item.pickup_name}}
          </view>
        </block>
      </view>
      <!-- ---第二级显示---- -->
      <view class="stitle" hidden="{{is_sec_mend==0}}" bindtap="hide_sec_mend">
        <image class="tubiao" src="{{iurl}}/miniapp/images/icon-left.png"></image>
        {{sec_sto.name}}
      </view>
      <view class="itemlists" hidden="{{is_sec_mend==0}}">
        <view wx:for="{{sec_sto.s_arr}}" wx:key="index" class="item" bindtap="hidemend" data-p_id="{{item.pickup_id}}" data-p_name="{{item.pickup_name}}" data-p_dis="{{item.distr_type}}">
          {{item.pickup_name}}
        </view>
      </view>
    </view>
  </view>
</view>
<!-- 弹起来,购买积分购 -->
<view hidden="{{!openSpecModal_inte}}">
  <include src="buy_integral.wxml" />
</view>
<!-- 弹起来,购买积分购的普通购买 -->
<view hidden="{{!openSpecModal_inte_normal}}">
  <include src="buy_integral_normal.wxml" />
</view>
<!-- --弹起来,选择规格数量,拼单商品购买---- -->
<view hidden="{{!openSpecModal_pt}}">
  <include src="buy_pt.wxml" />
</view>
<!-- --弹起来优惠信息---- -->
<view hidden="{{!openPromModal}}">
  <view bindtap="closePromModal" class="cover-layer"></view>
  <view class="prom-model">
    <icon bindtap="closePromModal" class="modal-close" color="gray" size="22" type="cancel"></icon>
    <view class="prom-title">优惠信息</view>
    <view class="logistics-item" wx:for="{{select.activity.data}}" wx:key="index">
      <view class="item-title">
        <text class="prom-item">{{item.title}}</text>
      </view>
      <view class="item-mes ellipsis-1">{{item.content}}</view>
    </view>
  </view>
</view>
<!-- --弹起的-- -->
<block wx:if="{{pd_xx==1}}">
  <view class="bview"></view>
  <view class="juzhong">
    <view class="xq">
      <view class="title" bindtap="close_pt_xx">
        拼团玩法介绍
        <image src="{{iurl}}/miniapp/images/gbi.png" class="close"></image>
      </view>
      <view>
        1.开团：
        <text class="hs1">选择心仪商品，点击“发起X人团”按钮，付款后即为开团成功；</text>
      </view>
      <view>
        2.参团：
        <text class="hs1">进入朋友分享的页面，点击“立即参团”按钮，付款后即为参团成功，若多人同时支付，支付成功时间较早的人获得参团资格；</text>
      </view>
      <view>
        3.成团：
        <text class="hs1">在开团或参团成功后，点击“邀请小伙伴参团”将页面分享给好友，在有效时间内凑齐人数即为成团，此时商家会开始发货；</text>
      </view>
      <view>
        4.组团失败：
        <text class="hs1">在有效时间内未凑齐人数，即为组团失败，此时付款项会原路退回到支付账户；</text>
      </view>
      <view>
        5.
        <text class="hs1">组团有效期间内，拼购商品订单不允许取消。</text>
      </view>
    </view>
  </view>
</block>
<!-- --弹起领券-- -->
<view wx:if='{{coupon==1}}'>
  <view class="cover-layer flex-center" data-coupon='0' bindtap="switchCoupon"></view>
  <view class="cx-popup {{coupon== true ? 'up' : 'down'}} ">
    <view class="top-frame">
      <!-- <view class="top two-level-word t-c"> -->
      <view class="top t-c">优惠券领取</view>
    </view>
    <!-- <view class="top-frame">
      <view class="xc-valid-coupon four-level-word">可以领优惠券</view>
    </view> -->
    <view class="xc-frame">
      <view class="top-frame">
        <view class="xc-coupon-frame ">
          <!-- -单张的券- -->
          <view class="rel" wx:for="{{quan_list}}" wx:key="id">
            <view class="coupon flex">
              <view class="circle xc-circular-one"></view>
              <view class="xc-coupon-left ">
                <view class="flex ai_c xc-money-frame">
                  <text class="xc-money two-level-word  xc-rmb">￥</text>
                  <text class="one-level-word xc-money">{{item.money}}</text>
                </view>
                <view class="xc-money four-level-word  xc-spacing">满{{item.condition}}元可用</view>
              </view>
              <view class="xc-coupon-right flex">
                <view class="xc-detail-coupon">
                  <view class="four-level-word">{{item.name}}</view>
                  <view class="four-level-word xc-below">
                    {{filters.replace_time2(item.start)}} 至 {{filters.replace_time2(item.end)?filters.replace_time2(item.end):'不限'}}
                  </view>
                </view>
                <view class="flex-vertical">
                  <view class="three-level-word xc-get background  {{item.everyone_num>0 && item.lqnum>=item.everyone_num?'nouse':''}}" data-ind="{{index}}" data-cid="{{item.id}}" bindtap="get_quan">
                    {{ item.linging==1?'领取中':'领取'}}
                  </view>
                </view>
              </view>
              <view class="circle xc-circular-two"></view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="cx-confirm pd20" data-coupon='0' bindtap="switchCoupon">
      <view class="confirm t-c">关闭</view>
    </view>
  </view>
</view>
<view class="mask" catchtouchmove="{{true}}" wx:if="{{showRules}}"></view>

<!-- 选择门店的弹框，1.1版最新的 -->
<block wx:if="{{store==1}}">
  <view class="mongolia-layer" bindtap="close_popup"></view>
  <view class="popup-frame">
    <block wx:if="{{sort_store==0}}">
      <!-- 头部 标题 -->
      <view class="popup-top flex-space-between">
        <text class="fs32 nearby_store">{{choice_sort_store==0?'附近的门店':region_name}}</text>
        <view>
          <view>
            <icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon>
          </view>
          <view class="felx choose_more" bindtap="more_store" wx:if="{{is_show_sto_cat>0}}">
            <text class="fs26 red-co">{{choice_sort_store==0?'更多门店':'返回'}}</text>
            <view class="bg_rights"></view>
          </view>
        </view>
      </view>
      <view class="searchbar flex-vertical-between storeListpadd">
        <input class="inputstore fs28" placeholder="输入要搜索的门店" value="{{keyword}}" placeholder-class="fs28" maxlength="16" bindinput="input_store" bindconfirm="searchfn" />
        <view class="search flex-center" bindtap="searchfn">
          <view class="fs28">搜索</view>
        </view>
      </view>
      <!-- 门店列表，最外层的门店列表，一开始 -->
      <view class="store-list">
        <!-- 如果还没有点击更多门店的时候 -->
        <block wx:if="{{choice_sort_store==0}}">
          <!-- 需要for循环is_show_sto_cat表示门店的数量已经超10个 -->
          <block wx:if="{{is_show_sto_cat==1}}">
            <view class="store_choose flex" wx:for="{{def_pickpu_list}}" bindtap="choose_for_store_fir" data-ind="{{index}}">
              <view class="store flex-vertical">
                <!-- 需要点击事件 -->
                <block wx:if="{{index==fir_pick_index}}">
                  <view class="circle white xc-hook fs20 red-b">Г</view>
                </block>
                <block wx:else>
                  <view class="circle  xc-hooks"></view>
                </block>
                <view class="address-frame xc-ash">
                  <view class="flex-vertical-between butttem5">
                    <view class="flex xc-ash">
                      <view class="fs30 xc-black3 address_name">{{item.pickup_name}}
                        <text class="c-red22" wx:if="{{item.is_no_qyt}}">(库存不足)</text>
                        <text class="c-red22" wx:elif="{{item.is_no_dis}}">(配送不匹配)</text>
                        <text class="c-red22" wx:elif="{{item.is_no_dis_nor}}">(该店不可售)</text>
                        <text class="c-red22" wx:elif="{{item.is_no_dis_nor && is_normal}}">(该店不可售)</text>
                        <text class="c-red22" wx:elif="{{item.is_no_dis_act && !is_normal}}">(该店不可售)</text>
                      </view>
                    </view>
                    <view>
                      <view class="distance fs24 address-val" wx:if="{{item.distance!=null}}">
                        距离：{{item.distance>1000?filters.toFix(item.distance/1000,2)+'km':filters.toFix(item.distance,0)+"m"}}
                      </view>
                    </view>
                  </view>
                  <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
                </view>
              </view>
            </view>
          </block>
          <block wx:else>
            <!-- 此时的情况就是门店的数量少于10个 -->
            <view class="store_choose flex" wx:for="{{only_pk}}" bindtap="choose_for_store_fir" data-ind="{{index}}">
              <view class="store flex-vertical">
                <!-- 需要点击事件 -->
                <block wx:if="{{index==fir_pick_index}}">
                  <view class="circle white xc-hook fs20 red-b">Г</view>
                </block>
                <block wx:else>
                  <view class="circle  xc-hooks"></view>
                </block>
                <view class="address-frame xc-ash">
                  <view class="flex-vertical-between ">
                    <view class="flex xc-ash">
                      <view class="fs30 xc-black3 address_name">{{item.pickup_name}}
                        <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text>
                        <text class="c-red22" wx:elif="{{item.is_no_dis_nor}}">(该店不可售)</text>
                        <text class="c-red22" wx:elif="{{item.is_no_dis_nor && is_normal}}">(该店不可售)</text>
                        <text class="c-red22" wx:elif="{{item.is_no_dis_act && !is_normal}}">(该店不可售)</text>
                        <text class="c-red22" wx:elif="{{item.is_no_qyt }}">(库存不足)</text>
                      </view>
                    </view>
                    <view>
                      <view class="distance fs24 address-val" wx:if="{{item.distance!=null}}">
                        距离：{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}
                      </view>
                    </view>
                  </view>
                  <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
                </view>
              </view>
            </view>
          </block>
        </block>
        <block wx:else>
          <!-- 如果是点击选择门店分类后显示分类下的门店 -->
          <view class="store_choose flex" wx:for="{{sec_sto.s_arr}}" data-ind="{{index}}" bindtap="choose_for_store">
            <view class="store flex-vertical">
              <!-- 需要点击事件 -->
              <block wx:if="{{index==sec_pick_index}}">
                <view class="circle white xc-hook fs20 red-b">Г</view>
              </block>
              <block wx:else>
                <view class="circle  xc-hooks"></view>
              </block>
              <view class="address-frame xc-ash">
                <view class="flex-vertical-between ">
                  <view class="flex xc-ash">
                    <view class="fs28 xc-black3 address_name">{{item.pickup_name}}
                      <text class="c-red22" wx:if="{{item.is_no_qyt}}">(库存不足)</text>
                    </view>
                  </view>
                  <view>
                    <view class="distance fs24 address-val" wx:if="{{item.distance!=null}}">
                      距离：{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}
                    </view>
                  </view>
                </view>
                <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
              </view>
            </view>
          </view>
        </block>
      </view>
      <!-- 门店列表底部 -->
      <view class="store-bottom-frame">
        <view class="store-bottom flex-vertical-between">
          <view class="determine red-b fs28 white t-c" bindtap="sure_pick" data-openindstore="{{open_ind_store}}">
            确定
          </view>
          <view class="default  t-c fs28" bindtap="set_def_pick" data-openindstore="{{open_ind_store}}">
            设为默认
          </view>
        </view>
      </view>
    </block>
    <block wx:else>
      <view class="popup-top flex-space-between">
        <text class="fs32 nearby_store">门店分类选择</text>
        <view>
          <view>
            <icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon>
          </view>
          <view class="felx choose_mores" bindtap="returns">
            <text class="fs26 red-co">返回</text>
          </view>
        </view>
      </view>
      <view class="sort_store_list">
        <view class="sort-store-frame" wx:for="{{all_sto}}" data-index="{{index}}" bindtap="choice_sort_store" data-region="{{item.name}}">
          <view class="sort-store flex-vertical-between">
            <view class="fs30" di>{{item.name}}</view>
            <view class="black_rights-frame">
              <view class="black_rights"></view>
            </view>
          </view>
        </view>
      </view>
    </block>
  </view>
</block>

<!-- ---------------分享弹窗--------------- -->
<!-- 二维码显示页面 -->
<canvas canvas-id='share' style='width:750rpx;height:1217rpx;background-color:white;' wx:if="{{!canvasHidden}}"></canvas>
<warn id="warn"></warn>
<!-- 分享控件，底部弹出 -->
<share id="share_button" bind:send="send" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share>

<view wx:if="{{showPoster}}">
  <view class="mask" catchtap="closePoster"></view>
  <view class="poster-container">
    <view class="poster-wrapper">
      <view class="poster" bindtap="previewPoster">
        <!-- <view class="poster" bindtap="previewImage"> -->
        <image src="{{shareImgPath}}" class="poster-img"></image>
        <view class="btn-close" catchtap="closePoster">
          <text class="iconfont icon-close"></text>
        </view>
      </view>
      <view class="btn-container">
        <!-- <button class="btn-share" open-type="share" bindtap="">微信好友分享</button> -->
        <button class="btn-share" bindtap="savePic">保存到相册</button>
      </view>
    </view>
  </view>
</view>

<!-- 商品要加入购物车 -->
<view class="pop_more_act" wx:if="{{is_pop_more}}">
  <view class="cover-layer" bindtap="close_pop_more"></view>
  <view class="content">
    <view class="main pd20">
      <view class="t-c fs36" style="color: #c3172d">提示</view>

      <block wx:for="{{more_flash}}">
        <view bindtap="go_more_flash" data-is_sele="1"  data-prom_type="{{item.prom_type}}"   data-id="{{item.act_id}}" class="flex jc_sb fs28 mt20" >
          <view class="ellipsis-2" style="max-width: 80%">该商品有参与{{item.act_name}} {{tool.act_type(item.prom_type)}} 活动</view>
          <view class="fs26 c-7b">去参与
            <text class="bg_jj is_more_cx"></text>
          </view>
        </view>
      </block>

      <view style="margin-top: 30rpx" bindtap="open_next">
        <button class="p_btn">继续加入购物车</button>
      </view>
    </view>
  </view>
</view>


<view class="rule-pop-container" wx:if="{{showRules}}">
  <view class="pop-title">规则详情
    <text class="iconfont icon-guan" bindtap="closeRules"></text>
  </view>
  <view class="pdt40">
    <view class="pdb20">活动时间</view>
    <view class="">{{filters.format_time(prom_act.start_time,1)}} 至 {{filters.format_time(prom_act.end_time,1)}}
    </view>
  </view>
  <view class="pdt40">
    <view class="pdb20">活动内容：</view>
    <view class="popup-content">
      <text class="pdb10">{{prom_act.remark?prom_act.remark:'暂无'}}</text>
    </view>
  </view>


  <view class="pdv20">
    <view class="btn" bindtap="closeRules">我知道了</view>
  </view>
</view>

<!-- 弹起来,购买预热商品的普通购买 -->
<view hidden="{{!openSpecModal_flash_normal}}">
  <include src="buy_flash_normal.wxml" />
</view>

<include src="../../../components/com_servicer/com_servicer.wxml"></include>


