order.wxml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <wxs module="tool" src="../../app.wxs" />
  2. <wxs src="./../../utils/wxsUtil.wxs" module="wxsUtil" />
  3. <view class="tabs-wrap flex-align-center">
  4. <view class="item flex-center {{current == 0 ? 'active' : ''}}" bindtap="onTabsChange" data-id="0">
  5. 已预约
  6. </view>
  7. <view class="item flex-center {{current == 1 ? 'active' : ''}}" bindtap="onTabsChange" data-id="1">
  8. 待使用
  9. </view>
  10. <view class="item flex-center {{current == 2 ? 'active' : ''}}" bindtap="onTabsChange" data-id="2">
  11. 进行中
  12. </view>
  13. <view class="item flex-center {{current == 3 ? 'active' : ''}}" bindtap="onTabsChange" data-id="3">
  14. 已结算
  15. </view>
  16. <view class="item flex-center {{current == 4 ? 'active' : ''}}" bindtap="onTabsChange" data-id="4">
  17. 已取消
  18. </view>
  19. </view>
  20. <view class="tabs">
  21. <view class="tabs-content">
  22. <view class="on-spc"></view>
  23. <navigator url="{{current==0?'/pages/confirmProjectOrder/confirmProjectOrder?id='+item.id:'/pages/orderDetailsProject/orderDetailsProject?id='+item.id}}" class="navigator-content"
  24. wx:for="{{list}}" wx:key='index'>
  25. <view class="navigator-title">
  26. <image class="title-location-img" src="/images/black_location.png"></image>
  27. <view class="title-store-name">{{item.store_name}}</view>
  28. <view class="title-store-line">{{wxsUtil.getDistance(lat1,lng1,item.latitude,item.longitude)}}km <image src="/images/list-ker-right.png"></image>
  29. </view>
  30. <view class="show-typeStr">{{orderStr[current]}}</view>
  31. </view>
  32. <view class="item-desc">
  33. <view class="item-desc-title">美容时间:</view>
  34. <view class="item-desc-time">{{item.order_time}}<text></text></view>
  35. </view>
  36. <view class="item-desc">
  37. <view class="item-desc-title">美容项目:</view>
  38. <view class="ellipsis item-desc-project">{{item.project_name}}</view>
  39. </view>
  40. <view class="item-desc">
  41. <view class="item-desc-title">合计费用:</view>
  42. <view class="item-desc-price">¥<text>{{item.price}}</text></view>
  43. </view>
  44. <view class="line-show-line"></view>
  45. <view class="btm-line" wx:if="{{current == 0}}">
  46. <view class="spc"></view>
  47. <view class="gray-btm" catchtap="onCancelOrder" data-id="{{item.id}}">取消预约</view>
  48. <view class="gray-btm" catchtap="beautyImg" data-img="{{item.advisor_url}}">美导师</view>
  49. <view class="yellow-btm">立即支付</view>
  50. </view>
  51. <view class="btm-line" wx:if="{{current == 1||current==2}}">
  52. <view class="spc"></view>
  53. <view class="yellow-btm" catchtap="beautyImg" data-img="{{item.advisor_url}}">美导师</view>
  54. </view>
  55. <view class="btm-line" wx:if="{{current == 3}}">
  56. <view class="spc"></view>
  57. <view class="yellow-btm" catchtap="oneMore" data-id="{{item.id}}" data-price="{{item.price}}">再来一单</view>
  58. </view>
  59. <view class="btm-line" wx:if="{{current == 4}}">
  60. <view class="spc"></view>
  61. <view class="yellow-btm" catchtap="oneMore" data-id="{{item.id}}" data-price="{{item.price}}">重新预约</view>
  62. </view>
  63. <view class="btm-line" wx:if="{{current == 0}}">
  64. <view class="spc"></view>
  65. <navigator url="/pages/dossier/dossier" class="gray-btm" catchtap="buildSelf" data-id="{{item.id}}">完善个人档案</navigator>
  66. </view>
  67. </navigator>
  68. <!-- <navigator url="/pages/orderDetail/orderDetail?id={{item.id}}" hover-class="none" wx:for="{{list}}" wx:key="index">
  69. <view class="item tabs-radius current{{current}}">
  70. <view class="item-top flex-align-center ">
  71. <text class="flex1 ellipsis" style="font-size: 36rpx;font-family: PingFangSC-Semibold, PingFang SC;">{{item.project_name}}</text>
  72. <text class="state" wx:if="{{item.status == 0}}">已预约</text>
  73. <text class="state" wx:if="{{item.status == 1}}">待使用</text>
  74. <text class="state" wx:if="{{item.status == 2}}">进行中</text>
  75. <text class="state" wx:if="{{item.status == 3}}">已结算</text>
  76. </view>
  77. <view>
  78. <view class="item-content flex">
  79. <view class="img">
  80. <image src="{{item.project_cover_url}}"></image>
  81. <view class="mark" wx:if="{{item.products.length > 0}}">项目</view>
  82. </view>
  83. <view class="content flex-column">
  84. <view class="content-text-box flex">
  85. <text style="color:#999;">预约店铺:</text>
  86. <text class="flex1 ellipsis">{{item.store_name}}</text>
  87. </view>
  88. <view class="content-text-box flex">
  89. <text style="color:#999;">预约时间:</text>
  90. <text class="flex1 ellipsis">{{tool.replaceStr(item.order_time)}}</text>
  91. </view>
  92. <view class="content-text-box flex">
  93. <text style="color:#999;">使用设备:</text>
  94. <text class="flex1 ellipsis">{{item.device_name}}</text>
  95. </view>
  96. <text style="font-size: 14px;color: #333333;">预约时间:{{tool.replaceStr(item.order_time)}}</text>
  97. <text style="font-size: 14px;color: #666666;">设备:{{item.device_name}}</text>
  98. </view>
  99. <image class="icon" src="/images/my/order_0.png" wx:if="{{item.status == -1}}"></image>
  100. </view>
  101. <view class="item-content flex" wx:for="{{item.products}}" wx:key="p_index" wx:for-item="p_item">
  102. <view class="img">
  103. <image src="{{p_item.cover_url}}"></image>
  104. <view class="mark">产品</view>
  105. </view>
  106. <view class="content flex-column">
  107. <view class="content-text-box flex">
  108. <text style="color:#999;">升级产品:</text>
  109. <text class="flex1 ellipsis">{{p_item.product_name}}</text>
  110. </view>
  111. <view class="content-text-box flex"></view>
  112. <view class="content-text-box flex"></view>
  113. </view>
  114. <image class="icon" src="/images/my/order_0.png" wx:if="{{item.status == -1}}"></image>
  115. </view>
  116. </view>
  117. <view class="item-btn flex-align-center" wx:if="{{item.status == 0}}">
  118. <view class="btn cancel-btn flex-center" catchtap="onCancelOrder" data-id="{{item.id}}">
  119. 取消订单
  120. </view>
  121. <view class="btn use-btn flex-center" catchtap="onPay" data-id="{{item.id}}" data-money="{{item.price}}">去支付</view>
  122. </view>
  123. <view class="item-btn flex-align-center" wx:if="{{item.status != 0}}">
  124. <text style="font-size: 28rpx;color: #999;">{{item.products.length > 0 ? "合计:" : "预约费用:"}}</text>
  125. <text style="font-size: 36rpx;margin-right:28rpx;color: #333 !important;">¥{{item.price}}</text>
  126. </view>
  127. </view>
  128. </navigator> -->
  129. <view class="no-data" style="display: {{list.length == 0 ? 'block' : 'none'}};">暂无数据~</view>
  130. </view>
  131. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ payNow }}"
  132. bind:close="onClosePay">
  133. <view class="coupon-popup payType">
  134. <view class="top flex-align-center">
  135. <text style="text-align: center;"></text>
  136. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  137. </view>
  138. <view class="moneyShow"><text>¥</text>{{ payMoney }}</view>
  139. <view class="select-pay-methon" catchtap="pay_methonw">
  140. <image class="pay-img" src="/images/wx_pay.png"></image>
  141. <view class="pay-title">微信支付</view>
  142. <!-- <view class="pay-money"><text>¥</text>800</view> -->
  143. <image class="select-activity" src="{{pay_methon==1?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  144. </view>
  145. <view class="select-pay-methon" catchtap="pay_methonc">
  146. <image class="pay-img" src="/images/joli_pay.png"></image>
  147. <view class="pay-title">储值支付</view>
  148. <view class="pay-money"><text>¥</text>{{inserllAmount}}</view>
  149. <image class="select-activity" src="{{pay_methon==2?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  150. </view>
  151. <view class="coupon-popup-btm flex-center">
  152. <view class="coupon-popup-btm-btn flex-center" bindtap="payNow">支付</view>
  153. </view>
  154. </view>
  155. </wux-popup>
  156. </view>
  157. <!-- showLandscape -->
  158. <wux-landscape visible="{{ showLandScape }}" maskClosable="{{ true }}" closable="{{ false }}" bind:close="onCloseLandscape"
  159. class="skin-popup" catchtouchmove="true">
  160. <view class="use-popup flex-column">
  161. <view class="text-cotent">
  162. <image class="showImage" show-menu-by-longpress="true" src="{{showImg}}"></image>
  163. <view class="text-top">JOLIJOLI美导师帮你</view>
  164. <view class="text-bottom">解决任何美容问题和服务</view>
  165. </view>
  166. <image src="/images/icon_20.png" class="close-img" bindtap="onCloseLandscape"></image>
  167. </view>
  168. </wux-landscape>