index.wxml 15.1 KB
<!--普通界面-->
<wxs module="filter" src="../../../utils/filter.wxs"></wxs>
<view class="container rel" wx:if="{{ishow}}">
  <block wx:if="{{banner}}">
    <image class="xc-top-img abs" src="{{url}}/miniapp/images/top-img.png"></image>
  </block>
  <!--搜索框-->
  <view class="{{banner==null?'pink-b ':''}} search-box {{scrollTop>10?'search-fixed':''}} flex-center white ">
    <view class="classify-frame t-c" bindtap="go_cate">
      <image class="classify-img" src="{{url}}/miniapp/images/classify.png"></image>
      <view class="fs20">分
        <text class="white fs22">类</text>
      </view>
    </view>
    <view class="search-inner">
      <view class="search-img">
        <image class="wh100" src="{{url}}/miniapp/images/search.png"></image>
      </view>
      <input bindfocus="jumpSearch" class="search-cont" placeholder="请输入您所搜索的商品" type="text">
      </input>
    </view>
    <view class="classify-frame t-c" bindtap="getScancode">
      <image class="classify-img" src="{{url}}/miniapp/images/scanning.png"></image>
      <view class="fs20">扫一扫</view>
    </view>
  </view>
  <!--滚动广告-->
  <view class="rel title-img" wx:if="{{banner}}">
    <swiper autoplay="true" class="swiper_box" duration="1000" interval="3000" vertical="" bindchange="bannerSwiperChange" style="height:{{max_sw_height}}rpx">
      <swiper-item wx:for="{{banner}}" wx:key="banner">
        <view url="{{item.media_link}}" class="slide-image-frame">
          <image class="slide-image" mode="widthFix" src="{{item.ad_code}}" bindload="imageLoad" data-index="{{index}}" lazy-load="true" binderror="bind_bnerr" data-errorimg="banner[{{index}}].ad_code"></image>
        </view>
      </swiper-item>
    </swiper>

    <view class="flex-center-around translation abs">
      <view class="circle spot" wx:for="{{banner}}" wx:key="{{index}}" style="background:{{index==banner_index?'#fff':'#999'}}">
      </view>
    </view>
  </view>
  <view class="pd-view" wx:else></view>

  <!---导航-->
  <view class="venues_box" hidden='true'>
    <view class="venues_list">
      <view class="venues_item">
        <navigator url="/pages/activity/group_list/group_list">
          <image src="{{url}}/miniapp/images/index/tuangou.png"></image>
          <view>团购</view>
        </navigator>
      </view>
      <view class="venues_item">
        <navigator url="/pages/goods/integralMall/integralMall">
          <image src="{{url}}/miniapp/images/index/jifen.png"></image>
          <view>积分购</view>
        </navigator>
      </view>
      <view class="venues_item">
        <navigator url="/pages/goods/brandstreet/brandstreet">
          <image src="{{url}}/miniapp/images/index/youhui.png"></image>
          <view>优惠券</view>
        </navigator>
      </view>
      <view class="venues_item">
        <navigator url="/pages/activity/coupon_list/coupon_list">
          <image src="{{url}}/miniapp/images/index/qiandao.png"></image>
          <view>签到</view>
        </navigator>
      </view>
      <view class="venues_item">
        <navigator openType="switchTab" url="/pages/goods/categoryList/categoryList">
          <image src="{{url}}/miniapp/images/index/fenlei.png"></image>
          <view>全部分类</view>
        </navigator>
      </view>
    </view>
  </view>


  <view class="flex-center-around {{banner==null?'mar-top':'mar-tops'}}">
    <view class="flex-vertical">
      <image class="xc-hook" src="{{url}}/miniapp/images/index/youxuan.png">
      </image>
      <text class="yellow-co fs26 margin-left">人工优先</text>
    </view>


    <view class="flex-vertical">
      <image class="xc-hook" src="{{url}}/miniapp/images/index/zhengpin.png">
      </image>
      <text class="yellow-co fs26 margin-left">正品保证</text>
    </view>

    <view class="flex-vertical">
      <image class="xc-hook" src="{{url}}/miniapp/images/index/shouhou.png">
      </image>
      <text class="yellow-co fs26 margin-left">售后无忧</text>
    </view>
  </view>

  <!---大分类--->
  <view class="flex-center-around">
    <view wx:for="{{gd_category}}" bindtap="go_cate2" data-cid="{{item.id}}" data-pid="0">
      <view class="circle  xc-class-frame t-c">
        <image class="xc-class-img" src="{{item.icoimg==null||item.icoimg==''?url+item.icon:item.icoimg}}" binderror="bind_bnerr_icon" data-err="gd_category[{{index}}].icon"></image>
        <view class="fs24 gonju ellipsis-1">{{item.name}}</view>
      </view>
    </view>
  </view>
  <!-- 轮播 -->
  <swiper class="swiper" autoplay="true" interval="5000" circular="{{true}}" indicator-dots="{{true}}" indicator-active-color="rgb(255,255,255)">
    <!-- 活动轮播 -->
    <block wx:for="{{swiperimage}}" wx:for-item="adver" wx:for-index="key">
      <swiper-item>
        <view class="title-img-frame">
          <image class="xc-title-img" src="{{url+adver.image}}" bindtap="{{adver.nav_url==0?'go_quanyi':'new_nav'}}" data-url="{{adver.nav_url}}"></image>
        </view>
      </swiper-item>
    </block>
  </swiper>

  <view class="split-line"></view>

  <!--秒杀-->
  <view class="seckill" wx:if="{{saleGoods!=null && pindGoods.length!=0 }}">
    <navigator url="/pages/activity/seckill_list/seckill_list">
      <view class="seckill-time">
        <view class="classname flex">
          <image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
          <image class="seckill-ttitle-img height" src="{{url}}/miniapp/images/seckill-ttitle.png"></image>
        </view>
        <view class="flex  seckill-list">
          <text class="fs24 xc-marfin-right">查看全部</text>
          <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
        </view>
      </view>
    </navigator>
    <view class="seckill-list">
      <swiper class="s_prom" indicator-dots="{{false}}" bindchange="flashSwiperChange">
        <swiper-item wx:for="{{saleGoods}}" wx:key="{{index}}" class="p_swiper " wx:key="saleGoods">
          <navigator class="ib m-left" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}" wx:for="{{item}}" wx:key="item" wx:for-item="aitem" wx:for-index="aind">
            <view class="imgview ">
              <image src="{{url+aitem.original_img}}" lazy-load="true" data-errorimg="saleGoods[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image>

              <image wx:if="{{aitem.status==0}}" class="status_img" src="{{url}}/miniapp/images/miao/yure.png"></image>
              <image wx:if="{{aitem.status==1}}" class="status_img" src="{{url}}/miniapp/images/miao/going.png"></image>
              <image wx:if="{{aitem.status==2}}" class="status_img" src="{{url}}/miniapp/images/miao/mend.png"></image>
            </view>
            <view class="ellipsis-2">{{aitem.title}}</view>
            <view class="red-co mar-top10 is_seckill_height">
              <text class="fs20">¥</text>{{aitem.price}}
              <text class="un_line">¥{{aitem.market_price}}</text>
            </view>
          </navigator>
        </swiper-item>
      </swiper>
      <view class="flex-center-around translation">
        <view class="circle spot" wx:for="{{saleGoods}}" wx:key="{{index}}" style="background:{{index==flash_index?'#fff':'#999'}}">
        </view>
      </view>
    </view>
  </view>
  <!----拼单---->
  <view class="seckill assemble-top-border" wx:if="{{pindGoods!=null && pindGoods.length!=0 }}">
    <navigator url="/pages/activity/pind_list/pind_list">
      <view class="seckill-time">
        <view class="classname flex">
          <image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
          <image class="seckill-ttitle-img" src="{{url}}/miniapp/images/team.png"></image>
          <block wx:if="{{pt_timer_item}}">
            <view class="flex user-frame t-c xc-ash {{pt_timer_active==1?'pt_active':''}}">
              <image class="user-img  circle" src="{{pt_timer_item.head_pic}}"></image>
              <view class="ellipsis-1 user-name fs24">{{pt_timer_item.nickname}}</view>
              <text class="fs20">刚拼团成功</text>
            </view>
          </block>
        </view>
        <view class="flex  seckill-list">
          <text class="fs24 xc-marfin-right">查看全部</text>
          <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
        </view>
      </view>
    </navigator>
    <view class="seckill-lists rel">
      <swiper class="s_proms" style="height:{{pindGoods[0].length>1?'590':'290'}}rpx" indicator-active-color='red' bindchange="ptSwiperChange">
        <swiper-item wx:for="{{pindGoods}}" wx:key="{{index}}" wx:for-index="pix">
          <view class="teamheight" style='display:block;' wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
            <view class="kill-item">
              <navigator class="flex navwidth" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}">
                <view class="kill-pic">
                  <image class="wh100" src="{{url+aitem.original_img}}" data-val="{{aitem.original_img}}" data-errorimg="pindGoods[{{pix}}][{{aind}}].original_img" binderror="bind_bnerr2" lazy-load="true">
                  </image>
                </view>

                <view class="kill-cont">
                  <navigator class="goods-name ellipsis-2" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
                    {{aitem.title}}

                  </navigator>
                  <view class="flex left">
                    <view class="tneirong red-b flex-vertical rel" wx:if="{{aitem.is_team_tepy!=0}}">
                      <image class="xc-team-img abs" src="{{url}}/miniapp/images/fril.png"></image>
                      已拼{{aitem.buy_num}}份</view>
                    <view class="fs20 flex xc-people-val-frame" style="border-color:{{aitem.is_team_tepy==0?'#059de5':'#d60021'}};margin-left:{{aitem.is_team_tepy==0?'':'8rpx'}}">
                      <view class=" flex-center val-img {{aitem.is_team_tepy==0?'blue_b':'red-b'}}">
                        <image class="people-img" src="{{url}}/miniapp/images/bai-ren.png"></image>
                      </view>
                      <text class="{{aitem.is_team_tepy==0?'blue_c':'red-co'}}" style="margin-left:8rpx; margin-right:8rpx">{{aitem.ct_num}}人团</text>
                    </view>

                    <view class="fs20 blue_c time-blue" wx:if="{{aitem.is_team_tepy==0}}">
                      距开始:
                      <text class='tui-conutdown-box'>{{aitem.djs.day}}</text>天
                      <text class='tui-conutdown-box'>{{aitem.djs.hou}}</text>时
                      <text class='tui-conutdown-box'>{{aitem.djs.min}}</text>分
                      <text class='tui-conutdown-box tui-countdown-bg'>{{aitem.djs.sec}}</text> 秒
                    </view>
                  </view>

                  <view class="goods-num" style="margin-top:{{type==0?'70rpx':'40rpx'}}">
                    <view>

                      <view class="fs40 flex  xc-top15 {{aitem.is_team_tepy==0?'blue_c ai-bas':' red-co ai-bas'}}">
                        <text class="fs28 {{aitem.is_team_tepy==0?'martop4':''}}">¥</text>
                        <text style="margin-left:-5rpx">{{aitem.price}}</text>
                        <span class="underline {{type==0?'martop18':''}}">零售价¥{{aitem.market_price}}</span>
                      </view>

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

              </navigator>
            </view>

          </view>
        </swiper-item>
      </swiper>

      <view class="flex-center-around translations abs">
        <view class="circle spot" wx:for="{{pindGoods}}" wx:key="{{index}}" style="background:{{index==pt_index?'#fff':'#999'}}">
        </view>
      </view>
    </view>
  </view>

  <!-- 好物推荐 -->
  <view class="title">
    <!-- 标题 -->
    <view>
      <!-- 中文名标题 -->
      <view class="China flex-level">
        <view class="line flex-vertical">
          <view class="one"></view>
          <view class="two"></view>
          <view class="three"></view>
        </view>

        <view class="Recommend flex-level" bindtap="requestList">好物推荐</view>

        <view class="line flex-vertical">
          <view class="three"></view>
          <view class="two"></view>
          <view class="one"></view>
        </view>
      </view>

      <!-- 英文标题 -->
      <view class="english flex-center">
        <view class="silk"></view>
        <view class="esh five-level-word">GOOD HOT THING</view>
        <view class="silk"></view>
      </view>

    </view>
    <!-- 商品列表组件 -->
    <goods_recommend id="goods_list"></goods_recommend>
    <!-- 商品列表 -->

  </view>

</view>
<!--是否是自定义-->
<view class="container" wx:if="{{isTemplate}}" style="background-color:{{bgcolor_t}}">
  <block wx:for="{{template_arr}}" wx:key="{{index}}">
    <view>
      <!--导航-->
      <block wx:if="{{item.ename=='nav'}}">
        <nav object="{{item.content}}"></nav>
      </block>
      <!--店招-->
      <block wx:if="{{item.ename=='shopname'}}">
        <shopname object="{{item.content}}"></shopname>
      </block>
      <!--广告组合-->
      <block wx:if="{{item.ename=='advertising'}}">
        <advertising object="{{item.content}}"></advertising>
      </block>
      <!--商品分组-->
      <block wx:if="{{item.ename=='goodsGroup'}}">
        <goodsGroup object="{{item.content}}"></goodsGroup>
      </block>
      <!--通知-->
      <block wx:if="{{item.ename=='notice'}}">
        <notice object="{{item.content}}"></notice>
      </block>
      <!--语音-->
      <block wx:if="{{item.ename=='voice'}}">
        <voice object="{{item.content}}"></voice>
      </block>
      <!--视频-->
      <block wx:if="{{item.ename=='video'}}">
        <mvideo object="{{item.content}}"></mvideo>
      </block>
      <!--搜索-->
      <block wx:if="{{item.ename=='searchbox'}}">
        <searchbox object="{{item.content}}"></searchbox>
      </block>
      <!--天天拼单-->
      <block wx:if="{{item.ename=='pingd_buy'}}">
        <pingd_buy object="{{item.content}}"></pingd_buy>
      </block>
      <!--秒杀-->
      <block wx:if="{{item.ename=='seckill'}}">
        <seckill object="{{item.content}}"></seckill>
      </block>
      <!--标题-->
      <block wx:if="{{item.ename=='title'}}">
        <title object="{{item.content}}"></title>
      </block>
      <!--辅助空白-->
      <block wx:if="{{item.ename=='white'}}">
        <assist object="{{item.content}}"></assist>
      </block>
      <!--图片组合-->
      <block wx:if="{{item.ename=='picMix'}}">
        <picMax object="{{item.content}}"></picMax>
      </block>
    </view>
  </block>
</view>

<!-- 蒙尘 -->
<block wx:if="{{is_disgraceful}}">
  <view class="disgraceful">
    <!-- 新人礼领取图片 -->
    <view class="newreceive flex-center">
      <view>
        <navigator bindtap="new_nav">
          <view class="flex-level">
            <image class="receive" src="{{url}}{{new_image==''?'/miniapp/images/newpeople/newreceive.png':new_image}}"></image>
          </view>
        </navigator>
        <view class="flex-level">
          <image class="close" src="{{url}}/miniapp/images/plus/Close.png" bindtap="close_disgraceful"></image>
        </view>
      </view>
    </view>
  </view>
</block>