orderBy.wxml 13 KB

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