index.axml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <import-sjs
  2. name="utils"
  3. from="./index.sjs"
  4. />
  5. <wrapper>
  6. <!-- 页面主体 -->
  7. <block a:if="{{hasLocation}}">
  8. <view
  9. class="shop-deliver-info"
  10. a:if="{{showFlag}}"
  11. >
  12. <!-- <default-img
  13. height="28rpx"
  14. width="28rpx"
  15. src="https://gw.alipayobjects.com/mdn/rms_933648/afts/img/A*TAAISJymbPgAAAAAAAAAAAAAARQnAQ"
  16. /> -->
  17. <view class="shop-deliver-tag-left">
  18. 门店支持配送
  19. </view>
  20. <view class="shop-deliver-tag-right">
  21. 起送金额:¥{{startDeliveryAmount}}
  22. </view>
  23. </view>
  24. <view class="mall-index-container">
  25. <view
  26. class="mall-index"
  27. a:if="{{globalTabs.length}}"
  28. style="{{`height: calc(100vh - ${tabBarHight+(+headB2bHight)+headerHight+extraTotalHight}px)`}}"
  29. >
  30. <!-- style="{{scrollArriveTop ? `height: calc(100vh - ${tabBarHight+(+headerHight)}px);over-flow: hidden` : 'height: auto;'}}" -->
  31. <vtabs
  32. className="vtab-class"
  33. tabs="{{globalTabs}}"
  34. a:if="{{ globalTabs.length }}"
  35. swipeable="{{true}}"
  36. animated="{{false}}"
  37. onChange="onChange"
  38. activeTab="{{activeTab}}"
  39. sameFontSize="{{true}}"
  40. tabBarlineShow="{{true}}"
  41. ref="saveRef"
  42. >
  43. <view class="right-list">
  44. <block
  45. a:for="{{globalGoodsList}}"
  46. a:for-item="listItem"
  47. >
  48. <vtab-content
  49. anchor="{{listItem.anchor}}"
  50. key="{{'key'+listItem.anchor}}"
  51. >
  52. <view class="group-text">{{utils.getCategoryName(globalTabs,index)}}</view>
  53. <view class="anchor-list">
  54. <view a:if="{{!listItem.list.length}}">
  55. <empty-goods-list />
  56. </view>
  57. <block
  58. a:else
  59. a:for="{{listItem.list}}"
  60. >
  61. <goods-item
  62. activeId="{{jumpId}}"
  63. targetId="#carFixedEnd"
  64. goodsItem="{{item}}"
  65. componentData="{{componentData}}"
  66. key="{{'goodsItem'+item.skuId}}"
  67. defaultNum="{{item.quantity}}"
  68. onItemChange="handelItemChange"
  69. showStock="{{item.stockStatus === 'Y'}}"
  70. isGoToDetail="{{true}}"
  71. showBooking="{{true}}"
  72. showAuto="{{true}}"
  73. ></goods-item>
  74. </block>
  75. </view>
  76. </vtab-content>
  77. </block>
  78. </view>
  79. </vtabs>
  80. </view>
  81. </view>
  82. <!-- 底部 fix -->
  83. <mall-car-popup
  84. a:if="{{globalTabs.length}}"
  85. tabBarHight="{{tabBarHight}}"
  86. componentData="{{componentData}}"
  87. ref="saveCarRef"
  88. showFlag="{{showFlag}}"
  89. startDeliveryAmount="{{startDeliveryAmount}}"
  90. >
  91. <shop-car-button
  92. onConfirmClick="handleConfirm"
  93. onCarClick="handleCarClick"
  94. tabBarHight="{{tabBarHight}}"
  95. showFlag="{{showFlag}}"
  96. startDeliveryAmount="{{startDeliveryAmount}}"
  97. />
  98. </mall-car-popup>
  99. </block>
  100. <!-- <empty
  101. a:else
  102. emptyImage="{{emptyImage}}"
  103. title="什么都没有"
  104. message="开启定位试试吧"
  105. >
  106. <view
  107. class="location-btn"
  108. onTap="refreshPage"
  109. >
  110. 回到首页
  111. </view>
  112. </empty> -->
  113. </wrapper>