collection.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!-- 若是没有登录就显示登录界面 -->
  2. <block wx:if="{{!login}}">
  3. <!-- logo -->
  4. <view class="hmly-logo" hover-class="none" hover-stop-propagation="false">
  5. <image class="hmly-logo-img" src="/image/logo.png" mode="widthFix" lazy-load="false"></image>
  6. </view>
  7. <!-- 登录按钮 -->
  8. <view class="hmly-login-button" hover-class="none" hover-stop-propagation="false">
  9. <view class="hmly-wechat-login">
  10. <button open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">
  11. <text class="icon-message"></text> 微信登录
  12. </button>
  13. </view>
  14. <view class="hmly-phone-login">
  15. <button>手机号登录</button>
  16. </view>
  17. </view>
  18. </block>
  19. <block wx:else>
  20. <!-- 搜索框 -->
  21. <search></search>
  22. <!-- 功能栏 -->
  23. <view class="hmly-title-bar">
  24. <view class="hmly-item-title {{index == currentIndex ? 'hmly-active' : ' '}}" data-index="{{index}}"
  25. bindtap="checkItem" wx:for="{{content}}" wx:key="index">
  26. {{item.text}}
  27. </view>
  28. </view>
  29. <swiper class="hmly-swiper-box" style="min-height:{{height}}px" duration="300" current="{{currentIndex}}"
  30. bindchange="changeTab">
  31. <swiper-item>
  32. <block>
  33. <view class="hmly-no-content">
  34. <text class="icon-empty text-gray" style="font-size:400rpx"></text>
  35. <view class="hmly-but-box">
  36. <text style="font-size:30rpx" class="text-gray">没有内容</text>
  37. <button class="hmly-but">看看推荐</button>
  38. </view>
  39. </view>
  40. </block>
  41. </swiper-item>
  42. <swiper-item>
  43. <block>
  44. <view class="hmly-no-content">
  45. <text class="icon-empty text-gray" style="font-size:400rpx"></text>
  46. <view class="hmly-but-box">
  47. <text style="font-size:30rpx" class="text-gray">没有内容</text>
  48. <button class="hmly-but">看看推荐</button>
  49. </view>
  50. </view>
  51. </block>
  52. </swiper-item>
  53. <swiper-item>
  54. <block>
  55. <view class="hmly-no-content">
  56. <text class="icon-empty text-gray" style="font-size:400rpx"></text>
  57. <view class="hmly-but-box">
  58. <text style="font-size:30rpx" class="text-gray">没有内容</text>
  59. <button class="hmly-but">看看推荐</button>
  60. </view>
  61. </view>
  62. </block>
  63. </swiper-item>
  64. <swiper-item>
  65. <block>
  66. <view class="hmly-no-content">
  67. <text class="icon-empty text-gray" style="font-size:400rpx"></text>
  68. <view class="hmly-but-box">
  69. <text style="font-size:30rpx" class="text-gray">没有内容</text>
  70. <button class="hmly-but">更多礼包</button>
  71. </view>
  72. </view>
  73. </block>
  74. </swiper-item>
  75. </swiper>
  76. </block>