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

564 lines
11 KiB

5 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. }
  222. },
  223. methods: {
  224. }
  225. }
  226. </script>
  227. <style scoped lang="scss">
  228. .order {
  229. background: linear-gradient(#4899a6, #6fc6ad, #6fc6ad);
  230. padding-bottom: 10px;
  231. }
  232. .controls{
  233. margin: 20rpx;
  234. background-color: #fff;
  235. height: 400rpx;
  236. display: flex;
  237. flex-direction: column;
  238. width: 710rpx;
  239. border-radius: 20rpx;
  240. justify-content: center;
  241. align-items: center;
  242. .title{
  243. display: flex;
  244. justify-content: center;
  245. align-items: center;
  246. font-size: 40rpx;
  247. image{
  248. width: 100rpx;
  249. height: 100rpx;
  250. margin-right: 20rpx;
  251. }
  252. }
  253. .tips{
  254. font-size: 26rpx;
  255. color: #FD5100;
  256. margin-top: 10rpx;
  257. }
  258. .btns{
  259. margin-top: 50rpx;
  260. display: flex;
  261. view{
  262. margin: 0 20rpx;
  263. display: flex;
  264. justify-content: center;
  265. align-items: center;
  266. color: #fff;
  267. background-color: $uni-color;
  268. padding: 15rpx 40rpx;
  269. border-radius: 40rpx;
  270. }
  271. .btn2{
  272. background-color: #FFFFFF;
  273. border: 1px solid #A7A7A7;
  274. color: #A7A7A7;
  275. }
  276. }
  277. }
  278. .steps{
  279. margin: 20rpx;
  280. background-color: #fff;
  281. display: flex;
  282. flex-direction: column;
  283. width: 710rpx;
  284. border-radius: 20rpx;
  285. padding: 70rpx 0;
  286. /deep/ .uv-text__value{
  287. font-size: 22rpx !important;
  288. }
  289. }
  290. .box {
  291. padding: 20px;
  292. .btns {
  293. display: flex;
  294. justify-content: center;
  295. align-items: center;
  296. margin-top: 10px;
  297. .btn {
  298. color: #fff;
  299. padding: 10rpx 50rpx;
  300. background-color: #ffb300;
  301. border-radius: 30rpx;
  302. font-size: 25rpx;
  303. margin-right: 10rpx;
  304. }
  305. .btc{
  306. background: #ccc;
  307. }
  308. }
  309. }
  310. .info {
  311. margin: 10px;
  312. padding: 20rpx;
  313. background-color: #fff;
  314. width: calc(100% - 40px);
  315. border-radius: 10px;
  316. .head-title {
  317. font-family: PingFang SC, PingFang SC-Bold;
  318. color: #2f2e2e;
  319. line-height: 30rpx;
  320. margin-left: 10rpx;
  321. }
  322. .server-item {
  323. display: flex;
  324. flex-wrap: wrap;
  325. align-items: center;
  326. justify-content: space-between;
  327. background: white;
  328. border-radius: 15rpx;
  329. box-sizing: border-box;
  330. margin: 20rpx 0rpx;
  331. width: 100%;
  332. .img-box {
  333. width: 150rpx;
  334. height: 150rpx;
  335. border-radius: 10rpx;
  336. overflow: hidden;
  337. image {
  338. width: 100%;
  339. height: 100%;
  340. }
  341. }
  342. .server-info {
  343. display: flex;
  344. flex-direction: column;
  345. justify-content: space-around;
  346. width: calc(100% - 180rpx);
  347. box-sizing: border-box;
  348. padding: 10rpx 15rpx;
  349. .server-title {
  350. display: flex;
  351. margin-bottom: 10rpx;
  352. }
  353. .coupon {
  354. display: flex;
  355. justify-content: center;
  356. align-items: center;
  357. background: #F29E45;
  358. color: white;
  359. width: 120rpx;
  360. height: 40rpx;
  361. border-radius: 10rpx;
  362. margin-left: 10rpx;
  363. font-size: 22rpx;
  364. }
  365. .time-coupon,
  366. .price {
  367. display: flex;
  368. flex-wrap: wrap;
  369. align-items: center;
  370. }
  371. .time-coupon {
  372. margin: 10rpx 0rpx;
  373. font-size: 26rpx;
  374. justify-content: space-between;
  375. width: 100%;
  376. .flex {
  377. justify-content: center;
  378. align-items: center;
  379. }
  380. image {
  381. width: 25rpx;
  382. height: 25rpx;
  383. }
  384. .time {
  385. color: #B8B8B8;
  386. margin-left: 6rpx;
  387. }
  388. }
  389. .sales-volume {
  390. display: flex;
  391. align-items: center;
  392. color: #B8B8B8;
  393. font-size: 24rpx;
  394. image {
  395. width: 25rpx;
  396. height: 25rpx;
  397. }
  398. }
  399. }
  400. }
  401. .address {
  402. .address-top{
  403. display: flex;
  404. justify-content: space-between;
  405. align-items: center;
  406. image{
  407. width: 30rpx;
  408. height: 30rpx;
  409. }
  410. }
  411. .addressDetail {
  412. color: #777;
  413. font-size: 22rpx;
  414. padding: 5px 0;
  415. }
  416. text {
  417. background-color: #F29E45;
  418. padding: 8rpx 10rpx;
  419. color: #fff;
  420. font-size: 20rpx;
  421. margin-left: 10px;
  422. border-radius: 5px;
  423. }
  424. }
  425. .min_tips {
  426. font-size: 22rpx;
  427. color: #777;
  428. display: flex;
  429. justify-content: space-between;
  430. padding: 5px 0;
  431. align-items: center;
  432. }
  433. .current-price {
  434. font-size: 30rpx;
  435. color: #FD5100;
  436. }
  437. .line {
  438. border-top: 2px dotted #00000011;
  439. padding: 20rpx 0;
  440. .t {
  441. padding: 5px 0;
  442. color: #000;
  443. font-size: 26rpx;
  444. }
  445. }
  446. .head-div {
  447. .nickname {
  448. font-size: 30rpx;
  449. font-weight: 600;
  450. text-align: left;
  451. line-height: 42rpx;
  452. display: flex;
  453. align-items: center;
  454. .tag {
  455. position: relative;
  456. display: flex;
  457. align-items: center;
  458. image {
  459. height: 45rpx;
  460. width: 90rpx;
  461. vertical-align: middle;
  462. }
  463. .auth {
  464. position: absolute;
  465. white-space: nowrap;
  466. color: #FF6200;
  467. left: 23rpx;
  468. font-size: 17rpx;
  469. }
  470. }
  471. }
  472. .days {
  473. font-size: 20rpx;
  474. font-weight: 400;
  475. text-align: left;
  476. line-height: 56rpx;
  477. display: flex;
  478. align-items: center;
  479. view {
  480. padding-left: 5px;
  481. }
  482. }
  483. }
  484. .btn-x {
  485. color: #6fc6ad;
  486. border: 1px solid #6fc6ad;
  487. padding: 10rpx 20rpx;
  488. border-radius: 30rpx;
  489. }
  490. .btns {
  491. display: flex;
  492. justify-content: center;
  493. .btn {
  494. color: #6fc6ad;
  495. border: 1px solid #6fc6ad;
  496. padding: 10rpx 20rpx;
  497. border-radius: 30rpx;
  498. }
  499. }
  500. }
  501. </style>