酒店桌布为微信小程序
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.

563 lines
11 KiB

9 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>
  12. <!-- 酒店和水洗店 -->
  13. <view class="info">
  14. <view class="flex"
  15. style="display: flex;">
  16. <view style="width: 8rpx;height: 30rpx;
  17. background: #FD5100;border-radius: 6rpx;" />
  18. <view class="head-title">服务项目</view>
  19. </view>
  20. <view class="flex">
  21. <view class="server-item">
  22. <view class="img-box">
  23. <image :src="msgShop.image" mode="aspectFill"></image>
  24. </view>
  25. <view class="server-info">
  26. <view class="server-title">
  27. {{msgOrder.projectName}}
  28. <!-- <view class="coupon">领券立减</view> -->
  29. </view>
  30. <view class="current-price">
  31. <text class="unit"></text>{{msgOrder.money}}
  32. </view>
  33. <view class="sales-volume" style="margin-top: 5px;">
  34. <view class="desc">规格{{msgOrder.unit}}</view>
  35. </view>
  36. <view class="time-coupon">
  37. <!-- <view class="flex">
  38. <image src="@/static/home/time-icon.png"></image>
  39. <view class="time">{{msgOrder.useTime}}分钟</view>
  40. </view> -->
  41. <!-- <view class="sales-volume">
  42. <image src="@/static/icons/icon1.png"></image>
  43. <view class="desc">已售出{{msgShop.payNum}}+</view>
  44. </view> -->
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- <view class="line min_tips">
  50. <view class="head-div flex">
  51. <view style="width: 118rpx;height: 118rpx;border-radius: 50%;overflow: hidden;">
  52. <image style="width: 118rpx;" :src="msgTechnician.image" mode="widthFix"></image>
  53. </view>
  54. <view style="padding: 10rpx 34rpx;display: flex;flex-direction: column;justify-content: space-around;">
  55. <view class="nickname">
  56. {{msgTechnician.title}}
  57. <view v-if="msgTechnician.isVip" class="tag">
  58. <image src="@/static/order/s.png" mode="aspectFit"></image>
  59. <view class="auth">官方认证</view>
  60. </view>
  61. </view>
  62. <view class="days">
  63. <van-rate v-model="msgTechnician.score" :size="10" readonly color="#ffb54c" void-icon="star"
  64. void-color="#eee" />
  65. <view class="">
  66. 好评{{msgTechnician.pinNum}}
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <view @click="gototechnicianDetail(msgTechnician)" class="btn-x">
  72. 服务技师
  73. </view>
  74. </view> -->
  75. <view class="line address">
  76. <view class="address-top">
  77. <!-- <view class="">
  78. 服务地址
  79. </view> -->
  80. <view class="copy">
  81. <image @click="copy(msgOrder.name + ' ' + msgOrder.phone + ' ' + msgOrder.address)" src="/static/order/copy.png"></image>
  82. </view>
  83. </view>
  84. <view class="addressDetail">
  85. <view class="">{{msgOrder.name}} {{msgOrder.phone}}</view>
  86. <view class="">{{msgOrder.address}}</view>
  87. </view>
  88. </view>
  89. <view class="line">
  90. <view class="t min_tips">
  91. <view class="">
  92. 实付款
  93. </view>
  94. <view class="current-price">
  95. {{ msgOrder.money }}
  96. </view>
  97. </view>
  98. <view class="min_tips">
  99. <view class="">
  100. 租赁费用
  101. </view>
  102. <view class="">
  103. {{ msgOrder.price }}
  104. </view>
  105. </view>
  106. <view class="min_tips">
  107. <view class="">
  108. 水洗费用
  109. </view>
  110. <view class="">
  111. {{ msgOrder.price}}
  112. </view>
  113. </view>
  114. <view class="min_tips">
  115. <view class="">
  116. 押金
  117. </view>
  118. <view class="">
  119. {{ msgOrder.price }}
  120. </view>
  121. </view>
  122. </view>
  123. <!-- 订单信息 -->
  124. <view class="line">
  125. <view class="t min_tips">
  126. <view class="">
  127. 订单信息
  128. </view>
  129. </view>
  130. <view class="min_tips">
  131. <view class="">
  132. 订单编号
  133. </view>
  134. <view class="">
  135. {{msgOrder.id}}
  136. </view>
  137. </view>
  138. <view class="min_tips">
  139. <view class="">
  140. 下单时间
  141. </view>
  142. <view class="">
  143. {{msgOrder.createTime}}
  144. </view>
  145. </view>
  146. </view>
  147. <!-- 下单须知 -->
  148. <view class="line">
  149. <view class="t min_tips">
  150. <view class="">
  151. 下单须知
  152. </view>
  153. </view>
  154. <view class="min_tips" style="line-height: 40rpx;">
  155. {{msgShop.projectExplain}}
  156. </view>
  157. <view class="btns">
  158. <view @click="clickService" class="btn">
  159. 联系客服
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. </template>
  166. <script>
  167. import { mapGetters } from 'vuex'
  168. export default {
  169. computed : {
  170. ...mapGetters(['userShop']),
  171. },
  172. data() {
  173. return {
  174. msgShop : {
  175. money : 99.99,
  176. image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  177. projectExplain : '1.xxxxxxxxxx xxxxxxxxxx。2.xxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxxxxx。3.。',
  178. },
  179. msgOrder : {
  180. money : 99.99,
  181. address : '广东省广州市越秀区城南故事C3栋2802',
  182. name : '李**',
  183. phone : '150*****091',
  184. unit : '120*40*75【桌子尺寸】',
  185. state_dictText : '已完成',
  186. price : 199.99,
  187. id : '020644568964457',
  188. createTime : '2024-01-18 15:39',
  189. projectName : '桌布租赁'
  190. },
  191. }
  192. },
  193. methods: {
  194. }
  195. }
  196. </script>
  197. <style scoped lang="scss">
  198. .order {
  199. background: linear-gradient(#4899a6, #6fc6ad, #6fc6ad);
  200. padding-bottom: 10px;
  201. }
  202. .box {
  203. padding: 20px;
  204. .active-icon {
  205. width: 12px;
  206. height: 12px;
  207. background-color: #fff;
  208. border-radius: 6px;
  209. transform: translate(-25%, 0);
  210. }
  211. .inactive-icon {
  212. width: 8px;
  213. height: 8px;
  214. background-color: #fff;
  215. border-radius: 4px;
  216. }
  217. .stepText {
  218. font-size: 20rpx !important;
  219. }
  220. .stepText.color {
  221. color: #eee;
  222. }
  223. .inactive-icon.tip {
  224. width: 6px;
  225. height: 6px;
  226. background-color: #fff;
  227. border-radius: 3px;
  228. }
  229. .stepText.tip {
  230. background-color: #b5d7d3;
  231. padding: 3px 5px;
  232. position: relative;
  233. top: 50px;
  234. border-radius: 5px;
  235. color: #4899a6;
  236. display: flex;
  237. font-size: 10px;
  238. }
  239. .stepText.tip>view {
  240. position: absolute;
  241. top: -13px;
  242. left: 50%;
  243. transform: translate(-50%, 0);
  244. border-top: 7px solid transparent;
  245. border-bottom: 7px solid #b5d7d3;
  246. border-left: 7px solid transparent;
  247. border-right: 7px solid transparent;
  248. }
  249. .stepText.tip>view.act {
  250. left: 50%;
  251. }
  252. .title {
  253. display: flex;
  254. justify-content: center;
  255. align-items: center;
  256. .icon {
  257. width: 25px;
  258. height: 25px;
  259. background-color: #fff;
  260. border-radius: 15px;
  261. display: flex;
  262. justify-content: center;
  263. align-items: center;
  264. }
  265. .text {
  266. color: #fff;
  267. padding-left: 5px;
  268. }
  269. }
  270. .tips {
  271. display: flex;
  272. justify-content: center;
  273. align-items: center;
  274. color: #eee;
  275. padding: 10px;
  276. font-size: 22rpx;
  277. padding-bottom: 20px;
  278. }
  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: 22rpx;
  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>