景徳镇旅游微信小程序
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.

549 lines
10 KiB

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