eorderDetail.vue 27 KB

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