patternList.wxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!--pages/patternList/patternList.wxml 一键选礼 - 列表 -->
  2. <!--searchList.wxml bindscrolltoupper="refesh" -->
  3. <view scroll-y class="container" bindscroll="scroll" enable-back-to-top>
  4. <view class="header_fixed">
  5. <view class='pattern_result_wrap'>
  6. <view class='pattern_result_cont'>
  7. <view class='each_result_wrap'>
  8. <view class='each_result_cont'>{{activeName1}}</view>
  9. <image src='/images/xuanli_list_top_icon.png' class='each_result_icon'></image>
  10. </view>
  11. <view class='each_result_wrap'>
  12. <view class='each_result_cont'>{{activeName2}}</view>
  13. <image src='/images/xuanli_list_top_icon.png' class='each_result_icon'></image>
  14. </view>
  15. <view class='each_result_wrap'>
  16. <view class='each_result_cont'>{{activeName3}}</view>
  17. <image src='/images/xuanli_list_top_icon.png' class='each_result_icon'></image>
  18. </view>
  19. </view>
  20. <view class='pattern_result_model'>
  21. <view class='pattern_return_cont clearfix' bindtap='returnChoose'>
  22. <view class='return_choose'>重新选择</view>
  23. <image src='/images/return_choose.png' class='return_icon'></image>
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 顶部导航栏 -->
  28. <view class="header_nav">
  29. <block wx:for="{{navList}}" wx:key="{{index}}">
  30. <view class="each_nav {{index == activeIndex ? 'nav_item_active' : ''}}">
  31. <view bindtap="onTapTag" data-index="{{index}}" id="{{item.id}}" data-type="{{index == activeIndex ? '1' : '0'}}" data-val="{{dataVal}}" class="nav_item">
  32. <text class="header_nav_title">{{item.title}}</text>
  33. <block wx:if="{{index == activeIndex}}">
  34. <image class="header_nav_icon" src="{{pre}}" ></image>
  35. </block>
  36. <block wx:elif="{{index != activeIndex && item.id == 'price'}}">
  37. <image class="header_nav_icon_price" src="{{noActPrice}}"></image>
  38. </block>
  39. <block wx:else>
  40. <image class="header_nav_icon" src="{{n}}"></image>
  41. </block>
  42. </view>
  43. </view>
  44. </block>
  45. </view>
  46. </view>
  47. <view class="list">
  48. <block wx:for="{{contentList}}" wx:key="{{index}}" wx:for-index="i">
  49. <view class='each_nav_wrap list_item_wrap'>
  50. <navigator url="/pages/buy/buy?com_id={{item.id}}" open-type='redirect' class="list_item_nav">
  51. <view class="list_item">
  52. <image src="{{item.commodity_logo}}" class="full_image" mode="widthFix"/>
  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. <!-- <image src="{{item.collectState ? '/images/collect_icon_pre.png' : '/images/collect_icon_n.png'}}" data-state="{{item.collectState}}" data-id="{{i}}" class="collect_icon" data-comid="{{item.id}}" bindtap="collect"></image> -->
  58. </view>
  59. </block>
  60. </view>
  61. <view class="loading" hidden="{{!searchLoading}}">正在载入更多...</view>
  62. <view class="loading complete" hidden="{{!searchLoadingComplete}}">已加载全部</view>
  63. <!-- 右侧按钮 -->
  64. <view class='right_btn_wrap'>
  65. <view class="right_btn {{posYes? '' : 'hidden'}}" bindtap='goTop'><image src='/images/list_right_btn_top.png' class='right_icon' alt="回到顶部"></image></view>
  66. <view class='right_btn' bindtap='openChangeModel'><image src='/images/change_liulan.png' class='right_icon' alt="模式"></image></view>
  67. <view class='right_btn' bindtap='goCar'><image src='/images/right_tab_car.png' class='right_icon' alt="购物车"></image></view>
  68. </view>
  69. </view>
  70. <!-- 切换弹层 -->
  71. <view class='change_msg_bg {{showMsg ? "" : "hidden"}}' bindtap='closeMsg'>
  72. <view class='change_msg_wrap'>
  73. <view class='change_msg_cont'>
  74. 您已进入一键选礼模式点击右下角可以切换至商品浏览模式
  75. <image src='/images/close_icon_white.png' class='change_msg_close' alt='关闭'></image>
  76. </view>
  77. <view class='change_msg_icon'><image src='/images/msg_bg_right.png' class='change_msg_icon'></image></view>
  78. </view>
  79. </view>
  80. <!-- 切换提示弹窗 -->
  81. <view class='change_model_wrap {{showChangeModel ? "" : "hidden"}}'>
  82. <view class='change_model_content'>
  83. <image src='/images/close_icon_gray.png' bindtap='closeChangeModel' class='change_model_close' alt='关闭'></image>
  84. <view class='change_model_cont'>
  85. <view class='change_model_title1'>将为您切换至</view>
  86. <view class='change_model_title2'>商品浏览模式</view>
  87. <view class='change_model_title3'>是否确认?</view>
  88. <view class='change_btn_wrap clearfix'>
  89. <image src='/images/change_msg_bg.png' class='change_model_bg'></image>
  90. <view class='each_change_btn btn_left' bindtap='goChooseGift'>确认</view>
  91. <view class='each_change_btn' bindtap='closeChangeModel'>取消</view>
  92. </view>
  93. </view>
  94. </view>
  95. </view>