orderDetail.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151
  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">申请更换服务门店</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. showMa(){
  345. this.isShowMa = !this.isShowMa
  346. },
  347. gopingjia() {
  348. uni.navigateTo({
  349. url: '../me/myAppraiseDetail?id=' + this.id
  350. })
  351. },
  352. timeShowClick() {
  353. if (this.OrderTimes) {
  354. this.timeShow = true
  355. } else {
  356. uni.showToast({
  357. title: '当前店铺尚未设置可预约时间',
  358. icon: 'none',
  359. duration: 3000
  360. });
  361. }
  362. },
  363. map() {
  364. console.log("打开地图")
  365. var that = this;
  366. if (!that.orderData.Lat || !that.orderData.Lng) {
  367. uni.showToast({
  368. title: '该店铺未设置定位',
  369. icon: 'none',
  370. duration: 3000
  371. });
  372. } else {
  373. uni.openLocation({
  374. latitude: Number(that.orderData.Lat),
  375. longitude: Number(that.orderData.Lng),
  376. name: that.orderData.ShopName,
  377. address: that.orderData.Address,
  378. success: function() {
  379. console.log('success');
  380. },
  381. fail(err) {
  382. console.log(err)
  383. }
  384. });
  385. }
  386. },
  387. qrR() {
  388. },
  389. qrc() {
  390. console.log(111)
  391. },
  392. call() {
  393. uni.makePhoneCall({
  394. phoneNumber: this.orderData.MobilePhone
  395. });
  396. },
  397. qrcodeClick() {
  398. this.ifShow = true;
  399. this.qrcodeShow = true;
  400. this.qrcodeTopVal = this.orderData.Code;
  401. //this.$refs.qrcode._makeCode()
  402. },
  403. copy(txt) {
  404. uni.setClipboardData({
  405. data: txt,
  406. success: function() {
  407. uni.showToast({
  408. title: '复制成功',
  409. icon: 'none',
  410. duration: 2000
  411. });
  412. }
  413. });
  414. },
  415. getData() {
  416. uni.showLoading({
  417. title: '加载中'
  418. });
  419. this.$http('worldKeepCar/keepCarMy/queryMiNiAppTSheetDetail', {
  420. lat: this.location.lat,
  421. lng: this.location.lng,
  422. id: this.id,
  423. }, 'GET').then(res => {
  424. uni.hideLoading();
  425. this.orderData = res.data;
  426. this.getOrderTimes();
  427. })
  428. },
  429. goback() {
  430. if (this.type == 2) {
  431. uni.switchTab({
  432. url: '../index/index'
  433. })
  434. } else {
  435. uni.navigateBack({})
  436. }
  437. },
  438. evaluate() {
  439. uni.navigateTo({
  440. url: 'evaluate?sheetID=' + this.id + '&shopID=' + this.orderData.ShopID
  441. })
  442. },
  443. cancelOrder() {
  444. var that = this;
  445. uni.showModal({
  446. title: '提示',
  447. content: '确定要取消订单吗',
  448. success: function(res) {
  449. if (res.confirm) {
  450. uni.showLoading({});
  451. that.$http('worldKeepCar/keepCarMy/cancelMiNiTMSheet', {
  452. id: that.orderData.ID
  453. }, 'POST').then(res => {
  454. uni.hideLoading();
  455. that.getData()
  456. })
  457. } else if (res.cancel) {
  458. }
  459. }
  460. });
  461. },
  462. refundMoney(){
  463. console.log('退款');
  464. uni.navigateTo({
  465. url:'../refundMoney/refundMoney?id='+this.id
  466. })
  467. },
  468. orderPay() {
  469. uni.showLoading({});
  470. var that = this;
  471. this.$http('worldKeepCar/maintainOrder/orderPay', {
  472. sheetID: this.orderData.ID
  473. }, 'POST').then(res => {
  474. uni.hideLoading();
  475. if(res.isPay==0){
  476. uni.showToast({
  477. title: '支付成功',
  478. icon: 'none',
  479. duration: 2000
  480. });
  481. that.getData()
  482. }else{
  483. var payInfo = JSON.parse(res.data.payInfo)
  484. uni.requestPayment({
  485. provider: 'wxpay',
  486. // timeStamp: String(Date.now()),
  487. timeStamp: payInfo.timeStamp,
  488. nonceStr: payInfo.nonceStr,
  489. package: payInfo.package,
  490. signType: payInfo.signType,
  491. paySign: payInfo.paySign,
  492. success: function(res) {
  493. console.log('success:' + JSON.stringify(res));
  494. uni.showToast({
  495. title: '支付成功',
  496. icon: 'none',
  497. duration: 2000
  498. });
  499. that.getData()
  500. },
  501. fail: function(err) {
  502. console.log('fail:' + JSON.stringify(err));
  503. }
  504. });
  505. }
  506. })
  507. },
  508. timeSfCk(item, index) {
  509. if (item.type == 1) {
  510. this.orderTimeIndex2 = index;
  511. var orderTime = this.OrderTimes[this.orderTimeIndex1].date + ' ' + item.time
  512. this.orderTime = orderTime
  513. }
  514. },
  515. timeCk() {
  516. this.timeShow = false;
  517. var urlStr = ''
  518. if (this.orderData.OrderState==1) {
  519. urlStr = 'worldKeepCar/keepCarMy/saveOrderTime'
  520. }
  521. if (this.orderData.OrderState==2) {
  522. urlStr = 'worldKeepCar/keepCarMy/changeTSheetTime'
  523. }
  524. this.$http(urlStr, {
  525. id: this.id,
  526. orderTime: this.orderTime
  527. }, 'POST').then(res => {
  528. if (res.code == 0) {
  529. uni.showToast({
  530. title: '预约成功',
  531. icon: 'none',
  532. duration: 2000
  533. });
  534. }
  535. this.getData()
  536. })
  537. },
  538. getOrderTimes() {
  539. this.$http('worldKeepCar/keepCarMy/getTSheetTimes', {
  540. shopId: this.orderData.ShopID,
  541. }, 'GET').then(res => {
  542. this.OrderTimes = res.data;
  543. })
  544. }
  545. },
  546. onPullDownRefresh() {
  547. this.getOrderTimes()
  548. this.getData()
  549. setTimeout(function() {
  550. uni.stopPullDownRefresh();
  551. }, 1000);
  552. },
  553. }
  554. </script>
  555. <style scoped>
  556. .box {
  557. min-height: 100vh;
  558. background: #F4F5F7;
  559. }
  560. .status_bar {
  561. background: #FF4F00;
  562. width: 100vw;
  563. position: fixed;
  564. top: 0;
  565. left: 0;
  566. z-index: 1111;
  567. }
  568. .qrcodeBox {
  569. width: 100vw;
  570. height: 100vh;
  571. display: flex;
  572. justify-content: center;
  573. align-items: center;
  574. position: fixed;
  575. top: 0;
  576. left: 0;
  577. background: rgba(0, 0, 0, 0.7);
  578. }
  579. .top {
  580. width: 750rpx;
  581. height: 342rpx;
  582. background: #FF4F00;
  583. /* background: linear-gradient(134deg, #FF8635 0%, #FF4828 100%); */
  584. }
  585. .nav {
  586. line-height: 44px;
  587. font-size: 34rpx;
  588. font-weight: 600;
  589. display: flex;
  590. justify-content: space-between;
  591. color: #FFFFFF;
  592. position: fixed;
  593. width: 100vw;
  594. left: 0;
  595. z-index: 1111;
  596. background: #FF4F00;
  597. }
  598. .gobackImg {
  599. width: 92rpx;
  600. height: 88rpx;
  601. /* padding: 12px; */
  602. }
  603. .SheetState {
  604. font-size: 44rpx;
  605. font-weight: 500;
  606. color: #FFFFFF;
  607. padding-left: 24rpx;
  608. padding-top: 50rpx;
  609. }
  610. .orderTop {
  611. background: #FFFFFF;
  612. border-radius: 10rpx;
  613. margin: 20rpx 24rpx;
  614. }
  615. .timeEditImg {
  616. width: 25rpx;
  617. height: 25rpx;
  618. padding-left: 20rpx;
  619. }
  620. .timeLeft {
  621. font-size: 32rpx;
  622. color: #3C3C3C;
  623. }
  624. .timeRight {
  625. font-size: 26rpx;
  626. color: #3F90F7;
  627. }
  628. .timeBox {
  629. display: flex;
  630. justify-content: space-between;
  631. padding: 24rpx 20rpx;
  632. border-bottom: 1rpx solid #EEEEEE;
  633. }
  634. .shopBoximg {
  635. width: 40rpx;
  636. height: 40rpx;
  637. }
  638. .shopRightImg {
  639. width: 52rpx;
  640. height: 60rpx;
  641. }
  642. .shopsx {
  643. width: 1px;
  644. height: 50rpx;
  645. background: #EEEEEE;
  646. margin-top: 30rpx;
  647. margin-left: 28rpx;
  648. }
  649. .shopBox {
  650. display: flex;
  651. padding: 0rpx 20rpx 36rpx 20rpx;
  652. }
  653. .shopCont {
  654. width: 418rpx;
  655. padding-left: 20rpx;
  656. }
  657. .shopName {
  658. font-size: 28rpx;
  659. color: #3C3C3C;
  660. }
  661. .Address {
  662. color: #999999;
  663. font-size: 26rpx;
  664. padding-top: 10rpx;
  665. }
  666. .shopRihgtTxt {
  667. color: #999999;
  668. font-size: 22rpx;
  669. padding-top: 5rpx;
  670. }
  671. .shopRightBox {
  672. padding-top: 30rpx;
  673. padding-left: 28rpx;
  674. }
  675. .peopleCont {
  676. font-size: 28rpx;
  677. color: #3C3C3C;
  678. padding-left: 20rpx;
  679. }
  680. .people {
  681. display: flex;
  682. padding-left: 20rpx;
  683. padding-top: 30rpx;
  684. padding-bottom: 36rpx;
  685. }
  686. .PlateNumberBox {
  687. display: flex;
  688. padding-left: 20rpx;
  689. padding-bottom: 30rpx;
  690. }
  691. .PlateNumbercx {
  692. font-size: 28rpx;
  693. font-weight: bold;
  694. color: #3C3C3C;
  695. padding-left: 20rpx;
  696. }
  697. .PlateNumber {
  698. width: 130rpx;
  699. height: 32rpx;
  700. border-radius: 4rpx;
  701. border: 1px solid #F19D01;
  702. line-height: 32rpx;
  703. text-align: center;
  704. font-size: 22rpx;
  705. color: #F19D01;
  706. margin-left: 26rpx;
  707. }
  708. .PlateNumberBoxTop {
  709. display: flex;
  710. }
  711. .CarModel {
  712. font-size: 26rpx;
  713. color: #999999;
  714. padding-left: 20rpx;
  715. padding-top: 6rpx;
  716. padding-right: 20rpx;
  717. padding-bottom: 15rpx;
  718. width: 600rpx;
  719. }
  720. .detailedBox {
  721. background: #FFFFFF;
  722. border-radius: 10px;
  723. margin: 20rpx 24rpx;
  724. padding: 20rpx 0;
  725. }
  726. .itemBox {
  727. margin-top: 20rpx;
  728. }
  729. .detailedTitle {
  730. font-size: 32rpx;
  731. color: #3C3C3C;
  732. padding-left: 20rpx;
  733. padding-top: 30rpx;
  734. padding-bottom: 10rpx;
  735. }
  736. .detailedLine {
  737. display: flex;
  738. padding-left: 20rpx;
  739. padding-top: 40rpx;
  740. }
  741. .detailedImg {
  742. width: 120rpx;
  743. height: 120rpx;
  744. border-radius: 10rpx;
  745. }
  746. .detailedCont {
  747. padding-left: 20rpx;
  748. display: flex;
  749. flex-direction: column;
  750. justify-content: space-between;
  751. }
  752. .detailedName {
  753. font-size: 26rpx;
  754. color: #3C3C3C;
  755. }
  756. .detailedContBottom {
  757. display: flex;
  758. justify-content: space-between;
  759. font-size: 26rpx;
  760. color: #999999;
  761. width: 500rpx;
  762. line-height: 40rpx;
  763. }
  764. .SalePrice {
  765. font-size: 32rpx;
  766. font-weight: 500;
  767. color: #3C3C3C;
  768. }
  769. .goodscost {
  770. width: 702rpx;
  771. background: #FFFFFF;
  772. border-radius: 10px;
  773. margin-left: 24rpx;
  774. margin-top: 20rpx;
  775. padding: 15rpx 0;
  776. }
  777. .goodscostLine {
  778. display: flex;
  779. justify-content: space-between;
  780. font-size: 28rpx;
  781. padding: 20rpx 20rpx;
  782. color: #666666;
  783. }
  784. .goodsCostNum {
  785. color: #3C3C3C;
  786. }
  787. .information {
  788. width: 702rpx;
  789. background: #FFFFFF;
  790. border-radius: 10px;
  791. margin-left: 24rpx;
  792. margin-top: 20rpx;
  793. padding: 0rpx 0 15rpx 0;
  794. }
  795. .informationLine {
  796. display: flex;
  797. font-size: 26rpx;
  798. padding: 15rpx 20rpx;
  799. }
  800. .informationTxt {
  801. width: 190rpx;
  802. color: #666666;
  803. }
  804. .informationNum {
  805. color: #333333;
  806. }
  807. .copyBtn {
  808. width: 86rpx;
  809. height: 40rpx;
  810. background: #F4F5F7;
  811. border-radius: 20rpx;
  812. font-size: 24rpx;
  813. color: #333333;
  814. text-align: center;
  815. line-height: 40rpx;
  816. margin-left: 20rpx;
  817. }
  818. .orderBottom {
  819. width: 750rpx;
  820. height: 98rpx;
  821. background: #FFFFFF;
  822. position: fixed;
  823. left: 0;
  824. bottom: 0;
  825. display: flex;
  826. justify-content: flex-end;
  827. }
  828. .cancelBtn {
  829. width: 150rpx;
  830. height: 56rpx;
  831. border-radius: 36rpx;
  832. border: 2rpx solid #DDDDDD;
  833. text-align: center;
  834. line-height: 56rpx;
  835. font-size: 28rpx;
  836. color: #3C3C3C;
  837. margin-top: 21rpx;
  838. margin-right: 16rpx;
  839. margin-left: 20rpx;
  840. }
  841. .payBtn {
  842. width: 150rpx;
  843. height: 56rpx;
  844. border-radius: 36rpx;
  845. border: 2rpx solid #FF4F00;
  846. text-align: center;
  847. line-height: 56rpx;
  848. font-size: 28rpx;
  849. color: #FF4F00;
  850. margin-top: 21rpx;
  851. margin-right: 16rpx;
  852. margin-left: 20rpx;
  853. }
  854. .timeBox2 {
  855. width: 100vw;
  856. height: 100vh;
  857. background: rgba(0, 0, 0, 0.5);
  858. position: fixed;
  859. top: 0;
  860. left: 0;
  861. }
  862. .timeLeftActive {
  863. background: #FFFFFF;
  864. }
  865. .timeMain {
  866. width: 100vw;
  867. height: 70vh;
  868. margin-top: 30vh;
  869. background: #FFFFFF;
  870. border-radius: 24rpx 24rpx 0px 0px;
  871. }
  872. .timesfNo {
  873. background: #F5F5F5;
  874. }
  875. .timesfActive {
  876. background: #FF4F00;
  877. }
  878. .timesfActive .timeSfNum {
  879. color: #FFFFFF;
  880. }
  881. .timesfActive .timeyy {
  882. color: #FFFFFF;
  883. }
  884. .topBox {
  885. padding: 20rpx 24rpx;
  886. }
  887. .timeTop {
  888. display: flex;
  889. line-height: 90rpx;
  890. padding-left: 24rpx;
  891. padding-right: 24rpx;
  892. justify-content: space-between;
  893. }
  894. .timeTopTitle {
  895. font-size: 30rpx;
  896. font-family: PingFangSC-Medium, PingFang SC;
  897. font-weight: 600;
  898. color: #3C3C3C;
  899. }
  900. .close {
  901. color: #999999;
  902. font-size: 30rpx;
  903. padding-left: 30rpx;
  904. }
  905. .timeCont {
  906. height: calc(70vh - 210rpx);
  907. }
  908. .timeSv {
  909. height: calc(70vh - 210rpx);
  910. }
  911. .timeLeft2 {
  912. width: 162rpx;
  913. background: #F4F5F7;
  914. border-top: 1px soid #F4F5F7;
  915. border-right: 1px soid #F4F5F7;
  916. }
  917. .timeRight2 {
  918. width: 588rpx;
  919. }
  920. .timesf {
  921. width: 165rpx;
  922. height: 98rpx;
  923. border-radius: 7rpx;
  924. border: 2rpx solid #EEEEEE;
  925. text-align: center;
  926. margin-left: 20rpx;
  927. margin-bottom: 24rpx;
  928. }
  929. .timeBottom {
  930. width: 750rpx;
  931. height: 120rpx;
  932. background: #FFFFFF;
  933. box-shadow: 0px -2px 20rpx 0px rgba(153, 153, 153, 0.2);
  934. display: flex;
  935. align-items: center;
  936. }
  937. .timerightBox {
  938. display: flex;
  939. flex-wrap: wrap;
  940. }
  941. .timeCont {
  942. display: flex;
  943. }
  944. .timeSfNum {
  945. color: #666666;
  946. font-size: 28rpx;
  947. padding-top: 15rpx;
  948. }
  949. .timeyy {
  950. font-size: 24rpx;
  951. color: #999999;
  952. }
  953. .timecomplete {
  954. width: 690rpx;
  955. height: 74rpx;
  956. background: linear-gradient(124deg, #FF8700 0%, #FF4F00 100%);
  957. border-radius: 37rpx;
  958. line-height: 74rpx;
  959. text-align: center;
  960. font-size: 30rpx;
  961. color: #FFFFFF;
  962. margin-left: 30rpx;
  963. }
  964. .timeleftLine {
  965. font-size: 30rpx;
  966. color: #999999;
  967. text-align: center;
  968. padding: 28rpx 10rpx;
  969. border-bottom: 1px solid #EEEEEE;
  970. }
  971. .yuyueBox {
  972. background: #FFFFFF;
  973. border-radius: 10rpx;
  974. margin-left: 24rpx;
  975. margin-right: 24rpx;
  976. }
  977. .yuyueTime {
  978. display: flex;
  979. padding-left: 20rpx;
  980. padding-top: 30rpx;
  981. padding-bottom: 36rpx;
  982. align-items: center;
  983. }
  984. .yuyueState {
  985. display: flex;
  986. padding-left: 20rpx;
  987. padding-top: 30rpx;
  988. padding-bottom: 36rpx;
  989. }
  990. .maBox {
  991. display: flex;
  992. justify-content: space-between;
  993. padding: 24rpx 20rpx;
  994. }
  995. .querenMa {
  996. margin: 20rpx 0;
  997. padding-bottom: 30rpx;
  998. }
  999. .maBoximg {
  1000. width: 308rpx;
  1001. height: 308rpx;
  1002. margin: 30rpx 197rpx;
  1003. }
  1004. .rightShou{
  1005. display: flex;
  1006. justify-content: flex-start;
  1007. align-items: center;
  1008. }
  1009. </style>