百富门答题小程序
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.

565 lines
11 KiB

8 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. export default {
  194. computed : {
  195. },
  196. data() {
  197. return {
  198. stepsCurrent : 0,
  199. steps : [
  200. '接单',
  201. '检查',
  202. '开始清洗',
  203. '服务完成',
  204. ],
  205. msgShop : {
  206. money : 99.99,
  207. image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  208. projectExplain : '1.xxxxxxxxxx xxxxxxxxxx。2.xxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxxxxx。3.。',
  209. },
  210. msgOrder : {
  211. money : 99.99,
  212. address : '广东省广州市越秀区城南故事C3栋2802',
  213. name : '李**',
  214. phone : '150*****091',
  215. unit : '120*40*75【桌子尺寸】',
  216. state_dictText : '已完成',
  217. price : 199.99,
  218. id : '020644568964457',
  219. createTime : '2024-01-18 15:39',
  220. projectName : '桌布租赁'
  221. },
  222. }
  223. },
  224. methods: {
  225. }
  226. }
  227. </script>
  228. <style scoped lang="scss">
  229. .order {
  230. background: linear-gradient(#4899a6, #6fc6ad, #6fc6ad);
  231. padding-bottom: 10px;
  232. }
  233. .controls{
  234. margin: 20rpx;
  235. background-color: #fff;
  236. height: 400rpx;
  237. display: flex;
  238. flex-direction: column;
  239. width: 710rpx;
  240. border-radius: 20rpx;
  241. justify-content: center;
  242. align-items: center;
  243. .title{
  244. display: flex;
  245. justify-content: center;
  246. align-items: center;
  247. font-size: 40rpx;
  248. image{
  249. width: 100rpx;
  250. height: 100rpx;
  251. margin-right: 20rpx;
  252. }
  253. }
  254. .tips{
  255. font-size: 26rpx;
  256. color: #FD5100;
  257. margin-top: 10rpx;
  258. }
  259. .btns{
  260. margin-top: 50rpx;
  261. display: flex;
  262. view{
  263. margin: 0 20rpx;
  264. display: flex;
  265. justify-content: center;
  266. align-items: center;
  267. color: #fff;
  268. background-color: $uni-color;
  269. padding: 15rpx 40rpx;
  270. border-radius: 40rpx;
  271. }
  272. .btn2{
  273. background-color: #FFFFFF;
  274. border: 1px solid #A7A7A7;
  275. color: #A7A7A7;
  276. }
  277. }
  278. }
  279. .steps{
  280. margin: 20rpx;
  281. background-color: #fff;
  282. display: flex;
  283. flex-direction: column;
  284. width: 710rpx;
  285. border-radius: 20rpx;
  286. padding: 70rpx 0;
  287. /deep/ .uv-text__value{
  288. font-size: 22rpx !important;
  289. }
  290. }
  291. .box {
  292. padding: 20px;
  293. .btns {
  294. display: flex;
  295. justify-content: center;
  296. align-items: center;
  297. margin-top: 10px;
  298. .btn {
  299. color: #fff;
  300. padding: 10rpx 50rpx;
  301. background-color: #ffb300;
  302. border-radius: 30rpx;
  303. font-size: 25rpx;
  304. margin-right: 10rpx;
  305. }
  306. .btc{
  307. background: #ccc;
  308. }
  309. }
  310. }
  311. .info {
  312. margin: 10px;
  313. padding: 20rpx;
  314. background-color: #fff;
  315. width: calc(100% - 40px);
  316. border-radius: 10px;
  317. .head-title {
  318. font-family: PingFang SC, PingFang SC-Bold;
  319. color: #2f2e2e;
  320. line-height: 30rpx;
  321. margin-left: 10rpx;
  322. }
  323. .server-item {
  324. display: flex;
  325. flex-wrap: wrap;
  326. align-items: center;
  327. justify-content: space-between;
  328. background: white;
  329. border-radius: 15rpx;
  330. box-sizing: border-box;
  331. margin: 20rpx 0rpx;
  332. width: 100%;
  333. .img-box {
  334. width: 150rpx;
  335. height: 150rpx;
  336. border-radius: 10rpx;
  337. overflow: hidden;
  338. image {
  339. width: 100%;
  340. height: 100%;
  341. }
  342. }
  343. .server-info {
  344. display: flex;
  345. flex-direction: column;
  346. justify-content: space-around;
  347. width: calc(100% - 180rpx);
  348. box-sizing: border-box;
  349. padding: 10rpx 15rpx;
  350. .server-title {
  351. display: flex;
  352. margin-bottom: 10rpx;
  353. }
  354. .coupon {
  355. display: flex;
  356. justify-content: center;
  357. align-items: center;
  358. background: #F29E45;
  359. color: white;
  360. width: 120rpx;
  361. height: 40rpx;
  362. border-radius: 10rpx;
  363. margin-left: 10rpx;
  364. font-size: 22rpx;
  365. }
  366. .time-coupon,
  367. .price {
  368. display: flex;
  369. flex-wrap: wrap;
  370. align-items: center;
  371. }
  372. .time-coupon {
  373. margin: 10rpx 0rpx;
  374. font-size: 26rpx;
  375. justify-content: space-between;
  376. width: 100%;
  377. .flex {
  378. justify-content: center;
  379. align-items: center;
  380. }
  381. image {
  382. width: 25rpx;
  383. height: 25rpx;
  384. }
  385. .time {
  386. color: #B8B8B8;
  387. margin-left: 6rpx;
  388. }
  389. }
  390. .sales-volume {
  391. display: flex;
  392. align-items: center;
  393. color: #B8B8B8;
  394. font-size: 24rpx;
  395. image {
  396. width: 25rpx;
  397. height: 25rpx;
  398. }
  399. }
  400. }
  401. }
  402. .address {
  403. .address-top{
  404. display: flex;
  405. justify-content: space-between;
  406. align-items: center;
  407. image{
  408. width: 30rpx;
  409. height: 30rpx;
  410. }
  411. }
  412. .addressDetail {
  413. color: #777;
  414. font-size: 22rpx;
  415. padding: 5px 0;
  416. }
  417. text {
  418. background-color: #F29E45;
  419. padding: 8rpx 10rpx;
  420. color: #fff;
  421. font-size: 20rpx;
  422. margin-left: 10px;
  423. border-radius: 5px;
  424. }
  425. }
  426. .min_tips {
  427. font-size: 22rpx;
  428. color: #777;
  429. display: flex;
  430. justify-content: space-between;
  431. padding: 5px 0;
  432. align-items: center;
  433. }
  434. .current-price {
  435. font-size: 30rpx;
  436. color: #FD5100;
  437. }
  438. .line {
  439. border-top: 2px dotted #00000011;
  440. padding: 20rpx 0;
  441. .t {
  442. padding: 5px 0;
  443. color: #000;
  444. font-size: 26rpx;
  445. }
  446. }
  447. .head-div {
  448. .nickname {
  449. font-size: 30rpx;
  450. font-weight: 600;
  451. text-align: left;
  452. line-height: 42rpx;
  453. display: flex;
  454. align-items: center;
  455. .tag {
  456. position: relative;
  457. display: flex;
  458. align-items: center;
  459. image {
  460. height: 45rpx;
  461. width: 90rpx;
  462. vertical-align: middle;
  463. }
  464. .auth {
  465. position: absolute;
  466. white-space: nowrap;
  467. color: #FF6200;
  468. left: 23rpx;
  469. font-size: 17rpx;
  470. }
  471. }
  472. }
  473. .days {
  474. font-size: 20rpx;
  475. font-weight: 400;
  476. text-align: left;
  477. line-height: 56rpx;
  478. display: flex;
  479. align-items: center;
  480. view {
  481. padding-left: 5px;
  482. }
  483. }
  484. }
  485. .btn-x {
  486. color: #6fc6ad;
  487. border: 1px solid #6fc6ad;
  488. padding: 10rpx 20rpx;
  489. border-radius: 30rpx;
  490. }
  491. .btns {
  492. display: flex;
  493. justify-content: center;
  494. .btn {
  495. color: #6fc6ad;
  496. border: 1px solid #6fc6ad;
  497. padding: 10rpx 20rpx;
  498. border-radius: 30rpx;
  499. }
  500. }
  501. }
  502. </style>