orderSearch.html 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300
  1. <!DOCTYPE html>
  2. <html class="">
  3. <!--STATUS OK-->
  4. <head>
  5. <meta name="referrer" content="always" />
  6. <meta charset='utf-8' />
  7. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="x-dns-prefetch-control" content="on">
  9. <meta name="description" content="">
  10. <meta name="format-detection" content="telephone=no" />
  11. <!-- <link rel="stylesheet" type="text/css" href="css/vant-ui.css" /> -->
  12. <link rel="stylesheet" type="text/css" href="../css/api.css" />
  13. <link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
  14. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.12/lib/index.css" />
  15. <link rel="stylesheet" type="text/css" href="css/iconfont.css">
  16. <link rel="stylesheet" type="text/css" href="css/main.css" />
  17. <script src="js/vue.js"></script>
  18. <!-- <script src="js/vant-ui.js"></script> -->
  19. <script src="https://cdn.jsdelivr.net/npm/vant@2.12/lib/vant.min.js"></script>
  20. <script src="js/main.js"></script>
  21. <link rel="stylesheet" href="./mescroll/mescroll.min.css">
  22. <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
  23. <title></title>
  24. </head>
  25. <style>
  26. .nav-search-box {
  27. height: 30px;
  28. border-radius: 15px;
  29. display: flex;
  30. justify-items: center;
  31. align-items: center;
  32. background-image: linear-gradient(to right, #00B9FB, #0099FF);
  33. }
  34. .nav-search-text {
  35. font-size: 13px;
  36. color: #ffffff;
  37. margin-left: 15px;
  38. margin-right: 5px;
  39. }
  40. .nav-search-input {
  41. margin-top: -10px;
  42. }
  43. .unsearch-box {
  44. width: 100%;
  45. height: auto;
  46. display: flex;
  47. flex-direction: column;
  48. }
  49. .history-box {
  50. width: 100%;
  51. background-color: #FFFFFF;
  52. padding: .2rem 0;
  53. display: flex;
  54. flex-direction: column;
  55. }
  56. .history-title-box {
  57. margin: 0 .2rem;
  58. display: flex;
  59. flex-direction: row;
  60. position: relative;
  61. align-items: center;
  62. }
  63. .history-title {
  64. font-size: .3rem;
  65. color: #333333;
  66. flex: 1;
  67. }
  68. .history-delete-img-box {
  69. width: .35rem;
  70. height: .35rem;
  71. }
  72. .history-items-box {
  73. margin: 0 .2rem;
  74. display: flex;
  75. flex-wrap: wrap;
  76. padding: .1rem 0;
  77. white-space: wrap;
  78. }
  79. .history-item {
  80. height: 30px;
  81. border-radius: 15px;
  82. display: flex;
  83. justify-items: center;
  84. align-items: center;
  85. background-color: #F4F5F6;
  86. margin: .15rem;
  87. }
  88. .history-item-text {
  89. font-size: .28rem;
  90. color: #666666;
  91. padding: 0 .2rem;
  92. white-space: nowrap;
  93. }
  94. .bk-box {
  95. width: 100%;
  96. padding: .2rem 0;
  97. display: flex;
  98. flex-direction: column;
  99. }
  100. .bk-title-box {
  101. margin: 0 .2rem;
  102. display: flex;
  103. flex-direction: row;
  104. position: relative;
  105. align-items: center;
  106. }
  107. .bk-title-left-box {
  108. flex: 1;
  109. }
  110. .bk-title-img {
  111. width: 79px;
  112. height: 20px;
  113. }
  114. .bk-more {
  115. font-size: .25rem;
  116. color: #999999;
  117. }
  118. .bk-goods-bg-box {
  119. margin: 0 .2rem;
  120. display: flex;
  121. flex-direction: row;
  122. justify-content: space-between;
  123. }
  124. .bk-goods-box {
  125. width: 32%;
  126. border-radius: .1rem;
  127. background-color: #ffffff;
  128. display: flex;
  129. flex-direction: column;
  130. justify-content: center;
  131. }
  132. .bk-goods-img-box {
  133. width: 100%;
  134. position: relative;
  135. }
  136. .bk-goods-title {
  137. margin: .1rem;
  138. font-size: .21rem;
  139. }
  140. .box-main {
  141. position: relative;
  142. }
  143. .card {
  144. display: flex;
  145. justify-content: center;
  146. align-items: center;
  147. flex-direction: column;
  148. }
  149. .card-list {
  150. width: 100%;
  151. background-color: #fff;
  152. display: flex;
  153. flex-direction: column;
  154. margin-top: .2rem;
  155. width: 7rem;
  156. border-radius: .2rem;
  157. }
  158. .card-header {
  159. display: flex;
  160. flex-direction: row;
  161. justify-content: space-between;
  162. align-items: center;
  163. border-bottom: 1px solid #F1F1F1;
  164. margin: 0 .2rem;
  165. padding: .3rem 0;
  166. }
  167. .header-orderNum-box {
  168. display: flex;
  169. flex-direction: row;
  170. align-items: center;
  171. }
  172. .header-orderNum {
  173. font-size: .25rem;
  174. color: #333333;
  175. }
  176. .header-offline {
  177. font-size: .23rem;
  178. height: .32rem;
  179. ;
  180. border-radius: .16rem;
  181. padding: 0 .1rem;
  182. display: flex;
  183. align-items: center;
  184. border: 1px solid #A0CFFF;
  185. color: #4EB8FF;
  186. background-color: #F4FDFF;
  187. margin-left: .1rem;
  188. }
  189. .header-orderStatus {
  190. font-size: .3rem;
  191. }
  192. .orderStatus-normal {
  193. color: #999999;
  194. }
  195. .orderStatus-highlight {
  196. color: #F92500;
  197. }
  198. .card-footer {
  199. display: flex;
  200. flex-direction: column;
  201. margin: 0 .2rem;
  202. padding: .3rem 0;
  203. }
  204. .footer-desc-box {
  205. display: flex;
  206. flex-direction: row;
  207. justify-content: flex-end;
  208. margin-bottom: .2rem;
  209. }
  210. .footer-total-text {
  211. font-size: .28rem;
  212. color: #A9A9A9;
  213. display: flex;
  214. align-items: flex-end;
  215. }
  216. .footer-shifu-text {
  217. font-size: .28rem;
  218. color: #333333;
  219. margin-left: 2px;
  220. display: flex;
  221. align-items: flex-end;
  222. }
  223. .footer-cancel-box {
  224. width: 100%;
  225. height: 0.75rem;
  226. border-radius: 0.375rem;
  227. background-color: #F4F5F6;
  228. padding: 0 .3rem;
  229. display: flex;
  230. flex-direction: row;
  231. align-items: center;
  232. margin-bottom: .2rem;
  233. }
  234. .footer-cancel-tag {
  235. font-size: .23rem;
  236. color: #333333;
  237. margin-right: .15rem;
  238. }
  239. .footer-cancel-text {
  240. font-size: .23rem;
  241. color: #666666;
  242. }
  243. .footer-offline-box {
  244. display: flex;
  245. flex-direction: row;
  246. align-items: center;
  247. }
  248. .footer-btn-box {
  249. display: flex;
  250. flex: 1;
  251. flex-direction: row;
  252. justify-content: flex-end;
  253. }
  254. .footer-offline-text {
  255. font-size: .3rem;
  256. color: #A9A9A9;
  257. }
  258. .card-content {
  259. display: flex;
  260. flex-direction: column;
  261. margin: 0 .2rem;
  262. padding: .2rem 0;
  263. }
  264. .content-box {
  265. display: flex;
  266. flex-direction: row;
  267. justify-content: space-between;
  268. }
  269. .content-info-left {
  270. display: flex;
  271. flex-direction: row;
  272. }
  273. .content-img {
  274. position: relative;
  275. border-radius: .2rem;
  276. }
  277. .content-bk-tag {
  278. width: 41px;
  279. height: 13px;
  280. position: absolute;
  281. top: 0px;
  282. right: 0px;
  283. }
  284. .content-goods-info {
  285. display: flex;
  286. flex-direction: column;
  287. margin-left: .2rem;
  288. flex: 1;
  289. }
  290. .goods-info-title {
  291. font-size: .3rem;
  292. color: #333333;
  293. }
  294. .goods-info-size {
  295. font-size: .25rem;
  296. color: #999999;
  297. margin-top: 5px;
  298. }
  299. .content-info-right {
  300. display: flex;
  301. flex-direction: column;
  302. align-items: flex-end;
  303. padding: .3rem 0;
  304. }
  305. .goods-info-price-box {
  306. display: flex;
  307. align-items: flex-end;
  308. }
  309. .goods-info-price-tag {
  310. font-size: .23rem;
  311. color: #333333;
  312. margin-bottom: 1px;
  313. }
  314. .goods-info-price-text {
  315. font-size: .3rem;
  316. color: #333333;
  317. }
  318. .goods-info-num {
  319. margin-top: 5px;
  320. font-size: .25rem;
  321. color: #A9A9A9
  322. }
  323. .placeholder-footer {
  324. height: 2rem;
  325. }
  326. .mescroll-box {
  327. display: none;
  328. }
  329. .list-btn-normal {
  330. height: 0.68rem;
  331. border-radius: 0.34rem;
  332. border: 1px solid #009BFF;
  333. color: #009DFE;
  334. width: 2rem;
  335. }
  336. .list-btn-highlight {
  337. height: 0.68rem;
  338. border-radius: 0.34rem;
  339. color: #ffffff;
  340. background-image: linear-gradient(to right, #24BBFB, #0098FF);
  341. border: 1px solid #24BBFB;
  342. width: 2rem;
  343. }
  344. .list-btn-driver {
  345. height: 0.68rem;
  346. border-radius: 0.34rem;
  347. color: #ffffff;
  348. padding: 0 .3rem;
  349. border: 1px solid #b5b5b5;
  350. color: #888888;
  351. }
  352. .list-btn-cancel {
  353. height: 0.68rem;
  354. border-radius: 0.34rem;
  355. color: #ffffff;
  356. border: 1px solid #b5b5b5;
  357. color: #888888;
  358. width: 2rem;
  359. }
  360. .hud-bg {
  361. position: fixed;
  362. width: 100%;
  363. height: 100%;
  364. display: flex;
  365. align-items: center;
  366. justify-content: center;
  367. background-color: rgba(0, 0, 0, 0.6);
  368. top: 0px;
  369. left: 0px;
  370. }
  371. .hud-cont-box {
  372. background-color: #ffffff;
  373. border-radius: .3rem;
  374. padding: .5rem 0;
  375. display: flex;
  376. flex-direction: column;
  377. align-items: center;
  378. width: 84%
  379. }
  380. .driver-title {
  381. font-size: .5rem;
  382. font-weight: bold;
  383. color: #000000;
  384. margin: .2rem 0;
  385. }
  386. .driver-userInfo-box {
  387. display: flex;
  388. flex-direction: row;
  389. align-items: center;
  390. margin: .2rem 0;
  391. }
  392. .driver-userInfo-avatar {
  393. width: 1.6rem;
  394. height: 1.6rem;
  395. border-radius: 50%;
  396. }
  397. .driver-userInfo-name {
  398. font-size: .4rem;
  399. color: #333333;
  400. margin-left: .2rem;
  401. }
  402. .driver-contact-box {
  403. display: flex;
  404. flex-direction: column;
  405. /* align-items: center; */
  406. justify-content: center;
  407. margin: .2rem .2rem;
  408. }
  409. .driver-tel-box {
  410. display: flex;
  411. flex-direction: row;
  412. align-items: center;
  413. padding: .3rem .2rem;
  414. border-bottom: 1px solid #f1f1f1;
  415. }
  416. .driver-tel-text {
  417. font-size: .3rem;
  418. color: #666666;
  419. margin: 0 .2rem;
  420. }
  421. .driver-tel-tag {
  422. font-size: .25rem;
  423. color: #999999;
  424. }
  425. .driver-num-box {
  426. display: flex;
  427. flex-direction: row;
  428. align-items: center;
  429. padding: .3rem .2rem;
  430. border-bottom: 1px solid #f1f1f1;
  431. }
  432. .driver-num-text {
  433. font-size: .3rem;
  434. color: #666666;
  435. margin-left: .2rem;
  436. }
  437. .driver-close {
  438. height: 0.84rem;
  439. border-radius: 0.42rem;
  440. color: #ffffff;
  441. background-image: linear-gradient(#0099FF, #00B9FB);
  442. width: 3rem;
  443. margin: .3rem 0 .2rem 0;
  444. }
  445. .cancel-order-title {
  446. font-size: .35rem;
  447. color: #333333;
  448. margin: .2rem 0;
  449. }
  450. .cancel-order-btn-box {
  451. display: flex;
  452. flex-direction: row;
  453. justify-content: space-between;
  454. margin: .2rem .2rem;
  455. }
  456. .cancel-order-cancel {
  457. height: 0.74rem;
  458. border-radius: 0.37rem;
  459. border: 1px solid #009BFF;
  460. color: #009DFE;
  461. width: 2.5rem;
  462. }
  463. .cancel-order-sure {
  464. height: 0.8rem;
  465. border-radius: 0.4rem;
  466. color: #ffffff;
  467. background-image: linear-gradient(#0099FF, #00B9FB);
  468. border: 1px solid #00B9FB;
  469. width: 2.5rem;
  470. margin-left: .2rem;
  471. }
  472. .noOrder-box {
  473. margin: 2rem auto;
  474. display: flex;
  475. flex-direction: column;
  476. align-items: center;
  477. }
  478. .noOrder-img {
  479. width: 3.5rem;
  480. height: 3.5rem;
  481. }
  482. .noOrder-text {
  483. font-size: .35rem;
  484. color: #666666;
  485. margin-top: .2rem;
  486. }
  487. .pay-hud-bg {
  488. position: fixed;
  489. width: 100%;
  490. height: 100%;
  491. display: flex;
  492. align-items: center;
  493. justify-content: center;
  494. background-color: rgba(0, 0, 0, 0.6);
  495. top: 0px;
  496. left: 0px;
  497. z-index: 900;
  498. }
  499. .hud-pay-cont-box {
  500. display: flex;
  501. flex-direction: column;
  502. justify-content: flex-end;
  503. align-items: center;
  504. width: 100%;
  505. height: 100%;
  506. }
  507. .pay-hud-cancel-btn {
  508. width: 86%;
  509. margin-top: .2rem;
  510. margin-bottom: .4rem;
  511. background-color: #999999;
  512. color: #ffffff;
  513. border: 1px solid rgba(0, 0, 0, 0);
  514. border-radius: .2rem;
  515. height: .84rem;
  516. font-size: .32rem;
  517. }
  518. .pay-hud-pay-btn {
  519. width: 86%;
  520. margin: .2rem 0;
  521. background-image: linear-gradient(to right, #0099FF, #00B9FB);
  522. color: #ffffff;
  523. border: 1px solid rgba(0, 0, 0, 0);
  524. border-radius: .2rem;
  525. height: .84rem;
  526. font-size: .32rem;
  527. }
  528. .pay-hud-cont-box {
  529. width: 86%;
  530. margin: .2rem 0;
  531. background-color: #ffffff;
  532. border-radius: .3rem;
  533. padding: .4rem 0;
  534. display: flex;
  535. flex-direction: column;
  536. align-items: center;
  537. position: relative;
  538. }
  539. .pay-hud-cont-title {
  540. position: relative;
  541. font-size: .35rem;
  542. color: #333333;
  543. margin-top: .2rem;
  544. }
  545. .pay-hud-cont-downtime-box {
  546. position: relative;
  547. margin: .3rem;
  548. padding: .4rem 0;
  549. display: flex;
  550. flex-direction: column;
  551. align-items: center;
  552. border-radius: .15rem;
  553. background-color: #F4F5F6;
  554. width: 90%;
  555. }
  556. .pay-hud-cont-price-box {
  557. display: flex;
  558. align-items: flex-end;
  559. }
  560. .pay-hud-cont-price-tag {
  561. font-size: .3rem;
  562. color: #333333;
  563. }
  564. .pay-hud-cont-price-symbol {
  565. font-size: .28rem;
  566. color: #FB2200;
  567. }
  568. .pay-hud-cont-price-text {
  569. font-size: .35rem;
  570. color: #FB2200;
  571. }
  572. .pay-hud-cont-price-desc {
  573. font-size: .25rem;
  574. color: #888888;
  575. }
  576. .pay-hud-cont-pay-type-tag {
  577. font-size: .28rem;
  578. color: #999999;
  579. width: 90%;
  580. margin: .1rem 0;
  581. }
  582. .pay-hud-cont-pay-type-box {
  583. padding: .2rem 0;
  584. margin: 0 .3rem;
  585. display: flex;
  586. flex-direction: row;
  587. align-items: center;
  588. width: 90%;
  589. }
  590. .pay-hud-cont-pay-type-left {
  591. display: flex;
  592. flex-direction: row;
  593. align-items: center;
  594. flex: 1;
  595. }
  596. .pay-hud-cont-pay-type-text {
  597. margin-left: .2rem;
  598. font-size: .32rem;
  599. color: #333333;
  600. }
  601. </style>
  602. <body>
  603. <div id="app" style="background-color: #F5F5F5" v-cloak>
  604. <!-- 导航栏 -->
  605. <header class="aui-bar aui-bar-nav" id="aui-header" style="background-color:#ffffff !important;color: #333333">
  606. <div>
  607. <a class="aui-btn aui-btn-info aui-pull-left" style="margin-top: 5px;" tapmode onclick="closeWin()">
  608. <span class="aui-iconfont aui-icon-left" style="color: #333333"></span> </a>
  609. <van-search class="nav-search-input" v-model="value" show-action shape="round" clear-trigger="always"
  610. placeholder="请输入商品名/订单号" @search="onSearch">
  611. <template #action>
  612. <div class="nav-search-box aui-pull-right" @click="onSearch">
  613. <div class="nav-search-text">搜索</div>
  614. </div>
  615. </template>
  616. </van-search>
  617. </div>
  618. </header>
  619. <div class="unsearch-box" v-if="isShowUnsearch">
  620. <div class="history-box" v-show="history.length > 0">
  621. <div class="history-title-box">
  622. <div class="history-title">历史搜索</div>
  623. <div class="history-delete-img-box">
  624. <img style="width: 100%; height: 100%" src="./image/icon_search_del.png" v-on:click="onClear" />
  625. </div>
  626. </div>
  627. <div class="history-items-box">
  628. <div class="history-item" v-for="(item, index) in history" :key="index"
  629. v-on:click="onHistory(index)">
  630. <div class="history-item-text">{{item}}</div>
  631. </div>
  632. </div>
  633. </div>
  634. <div class="bk-box">
  635. <div class="bk-title-box">
  636. <div class="bk-title-left-box">
  637. <img class="bk-title-img" src="./image//icon_search_bk.png" />
  638. </div>
  639. <div class="bk-more" v-on:click="onBKMore">更多></div>
  640. </div>
  641. <div class="bk-goods-bg-box">
  642. <div class="bk-goods-box" v-for="(item, index) in bkGoods" :key="index"
  643. v-on:click='onBKGoods(index)'>
  644. <div class="bk-goods-img-box">
  645. <img style="width: 100%" src="./image/cart_goods.png" />
  646. </div>
  647. <div class="bk-goods-title">{{item.goodsName}}</div>
  648. </div>
  649. </div>
  650. </div>
  651. </div>
  652. <div class="box-main mescroll-touch-y mescroll" v-else v-show="currentList.length > 0" id="mescroll">
  653. <div class="card-main">
  654. <div class="card" id="orderList">
  655. <div class="card-list" v-for="(item, index) in currentList" :key="index">
  656. <!-- 订单号 状态 -->
  657. <div class="card-header">
  658. <div class="header-orderNum-box">
  659. <div class="header-orderNum">订单号 {{item.orderNum}}</div>
  660. <div class="header-offline" v-if="item.isOnline === 0">线下支付</div>
  661. </div>
  662. <div v-if="item.type === 1" class="header-orderStatus orderStatus-highlight">
  663. {{item.agentAuditStatusName}}</div>
  664. <div v-else class="header-orderStatus orderStatus-normal">{{item.agentAuditStatusName}}
  665. </div>
  666. </div>
  667. <!-- 商品信息 -->
  668. <div class="card-content" v-for="(cont, i) in item.bizOrderInfoDtoList"
  669. v-on:click="onOrderInfo(index)">
  670. <div class="content-box">
  671. <div class="content-info-left">
  672. <div class="content-img">
  673. <img src="image/cart_goods.png" style="width:2rem;height:2rem" />
  674. <img v-show="cont.isBk" class="content-bk-tag"
  675. src="image/icon_baokuancuxiao.png" />
  676. </div>
  677. <div class="content-goods-info">
  678. <div class="goods-info-title">{{cont.maktx}}</div>
  679. <div class="goods-info-size">{{cont.spec}} {{cont.pattern}}</div>
  680. </div>
  681. </div>
  682. <div class="content-info-right">
  683. <div class="goods-info-price-box">
  684. <div class="goods-info-price-tag">¥</div>
  685. <div class="goods-info-price-text">{{item.isOnline === 1 ? '299.00' : '0.00'}}
  686. </div>
  687. </div>
  688. <div class="goods-info-num">x2</div>
  689. </div>
  690. </div>
  691. </div>
  692. <!-- 根据不同状态,布局不同 -->
  693. <div class="card-footer" v-if="item.isOnline === 0">
  694. <div class="footer-cancel-box" v-if="item.type === 5 && item.cancelInfo != null">
  695. <div class="footer-cancel-tag">拒绝原因</div>
  696. <div class="footer-cancel-text">{{item.cancelInfo}}</div>
  697. </div>
  698. <div class="footer-offline-box">
  699. <div class="footer-btn-box" v-if="item.type === 1">
  700. <van-button class="list-btn-cancel" size="normal" @click="onCancelOrder(index)">取消订单
  701. </van-button>
  702. </div>
  703. <div class="footer-btn-box" v-if="item.type === 2 || item.type === 4">
  704. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  705. </van-button>
  706. </div>
  707. <div class="footer-btn-box" v-if="item.type === 3">
  708. <van-button size="normal" class="list-btn-driver" @click="onCheckDriver(index)">
  709. 查看司机信息
  710. </van-button>
  711. <van-button class="list-btn-normal" size="normal" style="margin-left: .2rem;"
  712. @click="onBuyAgain(index)">再次购买</van-button>
  713. </div>
  714. <div class="footer-btn-box" v-if="item.type === 5">
  715. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  716. </van-button>
  717. </div>
  718. </div>
  719. </div>
  720. <div v-else class="card-footer">
  721. <div class="footer-desc-box">
  722. <div class="footer-total-text">总价<div style="font-size: .21rem; margin-bottom: 1px;">¥
  723. </div>398.00,使用奖励<div style="font-size: .21rem; margin-bottom: 1px;">¥</div>00.00
  724. </div>
  725. <div class="footer-shifu-text">实付款 <div style="font-size: .21rem; margin-bottom: 1px;">¥
  726. </div>598.00</div>
  727. </div>
  728. <div class="footer-cancel-box" v-if="item.type === 5 && item.cancelInfo != null">
  729. <div class="footer-cancel-tag">拒绝原因</div>
  730. <div class="footer-cancel-text">{{item.cancelInfo}}</div>
  731. </div>
  732. <div class="footer-btn-box" v-if="item.type === 1">
  733. <van-button class="list-btn-cancel" size="normal" @click="onCancelOrder(index)">取消订单
  734. </van-button>
  735. <van-button class="list-btn-highlight" size="normal" style="margin-left: .2rem;"
  736. @click="onPayOrder(index)">去支付</van-button>
  737. </div>
  738. <div class="footer-btn-box" v-if="item.type === 2 || item.type === 4">
  739. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  740. </van-button>
  741. </div>
  742. <div class="footer-btn-box" v-if="item.type === 3">
  743. <van-button size="normal" class="list-btn-driver" @click="onCheckDriver(index)">查看司机信息
  744. </van-button>
  745. <van-button class="list-btn-normal" size="normal" style="margin-left: .2rem;"
  746. @click="onBuyAgain(index)">再次购买</van-button>
  747. </div>
  748. <div class="footer-btn-box" v-if="item.type === 5">
  749. <van-button class="list-btn-normal" size="normal" @click="onBuyAgain(index)">再次购买
  750. </van-button>
  751. </div>
  752. </div>
  753. </div>
  754. <div class="placeholder-footer"></div>
  755. </div>
  756. </div>
  757. </div>
  758. <div class="noOrder-box" v-show="currentList.length == 0 && !isShowUnsearch" style="text-align:center">
  759. <img class="noOrder-img" src="./image/noOrder.png" />
  760. <div class="noOrder-text">您还没有相关订单</div>
  761. </div>
  762. <div class="hud-bg" v-if="isHudBgShow">
  763. <!-- 查看司机信息 -->
  764. <div class="hud-cont-box" v-if="isHudDriverShow">
  765. <div class="driver-title">司机信息</div>
  766. <div class="driver-userInfo-box">
  767. <img class="driver-userInfo-avatar" src="./image/siji_avatar_default.png" />
  768. <div class="driver-userInfo-name">流川枫</div>
  769. </div>
  770. <div class="driver-contact-box">
  771. <div class="driver-tel-box" v-on:click="onDialNumber">
  772. <div
  773. style="width:28px; height: 26px; display: flex; justify-content: center; align-items: center;">
  774. <img style="width: 21px; height: 26px;" src="./image/shouji.png" />
  775. </div>
  776. <div class="driver-tel-text">13000000000</div>
  777. <div class="driver-tel-tag">点击拨打电话</div>
  778. </div>
  779. <div class="driver-num-box">
  780. <div
  781. style="width:28px; height: 26px; display: flex; justify-content: center; align-items: center;">
  782. <img style="width: 28px; height: 23px;" src="./image/chepai.png" />
  783. </div>
  784. <div class="driver-num-text">鲁B12345</div>
  785. </div>
  786. </div>
  787. <van-button class="driver-close" size="normal" @click="onClickCloseDriverHud">关闭</van-button>
  788. </div>
  789. <!-- 取消订单 -->
  790. <div class="hud-cont-box" v-if="isHudCancelOrderShow">
  791. <div class="cancel-order-title">确定要取消订单?</div>
  792. <div class="cancel-order-btn-box">
  793. <van-button class="cancel-order-cancel" @click="onClickCancelAlert(1)" size="normal">取消</van-button>
  794. <van-button class="cancel-order-sure" @click="onClickCancelAlert(2)" size="normal">确定</van-button>
  795. </div>
  796. </div>
  797. <!-- 取消支付 -->
  798. <div class="hud-cont-box" v-if="isHudCancelPayShow">
  799. <div class="cancel-order-title">确定要放弃付款吗?</div>
  800. <div class="cancel-order-btn-box">
  801. <van-button class="cancel-order-cancel" @click="onClickCancelPayAlert(1)" size="normal">放弃
  802. </van-button>
  803. <van-button class="cancel-order-sure" @click="onClickCancelPayAlert(2)" size="normal">继续付款
  804. </van-button>
  805. </div>
  806. </div>
  807. </div>
  808. <div class="pay-hud-bg" v-if="isHudPayBgShow">
  809. <!-- 支付 -->
  810. <div class="hud-pay-cont-box" v-if="isHudPayShow">
  811. <div class="pay-hud-cont-box">
  812. <div style="width: 24px; height: 24px; position: absolute; top: .3rem; left: .3rem;"
  813. v-on:click="onClosePayAlert">
  814. <img style="width: 100%; height: 100%" src="./image/icon_close.png" />
  815. </div>
  816. <div class="pay-hud-cont-title">收款方:工厂自营店</div>
  817. <div class="pay-hud-cont-downtime-box">
  818. <div class="pay-hud-cont-price-box">
  819. <div class="pay-hud-cont-price-tag">金额:</div>
  820. <div class="pay-hud-cont-price-symbol">¥</div>
  821. <div class="pay-hud-cont-price-text">240.00</div>
  822. </div>
  823. <div class="pay-hud-cont-price-desc">请在0小时30分内完成支付</div>
  824. </div>
  825. <div class="pay-hud-cont-pay-type-tag">请选择支付方式</div>
  826. <div class="pay-hud-cont-pay-type-box">
  827. <div class="pay-hud-cont-pay-type-left">
  828. <div style="width: 35px; height: 35px">
  829. <img style="width: 100%; height: 100%" src="./image/icon_pay_alipay.png" />
  830. </div>
  831. <div class="pay-hud-cont-pay-type-text">支付宝</div>
  832. </div>
  833. <van-checkbox v-model="alipayChecked" icon-size="24px" @click="onChoosePayType(1)">
  834. </van-checkbox>
  835. </div>
  836. <div class="pay-hud-cont-pay-type-box">
  837. <div class="pay-hud-cont-pay-type-left">
  838. <div style="width: 35px; height: 32px">
  839. <img style="width: 100%; height: 100%" src="./image/icon_pay_wechat.png" />
  840. </div>
  841. <div class="pay-hud-cont-pay-type-text">微信支付</div>
  842. </div>
  843. <van-checkbox v-model="wechatChecked" icon-size="24px" @click="onChoosePayType(2)">
  844. </van-checkbox>
  845. </div>
  846. <div class="pay-hud-cont-pay-type-box">
  847. <div class="pay-hud-cont-pay-type-left">
  848. <div style="width: 35px; height: 35px">
  849. <img style="width: 100%; height: 100%" src="./image/icon_pay_shanfu.png" />
  850. </div>
  851. <div class="pay-hud-cont-pay-type-text">云闪付</div>
  852. </div>
  853. <van-checkbox v-model="shanfuChecked" icon-size="24px" @click="onChoosePayType(3)">
  854. </van-checkbox>
  855. </div>
  856. </div>
  857. <van-button class="pay-hud-pay-btn" @click="onClickPayCancelPay(1)">支付</van-button>
  858. <van-button class="pay-hud-cancel-btn" @click="onClickPayCancelPay(2)">取消</van-button>
  859. </div>
  860. </div>
  861. </div>
  862. </body>
  863. <link rel="stylesheet" href="./mescroll/mescroll.min.css">
  864. <script type="text/javascript" src="./js/qrcode.min.js"></script>
  865. <script type="text/javascript" src="../script/aui-scroll.js"></script>
  866. <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
  867. <script type="text/javascript" src="../script/api.js"></script>
  868. <script type="text/javascript" src="../script/httpRequest.js"></script>
  869. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  870. <script type="text/javascript">
  871. function closeWin() {
  872. api.closeWin({});
  873. }
  874. apiready = function () {
  875. api.parseTapmode();
  876. var header = $api.byId('aui-header');
  877. $api.fixStatusBar(header);
  878. new Vue({
  879. el: '#app',
  880. data: {
  881. value: '',
  882. list: [
  883. [
  884. {
  885. type: 4,
  886. orderNum: '202103021045545730',
  887. agentAuditStatusName: '已完成',
  888. isOnline: 1,
  889. id: 0,
  890. bizOrderInfoDtoList: [{
  891. maktx: '195/65R15 91V SH56 BGSL',
  892. spec: '195/65R15',
  893. pattern: 'SH56',
  894. isBk: false,
  895. }],
  896. }, {
  897. type: 1,
  898. orderNum: '202103021045545730',
  899. agentAuditStatusName: '等待付款',
  900. isOnline: 1,
  901. id: 1,
  902. bizOrderInfoDtoList: [{
  903. maktx: '195/65R15 91V SH56 BGSL',
  904. spec: '195/65R15',
  905. pattern: 'SH56',
  906. isBk: false,
  907. }],
  908. }, {
  909. type: 2,
  910. orderNum: '202103021045545730',
  911. agentAuditStatusName: '待入库',
  912. isOnline: 1,
  913. id: 2,
  914. bizOrderInfoDtoList: [{
  915. maktx: '195/65R15 91V SH56 BGSL',
  916. spec: '195/65R15',
  917. pattern: 'SH56',
  918. isBk: true,
  919. }, {
  920. maktx: '195/65R15 91V SH56 BGSL',
  921. spec: '195/65R15',
  922. pattern: 'SH56',
  923. isBk: true,
  924. }],
  925. }, {
  926. type: 3,
  927. orderNum: '202103021045545730',
  928. agentAuditStatusName: '入库中',
  929. isOnline: 0,
  930. id: 3,
  931. bizOrderInfoDtoList: [{
  932. maktx: '195/65R15 91V SH56 BGSL',
  933. spec: '195/65R15',
  934. pattern: 'SH56'
  935. }],
  936. }, {
  937. type: 5,
  938. orderNum: '202103021045545730',
  939. agentAuditStatusName: '已取消',
  940. isOnline: 1,
  941. id: 4,
  942. cancelInfo: '因代理商库存不足,此订单已被驳回~',
  943. bizOrderInfoDtoList: [{
  944. maktx: '195/65R15 91V SH56 BGSL',
  945. spec: '195/65R15',
  946. pattern: 'SH56',
  947. isBk: true,
  948. }],
  949. }, {
  950. type: 2,
  951. orderNum: '202103021045545730',
  952. agentAuditStatusName: '等待付款',
  953. isOnline: 0,
  954. id: 5,
  955. bizOrderInfoDtoList: [{
  956. maktx: '195/65R15 91V SH56 BGSL',
  957. spec: '195/65R15',
  958. pattern: 'SH56'
  959. }],
  960. }
  961. ],
  962. [
  963. {
  964. type: 2,
  965. orderNum: '202103021045545730',
  966. agentAuditStatusName: '待入库',
  967. isOnline: 1,
  968. id: 6,
  969. bizOrderInfoDtoList: [{
  970. maktx: '195/65R15 91V SH56 BGSL',
  971. spec: '195/65R15',
  972. pattern: 'SH56'
  973. }, {
  974. maktx: '195/65R15 91V SH56 BGSL',
  975. spec: '195/65R15',
  976. pattern: 'SH56'
  977. }],
  978. }, {
  979. type: 3,
  980. orderNum: '202103021045545730',
  981. agentAuditStatusName: '入库中',
  982. isOnline: 0,
  983. id: 7,
  984. bizOrderInfoDtoList: [{
  985. maktx: '195/65R15 91V SH56 BGSL',
  986. spec: '195/65R15',
  987. pattern: 'SH56'
  988. }],
  989. }
  990. ],
  991. []
  992. ],
  993. mescroll: '',
  994. history: [],
  995. bkGoods: [
  996. {
  997. goodsPic: './image/cart_goods.png',
  998. goodsName: '赛轮轮胎 205/60R16 SH0808',
  999. }, {
  1000. goodsPic: './image/cart_goods.png',
  1001. goodsName: '赛轮轮胎 205/60R16 SH0808',
  1002. }, {
  1003. goodsPic: './image/cart_goods.png',
  1004. goodsName: '赛轮轮胎 205/60R16 SH0808',
  1005. }
  1006. ],
  1007. current: 0,
  1008. count: 0,
  1009. currentList: [],
  1010. isShowUnsearch: true,
  1011. loading: false,
  1012. finished: false,
  1013. refreshing: false,
  1014. isHudBgShow: false,
  1015. isHudDriverShow: false,
  1016. isHudCancelOrderShow: false,
  1017. isHudCancelPayShow: false,
  1018. isHudPayBgShow: false,
  1019. isHudPayShow: false,
  1020. alipayChecked: false,
  1021. wechatChecked: false,
  1022. shanfuChecked: false,
  1023. },
  1024. methods: {
  1025. init: function () {
  1026. this.userId = $api.getStorage('userid');
  1027. var _this = this;
  1028. // 取出缓存的搜索历史
  1029. if (typeof ($api.getStorage('search_keyword')) != undefined) {
  1030. this.history = $api.getStorage('search_keyword');
  1031. }
  1032. },
  1033. // 点击搜索
  1034. onSearch: function () {
  1035. _this = this;
  1036. if (this.value.length == 0) {
  1037. this.showToast("请输入商品名/订单号");
  1038. } else {
  1039. // TODO: 搜索网络请求
  1040. this.isShowUnsearch = false;
  1041. if (this.count % 3 == 0) {
  1042. this.current = 0;
  1043. } else if (this.count % 3 == 1) {
  1044. this.current = 1;
  1045. } else {
  1046. this.current = 2;
  1047. }
  1048. setTimeout(() => {
  1049. _this.byId('mescroll').scrollTo(0, 0);
  1050. }, 100);
  1051. this.currentList = this.list[this.current];
  1052. this.count++;
  1053. // 存储搜索关键字
  1054. if (this.history.indexOf(this.value) > -1) {
  1055. } else {
  1056. if (this.history.length >= 15) {
  1057. this.history = this.history.slice(0, 15);
  1058. }
  1059. this.history.unshift(this.value);
  1060. $api.setStorage('search_keyword', this.history);
  1061. }
  1062. }
  1063. },
  1064. // 清空搜索历史
  1065. onClear: function () {
  1066. this.history = [];
  1067. $api.setStorage('search_keyword', this.history);
  1068. },
  1069. // 点击历史搜索条目
  1070. onHistory: function (index) {
  1071. this.value = this.history[index];
  1072. },
  1073. // 点击爆款促销商品
  1074. onBKGoods: function (index) {
  1075. },
  1076. // 点击爆款促销更多
  1077. onBKMore: function () {
  1078. },
  1079. getOrderSearchList: function () {
  1080. },
  1081. // 点击查看订单详情
  1082. onOrderInfo: function (index) {
  1083. this.goWin('myOrderInfo', 'myOrderInfo_win.html', {
  1084. id: this.currentList[index].id,
  1085. });
  1086. },
  1087. // 取消订单
  1088. onCancelOrder: function (index) {
  1089. console.log('cancel order ' + index);
  1090. _this = this;
  1091. this.isHudCancelOrderShow = true;
  1092. this.isHudBgShow = true;
  1093. },
  1094. // 去支付
  1095. onPayOrder: function (index) {
  1096. this.isHudPayShow = true;
  1097. this.isHudPayBgShow = true;
  1098. },
  1099. // 再次购买
  1100. onBuyAgain: function (index) {
  1101. this.goWin("product", "product.html");
  1102. },
  1103. // 查看司机信息
  1104. onCheckDriver: function (index) {
  1105. this.isHudDriverShow = true;
  1106. this.isHudBgShow = true;
  1107. },
  1108. // 下拉刷新
  1109. onRefresh: function () {
  1110. // 清空列表数据
  1111. this.finished = false;
  1112. // 重新加载数据
  1113. // 将 loading 设置为 true,表示处于加载状态
  1114. this.loading = true;
  1115. this.getOrderSearchList();
  1116. },
  1117. // 关闭司机信息提示框
  1118. onClickCloseDriverHud: function () {
  1119. this.isHudDriverShow = false;
  1120. this.isHudBgShow = false;
  1121. },
  1122. // 拨打司机电话
  1123. onDialNumber: function () {
  1124. console.log('拨打电话');
  1125. api.call({
  1126. type: 'tel_prompt',
  1127. number: '10086'
  1128. });
  1129. },
  1130. // 点击取消订单alert按钮 1 取消(关闭alert) 2 确定
  1131. onClickCancelAlert: function (index) {
  1132. if (index === 1) { // 取消按钮
  1133. this.isHudCancelOrderShow = false;
  1134. this.isHudBgShow = false;
  1135. }
  1136. if (index === 2) { // 确定按钮
  1137. // TODO 网络请求
  1138. this.isHudCancelOrderShow = false;
  1139. this.isHudBgShow = false;
  1140. }
  1141. },
  1142. // 点击取消支付
  1143. onClickPayCancelPay: function (index) {
  1144. if (index === 1) {
  1145. // 支付
  1146. }
  1147. if (index === 2) {
  1148. // 取消支付
  1149. this.isHudCancelPayShow = true;
  1150. this.isHudBgShow = true;
  1151. }
  1152. },
  1153. // 点击左上角关闭 取消支付
  1154. onClosePayAlert: function () {
  1155. this.isHudCancelPayShow = true;
  1156. this.isHudBgShow = true;
  1157. },
  1158. // 点击支付方式
  1159. onChoosePayType: function (type) {
  1160. // this.alipayChecked = this.wechatChecked = this.shanfuChecked = false;
  1161. // if (type == 1) { // 支付宝
  1162. // this.alipayChecked = true;
  1163. // } else if (type == 2) { // 微信支付
  1164. // this.wechatChecked = true;
  1165. // } else if (type == 3) { // 云闪付
  1166. // this.shanfuChecked = true;
  1167. // }
  1168. },
  1169. // 取消付款确认框
  1170. onClickCancelPayAlert: function (index) {
  1171. // 1: 放弃;2:继续付款
  1172. if (index == 1) {
  1173. this.isHudCancelPayShow = false;
  1174. this.isHudBgShow = false;
  1175. this.isHudPayShow = false;
  1176. this.isHudPayBgShow = false;
  1177. } else if (index == 2) {
  1178. this.isHudCancelPayShow = false;
  1179. this.isHudBgShow = false;
  1180. }
  1181. },
  1182. },
  1183. mounted: function () {
  1184. this.init();
  1185. }
  1186. });
  1187. };
  1188. </script>
  1189. </html>