酒店桌布为微信小程序
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.

589 lines
11 KiB

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