酒店桌布为微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

666 lines
13 KiB

9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
  1. <template>
  2. <view>
  3. <navbar title="订单详情" leftClick @leftClick="$utils.navigateBack" />
  4. <!-- 水洗店 -->
  5. <view class="" v-if="userShop">
  6. <view class="controls">
  7. <view class="title">
  8. <image src="../static/order/icon.png" mode=""></image>
  9. {{ order.statusDictText }}
  10. </view>
  11. <!-- <view class="tips">
  12. 待送回
  13. </view> -->
  14. <!-- <orderTypeBtn
  15. :type="order.type"
  16. :status="order.status"
  17. :detail="order"></orderTypeBtn> -->
  18. <view class="btns">
  19. <view
  20. v-if="[4, 18, 19].includes(order.status)"
  21. @click.stop="orderConfirmAccept(order)" class="b2">
  22. 确认接单
  23. </view>
  24. <!-- 待收货 -->
  25. <template v-if="order.status == 2">
  26. <view @click.stop="confirmReceiveGoods(order)" class="b2">
  27. 确认收货
  28. </view>
  29. <view @click.stop="" class="b1">
  30. 查看物流
  31. </view>
  32. </template>
  33. <!-- 待检查 -->
  34. <template v-if="order.status == 5">
  35. <view @click.stop="orderConfirmedDamage(order, 1)" class="b2"
  36. >
  37. 确认无破损
  38. </view>
  39. <view @click.stop="orderConfirmedDamage(order, 2)" class="b1"
  40. >
  41. 破损上报
  42. </view>
  43. </template>
  44. <view
  45. v-if="[6].includes(order.status)"
  46. @click.stop="orderFinishedWashing(order)" class="b2">
  47. 水洗完成
  48. </view>
  49. </view>
  50. </view>
  51. <view class="steps" v-if="steps.length > 0">
  52. <uv-steps activeColor="#FD5100"
  53. :current="stepsCurrent" dot>
  54. <uv-steps-item
  55. :title="item.name"
  56. :key="index"
  57. v-for="(item, index) in steps">
  58. </uv-steps-item>
  59. </uv-steps>
  60. </view>
  61. </view>
  62. <!-- 酒店和水洗店 -->
  63. <view class="info">
  64. <view class="flex" style="display: flex;">
  65. <view style="width: 8rpx;height: 30rpx;
  66. background: #FD5100;border-radius: 6rpx;" />
  67. <view class="head-title">{{ typeText[order.type].name }}</view>
  68. </view>
  69. <view class="flex">
  70. <view class="server-item">
  71. <view class="img-box">
  72. <image :src="order.pic" mode="aspectFill"></image>
  73. </view>
  74. <view class="server-info">
  75. <view class="server-title">
  76. {{order.goodsName}}
  77. <!-- <view class="coupon">领券立减</view> -->
  78. </view>
  79. <view class="current-price" v-if="order.orderPay">
  80. <text class="unit"></text>{{order.orderPay}}
  81. </view>
  82. <view class="sales-volume" style="margin-top: 5px;">
  83. <view class="desc">规格{{order.sku}}</view>
  84. </view>
  85. <view class="time-coupon">
  86. <!-- <view class="flex">
  87. <image src="@/static/home/time-icon.png"></image>
  88. <view class="time">{{msgOrder.useTime}}分钟</view>
  89. </view> -->
  90. <!-- <view class="sales-volume">
  91. <image src="@/static/icons/icon1.png"></image>
  92. <view class="desc">已售出{{msgShop.payNum}}+</view>
  93. </view> -->
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <!-- <view class="line min_tips">
  99. <view class="head-div flex">
  100. <view style="width: 118rpx;height: 118rpx;border-radius: 50%;overflow: hidden;">
  101. <image style="width: 118rpx;" :src="msgTechnician.image" mode="widthFix"></image>
  102. </view>
  103. <view style="padding: 10rpx 34rpx;display: flex;flex-direction: column;justify-content: space-around;">
  104. <view class="nickname">
  105. {{msgTechnician.title}}
  106. <view v-if="msgTechnician.isVip" class="tag">
  107. <image src="@/static/order/s.png" mode="aspectFit"></image>
  108. <view class="auth">官方认证</view>
  109. </view>
  110. </view>
  111. <view class="days">
  112. <van-rate v-model="msgTechnician.score" :size="10" readonly color="#ffb54c" void-icon="star"
  113. void-color="#eee" />
  114. <view class="">
  115. 好评{{msgTechnician.pinNum}}
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <view @click="gototechnicianDetail(msgTechnician)" class="btn-x">
  121. 服务技师
  122. </view>
  123. </view> -->
  124. <view class="line address">
  125. <view class="address-top">
  126. <view class="">
  127. 收货地址
  128. </view>
  129. <view class="copy">
  130. <image
  131. @click="$utils.copyText(order.userName + ' ' + order.userPhone + ' ' + order.userAddress)"
  132. src="../static/order/copy.png"></image>
  133. </view>
  134. </view>
  135. <view class="addressDetail">
  136. <view class="">{{order.userName}} {{order.userPhone}}</view>
  137. <view class="">{{order.userAddress}}</view>
  138. </view>
  139. </view>
  140. <view class="line">
  141. <!-- 水洗店不展示 -->
  142. <view class="t min_tips" v-if="!userShop && order.orderPay">
  143. <view class="">
  144. 实付款
  145. </view>
  146. <view class="current-price">
  147. {{ order.orderPay }}
  148. </view>
  149. </view>
  150. <!-- 水洗店不展示 -->
  151. <view class="min_tips" v-if="!userShop && order.rentPay">
  152. <view class="">
  153. 租赁费用
  154. </view>
  155. <view class="">
  156. {{ order.rentPay }}
  157. </view>
  158. </view>
  159. <view class="min_tips" v-if="order.washPay">
  160. <view class="">
  161. 水洗费用
  162. </view>
  163. <view class="">
  164. {{ order.washPay}}
  165. </view>
  166. </view>
  167. <!-- <view class="min_tips">
  168. <view class="">
  169. 押金
  170. </view>
  171. <view class="">
  172. {{ order.price }}
  173. </view>
  174. </view> -->
  175. </view>
  176. <!-- 订单信息 -->
  177. <view class="line">
  178. <view class="t min_tips">
  179. <view class="">
  180. 订单信息
  181. </view>
  182. </view>
  183. <view class="min_tips">
  184. <view class="">
  185. 订单编号
  186. </view>
  187. <view class="">
  188. {{order.id}}
  189. </view>
  190. </view>
  191. <view class="min_tips">
  192. <view class="">
  193. 下单时间
  194. </view>
  195. <view class="">
  196. {{order.createTime}}
  197. </view>
  198. </view>
  199. </view>
  200. <!-- 下单须知 -->
  201. <view class="line">
  202. <view class="t min_tips">
  203. <view class="">
  204. 下单须知
  205. </view>
  206. </view>
  207. <view class="min_tips" style="line-height: 40rpx;">
  208. <!-- {{msgShop.projectExplain}} -->
  209. </view>
  210. <view class="btns">
  211. <view @click="clickService" class="btn">
  212. 联系客服
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. </view>
  218. </template>
  219. <script>
  220. import {
  221. mapGetters
  222. } from 'vuex'
  223. import orderTypeBtn from "../components/order/orderTypeBtn.vue"
  224. import mixinOrder from '@/mixins/order.js'
  225. export default {
  226. components: {
  227. orderTypeBtn
  228. },
  229. mixins : [mixinOrder],
  230. computed: {
  231. ...mapGetters(['userShop']),
  232. },
  233. data() {
  234. return {
  235. stepsCurrent: 0,
  236. steps: [//水洗店看到的步骤条
  237. // [//租赁订单
  238. // '客户待支付',
  239. // '平台待发货',
  240. // '待收货',//确认收货接口
  241. // '服务完成',
  242. // ],
  243. // [//水洗订单
  244. // '客户待支付',
  245. // '检查破损',//确认破损状态接口
  246. // '开始清洗',//开始清洗接口
  247. // '服务完成',
  248. // ],
  249. // [//换货
  250. // '下单',
  251. // '寄回商品',//快递接口
  252. // '平台待收货',
  253. // '客户待支付',
  254. // '服务完成',
  255. // ],
  256. // [//退货
  257. // '下单',
  258. // '寄回商品',//快递接口
  259. // '平台待收货',
  260. // '服务完成',
  261. // ],
  262. ],
  263. order: {},
  264. orderId: 0,
  265. typeText: [{
  266. name: '租赁押金'
  267. },
  268. {
  269. name: '水洗租赁'
  270. },
  271. {
  272. name: '破损换货'
  273. },
  274. {
  275. name: '退货退款'
  276. }
  277. ],
  278. }
  279. },
  280. onLoad(agrs) {
  281. this.orderId = agrs.id
  282. },
  283. onShow() {
  284. this.getData()
  285. },
  286. onPullDownRefresh() {
  287. this.getData()
  288. },
  289. methods: {
  290. // 查询订单详情
  291. getData() {
  292. this.$api('orderOne', {
  293. id: this.orderId
  294. }, res => {
  295. uni.stopPullDownRefresh()
  296. if (res.code == 200) {
  297. this.order = res.result
  298. res.result.hotelOrderFlows.forEach((n, i) => {
  299. if(this.order.status == n.value){
  300. this.stepsCurrent = i
  301. }
  302. })
  303. this.steps = res.result.hotelOrderFlows
  304. }
  305. })
  306. },
  307. }
  308. }
  309. </script>
  310. <style scoped lang="scss">
  311. .order {
  312. padding-bottom: 10px;
  313. }
  314. .controls {
  315. margin: 20rpx;
  316. background-color: #fff;
  317. height: 400rpx;
  318. display: flex;
  319. flex-direction: column;
  320. width: 710rpx;
  321. border-radius: 20rpx;
  322. justify-content: center;
  323. align-items: center;
  324. .title {
  325. display: flex;
  326. justify-content: center;
  327. align-items: center;
  328. font-size: 40rpx;
  329. image {
  330. width: 100rpx;
  331. height: 100rpx;
  332. margin-right: 20rpx;
  333. }
  334. }
  335. .tips {
  336. font-size: 26rpx;
  337. color: #FD5100;
  338. margin-top: 10rpx;
  339. }
  340. .btns {
  341. margin-top: 50rpx;
  342. display: flex;
  343. view {
  344. margin: 0 20rpx;
  345. display: flex;
  346. justify-content: center;
  347. align-items: center;
  348. color: #fff;
  349. background-color: $uni-color;
  350. padding: 15rpx 40rpx;
  351. border-radius: 40rpx;
  352. }
  353. .btn2 {
  354. background-color: #FFFFFF;
  355. border: 1px solid #A7A7A7;
  356. color: #A7A7A7;
  357. }
  358. }
  359. }
  360. .steps {
  361. margin: 20rpx;
  362. background-color: #fff;
  363. display: flex;
  364. flex-direction: column;
  365. width: 710rpx;
  366. border-radius: 20rpx;
  367. padding: 70rpx 0;
  368. /deep/ .uv-text__value {
  369. font-size: 22rpx !important;
  370. }
  371. }
  372. .box {
  373. padding: 20px;
  374. .btns {
  375. display: flex;
  376. justify-content: center;
  377. align-items: center;
  378. margin-top: 10px;
  379. .btn {
  380. color: #fff;
  381. padding: 10rpx 50rpx;
  382. background-color: #ffb300;
  383. border-radius: 30rpx;
  384. font-size: 25rpx;
  385. margin-right: 10rpx;
  386. }
  387. .btc {
  388. background: #ccc;
  389. }
  390. }
  391. }
  392. .info {
  393. margin: 10px;
  394. padding: 20rpx;
  395. background-color: #fff;
  396. width: calc(100% - 40px);
  397. border-radius: 10px;
  398. .head-title {
  399. font-family: PingFang SC, PingFang SC-Bold;
  400. color: #2f2e2e;
  401. line-height: 30rpx;
  402. margin-left: 10rpx;
  403. }
  404. .server-item {
  405. display: flex;
  406. flex-wrap: wrap;
  407. align-items: center;
  408. justify-content: space-between;
  409. background: white;
  410. border-radius: 15rpx;
  411. box-sizing: border-box;
  412. margin: 20rpx 0rpx;
  413. width: 100%;
  414. .img-box {
  415. width: 150rpx;
  416. height: 150rpx;
  417. border-radius: 10rpx;
  418. overflow: hidden;
  419. image {
  420. width: 100%;
  421. height: 100%;
  422. }
  423. }
  424. .server-info {
  425. display: flex;
  426. flex-direction: column;
  427. justify-content: space-around;
  428. width: calc(100% - 180rpx);
  429. box-sizing: border-box;
  430. padding: 10rpx 15rpx;
  431. .server-title {
  432. display: flex;
  433. margin-bottom: 10rpx;
  434. }
  435. .coupon {
  436. display: flex;
  437. justify-content: center;
  438. align-items: center;
  439. background: #F29E45;
  440. color: white;
  441. width: 120rpx;
  442. height: 40rpx;
  443. border-radius: 10rpx;
  444. margin-left: 10rpx;
  445. font-size: 22rpx;
  446. }
  447. .time-coupon,
  448. .price {
  449. display: flex;
  450. flex-wrap: wrap;
  451. align-items: center;
  452. }
  453. .time-coupon {
  454. margin: 10rpx 0rpx;
  455. font-size: 26rpx;
  456. justify-content: space-between;
  457. width: 100%;
  458. .flex {
  459. justify-content: center;
  460. align-items: center;
  461. }
  462. image {
  463. width: 25rpx;
  464. height: 25rpx;
  465. }
  466. .time {
  467. color: #B8B8B8;
  468. margin-left: 6rpx;
  469. }
  470. }
  471. .sales-volume {
  472. display: flex;
  473. align-items: center;
  474. color: #B8B8B8;
  475. font-size: 24rpx;
  476. image {
  477. width: 25rpx;
  478. height: 25rpx;
  479. }
  480. }
  481. }
  482. }
  483. .address {
  484. .address-top {
  485. display: flex;
  486. justify-content: space-between;
  487. align-items: center;
  488. image {
  489. width: 30rpx;
  490. height: 30rpx;
  491. }
  492. }
  493. .addressDetail {
  494. color: #777;
  495. font-size: 22rpx;
  496. padding: 5px 0;
  497. }
  498. text {
  499. background-color: #F29E45;
  500. padding: 8rpx 10rpx;
  501. color: #fff;
  502. font-size: 20rpx;
  503. margin-left: 10px;
  504. border-radius: 5px;
  505. }
  506. }
  507. .min_tips {
  508. font-size: 22rpx;
  509. color: #777;
  510. display: flex;
  511. justify-content: space-between;
  512. padding: 5px 0;
  513. align-items: center;
  514. }
  515. .current-price {
  516. font-size: 30rpx;
  517. color: $uni-color;
  518. }
  519. .line {
  520. border-top: 2px dotted #00000011;
  521. padding: 20rpx 0;
  522. .t {
  523. padding: 5px 0;
  524. color: #000;
  525. font-size: 26rpx;
  526. }
  527. }
  528. .head-div {
  529. .nickname {
  530. font-size: 30rpx;
  531. font-weight: 600;
  532. text-align: left;
  533. line-height: 42rpx;
  534. display: flex;
  535. align-items: center;
  536. .tag {
  537. position: relative;
  538. display: flex;
  539. align-items: center;
  540. image {
  541. height: 45rpx;
  542. width: 90rpx;
  543. vertical-align: middle;
  544. }
  545. .auth {
  546. position: absolute;
  547. white-space: nowrap;
  548. color: $uni-color;
  549. left: 23rpx;
  550. font-size: 17rpx;
  551. }
  552. }
  553. }
  554. .days {
  555. font-size: 20rpx;
  556. font-weight: 400;
  557. text-align: left;
  558. line-height: 56rpx;
  559. display: flex;
  560. align-items: center;
  561. view {
  562. padding-left: 5px;
  563. }
  564. }
  565. }
  566. .btn-x {
  567. color: $uni-color;
  568. border: 1px solid $uni-color;
  569. padding: 10rpx 20rpx;
  570. border-radius: 30rpx;
  571. }
  572. .btns {
  573. display: flex;
  574. justify-content: center;
  575. .btn {
  576. color: $uni-color;
  577. border: 1px solid $uni-color;
  578. padding: 10rpx 20rpx;
  579. border-radius: 30rpx;
  580. }
  581. }
  582. }
  583. </style>