建材商城系统20241014
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.

545 lines
10 KiB

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