orderBy.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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==3||index==4||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. <view class="new-v2-content-out" hidden="{{current==0?false:true}}">
  32. <view class="insada" style="height: {{navBarHeight}}px;"></view>
  33. <view class="new-v2-content">
  34. <scroll-view class="v2-left" scroll-y="true">
  35. <view class="{{index==selectProductList?'new-v2-left-color':'v2-left-item'}}" wx:for="{{productListV2}}" wx:key="index" catchtap="selectProductList" data-index="{{index}}">{{item.name}}</view>
  36. <view style="width:20px;height: 80px;"></view>
  37. </scroll-view>
  38. <scroll-view class="v2-right" scroll-y="true" scroll-into-view="{{toView}}" scroll-with-animation="ture" bindscroll="scroll">
  39. <view class="v2-right-item" wx:for="{{productListV2}}" wx:key="productListV2" id="A{{index}}">
  40. <view class="speach-top-spc"></view>
  41. <view class="title-rt">{{item.name}}</view>
  42. <view wx:for="{{item.products}}" wx:key="products" wx:for-item="V2Item">
  43. <view class="title-rt1" hidden="{{V2Item.type=='one'?false:true}}">{{V2Item.name}}</view>
  44. <view hidden="{{V2Item.type=='one'?false:true}}" wx:for="{{V2Item.items}}" wx:key="productsOne" wx:for-item="V2OneItem">
  45. <navigator class="v2-right-product-item" url="/pages/projectDetail/projectDetail?source=one&id={{V2OneItem.id}}&store_id={{storeId}}">
  46. <image class="v2-img" src="{{V2OneItem.cover_url}}"></image>
  47. <view class="v2-item-content">
  48. <view class="v2-title">{{V2OneItem.name}}</view>
  49. <view class="v2-desc" wx:if="{{V2OneItem.desc}}">
  50. <view class="desc-item" wx:for="{{ wxsUtil.split(V2OneItem.desc, ' ') }}" wx:key="t_index" wx:for-item="t_item">{{t_item}}</view>
  51. </view>
  52. <view class="addPage" hidden="{{V2OneItem.product_name?false:true}}">+{{V2OneItem.product_name}}
  53. </view>
  54. </view>
  55. </navigator>
  56. </view>
  57. <view class="v2-price1" hidden="{{V2Item.type=='one'?false:true}}">
  58. <view class="flex1In1"></view>
  59. <view class="v2-price-money1"><text>¥</text>{{V2Item.price}}</view>
  60. <view class="v2-submit1" catchtap="onKeySubmit" data-item="{{V2Item}}">一键预约</view>
  61. </view>
  62. <navigator hidden="{{V2Item.type=='one'?true:false}}" class="v2-right-product-item" url="/pages/projectDetail/projectDetail?source=project&id={{V2Item.id}}&store_id={{storeId}}">
  63. <image class="v2-img" src="{{V2Item.cover_url}}"></image>
  64. <image wx:if="{{V2Item.new_price!=0&&isNewUser==1}}" class="newPeopleFrame" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221209/%E6%A1%86%403x.png"></image>
  65. <view class="newPeoplePrice" wx:if="{{V2Item.new_price!=0&&isNewUser==1}}">{{V2Item.new_price}}</view>
  66. <view class="v2-item-content">
  67. <view class="v2-title">{{V2Item.name}}</view>
  68. <view class="v2-desc" wx:if="{{V2Item.desc}}">
  69. <view class="desc-item" wx:for="{{ wxsUtil.split(V2Item.desc, ' ') }}" wx:key="t_index" wx:for-item="t_item">{{t_item}}</view>
  70. </view>
  71. <view class="v2-price">
  72. <view class="v2-price-money"><view wx:if="{{V2Item.original_price}}" class="originalPrice">¥{{V2Item.original_price}}</view><view><text>¥</text>{{V2Item.price}}</view></view>
  73. <view class="v2-submit" catchtap="toSelectProduct" data-item="{{V2Item}}">选项目</view>
  74. </view>
  75. </view>
  76. </navigator>
  77. </view>
  78. </view>
  79. <view style="width:100px;height: 100px;"></view>
  80. </scroll-view>
  81. </view>
  82. </view>
  83. <!-- 这里是按钮的选择框 -->
  84. <view class="buttom-car" catchtap="buttomCar" hidden="{{current==0?false:true}}">
  85. <view class="car-img">
  86. <image class="car-icon" src="/images/car-icon.png"></image>
  87. <view class="top-view" hidden="{{selectProductCar.length==0?true:false}}">{{selectProductCar.length}}</view>
  88. </view>
  89. <view class="car-money"><text>¥</text>{{showMoney}}</view>
  90. <view class="to-submit" catchtap="toSubmit">去预约</view>
  91. </view>
  92. <!-- 下面是卡券耗材以及美妆产品的 -->
  93. <view class="tabs-content {{ current != 0 ? 'active' : '' }}" hidden="{{current==0?true:false}}">
  94. <view wx:for="{{productData}}" wx:key="key" style="{{item.type != currentType || item.cat_id != currentItemCatId ? 'display: none;' : '' }}" class="content-item {{ current != 0 ? 'active' : '' }}">
  95. <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">
  96. <image src="{{proItem.cover_url}}" class="item-image"></image>
  97. <view class="item-text flex1 flex-column flex-justify-space-around {{current==0?'insellShow':'insellShow2'}}">
  98. <text class="content-item-title">{{proItem.name}}</text>
  99. <view class="tags ellipsis" style="margin-top: 15rpx;" wx:if="{{proItem.tags}}">
  100. <view class="tags-item ellipsis" wx:for="{{ wxsUtil.split(proItem.tags, ' ') }}" wx:key="t_index" wx:for-item="t_item">
  101. {{t_item}}
  102. </view>
  103. </view>
  104. <view class="vip-price-box flex">
  105. <text class="vip-origin-price"><text wx:if="{{proItem.original_price!=0}}">¥</text>{{proItem.original_price==0?'':proItem.original_price}}</text>
  106. </view>
  107. <view class="btn-box flex-align-center">
  108. <view class="price-text">
  109. <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
  110. :
  111. proItem.price}}</text></text>
  112. </view>
  113. <image wx:if="{{proItem.is_member}}" src="/images/icon_11.png"></image>
  114. <text class="flex1"></text>
  115. <image data-proItem="{{proItem}}" catchtap="showProduce" src="/images/icon_15.png" wx:if="{{ current != 0&&current!=4 }}" style="width: 48rpx;height: 48rpx;"></image>
  116. <view class="btn flex-center" wx:if="{{current == 0 &&!inFirstIn}}">下单</view>
  117. <view class="btn flex-center {{index==1?'onIndex':''}}" wx:if="{{current == 0&&inFirstIn}}" catchtap="noneEnoughPeople" catchtouchmove="noneEnoughPeople">
  118. <view class="ondistShow" wx:if="{{ current == 0&&index==1&&inFirstIn }}">
  119. <view class="list_right_content">
  120. <view class="first_and_title"><text>第二步:</text>选择你</view>
  121. <view class="first_and_title">心仪的项目下单</view>
  122. </view>
  123. <image class="list_right_img" style="width: 40rpx;height: 40rpx;" src="/images/white_right.png">
  124. </image>
  125. </view>
  126. 下单
  127. </view>
  128. </view>
  129. </view>
  130. </navigator>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="list_first_to" catchtouchmove="noneEnoughPeople" hidden="{{inFirstIn?false:true}}">
  135. <view class="list_top_show">
  136. <view class="insada" style="height: {{navBarHeight}}px;"></view>
  137. <image class="list_top_img" src="/images/white_on.png"></image>
  138. <view class="list_top_content">
  139. <view class="first_and_title"><text>第一步:</text>项目导航栏</view>
  140. <view class="first_and_title">可左右滑动快速筛选项目哟~</view>
  141. </view>
  142. </view>
  143. <view class="KnowBtn" catchtap="knowSubmit">我知道了</view>
  144. </view>
  145. <!-- 下面是选择项目的弹出框 -->
  146. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ showProducePup }}" bind:close="onClosePay">
  147. <scroll-view scroll-y="true" class="coupon-popup">
  148. <view class="showline"></view>
  149. <view class="select-product">
  150. <image class="v2-select-image" src="{{isIcon?proItem.cover_url:toSelectProduct.cover_url}}"></image>
  151. <view class="v2-select-content">
  152. <view class="v2-select-content-name">
  153. <view class="v2-select-content-names">{{isIcon?proItem.name:toSelectProduct.name}}</view>
  154. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  155. </view>
  156. <view class="v2-desc" wx:if="{{toSelectProduct.desc}}">
  157. <view class="desc-item" wx:for="{{ wxsUtil.split(toSelectProduct.desc, ' ') }}" wx:key="t_index" wx:for-item="t_item">{{t_item}}</view>
  158. </view>
  159. <view class="flex1In"></view>
  160. <view class="v2-select-ontent-money"><text>¥</text>{{isIcon?proItem.price:toSelectProduct.price}}</view>
  161. </view>
  162. </view>
  163. <view wx:if="{{!isIcon}}" class="v2-select-title" hidden="{{selectProductData.upgrade.length==0?true:false}}">精选耗材</view>
  164. <view class="v2-material">
  165. <view wx:if="{{!isIcon}}" class="{{selectProductIndex==index?'onSelectProduct':'material-item'}}" catchtap="selectProduct" data-index="{{index}}" wx:for="{{selectProductData.upgrade}}" wx:key="index">
  166. <image class="material-images" src="{{item.cover_url}}"></image>
  167. <view class="material-content">
  168. <view class="material-name {{selectProductIndex==index?'onSelectName':''}}">{{item.name}}</view>
  169. </view>
  170. <view class="material-price"><text>¥</text>{{item.price}}</view>
  171. </view>
  172. </view>
  173. <view class="bottom-select"></view>
  174. <view wx:if="{{!isIcon}}" class="submit_bottom" catchtap="submit_bottom">加入购物车</view>
  175. <view wx:if="{{isIcon}}" class="submit_bottom" catchtap="submit_add">加入购物车</view>
  176. </scroll-view>
  177. </wux-popup>
  178. <!-- 下面是选择项目的弹出框 -->
  179. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ onCloseCar }}" bind:close="onCloseCar">
  180. <view class="popup-Title-Car">购物车</view>
  181. <scroll-view scroll-y="true" class="coupon-popup">
  182. <view class="select-product" wx:for="{{selectProductCar}}" wx:key='index'>
  183. <image class="v2-select-image" src="{{item.cover_url}}"></image>
  184. <view class="v2-select-content">
  185. <view class="v2-select-content-name">
  186. <view class="v2-select-content-names">{{item.name}}</view>
  187. <image src="/images/delete-gray.png" class="close-img" bindtap="inDeleteCarOne" data-index="{{index}}" />
  188. </view>
  189. <view class="v2-select-content-desc" hidden="{{item.selectMaterial?false:true}}">+{{item.selectMaterial.name}}
  190. </view>
  191. <view class="v2-select-ontent-money">
  192. <text>¥</text>{{item.new_price!=0&&isNewUser==1?item.new_price:item.price*1+(item.selectMaterial?item.selectMaterial.price*1:0*1)}}
  193. </view>
  194. </view>
  195. </view>
  196. <view style="width:100%;height:80px"></view>
  197. <!-- 折扣类型,0.无折扣,20.任意三个项目8折,50.新人五折活动,100.仪器免费使用权益 -->
  198. </scroll-view>
  199. <view class="buttom-car">
  200. <view class="car-img">
  201. <image class="car-icon" src="/images/car-icon.png"></image>
  202. <view class="top-view" hidden="{{selectProductCar.length==0?true:false}}">{{selectProductCar.length}}</view>
  203. </view>
  204. <view class="car-money"><text>¥</text>{{showMoney}}</view>
  205. <view class="to-submit" catchtap="toSubmit">去预约</view>
  206. </view>
  207. </wux-popup>