category.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <view class="container">
  2. <auth bindlogin="onShow" />
  3. <lip-sync />
  4. <view class="top">
  5. <view class="search">
  6. <input placeholder="搜索店铺" value="{{keyword}}" bindinput="inputChange" bindconfirm="search" focus="{{inputShowed}}" confirm-type="search" type="text"></input>
  7. <image wx:if="{{imgServer}}" src="{{imgServer + '/search.png'}}"></image>
  8. </view>
  9. <view class="header">
  10. <view class="ul nav">
  11. <view bindtap="tapHeaderBar" wx:for="{{header}}" wx:key="{{item.type}}" data-id='{{item.id}}' class="li {{item.id==activeType?'active':''}}">{{item.name}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="body" id="tab-con">
  16. <!-- <lip-sync inner-text="Some text"></lip-sync> -->
  17. <view class="ul" wx:if="{{loading || brandList.length}}">
  18. <view bindtap="gotoWV" data-img="{{item.img}}" data-id="{{item.id}}" class="li" wx:for='{{brandList}}' wx:key="*this">
  19. <image wx:if="{{imgServer}}" mode="aspectFill" src="{{item.appListPicUrl}}"></image>
  20. <view class="count"></view>
  21. <view class="b-title">
  22. <text>{{item.name}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view wx:else class="unbrand">
  27. <image src="/static/images/img_noshop@3x.png"></image>
  28. <view class="text">暂无相关店铺</view>
  29. </view>
  30. </view>
  31. <view class="linear-mask {{hideMask? '': 'mask-hidden'}}" ></view>
  32. <view bindtap="tabHide" class="search-con" wx:if="{{showSearch}}">
  33. <view class="sc-con" catchtap>
  34. <input focus="true" value="{{keyword}}" bindinput="inputChange" bindconfirm="search" confirm-type="search" type="text"></input>
  35. <image wx:if="{{imgServer}}" src="{{imgServer + '/fangdajing.png'}}"></image>
  36. </view>
  37. <view class="no-record" wx:if="{{noRecord}}">未搜索到相关内容</view>
  38. </view>
  39. </view>