sousuo.wxml 2.8 KB
<view class="souhead">
  <image src='/img/bg_img.png'></image>


  <view class="swiper_image">
    <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange">
      <block wx:for="{{noticelist}}" wx:key="">
        <swiper-item style="border-radius:10px;">
          <view class="titlebox">
            <view class="lancolor"></view>

            <view class="gonggaobiao">{{item.title}}</view>
            <view class="gonggaocontent">
             {{item.introduce}}
            </view>


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


    </swiper>

    <view class="dots">
      <block wx:for="{{noticelist}}" wx:key="">
        <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
      </block>
    </view>

  </view>

  <view class="seemore" bindtap="chaknamore">查看更多></view>


  <!-- <view class="titlebox">
    <view class="lancolor"></view>

    <view class="gonggaobiao">公告标题</view>
    <view class="gonggaocontent">
      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.
    </view>

    <view class="seemore">查看更多></view>
  </view> -->
</view>

<view class="headbottom" bindtap="hidegoodshow">
  <view class="sousuoheng">
    <view class="souimg" bindtap="soucontent">
      <image src="/img/souimg.png"></image>
    </view>

    <view class="shu"></view>
    <view class="souinput">
      <input placeholder='请输入搜索内容' placeholder-class='shurusoucontent' bindinput="entersearch"  bindtap="showsearch"/>

      <!-- bindtap="showsearch" -->

      <view class="soucontentbox" wx:if="{{showlabel}}">
        <view class="sousuoitem {{current==index?'sousuoactive':''}}" bindtap='texttouch' data-index="{{index}}" wx:for="{{textarr}}" wx:key="" data-name="{{item.name}}">{{item.name}}</view>
      </view>
    </view>
  </view>
  <!-- 历史记录 -->
  <view class="historybox">
    <view class="historyhead">
      <view class="historyleft">历史记录</view>
      <view class="historyright" bindtap="delhistory">
        <image src="/img/delshan.png"></image>
      </view>
    </view>



    <view class="nodata" wx:if="{{historylist.length==0}}">暂无数据</view>

    <view class="historyboxcontent">
      <view class="historyboxitem" bindlongpress="handleLongPress" wx:for="{{historylist}}" wx:key='' data-index="{{index}}" bindtap="historyname" data-name="{{item.history_name}}">{{item.history_name}}
      

      <view class="chahaoimg" wx:if="{{item.sel==true}}" catchtap='shanhistory' data-name="{{item.history_name}}">
          <image src="/img/chahao.png"></image>
      </view>
      
      </view>

    </view>
  </view>

</view>