<!-- packageA/mycomponent/goodsComponent/foot/foot.wxml -->
<view class="footGoods" wx:if="{{goodsType != 'hotelGoods' && goodsType != 'group_goods'}}">
  <van-goods-action safe-area-inset-bottom="{{ipnonexbol}}">
    <block>
      <van-goods-action-icon icon="shop-o" text="首页" wx:if="{{goodsType != 'supplierGoods'}}" catchtap="gotoHome" />
      <van-goods-action-icon icon="shop-o" text="店铺" wx:if="{{goodsType == 'supplierGoods'&&isShowShop}}" catchtap="gotoHome" data-str="supplier"/>
    </block>
    <block
      wx:if="{{ !nocart && !activityid && goodsInfo && goodsInfo.plugin_id != 72 && goodsType !='store_projects_goods'}}">
      <block>
        <van-goods-action-icon icon="cart-o" text="购物车" info="{{cart_num || ''}}"
          url="/packageG/pages/buy/cart_v2/cart_v2" link-type="reLaunch" />
      </block>
    </block>
    <block wx:if="{{!customer_open&&!activityid}}">
      <van-goods-action-icon text="客服" wx:if="{{!cservice || cservice == ''}}" dot open-type="contact">
        <view slot="icon">
          <icon class="iconfont icon-goods_kefu"></icon>
        </view>
      </van-goods-action-icon>
      <van-goods-action-icon text="客服" wx:if="{{cservice && cservice !=''}}" data-cservice="{{cservice}}" dot
        bindtap="gotoChat">
        <view slot="icon">
          <icon class="iconfont icon-goods_kefu"></icon>
        </view>
      </van-goods-action-icon>
    </block>
    <van-goods-action-icon text="客服" wx:if="{{customer_open&&!activityid}}" catchtap="showPop" dot>
      <view slot="icon">
        <icon class="iconfont icon-goods_kefu"></icon>
      </view>
    </van-goods-action-icon>
    <van-goods-action-button type="warning" text="加入购物车" bindtap="addCart" disabled="{{!isAddCart}}"
      wx:if="{{ !debtId && !nocart && !isBegTime && !activityid && goodsInfo && goodsInfo.plugin_id != 72 && goodsType !== 'appointment_goods'&& goodsType!='store_projects_goods' && goodsType !== 'yunqian_api' && goods_plugin.is_special != 1 && goodsInfo.plugin_id != 140}}" />
    <block wx:if="{{!isRent}}">
      <van-goods-action-button type="danger" text="立即购买" disabled="{{is_yz_supplyGoods}}" wx:if="{{!isBuy || isTime}}"
                               catchtap="buyNow" />
      <van-goods-action-button wx:elif="{{isBuy && (!isTime||isBegTime)}}" type="danger"
        custom-class="{{'vanbuttonClass'}}" disabled="{{true}}">
        <view solt="" class="time" style="line-height: 32rpx" wx:if="{{isBuy && (!isTime||isBegTime)}}">
          <view class="left">距开始还剩：</view>
          <view class="right" style="display: flex;align-items: center;justify-content: center;">
            <view class="content" style="display: flex;align-items: center;">
              <view class="date">{{beginDownObj.day}}</view>
              <view class="mes">天</view>
              <view class="date">{{beginDownObj.hou}}</view>
              <view class="mes">:</view>
              <view class="date">{{beginDownObj.min}}</view>
              <view class="mes">:</view>
              <view class="date">{{beginDownObj.sec}}</view>
            </view>
          </view>
        </view>
      </van-goods-action-button>
    </block>
  </van-goods-action>
</view>
<!-- 新零售 start -->
<view class="footGoods" wx:if="{{goodsType == 'retailGood'}}">
  <van-goods-action safe-area-inset-bottom="{{ipnonexbol}}">
    <van-goods-action-icon icon="shop-o" text="首页" />
    <van-goods-action-button color="#ff9500" type="danger" wx:if="{{mode == 2}}" catchtap="buyNowRetail"
      data-buyType="1">
      <view solt="" class="buy cell yellow-bg" style="position: relative;">
        <view>代理销售</view>
      </view>
    </van-goods-action-button>
    <van-goods-action-button color="#dd2727" type="danger" catchtap="buyNowRetail" data-buyType="2">
      <view solt="" class="buy cell" style="position: relative;">
        <view>立即购买</view>
      </view>
    </van-goods-action-button>
  </van-goods-action>
</view>
<!-- 新零售 end -->
<!-- 抢团底部购买导航 start -->
<view class="footGoods" wx:if="{{goodsType == 'grabGroup'}}">
  <van-goods-action safe-area-inset-bottom="{{ipnonexbol}}">
    <van-goods-action-icon text="主页" catchtap="gotoHome">
      <view slot="icon">
        <icon class="iconfont icon-info_store"></icon>
      </view>
    </van-goods-action-icon>
    <block wx:if="{{!isTimeEnd&&isTime}}">
      <van-goods-action-button color="#ff6000" type="danger" catchtap="showPopView" data-type="1"
        wx:if="{{leader_not_join_invalid == 0}}">
        <view solt="" class="span" style="text-align:center;">
          开团
          <view class="text">(不参与抢团)</view>
        </view>
      </van-goods-action-button>
      <van-goods-action-button color="#ff2c29" wx:if="{{leader_not_join_invalid == 1 ||leader_partake == 1}}"
        type="danger" catchtap="showPopView" data-type="2">
        <view class="span" style="text-align:center;">
          开团
          <view class="text" wx:if="{{leader_not_join_invalid == 0}}">(参与抢团)</view>
        </view>
      </van-goods-action-button>
    </block>
  </van-goods-action>
</view>
<!-- 拼团底部购买导航 start -->
<view class="groupFoot" wx:if="{{goodsType == 'group_goods'}}">
  <van-goods-action safe-area-inset-bottom="{{ipnonexbol}}">
    <van-goods-action-icon icon="shop-o" text="进店" catchtap="gotoHome" />
    <van-goods-action-button color="#F58220" wx:if="{{gooddatas.original_cost_buy_button == '1'}}" catchtap="originalPriceTo" data-gid="{{gooddatas.goods_id}}">原价购买</van-goods-action-button>
    <block wx:if="{{gooddatas.status=='1'}}">
      <van-goods-action-button catchtap="tapshowOne" type="warning"
        wx:if="{{gooddatas.menu_show == 0||gooddatas.menu_show == 1 &&gooddatas.has_many_team_count < gooddatas.hide_num}}">
        <view solt="" class="groupCanin">
          {{language['money']}}{{goodsInfo.vip_level_status&&goodsInfo.vip_level_status.status==1?goodsInfo.vip_level_status.word:group_price}}
          起
          <text>一键开团</text>
        </view>
      </van-goods-action-button>
      <van-goods-action-button type="danger" catchtap="showGroupMore">
        <view solt="" class="groupCanin">
          {{language['money']}}{{goodsInfo.vip_level_status&&goodsInfo.vip_level_status.status==1?goodsInfo.vip_level_status.word:group_price}}
          起
          <text>去参团</text>
        </view>
      </van-goods-action-button>
    </block>
    <block wx:if="{{gooddatas.status!='1'}}">
      <van-goods-action-button type="danger" text="{{gooddatas.status == '0'?'活动未开始':'活动已结束'}}" />
    </block>
  </van-goods-action>
</view>
<!-- 拼团底部购买导航 end -->
<!-- 酒店 底部购买导航start -->
<view class="hotelFoot" wx:if="{{goodsType == 'hotelGoods'}}">
  <van-goods-action safe-area-inset-bottom="{{ipnonexbol}}">
    <van-goods-action-icon text="{{favorite ? '已收藏' : '未收藏' }}" catchtap="onFavorite" data-faData="{{favorite}}">
      <view slot="icon" wx:if="{{favorite}}">
        <icon class="iconfont icon-collect-active"></icon>
      </view>
      <view slot="icon" wx:if="{{!favorite}}">
        <icon class="iconfont icon-goods_collect"></icon>
      </view>
    </van-goods-action-icon>
    <block wx:if="{{!customer_open&&!activityid}}">
      <van-goods-action-icon text="客服" wx:if="{{!cservice || cservice == ''}}" dot open-type="contact">
        <view slot="icon">
          <icon class="iconfont icon-goods_kefu"></icon>
        </view>
      </van-goods-action-icon>
      <van-goods-action-icon text="客服" wx:if="{{cservice && cservice !=''}}" data-cservice="{{cservice}}" dot
        bindtap="gotoChat">
        <view slot="icon">
          <icon class="iconfont icon-goods_kefu"></icon>
        </view>
      </van-goods-action-icon>
    </block>
    <van-goods-action-icon text="客服" wx:if="{{customer_open&&!activityid}}" catchtap="showPop" dot>
      <view slot="icon">
        <icon class="iconfont icon-goods_kefu"></icon>
      </view>
    </van-goods-action-icon>
    <van-goods-action-button type="danger" catchtap="order" color="#f15353">
      <view slot="" class="button">立即预定</view>
    </van-goods-action-button>
  </van-goods-action>
</view>
<!-- 酒店end -->
<!-- 珍惠拼 拼团 start -->
<view class="footGoods" wx:if="{{goodsType == 'zhpGroup'}}">
  <van-goods-action safe-area-inset-bottom="{{ipnonexbol}}">
    <van-goods-action-icon icon="shop-o" text="主页" badge="12" catchtap="gotoHome" />
    <van-goods-action-icon text="订单" badge="12" catchtap="gotoHome" data-str="zhplis">
      <view slot="icon">
        <icon class="iconfont icon-wodedingdan"></icon>
      </view>
    </van-goods-action-icon>
    <block wx:if="{{gooddatas.is_show_barter == 1}}">
      <van-goods-action-button type="warning" catchtap="zhpGroupTap" data-buyType="zhpyh">
        <view solt="" class="buy cell" style="position: relative;">
          <view>易兑</view>
        </view>
      </van-goods-action-button>
      <van-goods-action-button color="#dd2727" type="danger" catchtap="zhpGroupTap" data-buyType="2">
        <view solt="" class="buy cell" style="position: relative;">
          <view>{{language['money']}}{{group_price}}</view>
          <view>去参团</view>
        </view>
      </van-goods-action-button>
    </block>
    <block wx:if="{{gooddatas.is_show_barter == 0}}">
      <van-goods-action-button color="#dd2727" type="danger" catchtap="zhpGroupTap" data-buyType="2">
        <view solt="" class="buy cell" style="position: relative;">
          <view>{{language['money']}}{{group_price}}</view>
          <view>去参团</view>
        </view>
      </van-goods-action-button>
    </block>

  </van-goods-action>
</view>
<!--  珍惠拼 拼团 end -->

<!-- 0.1元拼 -->

<view class="footGoods" wx:if="{{goodsType == 'groupwork'}}">
  <van-goods-action safe-area-inset-bottom="{{ipnonexbol}}">
    <van-goods-action-icon icon="shop-o" text="首页" catchtap="gotoHome" />
    <van-goods-action-icon icon="cart-o" text="购物车" info="{{cart_num || ''}}" url="/packageG/pages/buy/cart_v2/cart_v2" link-type="reLaunch" />
    <block wx:if="{{!customer_open}}">
      <van-goods-action-icon text="客服" wx:if="{{!cservice || cservice == ''}}" dot open-type="contact">
        <view slot="icon">
          <icon class="iconfont icon-goods_kefu"></icon>
        </view>
      </van-goods-action-icon>
      <van-goods-action-icon text="客服" wx:if="{{cservice && cservice !=''}}" data-cservice="{{cservice}}" dot bindtap="gotoChat">
        <view slot="icon">
          <icon class="iconfont icon-goods_kefu"></icon>
        </view>
      </van-goods-action-icon>
    </block>
    <van-goods-action-icon text="客服" wx:if="{{customer_open}}" catchtap="showPop" dot>
      <view slot="icon">
        <icon class="iconfont icon-goods_kefu"></icon>
      </view>
    </van-goods-action-icon>
    <van-goods-action-button type="warning" text="加入购物车" bindtap="addCart" />
    <block wx:if="{{ !isRent }}">
      <van-goods-action-button type="danger" text="立即购买" catchtap="buyNow" />
    </block>
  </van-goods-action>
</view>
<!-- 0.1元拼 end -->
<!-- <view style="height: 34px;" wx:if="{{ipnonexbol}}"></view> -->



<!-- 客服 -->
<van-popup custom-style="border-radius: 38rpx;" show="{{show1}}" overlay="{{true}}">
  <view class="pop-content">
    <view class="pop-top">
      <view class="left" wx:if="{{customer_open=='1'}}">
        <view class="wrap">
          <view>
            <view class="image" style="position:relative">
              <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/kf_online_contect@2x.png"></image>
            </view>
            <view>在线联系</view>
            <button wx:if="{{!cservice || cservice == ''}}" open-type="contact" bindcontact="handleContact"
              style="position:absolute;width:33%;height:140rpx;opacity:0;top:0rpx;"></button>
            <button wx:if="{{cservice && cservice !=''}}" data-cservice="{{cservice}}" bindtap="gotoChat"
              style="position:absolute;width:33%;height:140rpx;opacity:0;top:0rpx;"></button>
          </view>
        </view>
      </view>
      <view style="display:flex;" wx:if="{{customer_open=='1' && !service_mobile==''}}">
        <view class="line"></view>
      </view>
      <view class="right" wx:if="{{!service_mobile==''}}">
        <view class="wrap" bindtap="callPhone">
          <view>
            <view class="image">
              <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/kf_tel_contect@2x.png"></image>
            </view>
            <view>联系电话</view>
            <view style="margin-top:16rpx">{{service_mobile}}</view>
          </view>
        </view>
      </view>
    </view>
    <view class="pop-bottom" wx:if="{{!service_QRcode==''}}">
      <view class="image">
        <image src="{{service_QRcode}}" show-menu-by-longpress></image>
      </view>
    </view>
    <icon class="iconfont icon-close11" catchtap="closePop"></icon>
  </view>
</van-popup>
<!-- 客服end -->
