shoppingMall.wxml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <navigation>
  2. <wxs src='../../utils/wxsUtil.wxs' module="wxs"></wxs>
  3. <cover-view class="navbar-box" style="height:{{navBarData.navBarHeight}}px;" bindtap="goToStore">
  4. <cover-view class="navbar-box-container" style="height:{{navBarData.menuHeight}}px; min-height:{{navBarData.menuHeight}}px; line-height:{{navBarData.menuHeight}}px; bottom:{{navBarData.menuBotton}}px;">
  5. <cover-image class="navbar-location" src="/images/black_location.png"></cover-image>
  6. <cover-view>
  7. <cover-view class="navbar-tips">{{homeData.store.store_name}}</cover-view>
  8. </cover-view>
  9. </cover-view>
  10. </cover-view>
  11. </navigation>
  12. <view class="insada" style="height: {{navBarHeight}}px;"></view>
  13. <view class="tab">
  14. <wxs src="./../../utils/wxsUtil.wxs" module="wxsUtil" />
  15. <view class="tabs-wrap {{current==0?'tabs-wrap-not-item':''}}" style="top: {{navBarHeight}}px;">
  16. <view class="wrap-title flex-align-center">
  17. <view class="item-title {{ index == current ? 'active' : '' }}" wx:for="{{ currentList }}" wx:key="index" bindtap="onTabsChange" hidden="{{index==0||index==1||index==2?true:false}}" data-item="{{item}}">
  18. {{item.title}}
  19. </view>
  20. </view>
  21. <scroll-view scroll-x="true" class="wrap-list flex" style="width: 100%" scroll-into-view="c_{{current}}_{{currentItemIndex}}" hidden="{{current==0?true:false}}">
  22. <view class="item-list flex-center {{ index == currentItemIndex ? 'active' : '' }}" wx:for="{{ currentList[current].child }}" wx:key="index" bindtap="onTabsItem" data-item="{{item}}" data-index="{{index}}" id="c_{{currentList[current].id}}_{{index}}">
  23. {{item.name}}
  24. </view>
  25. </scroll-view>
  26. </view>
  27. <!-- 下面是新型订单列表 -->
  28. <!-- 下面是新型订单列表 -->
  29. <!-- 下面是新型订单列表 -->
  30. <!-- 下面是新型订单列表 -->
  31. <!-- 下面是卡券耗材以及美妆产品的 -->
  32. <view class="tabs-content {{ current != 0 ? 'active' : '' }}" hidden="{{current==0?true:false}}">
  33. <view wx:for="{{productData}}" wx:key="key" style="{{item.type != currentType || item.cat_id != currentItemCatId ? 'display: none;' : '' }}" class="content-item {{ current != 0 ? 'active' : '' }}">
  34. <navigator class="item flex" wx:for="{{ item.list }}" wx:key="index" wx:for-item="proItem" url="/pages/projectDetail/projectDetail?source={{currentList[current].source}}&id={{proItem.id}}&store_id={{storeId}}" hover-class="none">
  35. <image src="{{proItem.cover_url}}" class="item-image"></image>
  36. <view class="item-text flex1 flex-column flex-justify-space-around {{current==0?'insellShow':'insellShow2'}}">
  37. <text class="content-item-title">{{proItem.name}}</text>
  38. <view class="tags ellipsis" style="margin-top: 15rpx;" wx:if="{{proItem.tags}}">
  39. <view class="tags-item ellipsis" wx:for="{{ wxsUtil.split(proItem.tags, ' ') }}" wx:key="t_index" wx:for-item="t_item">
  40. {{t_item}}
  41. </view>
  42. </view>
  43. <view class="vip-price-box flex">
  44. <text class="vip-origin-price"><text wx:if="{{proItem.original_price!=0}}">¥</text>{{proItem.original_price==0?'':proItem.original_price}}</text>
  45. <!-- <text class="vip-origin-price"></text> -->
  46. <!-- </view> -->
  47. </view>
  48. <view class="btn-box flex-align-center">
  49. <view class="price-text">
  50. <text style="font-size: 24rpx;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;color: #FA4622;">¥<text style="font-size: 40rpx;color: #FA4622;font-weight: 500;">{{proItem.is_member ? proItem.member_price
  51. :
  52. proItem.price}}</text></text>
  53. </view>
  54. <image wx:if="{{proItem.is_member}}" src="/images/icon_11.png"></image>
  55. <text class="flex1"></text>
  56. <image data-proItem="{{proItem}}" catchtap="showProduce" src="/images/icon_15.png" wx:if="{{ current != 0&&current!=4 }}" style="width: 48rpx;height: 48rpx;"></image>
  57. <view class="btn flex-center" wx:if="{{current == 0 &&!inFirstIn}}">下单</view>
  58. <view class="btn flex-center {{index==1?'onIndex':''}}" wx:if="{{current == 0&&inFirstIn}}" catchtap="noneEnoughPeople" catchtouchmove="noneEnoughPeople">
  59. <view class="ondistShow" wx:if="{{ current == 0&&index==1&&inFirstIn }}">
  60. <view class="list_right_content">
  61. <view class="first_and_title"><text>第二步:</text>选择你</view>
  62. <view class="first_and_title">心仪的项目下单</view>
  63. </view>
  64. <image class="list_right_img" style="width: 40rpx;height: 40rpx;" src="/images/white_right.png">
  65. </image>
  66. </view>
  67. 下单
  68. </view>
  69. </view>
  70. </view>
  71. </navigator>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="list_first_to" catchtouchmove="noneEnoughPeople" hidden="{{inFirstIn?false:true}}">
  76. <view class="list_top_show">
  77. <view class="insada" style="height: {{navBarHeight}}px;"></view>
  78. <image class="list_top_img" src="/images/white_on.png"></image>
  79. <view class="list_top_content">
  80. <view class="first_and_title"><text>第一步:</text>项目导航栏</view>
  81. <view class="first_and_title">可左右滑动快速筛选项目哟~</view>
  82. </view>
  83. </view>
  84. <view class="KnowBtn" catchtap="knowSubmit">我知道了</view>
  85. </view>
  86. <!-- 美妆产品购物车 -->
  87. <view class="shopping-sup" wx:if="{{current==3}}" bindtap="onOpenMakeup">
  88. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220610/shopping.png"></image>
  89. <view class="shopping-list-num">{{sum}}</view>
  90. </view>
  91. <!-- 美妆产品购物车 -->
  92. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ onMakeup }}" bind:close="onCloseMakeup">
  93. <view class="popup-Title-Car">购物车</view>
  94. <scroll-view scroll-y="true" class="coupon-popup">
  95. <view class="select-product" wx:for="{{selectMakeupList}}" wx:key='index'>
  96. <image class="v2-select-image" src="{{item.cover_url}}"></image>
  97. <view class="v2-select-content">
  98. <view class="v2-select-content-name">
  99. <view class="v2-select-content-names">
  100. <view>{{item.goods_name}}</view>
  101. </view>
  102. <image src="/images/delete-gray.png" class="close-img" bindtap="inDeleteCarGood" data-index="{{index}}" />
  103. </view>
  104. <view class="v2-select-ontent-money">
  105. <view class="v2-box"> <text>¥</text><text class="price__big">{{wxs.formatValue(item.price, 'split')[0]}}</text>.<text class="price__small">{{wxs.formatValue(item.price, 'split')[1]}}</text></view>
  106. <view class="calculation">
  107. <view class="lation-content">
  108. <view class="reduce" bindtap="onReduce" data-index="{{index}}">-</view>
  109. <view class="lation-num">{{item.num}}</view>
  110. <view class="lation-add" bindtap="onLationAdd" data-index="{{index}}">+</view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <!-- 美妆购物车加购提示 -->
  117. <view class="exchange-tip" wx:if="{{exchangeInfo.surplus_price&&exchangeInfo.category_plus_id!=0}}">再购<text>{{exchangeInfo.surplus_price}}元</text>{{exchangeInfo.category_name}}产品,可低价换购活动项</view>
  118. <view style="width:100%;height:80px"></view>
  119. </scroll-view>
  120. <view class="buttom-car">
  121. <view class="car-img">
  122. <image class="car-icon" src="/images/car-icon.png"></image>
  123. <view class="top-view" hidden="{{selectMakeupList.length==0?true:false}}">{{sum}}</view>
  124. </view>
  125. <view class="car-money"><text>¥</text>{{showMoneyGood}}</view>
  126. <view class="to-submit" catchtap="toSubmitGood">去结算</view>
  127. </view>
  128. </wux-popup>
  129. <!-- 下面是选择购物袋的弹出框 -->
  130. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ showProducePup }}" bind:close="onClosePay">
  131. <scroll-view scroll-y="true" class="coupon-popup">
  132. <view class="showline"></view>
  133. <view class="select-product">
  134. <image class="v2-select-image" src="{{isIcon?proItem.cover_url:toSelectProduct.cover_url}}"></image>
  135. <view class="v2-select-content">
  136. <view class="v2-select-content-name">
  137. <view class="v2-select-content-names">{{isIcon?proItem.name:toSelectProduct.name}}</view>
  138. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  139. </view>
  140. <view class="v2-desc" wx:if="{{toSelectProduct.desc}}">
  141. <view class="desc-item" wx:for="{{ wxsUtil.split(toSelectProduct.desc, ' ') }}" wx:key="t_index" wx:for-item="t_item">{{t_item}}</view>
  142. </view>
  143. <view class="flex1In"></view>
  144. <view class="v2-select-ontent-money"><text>¥</text>{{isIcon?proItem.price:toSelectProduct.price}}</view>
  145. </view>
  146. </view>
  147. <view wx:if="{{!isIcon}}" class="v2-select-title" hidden="{{selectProductData.upgrade.length==0?true:false}}">精选耗材</view>
  148. <view class="v2-material">
  149. <view wx:if="{{!isIcon}}" class="{{selectProductIndex==index?'onSelectProduct':'material-item'}}" catchtap="selectProduct" data-index="{{index}}" wx:for="{{selectProductData.upgrade}}" wx:key="index">
  150. <image class="material-images" src="{{item.cover_url}}"></image>
  151. <view class="material-content">
  152. <view class="material-name {{selectProductIndex==index?'onSelectName':''}}">{{item.name}}</view>
  153. </view>
  154. <view class="material-price"><text>¥</text>{{item.price}}</view>
  155. </view>
  156. </view>
  157. <view class="bottom-select"></view>
  158. <view wx:if="{{!isIcon}}" class="submit_bottom" catchtap="submit_bottom">加入购物车</view>
  159. <view wx:if="{{isIcon}}" class="submit_bottom" catchtap="submit_add">加入购物车</view>
  160. </scroll-view>
  161. </wux-popup>