homeindex.wxml 5.1 KB
<!--pages/homeindex/homeindex.wxml-->
<!-- <text>pages/homeindex/homeindex.wxml</text> -->
<view class="containerbox">

<view class='search'>
  <view class='search_inp' bindtap="btn_name">
    <!-- <input type='text' bindtap="btn_name" placeholder='请输入商品名称'></input> -->
    请输入商品名称
    <image src='../../img/search.png'></image>
  </view>
  <view class='search_txt' bindtap="btn_name">
    搜索
  </view>
</view>
<view class='banner'>
  <swiper indicator-dots="true" indicator-active-color="#fff" style="width:100%;height:100%;">
    <swiper-item wx:for='{{banner}}' wx:key="index">
      <image style="width: 688rpx;" mode='widthFix' src='{{item.img}}' />
    </swiper-item>
  </swiper>
  <view class='banner_Mask'></view>
</view>
<view class='commodity'>
  <!-- <navigator url=''>
    </navigator> -->
  <view class='jujia' wx:for='{{shop_class}}' wx:key="index" data-class_id="{{item.class_id}}" bindtap='look_category' data-index='{{index}}'>
    <image src='{{item.img}}'></image>
    <text>{{item.class_name}}</text>
  </view>
  <view class='fenlei' bindtap='look_category'>
    <image src='../../img/fenlei@3x.png'></image>
    <text>全部分类</text>
  </view>
</view>
<view class='introduce'>
  <view class='introduce_list'>
    <view class='introduce_item' bindtap="anxin">
      <image src='../../img/anquan@3x.png'></image>
      <text>安心检测</text>
    </view>
    <view class='introduce_item' bindtap="youxuan">
      <image src='../../img/youxuan@3x.png'></image>
      <text>优选源头</text>
    </view>
    <view class='introduce_item' bindtap="baozhang">
      <image src='../../img/baozhang@3x.png'></image>
      <text>赔付保障</text>
    </view>
  </view>
  <image src='{{middle}}'></image>
</view>
<view class='container'>
  <view class='mid'>
    <view class='ware_box' bindtap="shoptail" wx:for='{{shop}}' data-shop_id='{{item.shop_id}}' wx:key="index">
      <view class='ware_top'>
        <view class='ware_1'>
          <image src='{{item.thumb}}'></image>
          <view class='ware_1_over' wx:if="{{item.over}}">
           已结束
          </view>

          <block wx:else>
          <view class='ware_1_time' wx:if="{{item.percent==100}}">已成团</view>
           <view class='ware_1_time' wx:else>
            距结束{{item.day}}天{{item.hou}}时{{item.min}}分{{item.sec}}秒
          </view>

          
          
          </block>
         
        </view>
        <view class='ware_text'>
          <view class='ware_2'>
            <text class='ware_2Txt1'>{{item.name}}</text>
            <text class='ware_2Txt2'>产地:{{item.origin}}</text>
          </view>
          <view class='ware_3'>
            <progress percent="{{item.percent}}" show-info color="#B5DE96" border-radius="8" font-size="24rpx" stroke-width="16rpx" />
          </view>
          <view class='ware_4'>
            <text>现有{{item.numb}}份,目标{{item.group}}份</text>
          </view>
          <view class='ware_5'>
            <view>
              <text class='ware5_t1'>¥{{item.money_sale}}/</text>
              <text class='ware5_t2'>{{item.shop_type}}</text>
            </view>
            <view class='ware5_box'>
              <view class='ware5_t3'>{{item.text_table}}</view>
              <view class='ware5_t4'>{{item.text_content}}</view>
            </view>
             <view class='ware_over'wx:if="{{item.over}}">
              已结束
            </view>

            <view wx:else>
             <view class='ware_6' wx:if="{{item.percent==100}}">
             已成团
            </view>

            <view class='ware_6' wx:else>
              立即参团
            </view>
            </view>
           
           
          </view>
        </view>
      </view>
      <view class='ware_bot'>
        <view class='ware_bot_tit'>经典推荐</view>
        <view class='ware_bot_txt'>{{item.recommend}}</view>
      </view>
    </view>
  </view>
</view>
<view class='Load'>—— {{page_type?'下拉加载更多':'暂无更多数据'}} ——</view>

</view>



<!-- 弹窗 -->
<view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
<!-- 弹出层 -->
<view class="modalDlg" wx:if="{{showModal}}">
  <view class='modalDlg_p'>
    <view class='m_top'>
      <view class='m_topImg'>
        <image src='{{shop[index].thumb}}'></image>
      </view>
      <view class='m_topTxt'>
        <view class='m_topTxt1'>
          <view class='m_topName'>{{shop[index].name}}</view>
          <image bindtap='m_close' src='../../img/cha.png'></image>
        </view>
        <view class='m_topTxt2'>
          <view class='m_topPrice'>¥{{shop[index].money_sale}}</view>
          <view class='m_topHelf'>{{shop[index].shop_type}}</view>
        </view>
      </view>
    </view>
    <view class='m_number'>
      <view class='m_numTxt'>购买数量</view>
      <view class='minus_push'>
        <view class='minus' bindtap="bindMinus">-</view>
        <view class='num' bindchange="bindManual">{{num}}</view>
        <view class='push' bindtap="bindPlus">+</view>
      </view>
    </view>
    <button class='m_btn' bindtap='goFirm_order1' data-id="{{shop[index].shop_id}}">确认</button>
  </view>
</view>