goodkind.wxml 2.4 KB
<view class="searchhead">
  <view class="searchheadleft">
    <view class="searchboxleft">
      <image src="/img/sousuo.png"></image>
    </view>
    <view class="searchleftcontent">
      <input placeholder='请输入商品/赠品关键字' bindinput="enterword" />
    </view>

  </view>

  <view class="searchheadright" bindtap="sousuo">
    搜索
  </view>
</view>

<view class="goodkindbox">
  <view class="goodkindleft">
    <view class="goodkindleftitem {{sel==index?'goodsel':''}}" wx:for="{{goodkind}}" wx:key="" bindtap="goodsel" data-index="{{index}}" data-id="{{item.id}}">{{item.categories_name}}</view>
  </view>

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

  <view class="goodkindright" wx:else>
    <view class="goodkindrightitem" wx:for="{{kindgoodlist}}" wx:key="" bindtap="goodtail" data-id="{{item.id}}">

      <view class="goodkindbox">
        <view class='goodkindrightitemleft'>
          <view class="goodkindleftimg">
            <image src="{{item.image}}"></image>
          </view>
          <view class="xiename">
            <view class="xienameleft">
              <image src="/img/good.png"></image>
            </view>
            <view class="goodname">{{item.goods_name}}</view>
          </view>
        </view>
        <view class="songk">
          <image src="/img/send.png"></image>
        </view>
        <view class='goodkindrightitemleft'>
          <view class="goodkindleftimg">
            <image src="{{item.gift.image}}"></image>
          </view>
          <view class="xiename">
            <view class="xienameleft">
              <image src="/img/zeng.png"></image>
            </view>
            <view class="goodname">{{item.gift.goods_name}}</view>
          </view>
        </view>
      </view>


      <view class="goodkindprice">
        <view class="goodkindpriceleft">
          ¥{{item.price}}
        </view>
        <view class="goodkindpriceright" wx:if="{{item.freight==0.00}}">运费:免运费</view>
        <view class="goodkindpriceright" wx:else>运费:{{item.freight}}元</view>
        <view class="zengfreight" wx:if="{{item.gift.freight==0.00}}">
          <view class="goodkindpriceright">运费:免运费</view>
        </view>

        <view class="zengfreight" wx:else>
          <view class="goodkindpriceright">运费:{{item.gift.freight}}元</view>
        </view>

      </view>


    </view>


  </view>
</view>