orderDetail.vue 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156
  1. <template>
  2. <view class="box">
  3. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  4. <view class="top">
  5. <view class="nav" :style="{top: iStatusBarHeight + 'px'}">
  6. <view>
  7. <image src="../../static/img/baiback22.png" mode="" class="gobackImg" @click="goback"></image>
  8. </view>
  9. <view>订单详情</view>
  10. <view style="width: 130rpx;"></view>
  11. </view>
  12. <view style="height: 44px;"></view>
  13. <view :style="{height: iStatusBarHeight + 'px'}"></view>
  14. <view class="SheetState" v-if="orderData.SheetState==1">等待付款</view>
  15. <view class="SheetState" v-if="orderData.SheetState==2">等待门店确认</view>
  16. <view class="SheetState" v-if="orderData.SheetState==3">等待门店收货</view>
  17. <view class="SheetState" v-if="orderData.SheetState==4">请尽快到店享受服务</view>
  18. <view class="SheetState" v-if="orderData.SheetState==5">订单已完成</view>
  19. <view class="SheetState" v-if="orderData.SheetState==0">订单已取消</view>
  20. </view>
  21. <view v-if="orderData">
  22. <view style="margin-top: -84rpx;"></view>
  23. <!-- 服务确认码 -->
  24. <view class="orderTop" v-if="orderData.SheetState==4 || orderData.SheetState==5">
  25. <view class="maBox">
  26. <view class="timeLeft">
  27. <span>服务确认码</span>
  28. </view>
  29. <view style="text-decoration:line-through; color: #999999; font-size: 26rpx;" v-if="orderData.SheetState==5 && orderData.ServiceCode!=null">{{orderData.ServiceCode}}</view>
  30. <view class="rightShou" v-if="orderData.SheetState==4">
  31. <view class="timeRight" style="color: #FF2400;" @click="showMa">收起</view>
  32. <image src="../../static/img/icon_arrow_up_orange.png" style="width: 17rpx; height: 11rpx;"></image>
  33. </view>
  34. <view style="color: #999999; font-size: 26rpx;" v-if="orderData.SheetState==5">已使用</view>
  35. </view>
  36. <!-- 确认码 -->
  37. <view class="querenMa" v-if="isShowMa==true && orderData.SheetState==4">
  38. <view style="color: #FF2400; font-size: 24rpx; text-align: center;">请到店出示券码即可开始服务</view>
  39. <view class="maBoximg">
  40. <tki-qrcode cid="qrcode1" ref="qrcode" :val="orderData.ServiceCode" :size="308" :unit="unit"
  41. :pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
  42. :loadMake="loadMake" :usingComponents="true" @result="qrR" />
  43. </view>
  44. <view style="color: #333333; font-size: 26rpx; font-weight: bold; text-align: center;">36582496825
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 服务信息 -->
  49. <view class="orderTop">
  50. <view class="timeBox">
  51. <view class="timeLeft">
  52. <span>服务信息</span>
  53. </view>
  54. <view class="timeRight" @click="qrcodeClick">订单码</view>
  55. </view>
  56. <!-- 客户信息 -->
  57. <view class="people">
  58. <image src="../../static/img/icon_ren.png" mode="" class="shopBoximg"></image>
  59. <view class="peopleCont">{{orderData.ContactName}}</view>
  60. <view class="peopleCont" style="padding-left: 20rpx;">{{orderData.ContactPhone}}</view>
  61. </view>
  62. <!-- 车辆信息 -->
  63. <view class="PlateNumberBox">
  64. <image src="../../static/img/icon_che.png" mode="" class="shopBoximg"></image>
  65. <view class="">
  66. <view class="PlateNumberBoxTop">
  67. <view class="PlateNumbercx"> <span v-if="orderData.Brand">{{orderData.Brand}}</span>
  68. <span style="padding-left: 20rpx;" v-if="orderData.Series">{{orderData.Series}}</span>
  69. </view>
  70. <view class="PlateNumber">{{orderData.PlateNumber}}</view>
  71. </view>
  72. <view class="CarModel">{{orderData.CarModel}}</view>
  73. </view>
  74. </view>
  75. <!-- 店铺信息 -->
  76. <view class="shopBox">
  77. <image src="../../static/img/icon_store.png" mode="" class="shopBoximg"></image>
  78. <view class="shopCont">
  79. <view class="shopName">{{orderData.ShopName}}</view>
  80. <view class="Address">
  81. {{orderData.ProvinceName}}{{orderData.CityName}}{{orderData.AreaName}}{{orderData.Address}}
  82. </view>
  83. <view style="color: #3F90F7; font-size: 26rpx;" v-if="orderData.SheetState==2" @click="changeStore">申请更换服务门店</view>
  84. </view>
  85. <view class="shopRightBox" @click="map">
  86. <view>
  87. <image src="../../static/img/icon_ditu.png" mode="" class="shopRightImg"></image>
  88. </view>
  89. <view class="shopRihgtTxt">地图</view>
  90. </view>
  91. <view class="shopsx"></view>
  92. <view class="shopRightBox" @click="call">
  93. <view>
  94. <image src="../../static/img/icon_phone.png" mode="" class="shopRightImg"></image>
  95. </view>
  96. <view class="shopRihgtTxt">电话</view>
  97. </view>
  98. </view>
  99. </view>
  100. <!-- 预约信息 -->
  101. <view class="yuyueBox" v-if="orderData.SheetState==4 && (orderData.OrderState==2 || orderData.OrderState==3)">
  102. <view class="timeBox">
  103. <view class="timeLeft">
  104. <span>预约信息</span>
  105. </view>
  106. </view>
  107. <view class="yuyueTime">
  108. <image src="../../static/img/icon_time.png" mode="" class="shopBoximg"></image>
  109. <view class="peopleCont">预约到店</view>
  110. <view class="peopleCont" style="padding-left: 20rpx;">{{orderData.OrderTime}}</view>
  111. <image v-if="orderData.OrderState==2" src="../../static/img/icon_edit.png" mode="" class="timeEditImg"
  112. @click="timeShowClick"></image>
  113. </view>
  114. <view class="yuyueState">
  115. <image src="../../static/img/icon_state.png" mode="" class="shopBoximg"></image>
  116. <view class="peopleCont">预约状态</view>
  117. <view class="peopleCont" style="padding-left: 20rpx;" v-if="orderData.OrderState==2">待确认</view>
  118. <view class="peopleCont" style="padding-left: 20rpx;" v-if="orderData.OrderState==3">已确认</view>
  119. </view>
  120. </view>
  121. <!-- 商品明细-->
  122. <view class="detailedBox itemBox" v-if="orderData.goods.length!=0">
  123. <view class="detailedTitle">商品明细</view>
  124. <view class="detailedLineBox">
  125. <view class="detailedLine" v-for="(item,index) in orderData.goods">
  126. <view>
  127. <image :src="item.Url" mode="" class="detailedImg" v-if="item.Url"></image>
  128. <image src="../../static/img/noimg.png" mode="" class="detailedImg" v-else></image>
  129. </view>
  130. <view class="detailedCont">
  131. <view class="detailedName">{{item.GoodsName}}</view>
  132. <view class="detailedContBottom">
  133. <span class="SalePrice">¥{{item.SalePrice}}</span>
  134. <span>x{{item.SaleQty}}</span>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 项目明细 -->
  141. <view class="detailedBox itemBox" v-if=" orderData.items.length!=0">
  142. <view class="detailedTitle">项目明细</view>
  143. <view class="detailedLineBox">
  144. <view class="detailedLine" v-for="(item,index) in orderData.items">
  145. <view>
  146. <image :src="item.Url" mode="" class="detailedImg" v-if="item.Url"></image>
  147. <image src="../../static/img/noimg.png" mode="" class="detailedImg" v-else></image>
  148. </view>
  149. <view class="detailedCont">
  150. <view class="detailedName">{{item.ItemName}}</view>
  151. <view class="detailedContBottom">
  152. <span class="SalePrice">¥{{item.SalePrice}}</span>
  153. <span>x1</span>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. <!-- 费用明细 -->
  160. <view class="goodscost">
  161. <view class="goodscostLine">
  162. <view class="goodscostTxt">商品费</view>
  163. <view class="goodsCostNum">¥{{orderData.GoodsMoney}}</view>
  164. </view>
  165. <view class="goodscostLine">
  166. <view class="goodscostTxt">项目费</view>
  167. <view class="goodsCostNum">¥{{orderData.ItemMoney}}</view>
  168. </view>
  169. <view class="goodscostLine">
  170. <view class="goodscostTxt">优惠券优惠</view>
  171. <view class="goodsCostNum">-¥{{orderData.CouponMoney}}</view>
  172. </view>
  173. <view class="goodscostLine">
  174. <view class="goodscostTxt">实付款</view>
  175. <view class="goodsCostNum" style="color: #FF4F00;">¥{{orderData.PayMoney}}</view>
  176. </view>
  177. </view>
  178. <!-- 订单信息 -->
  179. <view class="information">
  180. <view class="detailedTitle">订单信息</view>
  181. <view class="informationLine">
  182. <view class="informationTxt">订单编号:</view>
  183. <view class="informationNum">{{orderData.Code}}</view>
  184. <view class="copyBtn" @click="copy(orderData.Code)">复制</view>
  185. </view>
  186. <view class="informationLine">
  187. <view class="informationTxt">下单人:</view>
  188. <view class="informationNum">{{orderData.MemberName}}</view>
  189. </view>
  190. <view class="informationLine">
  191. <view class="informationTxt">下单时间:</view>
  192. <view class="informationNum">{{orderData.CreateTime}}</view>
  193. </view>
  194. <view class="informationLine">
  195. <view class="informationTxt">下单备注:</view>
  196. <view class="informationNum">{{orderData.Comment}}</view>
  197. </view>
  198. <view class="informationLine">
  199. <view class="informationTxt">确认订单时间:</view>
  200. <view class="informationNum" v-if="orderData.ConfirmTime != null">{{orderData.ConfirmTime}}</view>
  201. </view>
  202. <view class="informationLine">
  203. <view class="informationTxt">确认收货时间:</view>
  204. <view class="informationNum" v-if="orderData.ReceivingTime != null">{{orderData.ReceivingTime}}
  205. </view>
  206. </view>
  207. <view class="informationLine">
  208. <view class="informationTxt">服务完成时间:</view>
  209. <view class="informationNum" v-if="orderData.ServiceTime != null">{{orderData.ServiceTime}}</view>
  210. </view>
  211. </view>
  212. <!-- 支付信息 -->
  213. <view class="information">
  214. <view class="detailedTitle">支付信息</view>
  215. <view class="informationLine">
  216. <view class="informationTxt">支付方式:</view>
  217. <view class="informationNum">在线支付</view>
  218. </view>
  219. <view class="informationLine">
  220. <view class="informationTxt">支付时间:</view>
  221. <view class="informationNum" v-if="orderData.PayTime">{{orderData.PayTime}}</view>
  222. </view>
  223. </view>
  224. <!-- 底部按钮 操作 -->
  225. <view style="height: 150rpx;"></view>
  226. <view class="orderBottom" v-if="orderData.SheetState==1">
  227. <view class="cancelBtn" @click="cancelOrder">取消订单</view>
  228. <view class="payBtn" @click="orderPay">立即支付</view>
  229. </view>
  230. <view class="orderBottom" v-if="orderData.SheetState==2">
  231. <view class="cancelBtn" @click="refundMoney">申请退款</view>
  232. </view>
  233. <view class="orderBottom" v-if="orderData.SheetState==3">
  234. <view class="cancelBtn" @click="refundMoney">申请退款</view>
  235. </view>
  236. <view class="orderBottom" v-if="orderData.SheetState==4">
  237. <view class="cancelBtn" @click="refundMoney">申请退款</view>
  238. <view class="payBtn" @click="timeShowClick" v-if="orderData.OrderState==1">立即预约</view>
  239. </view>
  240. <view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==0&&orderData.EState==1">
  241. <view class="payBtn" @click="evaluate">立即评价</view>
  242. </view>
  243. <view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==1">
  244. <view class="cancelBtn" style="margin-right: 16rpx;" @click="gopingjia">查看评价</view>
  245. </view>
  246. <!-- 二维码 -->
  247. <view v-if="qrcodeShow" class="qrcodeBox" @click="qrcodeShow=false">
  248. <view @click.stop="qrc">
  249. <tki-qrcode cid="qrcode1" ref="qrcode" :val="qrcodeTopVal" :size="size" :unit="unit"
  250. :pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
  251. :loadMake="loadMake" :usingComponents="true" @result="qrR" />
  252. </view>
  253. </view>
  254. <!-- 预约时间 -->
  255. <view class="timeBox2" v-if="timeShow&&OrderTimes" @click="timeShow=false">
  256. <view class="timeMain">
  257. <view class="timeTop">
  258. <view class="timeTopTitle">选择预约时间</view>
  259. <view class="close" @click="timeShow=false">X</view>
  260. </view>
  261. <view class="timeCont">
  262. <view class="timeLeft2">
  263. <scroll-view scroll-y="true" class="timeSv">
  264. <view class="timeleftLine" v-for="(item,index) in OrderTimes"
  265. :class="{timeLeftActive:index==orderTimeIndex1}"
  266. @click.stop="orderTimeIndex1=index,orderTimeIndex2=-1">{{item.date.substring(5,10)}}
  267. </view>
  268. </scroll-view>
  269. </view>
  270. <view class="timeRight2">
  271. <scroll-view scroll-y="true" class="timeSv">
  272. <view class="timerightBox">
  273. <view class="timesf" v-for="(item,index) in OrderTimes[orderTimeIndex1].timeList"
  274. :class="{timesfNo:item.type!=1,timesfActive:index==orderTimeIndex2}"
  275. @click.stop="timeSfCk(item,index)">
  276. <view class="timeSfNum">{{item.time}}</view>
  277. <view class="timeyy" v-if="item.type==1">可预约</view>
  278. <view class="timeyy" v-if="item.type==2">已约满</view>
  279. <view class="timeyy" v-if="item.type==3">已过期</view>
  280. </view>
  281. </view>
  282. </scroll-view>
  283. </view>
  284. </view>
  285. <view class="timeBottom">
  286. <view class="timecomplete" @click="timeCk">完成</view>
  287. </view>
  288. </view>
  289. </view>
  290. </view>
  291. </view>
  292. </template>
  293. <script>
  294. import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
  295. export default {
  296. components: {
  297. tkiQrcode
  298. },
  299. data() {
  300. return {
  301. location: '',
  302. isload: false,
  303. id: '',
  304. iStatusBarHeight: '',
  305. orderData: '',
  306. type: '',
  307. onval: true, // val值变化时自动重新生成二维码
  308. loadMake: true, // 组件加载完成后自动生成二维码
  309. size: 500,
  310. qrcodeShow: false,
  311. qrcodeTop: '-100vh',
  312. qrcodeTopVal: '',
  313. ifShow: false,
  314. val: '二维码', // 要生成的二维码值
  315. unit: 'upx', // 单位
  316. background: '#b4e9e2', // 背景色
  317. foreground: '#309286', // 前景色
  318. pdground: '#262637', // 角标色
  319. icon: '', // 二维码图标
  320. iconsize: 40, // 二维码图标大小
  321. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  322. src: '', // 二维码生成后的图片地址或base64
  323. timeShow: false,
  324. orderTime: '',
  325. OrderTimes: '',
  326. orderTimeIndex1: 0,
  327. orderTimeIndex2: -1,
  328. isShowMa:true,
  329. }
  330. },
  331. onLoad(opt) {
  332. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  333. this.location = uni.getStorageSync("location");
  334. this.id = opt.id
  335. this.getData()
  336. this.type = opt.type;
  337. },
  338. onShow() {
  339. if (this.id) {
  340. this.getData()
  341. }
  342. },
  343. methods: {
  344. changeStore(){
  345. uni.navigateTo({
  346. url: '../changeStore/changeStore?id'+this.id
  347. })
  348. },
  349. showMa(){
  350. this.isShowMa = !this.isShowMa
  351. },
  352. gopingjia() {
  353. uni.navigateTo({
  354. url: '../me/myAppraiseDetail?id=' + this.id
  355. })
  356. },
  357. timeShowClick() {
  358. if (this.OrderTimes) {
  359. this.timeShow = true
  360. } else {
  361. uni.showToast({
  362. title: '当前店铺尚未设置可预约时间',
  363. icon: 'none',
  364. duration: 3000
  365. });
  366. }
  367. },
  368. map() {
  369. console.log("打开地图")
  370. var that = this;
  371. if (!that.orderData.Lat || !that.orderData.Lng) {
  372. uni.showToast({
  373. title: '该店铺未设置定位',
  374. icon: 'none',
  375. duration: 3000
  376. });
  377. } else {
  378. uni.openLocation({
  379. latitude: Number(that.orderData.Lat),
  380. longitude: Number(that.orderData.Lng),
  381. name: that.orderData.ShopName,
  382. address: that.orderData.Address,
  383. success: function() {
  384. console.log('success');
  385. },
  386. fail(err) {
  387. console.log(err)
  388. }
  389. });
  390. }
  391. },
  392. qrR() {
  393. },
  394. qrc() {
  395. console.log(111)
  396. },
  397. call() {
  398. uni.makePhoneCall({
  399. phoneNumber: this.orderData.MobilePhone
  400. });
  401. },
  402. qrcodeClick() {
  403. this.ifShow = true;
  404. this.qrcodeShow = true;
  405. this.qrcodeTopVal = this.orderData.Code;
  406. //this.$refs.qrcode._makeCode()
  407. },
  408. copy(txt) {
  409. uni.setClipboardData({
  410. data: txt,
  411. success: function() {
  412. uni.showToast({
  413. title: '复制成功',
  414. icon: 'none',
  415. duration: 2000
  416. });
  417. }
  418. });
  419. },
  420. getData() {
  421. uni.showLoading({
  422. title: '加载中'
  423. });
  424. this.$http('worldKeepCar/keepCarMy/queryMiNiAppTSheetDetail', {
  425. lat: this.location.lat,
  426. lng: this.location.lng,
  427. id: this.id,
  428. }, 'GET').then(res => {
  429. uni.hideLoading();
  430. this.orderData = res.data;
  431. this.getOrderTimes();
  432. })
  433. },
  434. goback() {
  435. if (this.type == 2) {
  436. uni.switchTab({
  437. url: '../index/index'
  438. })
  439. } else {
  440. uni.navigateBack({})
  441. }
  442. },
  443. evaluate() {
  444. uni.navigateTo({
  445. url: 'evaluate?sheetID=' + this.id + '&shopID=' + this.orderData.ShopID
  446. })
  447. },
  448. cancelOrder() {
  449. var that = this;
  450. uni.showModal({
  451. title: '提示',
  452. content: '确定要取消订单吗',
  453. success: function(res) {
  454. if (res.confirm) {
  455. uni.showLoading({});
  456. that.$http('worldKeepCar/keepCarMy/cancelMiNiTMSheet', {
  457. id: that.orderData.ID
  458. }, 'POST').then(res => {
  459. uni.hideLoading();
  460. that.getData()
  461. })
  462. } else if (res.cancel) {
  463. }
  464. }
  465. });
  466. },
  467. refundMoney(){
  468. console.log('退款');
  469. uni.navigateTo({
  470. url:'../refundMoney/refundMoney?id='+this.id
  471. })
  472. },
  473. orderPay() {
  474. uni.showLoading({});
  475. var that = this;
  476. this.$http('worldKeepCar/maintainOrder/orderPay', {
  477. sheetID: this.orderData.ID
  478. }, 'POST').then(res => {
  479. uni.hideLoading();
  480. if(res.isPay==0){
  481. uni.showToast({
  482. title: '支付成功',
  483. icon: 'none',
  484. duration: 2000
  485. });
  486. that.getData()
  487. }else{
  488. var payInfo = JSON.parse(res.data.payInfo)
  489. uni.requestPayment({
  490. provider: 'wxpay',
  491. // timeStamp: String(Date.now()),
  492. timeStamp: payInfo.timeStamp,
  493. nonceStr: payInfo.nonceStr,
  494. package: payInfo.package,
  495. signType: payInfo.signType,
  496. paySign: payInfo.paySign,
  497. success: function(res) {
  498. console.log('success:' + JSON.stringify(res));
  499. uni.showToast({
  500. title: '支付成功',
  501. icon: 'none',
  502. duration: 2000
  503. });
  504. that.getData()
  505. },
  506. fail: function(err) {
  507. console.log('fail:' + JSON.stringify(err));
  508. }
  509. });
  510. }
  511. })
  512. },
  513. timeSfCk(item, index) {
  514. if (item.type == 1) {
  515. this.orderTimeIndex2 = index;
  516. var orderTime = this.OrderTimes[this.orderTimeIndex1].date + ' ' + item.time
  517. this.orderTime = orderTime
  518. }
  519. },
  520. timeCk() {
  521. this.timeShow = false;
  522. var urlStr = ''
  523. if (this.orderData.OrderState==1) {
  524. urlStr = 'worldKeepCar/keepCarMy/saveOrderTime'
  525. }
  526. if (this.orderData.OrderState==2) {
  527. urlStr = 'worldKeepCar/keepCarMy/changeTSheetTime'
  528. }
  529. this.$http(urlStr, {
  530. id: this.id,
  531. orderTime: this.orderTime
  532. }, 'POST').then(res => {
  533. if (res.code == 0) {
  534. uni.showToast({
  535. title: '预约成功',
  536. icon: 'none',
  537. duration: 2000
  538. });
  539. }
  540. this.getData()
  541. })
  542. },
  543. getOrderTimes() {
  544. this.$http('worldKeepCar/keepCarMy/getTSheetTimes', {
  545. shopId: this.orderData.ShopID,
  546. }, 'GET').then(res => {
  547. this.OrderTimes = res.data;
  548. })
  549. }
  550. },
  551. onPullDownRefresh() {
  552. this.getOrderTimes()
  553. this.getData()
  554. setTimeout(function() {
  555. uni.stopPullDownRefresh();
  556. }, 1000);
  557. },
  558. }
  559. </script>
  560. <style scoped>
  561. .box {
  562. min-height: 100vh;
  563. background: #F4F5F7;
  564. }
  565. .status_bar {
  566. background: #FF4F00;
  567. width: 100vw;
  568. position: fixed;
  569. top: 0;
  570. left: 0;
  571. z-index: 1111;
  572. }
  573. .qrcodeBox {
  574. width: 100vw;
  575. height: 100vh;
  576. display: flex;
  577. justify-content: center;
  578. align-items: center;
  579. position: fixed;
  580. top: 0;
  581. left: 0;
  582. background: rgba(0, 0, 0, 0.7);
  583. }
  584. .top {
  585. width: 750rpx;
  586. height: 342rpx;
  587. background: #FF4F00;
  588. /* background: linear-gradient(134deg, #FF8635 0%, #FF4828 100%); */
  589. }
  590. .nav {
  591. line-height: 44px;
  592. font-size: 34rpx;
  593. font-weight: 600;
  594. display: flex;
  595. justify-content: space-between;
  596. color: #FFFFFF;
  597. position: fixed;
  598. width: 100vw;
  599. left: 0;
  600. z-index: 1111;
  601. background: #FF4F00;
  602. }
  603. .gobackImg {
  604. width: 92rpx;
  605. height: 88rpx;
  606. /* padding: 12px; */
  607. }
  608. .SheetState {
  609. font-size: 44rpx;
  610. font-weight: 500;
  611. color: #FFFFFF;
  612. padding-left: 24rpx;
  613. padding-top: 50rpx;
  614. }
  615. .orderTop {
  616. background: #FFFFFF;
  617. border-radius: 10rpx;
  618. margin: 20rpx 24rpx;
  619. }
  620. .timeEditImg {
  621. width: 25rpx;
  622. height: 25rpx;
  623. padding-left: 20rpx;
  624. }
  625. .timeLeft {
  626. font-size: 32rpx;
  627. color: #3C3C3C;
  628. }
  629. .timeRight {
  630. font-size: 26rpx;
  631. color: #3F90F7;
  632. }
  633. .timeBox {
  634. display: flex;
  635. justify-content: space-between;
  636. padding: 24rpx 20rpx;
  637. border-bottom: 1rpx solid #EEEEEE;
  638. }
  639. .shopBoximg {
  640. width: 40rpx;
  641. height: 40rpx;
  642. }
  643. .shopRightImg {
  644. width: 52rpx;
  645. height: 60rpx;
  646. }
  647. .shopsx {
  648. width: 1px;
  649. height: 50rpx;
  650. background: #EEEEEE;
  651. margin-top: 30rpx;
  652. margin-left: 28rpx;
  653. }
  654. .shopBox {
  655. display: flex;
  656. padding: 0rpx 20rpx 36rpx 20rpx;
  657. }
  658. .shopCont {
  659. width: 418rpx;
  660. padding-left: 20rpx;
  661. }
  662. .shopName {
  663. font-size: 28rpx;
  664. color: #3C3C3C;
  665. }
  666. .Address {
  667. color: #999999;
  668. font-size: 26rpx;
  669. padding-top: 10rpx;
  670. }
  671. .shopRihgtTxt {
  672. color: #999999;
  673. font-size: 22rpx;
  674. padding-top: 5rpx;
  675. }
  676. .shopRightBox {
  677. padding-top: 30rpx;
  678. padding-left: 28rpx;
  679. }
  680. .peopleCont {
  681. font-size: 28rpx;
  682. color: #3C3C3C;
  683. padding-left: 20rpx;
  684. }
  685. .people {
  686. display: flex;
  687. padding-left: 20rpx;
  688. padding-top: 30rpx;
  689. padding-bottom: 36rpx;
  690. }
  691. .PlateNumberBox {
  692. display: flex;
  693. padding-left: 20rpx;
  694. padding-bottom: 30rpx;
  695. }
  696. .PlateNumbercx {
  697. font-size: 28rpx;
  698. font-weight: bold;
  699. color: #3C3C3C;
  700. padding-left: 20rpx;
  701. }
  702. .PlateNumber {
  703. width: 130rpx;
  704. height: 32rpx;
  705. border-radius: 4rpx;
  706. border: 1px solid #F19D01;
  707. line-height: 32rpx;
  708. text-align: center;
  709. font-size: 22rpx;
  710. color: #F19D01;
  711. margin-left: 26rpx;
  712. }
  713. .PlateNumberBoxTop {
  714. display: flex;
  715. }
  716. .CarModel {
  717. font-size: 26rpx;
  718. color: #999999;
  719. padding-left: 20rpx;
  720. padding-top: 6rpx;
  721. padding-right: 20rpx;
  722. padding-bottom: 15rpx;
  723. width: 600rpx;
  724. }
  725. .detailedBox {
  726. background: #FFFFFF;
  727. border-radius: 10px;
  728. margin: 20rpx 24rpx;
  729. padding: 20rpx 0;
  730. }
  731. .itemBox {
  732. margin-top: 20rpx;
  733. }
  734. .detailedTitle {
  735. font-size: 32rpx;
  736. color: #3C3C3C;
  737. padding-left: 20rpx;
  738. padding-top: 30rpx;
  739. padding-bottom: 10rpx;
  740. }
  741. .detailedLine {
  742. display: flex;
  743. padding-left: 20rpx;
  744. padding-top: 40rpx;
  745. }
  746. .detailedImg {
  747. width: 120rpx;
  748. height: 120rpx;
  749. border-radius: 10rpx;
  750. }
  751. .detailedCont {
  752. padding-left: 20rpx;
  753. display: flex;
  754. flex-direction: column;
  755. justify-content: space-between;
  756. }
  757. .detailedName {
  758. font-size: 26rpx;
  759. color: #3C3C3C;
  760. }
  761. .detailedContBottom {
  762. display: flex;
  763. justify-content: space-between;
  764. font-size: 26rpx;
  765. color: #999999;
  766. width: 500rpx;
  767. line-height: 40rpx;
  768. }
  769. .SalePrice {
  770. font-size: 32rpx;
  771. font-weight: 500;
  772. color: #3C3C3C;
  773. }
  774. .goodscost {
  775. width: 702rpx;
  776. background: #FFFFFF;
  777. border-radius: 10px;
  778. margin-left: 24rpx;
  779. margin-top: 20rpx;
  780. padding: 15rpx 0;
  781. }
  782. .goodscostLine {
  783. display: flex;
  784. justify-content: space-between;
  785. font-size: 28rpx;
  786. padding: 20rpx 20rpx;
  787. color: #666666;
  788. }
  789. .goodsCostNum {
  790. color: #3C3C3C;
  791. }
  792. .information {
  793. width: 702rpx;
  794. background: #FFFFFF;
  795. border-radius: 10px;
  796. margin-left: 24rpx;
  797. margin-top: 20rpx;
  798. padding: 0rpx 0 15rpx 0;
  799. }
  800. .informationLine {
  801. display: flex;
  802. font-size: 26rpx;
  803. padding: 15rpx 20rpx;
  804. }
  805. .informationTxt {
  806. width: 190rpx;
  807. color: #666666;
  808. }
  809. .informationNum {
  810. color: #333333;
  811. }
  812. .copyBtn {
  813. width: 86rpx;
  814. height: 40rpx;
  815. background: #F4F5F7;
  816. border-radius: 20rpx;
  817. font-size: 24rpx;
  818. color: #333333;
  819. text-align: center;
  820. line-height: 40rpx;
  821. margin-left: 20rpx;
  822. }
  823. .orderBottom {
  824. width: 750rpx;
  825. height: 98rpx;
  826. background: #FFFFFF;
  827. position: fixed;
  828. left: 0;
  829. bottom: 0;
  830. display: flex;
  831. justify-content: flex-end;
  832. }
  833. .cancelBtn {
  834. width: 150rpx;
  835. height: 56rpx;
  836. border-radius: 36rpx;
  837. border: 2rpx solid #DDDDDD;
  838. text-align: center;
  839. line-height: 56rpx;
  840. font-size: 28rpx;
  841. color: #3C3C3C;
  842. margin-top: 21rpx;
  843. margin-right: 16rpx;
  844. margin-left: 20rpx;
  845. }
  846. .payBtn {
  847. width: 150rpx;
  848. height: 56rpx;
  849. border-radius: 36rpx;
  850. border: 2rpx solid #FF4F00;
  851. text-align: center;
  852. line-height: 56rpx;
  853. font-size: 28rpx;
  854. color: #FF4F00;
  855. margin-top: 21rpx;
  856. margin-right: 16rpx;
  857. margin-left: 20rpx;
  858. }
  859. .timeBox2 {
  860. width: 100vw;
  861. height: 100vh;
  862. background: rgba(0, 0, 0, 0.5);
  863. position: fixed;
  864. top: 0;
  865. left: 0;
  866. }
  867. .timeLeftActive {
  868. background: #FFFFFF;
  869. }
  870. .timeMain {
  871. width: 100vw;
  872. height: 70vh;
  873. margin-top: 30vh;
  874. background: #FFFFFF;
  875. border-radius: 24rpx 24rpx 0px 0px;
  876. }
  877. .timesfNo {
  878. background: #F5F5F5;
  879. }
  880. .timesfActive {
  881. background: #FF4F00;
  882. }
  883. .timesfActive .timeSfNum {
  884. color: #FFFFFF;
  885. }
  886. .timesfActive .timeyy {
  887. color: #FFFFFF;
  888. }
  889. .topBox {
  890. padding: 20rpx 24rpx;
  891. }
  892. .timeTop {
  893. display: flex;
  894. line-height: 90rpx;
  895. padding-left: 24rpx;
  896. padding-right: 24rpx;
  897. justify-content: space-between;
  898. }
  899. .timeTopTitle {
  900. font-size: 30rpx;
  901. font-family: PingFangSC-Medium, PingFang SC;
  902. font-weight: 600;
  903. color: #3C3C3C;
  904. }
  905. .close {
  906. color: #999999;
  907. font-size: 30rpx;
  908. padding-left: 30rpx;
  909. }
  910. .timeCont {
  911. height: calc(70vh - 210rpx);
  912. }
  913. .timeSv {
  914. height: calc(70vh - 210rpx);
  915. }
  916. .timeLeft2 {
  917. width: 162rpx;
  918. background: #F4F5F7;
  919. border-top: 1px soid #F4F5F7;
  920. border-right: 1px soid #F4F5F7;
  921. }
  922. .timeRight2 {
  923. width: 588rpx;
  924. }
  925. .timesf {
  926. width: 165rpx;
  927. height: 98rpx;
  928. border-radius: 7rpx;
  929. border: 2rpx solid #EEEEEE;
  930. text-align: center;
  931. margin-left: 20rpx;
  932. margin-bottom: 24rpx;
  933. }
  934. .timeBottom {
  935. width: 750rpx;
  936. height: 120rpx;
  937. background: #FFFFFF;
  938. box-shadow: 0px -2px 20rpx 0px rgba(153, 153, 153, 0.2);
  939. display: flex;
  940. align-items: center;
  941. }
  942. .timerightBox {
  943. display: flex;
  944. flex-wrap: wrap;
  945. }
  946. .timeCont {
  947. display: flex;
  948. }
  949. .timeSfNum {
  950. color: #666666;
  951. font-size: 28rpx;
  952. padding-top: 15rpx;
  953. }
  954. .timeyy {
  955. font-size: 24rpx;
  956. color: #999999;
  957. }
  958. .timecomplete {
  959. width: 690rpx;
  960. height: 74rpx;
  961. background: linear-gradient(124deg, #FF8700 0%, #FF4F00 100%);
  962. border-radius: 37rpx;
  963. line-height: 74rpx;
  964. text-align: center;
  965. font-size: 30rpx;
  966. color: #FFFFFF;
  967. margin-left: 30rpx;
  968. }
  969. .timeleftLine {
  970. font-size: 30rpx;
  971. color: #999999;
  972. text-align: center;
  973. padding: 28rpx 10rpx;
  974. border-bottom: 1px solid #EEEEEE;
  975. }
  976. .yuyueBox {
  977. background: #FFFFFF;
  978. border-radius: 10rpx;
  979. margin-left: 24rpx;
  980. margin-right: 24rpx;
  981. }
  982. .yuyueTime {
  983. display: flex;
  984. padding-left: 20rpx;
  985. padding-top: 30rpx;
  986. padding-bottom: 36rpx;
  987. align-items: center;
  988. }
  989. .yuyueState {
  990. display: flex;
  991. padding-left: 20rpx;
  992. padding-top: 30rpx;
  993. padding-bottom: 36rpx;
  994. }
  995. .maBox {
  996. display: flex;
  997. justify-content: space-between;
  998. padding: 24rpx 20rpx;
  999. }
  1000. .querenMa {
  1001. margin: 20rpx 0;
  1002. padding-bottom: 30rpx;
  1003. }
  1004. .maBoximg {
  1005. width: 308rpx;
  1006. height: 308rpx;
  1007. margin: 30rpx 197rpx;
  1008. }
  1009. .rightShou{
  1010. display: flex;
  1011. justify-content: flex-start;
  1012. align-items: center;
  1013. }
  1014. </style>