<!--module/article/components/diet-card/diet-card.wxml-->
<view class="list-card-item" id="{{item.id}}" bind:tap="toInfoPage">
  <view class="border-gradient" wx:if="{{index}}">
    <!--边框-->
  </view>
  <image class="cover" src="{{item.photo}}" mode="aspectFill" fade-in />
  <view class="content">
    <text class="title" max-lines="1" overflow="ellipsis">{{item.name}}</text>
    <text class="description" max-lines="2" overflow="ellipsis" wx:if="{{item.book}}">{{item.book}}</text>
    <text class="description-2" max-lines="1" overflow="ellipsis" wx:if="{{item.effect}}">{{item.effect}}</text>
  </view>
</view>