<!--static/nativeComponents/Notice/index.wxml-->
<view class="container">
  <view class="section {{lists.length?'heightAuto':''}}">
    <view class="go_my_spokesman_home go_my_spokesman_home_top {{isShow}}">
        <view class="img">
          <image mode="aspectFit" src="{{parentSpokesmanHandImage}}" />
        </view>
        <view class="title">
          来自"{{spokesmanInfo.parentSpokesmanNickname}}
          <text></text>
          "给您的推荐
        </view>
        <text class="go_btn" bindtap="toSpokesmanHomePage">查看更多</text>
    </view>
    <swiper indicator-dots="false" autoplay="true" interval="4000" duration="1000" style="height: 376rpx;" wx:if="{{lists.length}}">
      <swiper-item wx:for="{{lists}}" class="shop_lists" wx:for-item="ele">
        <view 
          class="list_item" 
          wx:for="{{ele}}" 
          wx:key="index"
          bindtap="toGoodsInfo"
          data-item="{{item}}"
        >
          <view class="item_img">
            <image mode="aspectFit" style="height: 100%;" src="{{item.terminalProductGoods.imgUrl}}" alt="" />
          </view>
          <view class="shop_name">
            {{item.terminalProductGoods.productName}}
          </view>
          <view class="sale_price">
            销售价:<text style="text-decoration:line-through; ">¥{{item.terminalProductGoods.salePrice}}</text>
          </view>
          <view class="discount_price">折后价:¥{{item.terminalProductGoods.discountPrice}}</view>
          <view class="show_price">
            <view class="title">最高可省</view>
            <view class="price"> {{item.terminalProductGoods.discountPriceToatal}}元</view>
          </view>
        </view>
      </swiper-item>
    </swiper>
  </view>
</view>