goodsGift.wxml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!-- goodsGift.wxml 心礼盒 -->
  2. <scroll-view class="container">
  3. <!-- 导航 -->
  4. <!-- <view class="header_nav_wrap" wx:if="{{contentList != ''}}">
  5. <scroll-view scroll-x="true" class="header_nav" scroll-left="{{scrollLeft}}">
  6. <block wx:for="{{contentList}}" wx:key="id" wx:for-index="i">
  7. <view class="each_nav_wrap">
  8. <view data-id="{{i}}" data-current="{{i}}" data-forid="{{item.id}}" data-forname="{{item.classify_name}}" data-forclassifydes="{{item.classify_des}}" class="header_nav_title {{currentTab==i?'nav_item_active':''}}" bindtap="tagChoose">{{item.classify_name}}</view>
  9. </view>
  10. </block>
  11. </scroll-view>
  12. </view> -->
  13. <!-- 新导航 - 带有筛选条件 -->
  14. <view class="header_nav_wrap">
  15. <view class="header_nav">
  16. <!-- 送礼场景 - 送礼价钱筛选 -->
  17. <view class='condition_one'>
  18. <block wx:for="{{conditionTab1}}" wx:key="index" wx:for-index="i">
  19. <view class='condition_each_nav' data-id='{{i}}' data-flagid="{{item.id}}" bindtap='filtratePrice'>
  20. <view class='condition_icon {{selectOneId == i ? "condition_icon_active" : ""}}'></view>
  21. <view class='condition_title {{selectOneId == i ? "condition_title_active" : ""}}'>{{item.scene_name}}</view>
  22. </view>
  23. </block>
  24. </view>
  25. <!-- 送礼场景 - 送礼用途筛选 -->
  26. <view class='condition_two'>
  27. <block wx:for="{{conditionTab2}}" wx:key="index" wx:for-index="i">
  28. <view class='condition_each_nav' data-id='{{i}}' data-flagid="{{item.id}}" bindtap='filtrateWay'>
  29. <view class='condition_icon {{selectTwoId == i ? "condition_icon_active" : ""}}'></view>
  30. <view class='condition_title {{selectTwoId == i ? "condition_title_active" : ""}}'>{{item.scene_name}}</view>
  31. </view>
  32. </block>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 内容 -->
  37. <swiper class="tab-content" data-forname="{{contentList.classify_name}}" current="{{currentTab}}" duration="300" bindchange="switchTab" style="height:{{winHeight}}rpx">
  38. <swiper-item wx:for="{{contentList}}" wx:key="index" wx:for-index="i" >
  39. <scroll-view scroll-y class="scoll-h" data-id="{{i}}" data-forid="{{item.id}}" data-current="{{i}}" bindscrolltolower="searchScrollLower">
  40. <view class="list">
  41. <!-- 二级标题 -->
  42. <!-- <view class="content_title_wrap">
  43. <view class="title_line"></view>
  44. <view class="title_contemt">{{Title}}</view>
  45. </view> -->
  46. <!-- 数据列表 -->
  47. <!-- <view class="list_list"> -->
  48. <block wx:for="{{tuijian}}" wx:key="{{index}}">
  49. <navigator url="/pages/buy/buy?com_id={{item.id}}" class="list_item_wrap">
  50. <view class="list_item">
  51. <image src="{{item.commodity_logo}}" class="full_image" mode="widthFix"/>
  52. <!-- <view class="full_img_footer">{{item.commodity_des}}</view> -->
  53. </view>
  54. <view class="full_title">{{item.commodity_name}}</view>
  55. <view class="full_price">¥ {{item.commodity_sale}} <text class='full_price_unit' decode="true">&nbsp;&nbsp;¥{{item.commodity_cost}}&nbsp;&nbsp;</text></view>
  56. </navigator>
  57. </block>
  58. <!-- </view> -->
  59. <!-- 数据列表结束 -->
  60. </view>
  61. <view class="loading" hidden="{{!searchLoading}}">正在载入更多...</view>
  62. <view class="loading complete" hidden="{{!searchLoadingComplete}}">已加载全部</view>
  63. </scroll-view>
  64. </swiper-item>
  65. </swiper>
  66. </scroll-view>