瑶都万能墙
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.

577 lines
11 KiB

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