铝交易,微信公众号
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.

567 lines
11 KiB

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