orderDetail.vue 27 KB

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