index.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <view class="content">
  3. <view class="order-content-wrap">
  4. <!-- 查看订单排号 -->
  5. <view ref="hContentWrap" class="hContentWrap h-content-wrap">
  6. <!-- 切换菜单-->
  7. <view class="tab-bar">
  8. <view class="tab-item" :class="{ active: currentTab === 'tab1' }" @click="changeTab('tab1')">
  9. 服务订单
  10. </view>
  11. <view class="tab-item" :class="{ active: currentTab === 'tab2' }" @click="changeTab('tab2')">
  12. 产品订单
  13. </view>
  14. </view>
  15. <view v-show="currentTab === 'tab1'" class="store-wrap">
  16. <!-- 导航-->
  17. <view class="service-order-tab-bar">
  18. <view class="service-order-tab-item" :class="{ active: currentServiceTab === 'orderTab1' }"
  19. @click="changeServiceTab('orderTab1')">
  20. <text :class="{ underline: currentServiceTab === 'orderTab1' }">全部</text>
  21. </view>
  22. <view class="service-order-tab-item" :class="{ active: currentServiceTab === 'orderTab2' }"
  23. @click="changeServiceTab('orderTab2')">
  24. <text :class="{ underline: currentServiceTab === 'orderTab2' }">当前订单</text>
  25. </view>
  26. <view class="service-order-tab-item" :class="{ active: currentServiceTab === 'orderTab3' }"
  27. @click="changeServiceTab('orderTab3')">
  28. <text :class="{ underline: currentServiceTab === 'orderTab3' }">待付款</text>
  29. </view>
  30. <view class="service-order-tab-item" :class="{ active: currentServiceTab === 'orderTab4' }"
  31. @click="changeServiceTab('orderTab4')">
  32. <text :class="{ underline: currentServiceTab === 'orderTab4' }">已完成</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="service-order" v-show="currentTab === 'tab1'">
  38. <!-- 门店列表 -->
  39. <view class="store-wrap">
  40. <view :class="{ 'grayscale': item.forstStatus === '1' }">
  41. <view @click="orderDetail(item)" class="">
  42. <view class="store-list">
  43. <view class="store-content">
  44. <view class="content">
  45. <view class="desc flex-row justify-start ">
  46. <!-- <view class="time">
  47. 11111111111
  48. </view> -->
  49. <view class="service-type">
  50. <!-- {{ item.serviceModeDesc }} -->
  51. 到店
  52. </view>
  53. <view class="service-mode">
  54. <!-- <text>{{ item.serviceAttrDesc }}</text> -->
  55. 预约
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class=" planNumber flex-col justify-center">
  61. <text> {{ item.planNumber || '未排号' }}</text>
  62. </view>
  63. </view>
  64. <view class="order-state">
  65. <view class="order-num">
  66. <view class="h-order-num">
  67. <image src="../../static/index/u217.png" mode=""></image>订单编号:{{ item.orderNo }}
  68. </view>
  69. <view class="h-order-text">
  70. 服务项目
  71. </view>
  72. </view>
  73. <view class="order-state-name">
  74. <text class="h-text1">{{ item.forstStatus === '1' ? '已冻结' : item.orderStatusDesc
  75. }}</text>
  76. </view>
  77. </view>
  78. <view class="flex-col detail11 ">
  79. <view class="d-item-row ">
  80. <view class="item-icon">
  81. <image src="../../static/order/ud1.png" mode=""></image>
  82. </view>
  83. <view class="item-text">
  84. 服务对象:<text class="item-v">{{ item.serviceObjectName }}</text>
  85. </view>
  86. </view>
  87. <view class="d-item-row ">
  88. <view class="item-icon">
  89. <image src="../../static/order/ud2.png" mode=""></image>
  90. </view>
  91. <view class="item-text">
  92. 服务门店:<text class="item-v">{{ item.storeName }}</text>
  93. </view>
  94. </view>
  95. <view class="d-item-row ">
  96. <view class="item-icon">
  97. </view>
  98. <view class="item-text">
  99. 排号时段:<text class="item-v">{{ item.createTime }}</text>
  100. </view>
  101. </view>
  102. </view>
  103. <view class="detail flex-row justify-between">
  104. <view class="flexLR">
  105. <view>
  106. <view class="d-item-row ">
  107. <view class="item-icon">
  108. <image src="../../static/order/ud3.png" mode=""></image>
  109. </view>
  110. <view class="item-text">
  111. 服务日期:<text v-if="item.servicePersonName" class="item-v">{{
  112. item.servicePersonName }}</text>
  113. <text v-else class="item-v">2023-8-16</text>
  114. </view>
  115. </view>
  116. <view class="d-item-row ">
  117. <view class="item-icon">
  118. <image src="../../static/order/ud3.png" mode=""></image>
  119. </view>
  120. <view class="item-text">
  121. 服务时段:<text v-if="item.servicePersonName" class="item-v">{{
  122. item.servicePersonName }}</text>
  123. <text v-else class="item-v">15:30 -- 16:30</text>
  124. </view>
  125. </view>
  126. <view class="d-item-row ">
  127. <view class="item-icon">
  128. <image src="../../static/order/ud3.png" mode=""></image>
  129. </view>
  130. <view class="item-text">
  131. 服务技师:<text v-if="item.servicePersonName" class="item-v">{{
  132. item.servicePersonName }}</text>
  133. <text v-else class="item-v">签到成功自动分配</text>
  134. </view>
  135. </view>
  136. </view>
  137. <view class=" planNumber flex-col justify-center">
  138. <text> {{ item.planNumber || '未排号' }}</text>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="price">
  143. 订单总金额:<text class="fontColor" v-if="item.totalAmount"> ¥{{ item.totalAmount }}</text>
  144. <text class="fontColor" v-else>¥0</text>
  145. </view>
  146. </view>
  147. <view class="nav-bar">
  148. <view class="btn" @click="gotoPayOrder(item)">
  149. <u-icon name="scan" size="18" />
  150. <text>扫码</text>
  151. </view>
  152. <view class="btn" @click="gotoPayOrder(item)" v-if="item.orderStatus == 1">
  153. <text>去付款</text>
  154. </view>
  155. <view class="btn" v-else-if="item.orderStatus == 2">
  156. <text>已取消</text>
  157. </view>
  158. <view @click="orderSign(item)" v-else-if="item.orderStatus == 4" class="btn">
  159. 立即排队
  160. <!-- <text class="text1">点击开始排号</text> -->
  161. </view>
  162. <view @click="getOrderSign(item)" class="btn" v-else-if="item.orderStatus == 5">
  163. <text>点击查看排号</text>
  164. </view>
  165. <view class="btn" v-else-if="item.orderStatus == 6">
  166. <text>服务中</text>
  167. </view>
  168. <view class="btn" v-else-if="item.orderStatus == 7">
  169. <text>排号过期</text>
  170. </view>
  171. <view @click="gotoEvaluate(item)" class="btn" v-else-if="item.orderStatus == 8">
  172. <text>待评价</text>
  173. </view>
  174. <view @click="gotoPayOrder(item)" class="btn" v-else-if="item.orderStatus == 9">
  175. <text>去支付预约费用</text>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. <view class="product-order" v-show="currentTab === 'tab2'">
  182. <!-- Tab 2 内容 -->
  183. <view class="developing">
  184. <text>敬请期待...</text>
  185. </view>
  186. </view>
  187. <uni-popup ref="serialNumber">
  188. <view class="serial-number">
  189. <view class="text">
  190. <text>您的排队号</text>
  191. </view>
  192. <view class="number">
  193. <text>{{ orderNumberData.schedulingNo }}</text>
  194. </view>
  195. <view v-if="orderNumberData.isOverNo !== '否'" class="text1">
  196. <text>已过号,请重新取号</text>
  197. </view>
  198. <view v-else class="text">
  199. <text>前面还有{{ orderNumberData.waitNoNum }}人在等待</text>
  200. </view>
  201. <view class="text">
  202. <text>随时关注小程序的排队进程,过号作废</text>
  203. </view>
  204. <view class="text">
  205. <text>0851—85833828</text>
  206. </view>
  207. </view>
  208. </uni-popup>
  209. </view>
  210. <view class="tabBarLineHeight"></view>
  211. <view class="tabBarView">
  212. <tab-bar :tabIndex="tabIndex"></tab-bar>
  213. </view>
  214. </view>
  215. </template>
  216. <script>
  217. import tabBar from "../../components/tabBar/tabBar";
  218. export default {
  219. components: {
  220. tabBar
  221. },
  222. data() {
  223. return {
  224. title: 'Hello',
  225. tabIndex: 3,
  226. currentTab: 'tab1',
  227. currentServiceTab: 'orderTab1'
  228. }
  229. },
  230. onLoad() {
  231. },
  232. methods: {
  233. }
  234. }
  235. </script>
  236. <style scoped lang="scss">
  237. @import '/common/css/common.css';
  238. @import './index.rpx.scss';
  239. </style>