myOrderList_win.html 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="referrer" content="always" />
  5. <meta charset='utf-8' />
  6. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  7. <meta http-equiv="x-dns-prefetch-control" content="on">
  8. <meta name="description" content="">
  9. <meta name="format-detection" content="telephone=no" />
  10. <!-- <link rel="stylesheet" type="text/css" href="css/vant-ui.css" /> -->
  11. <link rel="stylesheet" type="text/css" href="../css/api.css" />
  12. <link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
  13. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.12/lib/index.css" />
  14. <link rel="stylesheet" type="text/css" href="css/iconfont.css">
  15. <link rel="stylesheet" type="text/css" href="css/main.css" />
  16. <script src="js/vue.js"></script>
  17. <!-- <script src="js/vant-ui.js"></script> -->
  18. <script src="https://cdn.jsdelivr.net/npm/vant@2.12/lib/vant.min.js"></script>
  19. <script src="js/main.js"></script>
  20. <link rel="stylesheet" href="./mescroll/mescroll.min.css">
  21. <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
  22. <title></title>
  23. </head>
  24. <style>
  25. .nav-search-box {
  26. height: 30px;
  27. border-radius: 15px;
  28. padding: 0 15px;
  29. display: flex;
  30. flex-direction: row;
  31. align-items: center;
  32. background-color: #F4F5F6;
  33. margin-right: 10px;
  34. margin-top: 5px;
  35. }
  36. .nav-search-img {
  37. width: 16px;
  38. height: 16px;
  39. }
  40. .nav-search-text {
  41. font-size: 13px;
  42. color: #666666;
  43. margin: 0 5px 0 10px;
  44. }
  45. .box-main {
  46. position: relative;
  47. }
  48. .card {
  49. display: flex;
  50. justify-content: center;
  51. align-items: center;
  52. flex-direction: column;
  53. }
  54. .card-list {
  55. width: 100%;
  56. background-color: #fff;
  57. display: flex;
  58. flex-direction: column;
  59. margin-top: .2rem;
  60. width: 7rem;
  61. border-radius: .2rem;
  62. }
  63. .card-header {
  64. display: flex;
  65. flex-direction: row;
  66. justify-content: space-between;
  67. align-items: center;
  68. border-bottom: 1px solid #F1F1F1;
  69. margin: 0 .2rem;
  70. padding: .3rem 0;
  71. }
  72. .header-orderNum-box {
  73. display: flex;
  74. flex-direction: row;
  75. align-items: center;
  76. }
  77. .header-orderNum {
  78. font-size: .25rem;
  79. color: #333333;
  80. }
  81. .header-offline {
  82. font-size: .23rem;
  83. height: .32rem;
  84. ;
  85. border-radius: .16rem;
  86. padding: 0 .1rem;
  87. display: flex;
  88. align-items: center;
  89. border: 1px solid #A0CFFF;
  90. color: #4EB8FF;
  91. background-color: #F4FDFF;
  92. margin-left: .1rem;
  93. }
  94. .header-orderStatus {
  95. font-size: .3rem;
  96. }
  97. .orderStatus-normal {
  98. color: #999999;
  99. }
  100. .orderStatus-highlight {
  101. color: #F92500;
  102. }
  103. .card-footer {
  104. display: flex;
  105. flex-direction: column;
  106. margin: 0 .2rem;
  107. padding: .3rem 0;
  108. }
  109. .footer-desc-box {
  110. display: flex;
  111. flex-direction: row;
  112. justify-content: flex-end;
  113. margin-bottom: .2rem;
  114. }
  115. .footer-total-text {
  116. font-size: .28rem;
  117. color: #A9A9A9;
  118. display: flex;
  119. align-items: flex-end;
  120. }
  121. .footer-shifu-text {
  122. font-size: .28rem;
  123. color: #333333;
  124. margin-left: 2px;
  125. display: flex;
  126. align-items: flex-end;
  127. }
  128. .footer-cancel-box {
  129. width: 100%;
  130. height: 0.75rem;
  131. border-radius: 0.375rem;
  132. background-color: #F4F5F6;
  133. padding: 0 .3rem;
  134. display: flex;
  135. flex-direction: row;
  136. align-items: center;
  137. margin-bottom: .2rem;
  138. }
  139. .footer-cancel-tag {
  140. font-size: .23rem;
  141. color: #333333;
  142. margin-right: .15rem;
  143. }
  144. .footer-cancel-text {
  145. font-size: .23rem;
  146. color: #666666;
  147. }
  148. .footer-offline-box {
  149. display: flex;
  150. flex-direction: row;
  151. align-items: center;
  152. }
  153. .footer-btn-box {
  154. display: flex;
  155. flex: 1;
  156. flex-direction: row;
  157. justify-content: flex-end;
  158. }
  159. .footer-offline-text {
  160. font-size: .3rem;
  161. color: #A9A9A9;
  162. }
  163. .card-content {
  164. display: flex;
  165. flex-direction: column;
  166. margin: 0 .2rem;
  167. padding: .2rem 0;
  168. }
  169. .content-box {
  170. display: flex;
  171. flex-direction: row;
  172. justify-content: space-between;
  173. }
  174. .content-info-left {
  175. display: flex;
  176. flex-direction: row;
  177. }
  178. .content-img {
  179. position: relative;
  180. border-radius: .2rem;
  181. }
  182. .content-bk-tag {
  183. width: 41px;
  184. height: 13px;
  185. position: absolute;
  186. top: 0px;
  187. right: 0px;
  188. }
  189. .content-goods-info {
  190. display: flex;
  191. flex-direction: column;
  192. margin-left: .2rem;
  193. flex: 1;
  194. }
  195. .goods-info-title {
  196. font-size: .3rem;
  197. color: #333333;
  198. }
  199. .goods-info-size {
  200. font-size: .25rem;
  201. color: #999999;
  202. margin-top: 5px;
  203. }
  204. .content-info-right {
  205. display: flex;
  206. flex-direction: column;
  207. align-items: flex-end;
  208. padding: .3rem 0;
  209. }
  210. .goods-info-price-box {
  211. display: flex;
  212. align-items: flex-end;
  213. }
  214. .goods-info-price-tag {
  215. font-size: .23rem;
  216. color: #333333;
  217. margin-bottom: 1px;
  218. }
  219. .goods-info-price-text {
  220. font-size: .3rem;
  221. color: #333333;
  222. }
  223. .goods-info-num {
  224. margin-top: 5px;
  225. font-size: .25rem;
  226. color: #A9A9A9
  227. }
  228. .placeholder-footer {
  229. height: 2.5rem;
  230. }
  231. .mescroll-box {
  232. display: none;
  233. }
  234. .list-btn-normal {
  235. height: 0.68rem;
  236. border-radius: 0.34rem;
  237. border: 1px solid #009BFF;
  238. color: #009DFE;
  239. width: 2rem;
  240. }
  241. .list-btn-highlight {
  242. height: 0.68rem;
  243. border-radius: 0.34rem;
  244. color: #ffffff;
  245. background-image: linear-gradient(to right, #24BBFB, #0098FF);
  246. border: 1px solid #24BBFB;
  247. width: 2rem;
  248. }
  249. .list-btn-driver {
  250. height: 0.68rem;
  251. border-radius: 0.34rem;
  252. color: #ffffff;
  253. padding: 0 .3rem;
  254. border: 1px solid #b5b5b5;
  255. color: #888888;
  256. }
  257. .list-btn-cancel {
  258. height: 0.68rem;
  259. border-radius: 0.34rem;
  260. color: #ffffff;
  261. border: 1px solid #b5b5b5;
  262. color: #888888;
  263. width: 2rem;
  264. }
  265. .hud-bg {
  266. position: fixed;
  267. width: 100%;
  268. height: 100%;
  269. display: flex;
  270. align-items: center;
  271. justify-content: center;
  272. background-color: rgba(0, 0, 0, 0.6);
  273. top: 0px;
  274. left: 0px;
  275. z-index: 1000;
  276. }
  277. .hud-cont-box {
  278. background-color: #ffffff;
  279. border-radius: .3rem;
  280. padding: .5rem 0;
  281. display: flex;
  282. flex-direction: column;
  283. align-items: center;
  284. width: 84%
  285. }
  286. .driver-title {
  287. font-size: .5rem;
  288. font-weight: bold;
  289. color: #000000;
  290. margin: .2rem 0;
  291. }
  292. .driver-userInfo-box {
  293. display: flex;
  294. flex-direction: row;
  295. align-items: center;
  296. margin: .2rem 0;
  297. }
  298. .driver-userInfo-avatar {
  299. width: 1.6rem;
  300. height: 1.6rem;
  301. border-radius: 50%;
  302. }
  303. .driver-userInfo-name {
  304. font-size: .4rem;
  305. color: #333333;
  306. margin-left: .2rem;
  307. }
  308. .driver-contact-box {
  309. display: flex;
  310. flex-direction: column;
  311. /* align-items: center; */
  312. justify-content: center;
  313. margin: .2rem .2rem;
  314. }
  315. .driver-tel-box {
  316. display: flex;
  317. flex-direction: row;
  318. align-items: center;
  319. padding: .3rem .2rem;
  320. border-bottom: 1px solid #f1f1f1;
  321. }
  322. .driver-tel-text {
  323. font-size: .3rem;
  324. color: #666666;
  325. margin: 0 .2rem;
  326. }
  327. .driver-tel-tag {
  328. font-size: .25rem;
  329. color: #999999;
  330. }
  331. .driver-num-box {
  332. display: flex;
  333. flex-direction: row;
  334. align-items: center;
  335. padding: .3rem .2rem;
  336. border-bottom: 1px solid #f1f1f1;
  337. }
  338. .driver-num-text {
  339. font-size: .3rem;
  340. color: #666666;
  341. margin-left: .2rem;
  342. }
  343. .driver-close {
  344. height: 0.84rem;
  345. border-radius: 0.42rem;
  346. color: #ffffff;
  347. background-image: linear-gradient(#0099FF, #00B9FB);
  348. width: 3rem;
  349. margin: .3rem 0 .2rem 0;
  350. }
  351. .cancel-order-title {
  352. font-size: .35rem;
  353. color: #333333;
  354. margin: .2rem 0;
  355. }
  356. .cancel-order-btn-box {
  357. display: flex;
  358. flex-direction: row;
  359. justify-content: space-between;
  360. margin: .2rem .2rem;
  361. }
  362. .cancel-order-cancel {
  363. height: 0.74rem;
  364. border-radius: 0.37rem;
  365. border: 1px solid #009BFF;
  366. color: #009DFE;
  367. width: 2.5rem;
  368. }
  369. .cancel-order-sure {
  370. height: 0.8rem;
  371. border-radius: 0.4rem;
  372. color: #ffffff;
  373. background-image: linear-gradient(#0099FF, #00B9FB);
  374. border: 1px solid #00B9FB;
  375. width: 2.5rem;
  376. margin-left: .2rem;
  377. }
  378. .noOrder-box {
  379. margin: 2rem auto;
  380. display: flex;
  381. flex-direction: column;
  382. align-items: center;
  383. }
  384. .noOrder-img {
  385. width: 3.5rem;
  386. height: 3.5rem;
  387. }
  388. .noOrder-text {
  389. font-size: .35rem;
  390. color: #666666;
  391. margin-top: .2rem;
  392. }
  393. .pay-hud-bg {
  394. position: fixed;
  395. width: 100%;
  396. height: 100%;
  397. display: flex;
  398. align-items: center;
  399. justify-content: center;
  400. background-color: rgba(0, 0, 0, 0.6);
  401. top: 0px;
  402. left: 0px;
  403. z-index: 900;
  404. }
  405. .hud-pay-cont-box {
  406. display: flex;
  407. flex-direction: column;
  408. justify-content: flex-end;
  409. align-items: center;
  410. width: 100%;
  411. height: 100%;
  412. }
  413. .pay-hud-cancel-btn {
  414. width: 86%;
  415. margin-top: .2rem;
  416. margin-bottom: .4rem;
  417. background-color: #999999;
  418. color: #ffffff;
  419. border: 1px solid rgba(0, 0, 0, 0);
  420. border-radius: .2rem;
  421. height: .84rem;
  422. font-size: .32rem;
  423. }
  424. .pay-hud-pay-btn {
  425. width: 86%;
  426. margin: .2rem 0;
  427. background-image: linear-gradient(to right, #0099FF, #00B9FB);
  428. color: #ffffff;
  429. border: 1px solid rgba(0, 0, 0, 0);
  430. border-radius: .2rem;
  431. height: .84rem;
  432. font-size: .32rem;
  433. }
  434. .pay-hud-cont-box {
  435. width: 86%;
  436. margin: .2rem 0;
  437. background-color: #ffffff;
  438. border-radius: .3rem;
  439. padding: .4rem 0;
  440. display: flex;
  441. flex-direction: column;
  442. align-items: center;
  443. position: relative;
  444. }
  445. .pay-hud-cont-title {
  446. position: relative;
  447. font-size: .35rem;
  448. color: #333333;
  449. margin-top: .2rem;
  450. }
  451. .pay-hud-cont-downtime-box {
  452. position: relative;
  453. margin: .3rem;
  454. padding: .4rem 0;
  455. display: flex;
  456. flex-direction: column;
  457. align-items: center;
  458. border-radius: .15rem;
  459. background-color: #F4F5F6;
  460. width: 90%;
  461. }
  462. .pay-hud-cont-price-box {
  463. display: flex;
  464. align-items: flex-end;
  465. }
  466. .pay-hud-cont-price-tag {
  467. font-size: .3rem;
  468. color: #333333;
  469. }
  470. .pay-hud-cont-price-symbol {
  471. font-size: .28rem;
  472. color: #FB2200;
  473. }
  474. .pay-hud-cont-price-text {
  475. font-size: .35rem;
  476. color: #FB2200;
  477. }
  478. .pay-hud-cont-price-desc {
  479. font-size: .25rem;
  480. color: #888888;
  481. }
  482. .pay-hud-cont-pay-type-tag {
  483. font-size: .28rem;
  484. color: #999999;
  485. width: 90%;
  486. margin: .1rem 0;
  487. }
  488. .pay-hud-cont-pay-type-box {
  489. padding: .2rem 0;
  490. margin: 0 .3rem;
  491. display: flex;
  492. flex-direction: row;
  493. align-items: center;
  494. width: 90%;
  495. }
  496. .pay-hud-cont-pay-type-left {
  497. display: flex;
  498. flex-direction: row;
  499. align-items: center;
  500. flex: 1;
  501. }
  502. .pay-hud-cont-pay-type-text {
  503. margin-left: .2rem;
  504. font-size: .32rem;
  505. color: #333333;
  506. }
  507. </style>
  508. <body>
  509. <div id="app" style="background-color: #f5f5f5" v-cloak>
  510. <!-- 导航栏 -->
  511. <header class="aui-bar aui-bar-nav" id="aui-header" style="background-color:#ffffff !important;color: #333333">
  512. <div>
  513. <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span
  514. class="aui-iconfont aui-icon-left" style="color: #333333"></span> </a>
  515. <div class="aui-title" id="aui-title">
  516. 我的订单
  517. </div>
  518. <div class="nav-search-box aui-pull-right" v-on:click="onJumpToSearch">
  519. <img class="nav-search-img" src="./image/049.png" />
  520. <div class="nav-search-text">搜索</div>
  521. </div>
  522. </div>
  523. </header>
  524. <van-tabs v-model="active" @change="onTabChange" color="#009DFE" :before-change="beforeChange"
  525. swipe-threshold="6">
  526. <van-tab v-for="(title, index) in tabTitles" :key="index" type="line" :title="title">
  527. </van-tab>
  528. </van-tabs>
  529. <!-- 全部 -->
  530. <div class="box-main mescroll-touch-y mescroll" v-show="active === 0 && currentList.length > 0" id="mescroll0">
  531. <div class="card-main">
  532. <div class="card" id="orderList">
  533. <div class="card-list" v-for="(item, index) in currentList" :key="index">
  534. <!-- 订单号 状态 -->
  535. <div class="card-header">
  536. <div class="header-orderNum-box">
  537. <div class="header-orderNum">订单号 {{item.orderNum}}</div>
  538. <div class="header-offline" v-if="item.isOnline === 0">线下支付</div>
  539. </div>
  540. <div v-if="item.type === 1" class="header-orderStatus orderStatus-highlight">
  541. {{item.agentAuditStatusName}}</div>
  542. <div v-else class="header-orderStatus orderStatus-normal">{{item.agentAuditStatusName}}
  543. </div>
  544. </div>
  545. <!-- 商品信息 -->
  546. <div class="card-content" v-for="(cont, i) in item.bizOrderInfoDtoList"
  547. v-on:click="onOrderInfo(index)">
  548. <div class="content-box">
  549. <div class="content-info-left">
  550. <div class="content-img">
  551. <img src="image/cart_goods.png" style="width:2rem;height:2rem" />
  552. <img v-show="cont.isBk" class="content-bk-tag"
  553. src="image/icon_baokuancuxiao.png" />
  554. </div>
  555. <div class="content-goods-info">
  556. <div class="goods-info-title">{{cont.maktx}}</div>
  557. <div class="goods-info-size">{{cont.spec}} {{cont.pattern}}</div>
  558. </div>
  559. </div>
  560. <div class="content-info-right">
  561. <div class="goods-info-price-box">
  562. <div class="goods-info-price-tag">¥</div>
  563. <div class="goods-info-price-text">{{item.isOnline === 1 ? '299.00' : '0.00'}}
  564. </div>
  565. </div>
  566. <div class="goods-info-num">x2</div>
  567. </div>
  568. </div>
  569. </div>
  570. <!-- 根据不同状态,布局不同 -->
  571. <div class="card-footer" v-if="item.isOnline === 0">
  572. <div class="footer-cancel-box" v-if="item.type === 5 && item.cancelInfo != null">
  573. <div class="footer-cancel-tag">拒绝原因</div>
  574. <div class="footer-cancel-text">{{item.cancelInfo}}</div>
  575. </div>
  576. <div class="footer-offline-box">
  577. <div class="footer-btn-box" v-if="item.type === 1">
  578. <van-button class="list-btn-cancel" size="normal" @click="onCancelOrder(index)">取消订单
  579. </van-button>
  580. </div>
  581. <div class="footer-btn-box" v-if="item.type === 2 || item.type === 4">
  582. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  583. </van-button>
  584. </div>
  585. <div class="footer-btn-box" v-if="item.type === 3">
  586. <van-button size="normal" class="list-btn-driver" @click="onCheckDriver(index)">
  587. 查看司机信息
  588. </van-button>
  589. <van-button class="list-btn-normal" size="normal" style="margin-left: .2rem;"
  590. @click="onBuyAgain(index)">再次购买</van-button>
  591. </div>
  592. <div class="footer-btn-box" v-if="item.type === 5">
  593. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  594. </van-button>
  595. </div>
  596. </div>
  597. </div>
  598. <div v-else class="card-footer">
  599. <div class="footer-desc-box">
  600. <div class="footer-total-text">总价<div style="font-size: .21rem; margin-bottom: 1px;">¥
  601. </div>398.00,使用奖励<div style="font-size: .21rem; margin-bottom: 1px;">¥</div>00.00
  602. </div>
  603. <div class="footer-shifu-text">实付款 <div style="font-size: .21rem; margin-bottom: 1px;">¥
  604. </div>598.00</div>
  605. </div>
  606. <div class="footer-cancel-box" v-if="item.type === 5 && item.cancelInfo != null">
  607. <div class="footer-cancel-tag">拒绝原因</div>
  608. <div class="footer-cancel-text">{{item.cancelInfo}}</div>
  609. </div>
  610. <div class="footer-btn-box" v-if="item.type === 1">
  611. <van-button class="list-btn-cancel" size="normal" @click="onCancelOrder(index)">取消订单
  612. </van-button>
  613. <van-button class="list-btn-highlight" size="normal" style="margin-left: .2rem;"
  614. @click="onPayOrder(index)">去支付</van-button>
  615. </div>
  616. <div class="footer-btn-box" v-if="item.type === 2 || item.type === 4">
  617. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  618. </van-button>
  619. </div>
  620. <div class="footer-btn-box" v-if="item.type === 3">
  621. <van-button size="normal" class="list-btn-driver" @click="onCheckDriver(index)">查看司机信息
  622. </van-button>
  623. <van-button class="list-btn-normal" size="normal" style="margin-left: .2rem;"
  624. @click="onBuyAgain(index)">再次购买</van-button>
  625. </div>
  626. <div class="footer-btn-box" v-if="item.type === 5">
  627. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  628. </van-button>
  629. </div>
  630. </div>
  631. </div>
  632. <div class="placeholder-footer"></div>
  633. </div>
  634. </div>
  635. </div>
  636. <!-- 待支付 -->
  637. <div class="box-main mescroll-touch-y mescroll" v-show="active === 1 && currentList.length > 0" id="mescroll1">
  638. <div class="card-main">
  639. <div class="card" id="orderList">
  640. <div class="card-list" v-for="(item, index) in currentList" :key="index">
  641. <!-- 订单号 状态 -->
  642. <div class="card-header">
  643. <div class="header-orderNum-box">
  644. <div class="header-orderNum">订单号 {{item.orderNum}}</div>
  645. <div class="header-offline" v-if="item.isOnline === 0">线下支付</div>
  646. </div>
  647. <div v-if="item.type === 1" class="header-orderStatus orderStatus-highlight">
  648. {{item.agentAuditStatusName}}</div>
  649. <div v-else class="header-orderStatus orderStatus-normal">{{item.agentAuditStatusName}}
  650. </div>
  651. </div>
  652. <!-- 商品信息 -->
  653. <div class="card-content" v-for="(cont, i) in item.bizOrderInfoDtoList"
  654. v-on:click="onOrderInfo(index)">
  655. <div class="content-box">
  656. <div class="content-info-left">
  657. <div class="content-img">
  658. <img src="image/cart_goods.png" style="width:2rem;height:2rem" />
  659. <img v-show="cont.isBk" class="content-bk-tag"
  660. src="image/icon_baokuancuxiao.png" />
  661. </div>
  662. <div class="content-goods-info">
  663. <div class="goods-info-title">{{cont.maktx}}</div>
  664. <div class="goods-info-size">{{cont.spec}} {{cont.pattern}}</div>
  665. </div>
  666. </div>
  667. <div class="content-info-right">
  668. <div class="goods-info-price-box">
  669. <div class="goods-info-price-tag">¥</div>
  670. <div class="goods-info-price-text">{{item.isOnline === 1 ? '299.00' : '0.00'}}
  671. </div>
  672. </div>
  673. <div class="goods-info-num">x2</div>
  674. </div>
  675. </div>
  676. </div>
  677. <!-- 根据不同状态,布局不同 -->
  678. <div class="card-footer" v-if="item.isOnline === 0">
  679. <div class="footer-offline-box">
  680. <div class="footer-btn-box" v-if="item.type === 1">
  681. <van-button class="list-btn-cancel" size="normal" @click="onCancelOrder(index)">取消订单
  682. </van-button>
  683. </div>
  684. </div>
  685. </div>
  686. <div v-else class="card-footer">
  687. <div class="footer-desc-box">
  688. <div class="footer-total-text">总价<div style="font-size: .21rem; margin-bottom: 1px;">¥
  689. </div>398.00,使用奖励<div style="font-size: .21rem; margin-bottom: 1px;">¥</div>00.00
  690. </div>
  691. <div class="footer-shifu-text">实付款 <div style="font-size: .21rem; margin-bottom: 1px;">¥
  692. </div>598.00</div>
  693. </div>
  694. <div class="footer-btn-box" v-if="item.type === 1">
  695. <van-button class="list-btn-cancel" size="normal" @click="onCancelOrder(index)">取消订单
  696. </van-button>
  697. <van-button class="list-btn-highlight" size="normal" style="margin-left: .2rem;"
  698. @click="onPayOrder(index)">去支付</van-button>
  699. </div>
  700. </div>
  701. </div>
  702. <div class="placeholder-footer"></div>
  703. </div>
  704. </div>
  705. </div>
  706. <!-- 待确认 -->
  707. <div class="box-main mescroll-touch-y mescroll" v-show="active === 2 && currentList.length > 0" id="mescroll2">
  708. <div class="card-main">
  709. <div class="card" id="orderList">
  710. <div class="card-list" v-for="(item, index) in currentList" :key="index">
  711. <!-- 订单号 状态 -->
  712. <div class="card-header">
  713. <div class="header-orderNum-box">
  714. <div class="header-orderNum">订单号 {{item.orderNum}}</div>
  715. <div class="header-offline" v-if="item.isOnline === 0">线下支付</div>
  716. </div>
  717. <div v-if="item.type === 1" class="header-orderStatus orderStatus-highlight">
  718. {{item.agentAuditStatusName}}</div>
  719. <div v-else class="header-orderStatus orderStatus-normal">{{item.agentAuditStatusName}}
  720. </div>
  721. </div>
  722. <!-- 商品信息 -->
  723. <div class="card-content" v-for="(cont, i) in item.bizOrderInfoDtoList"
  724. v-on:click="onOrderInfo(index)">
  725. <div class="content-box">
  726. <div class="content-info-left">
  727. <div class="content-img">
  728. <img src="image/cart_goods.png" style="width:2rem;height:2rem" />
  729. <img v-show="cont.isBk" class="content-bk-tag"
  730. src="image/icon_baokuancuxiao.png" />
  731. </div>
  732. <div class="content-goods-info">
  733. <div class="goods-info-title">{{cont.maktx}}</div>
  734. <div class="goods-info-size">{{cont.spec}} {{cont.pattern}}</div>
  735. </div>
  736. </div>
  737. <div class="content-info-right">
  738. <div class="goods-info-price-box">
  739. <div class="goods-info-price-tag">¥</div>
  740. <div class="goods-info-price-text">{{item.isOnline === 1 ? '299.00' : '0.00'}}
  741. </div>
  742. </div>
  743. <div class="goods-info-num">x2</div>
  744. </div>
  745. </div>
  746. </div>
  747. <!-- 根据不同状态,布局不同 -->
  748. <div class="card-footer" v-if="item.isOnline === 0">
  749. <div class="footer-offline-box">
  750. <div class="footer-btn-box" v-if="item.type === 2">
  751. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  752. </van-button>
  753. </div>
  754. </div>
  755. </div>
  756. <div v-else class="card-footer">
  757. <div class="footer-desc-box">
  758. <div class="footer-total-text">总价<div style="font-size: .21rem; margin-bottom: 1px;">¥
  759. </div>398.00,使用奖励<div style="font-size: .21rem; margin-bottom: 1px;">¥</div>00.00
  760. </div>
  761. <div class="footer-shifu-text">实付款 <div style="font-size: .21rem; margin-bottom: 1px;">¥
  762. </div>598.00</div>
  763. </div>
  764. <div class="footer-btn-box" v-if="item.type === 2">
  765. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  766. </van-button>
  767. </div>
  768. </div>
  769. </div>
  770. <div class="placeholder-footer"></div>
  771. </div>
  772. </div>
  773. </div>
  774. <!-- 待收货 -->
  775. <div class="box-main mescroll-touch-y mescroll" v-show="active === 3 && currentList.length > 0" id="mescroll3">
  776. <div class="card-main">
  777. <div class="card" id="orderList">
  778. <div class="card-list" v-for="(item, index) in currentList" :key="index">
  779. <!-- 订单号 状态 -->
  780. <div class="card-header">
  781. <div class="header-orderNum-box">
  782. <div class="header-orderNum">订单号 {{item.orderNum}}</div>
  783. <div class="header-offline" v-if="item.isOnline === 0">线下支付</div>
  784. </div>
  785. <div v-if="item.type === 1" class="header-orderStatus orderStatus-highlight">
  786. {{item.agentAuditStatusName}}</div>
  787. <div v-else class="header-orderStatus orderStatus-normal">{{item.agentAuditStatusName}}
  788. </div>
  789. </div>
  790. <!-- 商品信息 -->
  791. <div class="card-content" v-for="(cont, i) in item.bizOrderInfoDtoList"
  792. v-on:click="onOrderInfo(index)">
  793. <div class="content-box">
  794. <div class="content-info-left">
  795. <div class="content-img">
  796. <img src="image/cart_goods.png" style="width:2rem;height:2rem" />
  797. <img v-show="cont.isBk" class="content-bk-tag"
  798. src="image/icon_baokuancuxiao.png" />
  799. </div>
  800. <div class="content-goods-info">
  801. <div class="goods-info-title">{{cont.maktx}}</div>
  802. <div class="goods-info-size">{{cont.spec}} {{cont.pattern}}</div>
  803. </div>
  804. </div>
  805. <div class="content-info-right">
  806. <div class="goods-info-price-box">
  807. <div class="goods-info-price-tag">¥</div>
  808. <div class="goods-info-price-text">{{item.isOnline === 1 ? '299.00' : '0.00'}}
  809. </div>
  810. </div>
  811. <div class="goods-info-num">x2</div>
  812. </div>
  813. </div>
  814. </div>
  815. <!-- 根据不同状态,布局不同 -->
  816. <div class="card-footer" v-if="item.isOnline === 0">
  817. <div class="footer-offline-box">
  818. <div class="footer-btn-box" v-if="item.type === 3">
  819. <van-button size="normal" class="list-btn-driver" @click="onCheckDriver(index)">
  820. 查看司机信息</van-button>
  821. <van-button class="list-btn-normal" size="normal" style="margin-left: .2rem;"
  822. @click="onBuyAgain(index)">再次购买</van-button>
  823. </div>
  824. </div>
  825. </div>
  826. <div v-else class="card-footer">
  827. <div class="footer-desc-box">
  828. <div class="footer-total-text">总价<div style="font-size: .21rem; margin-bottom: 1px;">¥
  829. </div>398.00,使用奖励<div style="font-size: .21rem; margin-bottom: 1px;">¥</div>00.00
  830. </div>
  831. <div class="footer-shifu-text">实付款 <div style="font-size: .21rem; margin-bottom: 1px;">¥
  832. </div>598.00</div>
  833. </div>
  834. <div class="footer-btn-box" v-if="item.type === 3">
  835. <van-button size="normal" class="list-btn-driver" @click="onCheckDriver(index)">查看司机信息
  836. </van-button>
  837. <van-button class="list-btn-normal" size="normal" style="margin-left: .2rem;"
  838. @click="onBuyAgain(index)">再次购买</van-button>
  839. </div>
  840. </div>
  841. </div>
  842. <div class="placeholder-footer"></div>
  843. </div>
  844. </div>
  845. </div>
  846. <!-- 已完成 -->
  847. <div class="box-main mescroll-touch-y mescroll" v-show="active === 4 && currentList.length > 0" id="mescroll4">
  848. <div class="card-main">
  849. <div class="card" id="orderList">
  850. <div class="card-list" v-for="(item, index) in currentList" :key="index">
  851. <!-- 订单号 状态 -->
  852. <div class="card-header">
  853. <div class="header-orderNum-box">
  854. <div class="header-orderNum">订单号 {{item.orderNum}}</div>
  855. <div class="header-offline" v-if="item.isOnline === 0">线下支付</div>
  856. </div>
  857. <div v-if="item.type === 1" class="header-orderStatus orderStatus-highlight">
  858. {{item.agentAuditStatusName}}</div>
  859. <div v-else class="header-orderStatus orderStatus-normal">{{item.agentAuditStatusName}}
  860. </div>
  861. </div>
  862. <!-- 商品信息 -->
  863. <div class="card-content" v-for="(cont, i) in item.bizOrderInfoDtoList"
  864. v-on:click="onOrderInfo(index)">
  865. <div class="content-box">
  866. <div class="content-info-left">
  867. <div class="content-img">
  868. <img src="image/cart_goods.png" style="width:2rem;height:2rem" />
  869. <img v-show="cont.isBk" class="content-bk-tag"
  870. src="image/icon_baokuancuxiao.png" />
  871. </div>
  872. <div class="content-goods-info">
  873. <div class="goods-info-title">{{cont.maktx}}</div>
  874. <div class="goods-info-size">{{cont.spec}} {{cont.pattern}}</div>
  875. </div>
  876. </div>
  877. <div class="content-info-right">
  878. <div class="goods-info-price-box">
  879. <div class="goods-info-price-tag">¥</div>
  880. <div class="goods-info-price-text">{{item.isOnline === 1 ? '299.00' : '0.00'}}
  881. </div>
  882. </div>
  883. <div class="goods-info-num">x2</div>
  884. </div>
  885. </div>
  886. </div>
  887. <!-- 根据不同状态,布局不同 -->
  888. <div class="card-footer" v-if="item.isOnline === 0">
  889. <div class="footer-offline-box">
  890. <div class="footer-btn-box" v-if="item.type === 4">
  891. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  892. </van-button>
  893. </div>
  894. </div>
  895. </div>
  896. <div v-else class="card-footer">
  897. <div class="footer-desc-box">
  898. <div class="footer-total-text">总价<div style="font-size: .21rem; margin-bottom: 1px;">¥
  899. </div>398.00,使用奖励<div style="font-size: .21rem; margin-bottom: 1px;">¥</div>00.00
  900. </div>
  901. <div class="footer-shifu-text">实付款 <div style="font-size: .21rem; margin-bottom: 1px;">¥
  902. </div>598.00</div>
  903. </div>
  904. <div class="footer-btn-box" v-if="item.type === 4">
  905. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  906. </van-button>
  907. </div>
  908. </div>
  909. </div>
  910. <div class="placeholder-footer"></div>
  911. </div>
  912. </div>
  913. </div>
  914. <!-- 已取消 -->
  915. <div class="box-main mescroll-touch-y mescroll" v-if="active === 5 && currentList.length > 0" id="mescroll5">
  916. <div class="card-main">
  917. <div class="card" id="orderList">
  918. <div class="card-list" v-for="(item, index) in currentList" :key="index">
  919. <!-- 订单号 状态 -->
  920. <div class="card-header">
  921. <div class="header-orderNum-box">
  922. <div class="header-orderNum">订单号 {{item.orderNum}}</div>
  923. <div class="header-offline" v-if="item.isOnline === 0">线下支付</div>
  924. </div>
  925. <div v-if="item.type === 1" class="header-orderStatus orderStatus-highlight">
  926. {{item.agentAuditStatusName}}</div>
  927. <div v-else class="header-orderStatus orderStatus-normal">{{item.agentAuditStatusName}}
  928. </div>
  929. </div>
  930. <!-- 商品信息 -->
  931. <div class="card-content" v-for="(cont, i) in item.bizOrderInfoDtoList"
  932. v-on:click="onOrderInfo(index)">
  933. <div class="content-box">
  934. <div class="content-info-left">
  935. <div class="content-img">
  936. <img src="image/cart_goods.png" style="width:2rem;height:2rem" />
  937. <img v-show="cont.isBk" class="content-bk-tag"
  938. src="image/icon_baokuancuxiao.png" />
  939. </div>
  940. <div class="content-goods-info">
  941. <div class="goods-info-title">{{cont.maktx}}</div>
  942. <div class="goods-info-size">{{cont.spec}} {{cont.pattern}}</div>
  943. </div>
  944. </div>
  945. <div class="content-info-right">
  946. <div class="goods-info-price-box">
  947. <div class="goods-info-price-tag">¥</div>
  948. <div class="goods-info-price-text">{{item.isOnline === 1 ? '299.00' : '0.00'}}
  949. </div>
  950. </div>
  951. <div class="goods-info-num">x2</div>
  952. </div>
  953. </div>
  954. </div>
  955. <!-- 根据不同状态,布局不同 -->
  956. <div class="card-footer" v-if="item.isOnline === 0">
  957. <div class="footer-cancel-box" v-if="item.type === 5 && item.cancelInfo != null">
  958. <div class="footer-cancel-tag">拒绝原因</div>
  959. <div class="footer-cancel-text">{{item.cancelInfo}}</div>
  960. </div>
  961. <div class="footer-offline-box">
  962. <div class="footer-btn-box" v-if="item.type === 5">
  963. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  964. </van-button>
  965. </div>
  966. </div>
  967. </div>
  968. <div v-else class="card-footer">
  969. <div class="footer-desc-box">
  970. <div class="footer-total-text">总价<div style="font-size: .21rem; margin-bottom: 1px;">¥
  971. </div>398.00,使用奖励<div style="font-size: .21rem; margin-bottom: 1px;">¥</div>00.00
  972. </div>
  973. <div class="footer-shifu-text">实付款 <div style="font-size: .21rem; margin-bottom: 1px;">¥
  974. </div>598.00</div>
  975. </div>
  976. <div class="footer-cancel-box" v-if="item.type === 5 && item.cancelInfo != null">
  977. <div class="footer-cancel-tag">拒绝原因</div>
  978. <div class="footer-cancel-text">{{item.cancelInfo}}</div>
  979. </div>
  980. <div class="footer-btn-box" v-if="item.type === 5">
  981. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  982. </van-button>
  983. </div>
  984. </div>
  985. </div>
  986. <div class="placeholder-footer"></div>
  987. </div>
  988. </div>
  989. </div>
  990. <div class="noOrder-box" v-show="currentList.length == 0" style="text-align:center">
  991. <img class="noOrder-img" src="./image/noOrder.png" />
  992. <div class="noOrder-text">您还没有相关订单</div>
  993. </div>
  994. <div class="hud-bg" v-if="isHudBgShow">
  995. <!-- 查看司机信息 -->
  996. <div class="hud-cont-box" v-if="isHudDriverShow">
  997. <div class="driver-title">司机信息</div>
  998. <div class="driver-userInfo-box">
  999. <img class="driver-userInfo-avatar" src="./image/siji_avatar_default.png" />
  1000. <div class="driver-userInfo-name">流川枫</div>
  1001. </div>
  1002. <div class="driver-contact-box">
  1003. <div class="driver-tel-box" v-on:click="onDialNumber">
  1004. <div style="width:28px; height: 26px; display: flex; justify-content: center; align-items: center;">
  1005. <img style="width: 21px; height: 26px;" src="./image/shouji.png" />
  1006. </div>
  1007. <div class="driver-tel-text">13000000000</div>
  1008. <div class="driver-tel-tag">点击拨打电话</div>
  1009. </div>
  1010. <div class="driver-num-box">
  1011. <div style="width:28px; height: 26px; display: flex; justify-content: center; align-items: center;">
  1012. <img style="width: 28px; height: 23px;" src="./image/chepai.png" />
  1013. </div>
  1014. <div class="driver-num-text">鲁B12345</div>
  1015. </div>
  1016. </div>
  1017. <van-button class="driver-close" size="normal" @click="onClickCloseDriverHud">关闭</van-button>
  1018. </div>
  1019. <!-- 取消订单 -->
  1020. <div class="hud-cont-box" v-if="isHudCancelOrderShow">
  1021. <div class="cancel-order-title">确定要取消订单?</div>
  1022. <div class="cancel-order-btn-box">
  1023. <van-button class="cancel-order-cancel" @click="onClickCancelAlert(1)" size="normal">取消</van-button>
  1024. <van-button class="cancel-order-sure" @click="onClickCancelAlert(2)" size="normal">确定</van-button>
  1025. </div>
  1026. </div>
  1027. <!-- 取消支付 -->
  1028. <div class="hud-cont-box" v-if="isHudCancelPayShow">
  1029. <div class="cancel-order-title">确定要放弃付款吗?</div>
  1030. <div class="cancel-order-btn-box">
  1031. <van-button class="cancel-order-cancel" @click="onClickCancelPayAlert(1)" size="normal">放弃
  1032. </van-button>
  1033. <van-button class="cancel-order-sure" @click="onClickCancelPayAlert(2)" size="normal">继续付款
  1034. </van-button>
  1035. </div>
  1036. </div>
  1037. </div>
  1038. <div class="pay-hud-bg" v-if="isHudPayBgShow">
  1039. <!-- 支付 -->
  1040. <div class="hud-pay-cont-box" v-if="isHudPayShow">
  1041. <div class="pay-hud-cont-box">
  1042. <div style="width: 24px; height: 24px; position: absolute; top: .3rem; left: .3rem;"
  1043. v-on:click="onClosePayAlert">
  1044. <img style="width: 100%; height: 100%" src="./image/icon_close.png" />
  1045. </div>
  1046. <div class="pay-hud-cont-title">收款方:工厂自营店</div>
  1047. <div class="pay-hud-cont-downtime-box">
  1048. <div class="pay-hud-cont-price-box">
  1049. <div class="pay-hud-cont-price-tag">金额:</div>
  1050. <div class="pay-hud-cont-price-symbol">¥</div>
  1051. <div class="pay-hud-cont-price-text">240.00</div>
  1052. </div>
  1053. <div class="pay-hud-cont-price-desc">请在0小时30分内完成支付</div>
  1054. </div>
  1055. <div class="pay-hud-cont-pay-type-tag">请选择支付方式</div>
  1056. <div class="pay-hud-cont-pay-type-box">
  1057. <div class="pay-hud-cont-pay-type-left">
  1058. <div style="width: 35px; height: 35px">
  1059. <img style="width: 100%; height: 100%" src="./image/icon_pay_alipay.png" />
  1060. </div>
  1061. <div class="pay-hud-cont-pay-type-text">支付宝</div>
  1062. </div>
  1063. <van-checkbox v-model="alipayChecked" icon-size="24px" @click="onChoosePayType(1)">
  1064. </van-checkbox>
  1065. </div>
  1066. <div class="pay-hud-cont-pay-type-box">
  1067. <div class="pay-hud-cont-pay-type-left">
  1068. <div style="width: 35px; height: 32px">
  1069. <img style="width: 100%; height: 100%" src="./image/icon_pay_wechat.png" />
  1070. </div>
  1071. <div class="pay-hud-cont-pay-type-text">微信支付</div>
  1072. </div>
  1073. <van-checkbox v-model="wechatChecked" icon-size="24px" @click="onChoosePayType(2)">
  1074. </van-checkbox>
  1075. </div>
  1076. <div class="pay-hud-cont-pay-type-box">
  1077. <div class="pay-hud-cont-pay-type-left">
  1078. <div style="width: 35px; height: 35px">
  1079. <img style="width: 100%; height: 100%" src="./image/icon_pay_shanfu.png" />
  1080. </div>
  1081. <div class="pay-hud-cont-pay-type-text">云闪付</div>
  1082. </div>
  1083. <van-checkbox v-model="shanfuChecked" icon-size="24px" @click="onChoosePayType(3)">
  1084. </van-checkbox>
  1085. </div>
  1086. </div>
  1087. <van-button class="pay-hud-pay-btn" @click="onClickPayCancelPay(1)">支付</van-button>
  1088. <van-button class="pay-hud-cancel-btn" @click="onClickPayCancelPay(2)">取消</van-button>
  1089. </div>
  1090. </div>
  1091. </div>
  1092. </body>
  1093. <link rel="stylesheet" href="./mescroll/mescroll.min.css">
  1094. <script type="text/javascript" src="./js/qrcode.min.js"></script>
  1095. <script type="text/javascript" src="../script/aui-scroll.js"></script>
  1096. <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
  1097. <script type="text/javascript" src="../script/api.js"></script>
  1098. <script type="text/javascript" src="../script/httpRequest.js"></script>
  1099. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  1100. <script type="text/javascript">
  1101. function closeWin() {
  1102. api.closeWin({});
  1103. }
  1104. apiready = function () {
  1105. api.parseTapmode();
  1106. var header = $api.byId('aui-header');
  1107. $api.fixStatusBar(header);
  1108. // var headerPos = $api.offset(header);
  1109. // var body_h = $api.offset($api.dom('body')).h;
  1110. // api.openFrame({
  1111. // name: 'myOrderList_body',
  1112. // url: 'myOrderList_body.html',
  1113. // bounces: false,
  1114. // vScrollBarEnabled: false,
  1115. // hScrollBarEnabled: false,
  1116. // rect: {
  1117. // x: 0,
  1118. // y: headerPos.h,
  1119. // w: 'auto',
  1120. // h: 'auto'
  1121. // },
  1122. // bgColor: '#f5f5f5',
  1123. // });
  1124. new Vue({
  1125. el: '#app',
  1126. data: {
  1127. active: 0,
  1128. tabTitles: ['全部', '待支付', '待确认', '待收货', '已完成', '已取消'],
  1129. list: [
  1130. [
  1131. {
  1132. type: 4,
  1133. orderNum: '202103021045545730',
  1134. agentAuditStatusName: '已完成',
  1135. isOnline: 1,
  1136. id: 0,
  1137. bizOrderInfoDtoList: [{
  1138. maktx: '195/65R15 91V SH56 BGSL',
  1139. spec: '195/65R15',
  1140. pattern: 'SH56',
  1141. isBk: false,
  1142. }],
  1143. }, {
  1144. type: 1,
  1145. orderNum: '202103021045545730',
  1146. agentAuditStatusName: '等待付款',
  1147. isOnline: 1,
  1148. id: 1,
  1149. bizOrderInfoDtoList: [{
  1150. maktx: '195/65R15 91V SH56 BGSL',
  1151. spec: '195/65R15',
  1152. pattern: 'SH56',
  1153. isBk: false,
  1154. }],
  1155. }, {
  1156. type: 2,
  1157. orderNum: '202103021045545730',
  1158. agentAuditStatusName: '待入库',
  1159. isOnline: 1,
  1160. id: 1,
  1161. bizOrderInfoDtoList: [{
  1162. maktx: '195/65R15 91V SH56 BGSL',
  1163. spec: '195/65R15',
  1164. pattern: 'SH56',
  1165. isBk: true,
  1166. }, {
  1167. maktx: '195/65R15 91V SH56 BGSL',
  1168. spec: '195/65R15',
  1169. pattern: 'SH56',
  1170. isBk: true,
  1171. }],
  1172. }, {
  1173. type: 3,
  1174. orderNum: '202103021045545730',
  1175. agentAuditStatusName: '入库中',
  1176. isOnline: 0,
  1177. id: 2,
  1178. bizOrderInfoDtoList: [{
  1179. maktx: '195/65R15 91V SH56 BGSL',
  1180. spec: '195/65R15',
  1181. pattern: 'SH56'
  1182. }],
  1183. }, {
  1184. type: 5,
  1185. orderNum: '202103021045545730',
  1186. agentAuditStatusName: '已取消',
  1187. isOnline: 1,
  1188. id: 3,
  1189. cancelInfo: '因代理商库存不足,此订单已被驳回~',
  1190. bizOrderInfoDtoList: [{
  1191. maktx: '195/65R15 91V SH56 BGSL',
  1192. spec: '195/65R15',
  1193. pattern: 'SH56',
  1194. isBk: true,
  1195. }],
  1196. }, {
  1197. type: 2,
  1198. orderNum: '202103021045545730',
  1199. agentAuditStatusName: '等待付款',
  1200. isOnline: 0,
  1201. id: 4,
  1202. bizOrderInfoDtoList: [{
  1203. maktx: '195/65R15 91V SH56 BGSL',
  1204. spec: '195/65R15',
  1205. pattern: 'SH56'
  1206. }],
  1207. }
  1208. ], [
  1209. // {
  1210. // type: 1,
  1211. // orderNum: '202103021045545730',
  1212. // agentAuditStatusName: '等待付款',
  1213. // isOnline: 1,
  1214. // id: '1345687',
  1215. // bizOrderInfoDtoList: [{
  1216. // maktx: '195/65R15 91V SH56 BGSL',
  1217. // spec: '195/65R15',
  1218. // pattern: 'SH56'
  1219. // }],
  1220. // }, {
  1221. // type: 1,
  1222. // orderNum: '202103021045545730',
  1223. // agentAuditStatusName: '等待付款',
  1224. // isOnline: 1,
  1225. // id: '1345643',
  1226. // bizOrderInfoDtoList: [{
  1227. // maktx: '195/65R15 91V SH56 BGSL',
  1228. // spec: '195/65R15',
  1229. // pattern: 'SH56'
  1230. // }],
  1231. // }
  1232. ], [
  1233. {
  1234. type: 2,
  1235. orderNum: '202103021045545730',
  1236. agentAuditStatusName: '等待确认',
  1237. isOnline: 1,
  1238. id: 3,
  1239. bizOrderInfoDtoList: [{
  1240. maktx: '195/65R15 91V SH56 BGSL',
  1241. spec: '195/65R15',
  1242. pattern: 'SH56'
  1243. }],
  1244. }, {
  1245. type: 2,
  1246. orderNum: '202103021045545730',
  1247. agentAuditStatusName: '等待确认',
  1248. isOnline: 0,
  1249. id: 4,
  1250. bizOrderInfoDtoList: [{
  1251. maktx: '195/65R15 91V SH56 BGSL',
  1252. spec: '195/65R15',
  1253. pattern: 'SH56'
  1254. }],
  1255. }, {
  1256. type: 2,
  1257. orderNum: '202103021045545730',
  1258. agentAuditStatusName: '等待处理',
  1259. isOnline: 0,
  1260. id: 3,
  1261. bizOrderInfoDtoList: [{
  1262. maktx: '195/65R15 91V SH56 BGSL',
  1263. spec: '195/65R15',
  1264. pattern: 'SH56'
  1265. }],
  1266. }
  1267. ], [
  1268. {
  1269. type: 3,
  1270. orderNum: '202103021045545730',
  1271. agentAuditStatusName: '已入库',
  1272. isOnline: 1,
  1273. id: 5,
  1274. bizOrderInfoDtoList: [{
  1275. maktx: '195/65R15 91V SH56 BGSL',
  1276. spec: '195/65R15',
  1277. pattern: 'SH56'
  1278. }, {
  1279. maktx: '195/65R15 91V SH56 BGSL',
  1280. spec: '195/65R15',
  1281. pattern: 'SH56'
  1282. }],
  1283. }, {
  1284. type: 3,
  1285. orderNum: '202103021045545730',
  1286. agentAuditStatusName: '入库中',
  1287. isOnline: 0,
  1288. id: 5,
  1289. bizOrderInfoDtoList: [{
  1290. maktx: '195/65R15 91V SH56 BGSL',
  1291. spec: '195/65R15',
  1292. pattern: 'SH56'
  1293. }, {
  1294. maktx: '195/65R15 91V SH56 BGSL',
  1295. spec: '195/65R15',
  1296. pattern: 'SH56'
  1297. }],
  1298. }
  1299. ], [
  1300. {
  1301. type: 4,
  1302. orderNum: '202103021045545730',
  1303. agentAuditStatusName: '已完成',
  1304. isOnline: 1,
  1305. id: 6,
  1306. bizOrderInfoDtoList: [{
  1307. maktx: '195/65R15 91V SH56 BGSL',
  1308. spec: '195/65R15',
  1309. pattern: 'SH56'
  1310. }],
  1311. }, {
  1312. type: 4,
  1313. orderNum: '202103021045545730',
  1314. agentAuditStatusName: '已完成',
  1315. isOnline: 0,
  1316. id: 6,
  1317. bizOrderInfoDtoList: [{
  1318. maktx: '195/65R15 91V SH56 BGSL',
  1319. spec: '195/65R15',
  1320. pattern: 'SH56'
  1321. }],
  1322. }
  1323. ], [
  1324. {
  1325. type: 5,
  1326. orderNum: '202103021045545730',
  1327. agentAuditStatusName: '已取消',
  1328. isOnline: 1,
  1329. id: 7,
  1330. cancelInfo: null,
  1331. bizOrderInfoDtoList: [{
  1332. maktx: '195/65R15 91V SH56 BGSL',
  1333. spec: '195/65R15',
  1334. pattern: 'SH56',
  1335. }],
  1336. }, {
  1337. type: 5,
  1338. orderNum: '202103021045545730',
  1339. agentAuditStatusName: '代理商拒绝',
  1340. isOnline: 0,
  1341. id: 7,
  1342. cancelInfo: '因代理商库存不足,此订单已被订单驳回~',
  1343. bizOrderInfoDtoList: [{
  1344. maktx: '195/65R15 91V SH56 BGSL',
  1345. spec: '195/65R15',
  1346. pattern: 'SH56',
  1347. }],
  1348. }
  1349. ]
  1350. ], // 测试数据
  1351. loading: false,
  1352. finished: false,
  1353. refreshing: false,
  1354. pages: [1, 1, 1, 1, 1, 1],
  1355. totalPages: [1, 1, 1, 1, 1, 1],
  1356. getOrdersU: 'getOrderListU',
  1357. currentList: [],
  1358. size: 10,
  1359. isHudBgShow: false,
  1360. isHudDriverShow: false,
  1361. isHudCancelOrderShow: false,
  1362. isHudCancelPayShow: false,
  1363. isHudPayBgShow: false,
  1364. isHudPayShow: false,
  1365. alipayChecked: false,
  1366. wechatChecked: false,
  1367. shanfuChecked: false,
  1368. },
  1369. methods: {
  1370. init: function () {
  1371. var _this = this;
  1372. this.userId = $api.getStorage('userid');
  1373. this.currentList = this.list[this.active];
  1374. this.getOrderList();
  1375. this.configDownAndPull('mescroll' + this.active, function (mescroll) {
  1376. _this.pages[_this.active] = 1;
  1377. _this.getOrderList(mescroll);
  1378. }, function (mescroll) {
  1379. if (_this.pages[_this.active] < _this.totalPages[_this.active]) {
  1380. _this.pages[_this.active] = _this.pages[_this.active] + 1;
  1381. _this.getOrderList(mescroll, 1);
  1382. } else {
  1383. mescroll.endSuccess(_this.size, false);
  1384. }
  1385. });
  1386. },
  1387. // 跳转到搜索页面
  1388. onJumpToSearch: function () {
  1389. this.goWin('orderSearch', 'orderSearch.html');
  1390. },
  1391. // 获取订单列表
  1392. getOrderList: function (mescroll) {
  1393. var data = {
  1394. "retailerId": this.userId,
  1395. "size": this.size,
  1396. "current": this.pages[this.active],
  1397. "url": "json",
  1398. "type": "body",
  1399. }
  1400. _this = this;
  1401. url = this.getOrdersU;
  1402. this.$post(url, data, function (ret) {
  1403. if (ret.code == 0 || ret.code == '0') {
  1404. console.log(JSON.stringify(ret.data));
  1405. // _this.totalPages[_this.active] = ret.data.pages;
  1406. // _this.list[_this.active] = _this.pages[_this.active] == 1 ? ret.data.records : _this.list[_this.active].concat(ret.data.records);
  1407. _this.currentList = _this.list[_this.active];
  1408. if (mescroll) {
  1409. mescroll.endSuccess(_this.size, true);
  1410. }
  1411. }
  1412. });
  1413. },
  1414. // 切换tab
  1415. onTabChange: function (name, title) {
  1416. this.currentList = this.list[this.active];
  1417. },
  1418. // tab切换拦截
  1419. beforeChange: function (index) {
  1420. console.log(index);
  1421. return true;
  1422. },
  1423. // 查看订单详情
  1424. onOrderInfo: function (index) {
  1425. this.goWin('myOrderInfo', 'myOrderInfo_win.html', {
  1426. id: this.currentList[index].id,
  1427. });
  1428. },
  1429. // 取消订单
  1430. onCancelOrder: function (index) {
  1431. _this = this;
  1432. this.isHudCancelOrderShow = true;
  1433. this.isHudBgShow = true;
  1434. },
  1435. // 去支付
  1436. onPayOrder: function (index) {
  1437. this.isHudPayShow = true;
  1438. this.isHudPayBgShow = true;
  1439. },
  1440. // 再次购买
  1441. onBuyAgain: function (index) {
  1442. this.goWin("product", "product.html");
  1443. },
  1444. // 查看司机信息
  1445. onCheckDriver: function (index) {
  1446. this.isHudDriverShow = true;
  1447. this.isHudBgShow = true;
  1448. },
  1449. // 下拉刷新
  1450. onRefresh: function () {
  1451. // 清空列表数据
  1452. this.finished = false;
  1453. // 重新加载数据
  1454. // 将 loading 设置为 true,表示处于加载状态
  1455. this.loading = true;
  1456. this.getOrderList();
  1457. },
  1458. // 关闭司机信息提示框
  1459. onClickCloseDriverHud: function () {
  1460. this.isHudDriverShow = false;
  1461. this.isHudBgShow = false;
  1462. },
  1463. // 拨打司机电话
  1464. onDialNumber: function () {
  1465. console.log('拨打电话');
  1466. api.call({
  1467. type: 'tel_prompt',
  1468. number: '10086'
  1469. });
  1470. },
  1471. // 点击取消订单alert按钮 1 取消(关闭alert) 2 确定
  1472. onClickCancelAlert: function (index) {
  1473. if (index === 1) { // 取消按钮
  1474. this.isHudCancelOrderShow = false;
  1475. this.isHudBgShow = false;
  1476. }
  1477. if (index === 2) { // 确定按钮
  1478. // TODO 网络请求
  1479. this.isHudCancelOrderShow = false;
  1480. this.isHudBgShow = false;
  1481. }
  1482. },
  1483. // 点击取消支付
  1484. onClickPayCancelPay: function (index) {
  1485. if (index === 1) {
  1486. // 支付
  1487. }
  1488. if (index === 2) {
  1489. // 取消支付
  1490. this.isHudCancelPayShow = true;
  1491. this.isHudBgShow = true;
  1492. }
  1493. },
  1494. // 点击左上角关闭 取消支付
  1495. onClosePayAlert: function () {
  1496. this.isHudCancelPayShow = true;
  1497. this.isHudBgShow = true;
  1498. },
  1499. // 点击支付方式
  1500. onChoosePayType: function (type) {
  1501. // this.alipayChecked = this.wechatChecked = this.shanfuChecked = false;
  1502. // if (type == 1) { // 支付宝
  1503. // this.alipayChecked = true;
  1504. // } else if (type == 2) { // 微信支付
  1505. // this.wechatChecked = true;
  1506. // } else if (type == 3) { // 云闪付
  1507. // this.shanfuChecked = true;
  1508. // }
  1509. },
  1510. // 取消付款确认框
  1511. onClickCancelPayAlert: function (index) {
  1512. // 1: 放弃;2:继续付款
  1513. if (index == 1) {
  1514. this.isHudCancelPayShow = false;
  1515. this.isHudBgShow = false;
  1516. this.isHudPayShow = false;
  1517. this.isHudPayBgShow = false;
  1518. } else if (index == 2) {
  1519. this.isHudCancelPayShow = false;
  1520. this.isHudBgShow = false;
  1521. }
  1522. },
  1523. },
  1524. mounted: function () {
  1525. this.init();
  1526. }
  1527. });
  1528. };
  1529. </script>
  1530. </html>