home.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <view style="text-align: center; color: #b9b9b9" wx:if="{{pageLoading}}">
  2. <t-loading theme="circular" size="40rpx" text="加载中..." inherit-color />
  3. </view>
  4. <view class="home-page-header">
  5. <view class="search" bind:tap="navToSearchPage">
  6. <t-search
  7. t-class-input="t-search__input"
  8. t-class-input-container="t-search__input-container"
  9. placeholder="iphone 13 火热发售中"
  10. leftIcon=""
  11. disabled
  12. >
  13. <t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" />
  14. </t-search>
  15. </view>
  16. <view class="swiper-wrap">
  17. <t-swiper
  18. wx:if="{{imgSrcs.length > 0}}"
  19. current="{{current}}"
  20. autoplay="{{autoplay}}"
  21. duration="{{duration}}"
  22. interval="{{interval}}"
  23. navigation="{{navigation}}"
  24. imageProps="{{swiperImageProps}}"
  25. list="{{imgSrcs}}"
  26. bind:click="navToActivityDetail"
  27. />
  28. </view>
  29. </view>
  30. <view class="home-page-container">
  31. <view class="home-page-tabs">
  32. <t-tabs
  33. t-class="t-tabs"
  34. t-class-active="tabs-external__active"
  35. t-class-item="tabs-external__item"
  36. defaultValue="{{0}}"
  37. space-evenly="{{false}}"
  38. bind:change="tabChangeHandle"
  39. >
  40. <t-tab-panel
  41. wx:for="{{tabList}}"
  42. wx:for-index="index"
  43. wx:key="index"
  44. label="{{item.text}}"
  45. value="{{item.key}}"
  46. />
  47. </t-tabs>
  48. </view>
  49. <goods-list
  50. wr-class="goods-list-container"
  51. goodsList="{{goodsList}}"
  52. bind:click="goodListClickHandle"
  53. bind:addcart="goodListAddCartHandle"
  54. />
  55. <load-more list-is-empty="{{!goodsList.length}}" status="{{goodsListLoadStatus}}" bind:retry="onReTry" />
  56. <t-toast id="t-toast" />
  57. </view>