index.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <template>
  2. <view class="app-content">
  3. <img :src="icon" alt="" class="tuku">
  4. <Navs :navname.sync="navname" @fall="fall"></Navs>
  5. <view class="fight">
  6. <view class="fight_card">
  7. <p>{{flightDetail.carrierFlights}}</p>
  8. <span>{{flightDetail.carrierFlightsDate}}</span>
  9. </view>
  10. <view class="fight_card">
  11. <p>{{flightDetail.outAirport}}</p>
  12. <span>{{flightDetail.scheduleTakeOffTime?flightDetail.scheduleTakeOffTime:"-"}}</span>
  13. </view>
  14. <view class="fight_center">
  15. <view class="type">
  16. {{flightDetail.normalState}}
  17. </view>
  18. <view class="aircraft"></view>
  19. </view>
  20. <view class="fight_card">
  21. <p>{{flightDetail.landAirport}}</p>
  22. <span>{{flightDetail.scheduleLandInTime?flightDetail.scheduleLandInTime:"-"}}</span>
  23. </view>
  24. </view>
  25. <view class="content">
  26. <view class="content_bootom" style="top:0">
  27. <scroll-view scroll-y="true" class="scroll-Y">
  28. <view class="up" v-for="(item, index) in listdata" :key="index">
  29. <view class="list" @tap="toDetail(item.luggageNum)">
  30. <p>{{ item.luggageNum }}</p>
  31. </view>
  32. <view class="normal">
  33. {{item.specialType!=null?item.specialType:" "}}
  34. </view>
  35. <view :class="item.exception_type != null?'error':'normal'">
  36. {{item.exception_type!=null?item.exception_type:"正常"}}
  37. </view>
  38. </view>
  39. </scroll-view>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import Navs from '../../components/header/navs.vue'
  46. import {
  47. Format
  48. } from '@/components/utils/validate'
  49. export default {
  50. data() {
  51. return {
  52. flightDetail: null,
  53. input: '',
  54. main: null,
  55. poll: null,
  56. filter: null,
  57. pusher: null,
  58. intentServer: null,
  59. timeShow: true,
  60. arr: [],
  61. navname: '航班详情',
  62. icon: 'static/beijing.png',
  63. newData: '',
  64. newDataday: '',
  65. listdata:[]
  66. }
  67. },
  68. created(option) {
  69. },
  70. onLoad() {
  71. this.flightDetail = this.$storage.getJson('searchData')
  72. this.getluggageList()
  73. },
  74. onUnload() {uni.$off("scancodemsg");},
  75. onShow() {
  76. uni.$on("scancodemsg", (data) => {
  77. if (data.msg.length > 9) {
  78. uni.navigateTo({
  79. url: "/pages/detail/index?luggageNum=" + data.msg
  80. })
  81. }
  82. });
  83. if(this.flightDetail){
  84. this.getluggageList()
  85. }
  86. },
  87. mounted() {
  88. },
  89. beforeDestroy() {
  90. },
  91. components: {
  92. Navs
  93. },
  94. methods: {
  95. fall() {
  96. uni.navigateBack({
  97. delta:1
  98. })
  99. },
  100. async getluggageList() {
  101. let data = {
  102. "serviceId": 3001,
  103. "page": 1,
  104. "pageSize": 999,
  105. "dataContent": {
  106. "carrierFlights": this.flightDetail.carrierFlights,
  107. "carrierFlightsDate": this.flightDetail.carrierFlightsDate,
  108. "outAirport":this.flightDetail.outAirport,
  109. "landAirport":this.flightDetail.landAirport
  110. },
  111. "event": "0"
  112. }
  113. await this.$http.httpPost('/openApi/query', data).then(res => {
  114. if (res.code == "0") {
  115. this.listdata = res.returnData;
  116. }
  117. })
  118. },
  119. toDetail(luggageNum){
  120. this.currentLuggageNum = luggageNum;
  121. uni.navigateTo({
  122. url: "/pages/detail/index?luggageNum="+this.currentLuggageNum
  123. })
  124. },
  125. },
  126. }
  127. </script>
  128. <style lang="scss" scoped>
  129. .app-content {
  130. position: relative;
  131. width: 100vw;
  132. height: 100vh;
  133. overflow: hidden;
  134. >.tuku {
  135. position: absolute;
  136. z-index: -1;
  137. width: 100%;
  138. top: -250px;
  139. let:20px;
  140. }
  141. >.fight {
  142. padding: 0 1.75rem 5rem 1.75rem;
  143. // height: 3.75rem;
  144. display: flex;
  145. align-items: center;
  146. justify-content: space-around;
  147. margin-top: 1.375rem;
  148. .fight_center {
  149. width: 3rem;
  150. display: flex;
  151. flex-direction: column;
  152. align-items: center;
  153. justify-content: center;
  154. color: rgb(255, 255, 255);
  155. font-family: Noto Sans SC;
  156. font-size: 16px;
  157. line-height: 24px;
  158. font-weight: 700;
  159. >.aircraft {
  160. width: 1.75rem;
  161. height: 1.75rem;
  162. background: url('../../static/hang.png') no-repeat;
  163. background-size: 100% 100%;
  164. }
  165. }
  166. >.fight_card {
  167. display: flex;
  168. flex-direction: column;
  169. align-items: start;
  170. justify-content: center;
  171. >p {
  172. color: rgb(255, 255, 255);
  173. font-family: Noto Sans SC;
  174. font-size: 16px;
  175. line-height: 24px;
  176. font-weight: 700;
  177. }
  178. >span {
  179. color: rgb(255, 255, 255);
  180. font-family: Noto Sans SC;
  181. font-size: 11px;
  182. font-weight: 500;
  183. }
  184. }
  185. }
  186. >.times {
  187. width: 100%;
  188. height: 3.6875rem;
  189. display: flex;
  190. align-items: center;
  191. justify-content: center;
  192. color: rgb(255, 255, 255);
  193. font-family: Noto Sans SC;
  194. font-size: 18px;
  195. font-weight: 700;
  196. p {
  197. margin-right: .625rem;
  198. }
  199. }
  200. .content {
  201. width: 100%;
  202. height: calc(100vh - 10rem);
  203. position: relative;
  204. // overflow: hidden;
  205. // background: rgb(49, 85, 99);
  206. >.content_top {
  207. width: 100%;
  208. // background: rgb(49, 85, 99);
  209. padding-bottom: 1.3125rem;
  210. >.craid {
  211. // width: 100%;
  212. height: 5.625rem;
  213. padding: 0 2.5625rem 0 2.5625rem;
  214. display: flex;
  215. justify-content: space-between;
  216. flex-wrap: wrap;
  217. align-items: center;
  218. >.craid_data {
  219. display: flex;
  220. flex-direction: column;
  221. justify-content: center;
  222. align-items: start;
  223. >p {
  224. color: rgb(255, 255, 255);
  225. font-family: Noto Sans SC;
  226. font-size: 18px;
  227. font-weight: 700;
  228. }
  229. >span {
  230. color: rgb(255, 255, 255);
  231. font-family: Noto Sans SC;
  232. font-size: 13px;
  233. font-weight: 500;
  234. }
  235. }
  236. >.aircraft {
  237. width: 1.75rem;
  238. height: 1.75rem;
  239. background: url('../../static/hang.png') no-repeat;
  240. background-size: 100% 100%;
  241. }
  242. }
  243. >.scanning {
  244. height: 12rem;
  245. padding: 0 1.5rem 0 1.5rem;
  246. opacity: 1;
  247. transition: all 3s;
  248. .scanning_cd {
  249. width: 100%;
  250. height: 3rem;
  251. opacity: 1;
  252. transition: all 3s;
  253. background: rgb(59, 103, 123);
  254. margin-top: 1rem;
  255. margin-bottom: .5rem;
  256. border-radius: 4px;
  257. display: flex;
  258. justify-content: center;
  259. align-items: center;
  260. color: rgb(255, 255, 255);
  261. font-family: Noto Sans SC;
  262. font-size: 16px;
  263. >.log {
  264. width: .875rem;
  265. height: .875rem;
  266. background: url('../../static/saoma.png') no-repeat;
  267. background-size: 100% 100%;
  268. margin-left: 1rem;
  269. }
  270. >.log_l {
  271. width: .125rem;
  272. height: 1.3125rem;
  273. margin-left: 4rem;
  274. background: rgb(255, 255, 255);
  275. }
  276. }
  277. .scanning_cds {
  278. width: 100%;
  279. height: 3rem;
  280. opacity: 1;
  281. transition: all 3s;
  282. background: rgb(51, 161, 165);
  283. margin-top: 1rem;
  284. margin-bottom: .5rem;
  285. border-radius: 4px;
  286. display: flex;
  287. justify-content: center;
  288. align-items: center;
  289. color: rgb(255, 255, 255);
  290. font-family: Noto Sans SC;
  291. font-size: 16px;
  292. >.log {
  293. width: .875rem;
  294. height: .875rem;
  295. background: url('../../static/saoma.png') no-repeat;
  296. background-size: 100% 100%;
  297. margin-left: 1rem;
  298. }
  299. >.log_l {
  300. width: .125rem;
  301. height: 1.3125rem;
  302. margin-left: 4rem;
  303. background: rgb(255, 255, 255);
  304. }
  305. }
  306. }
  307. }
  308. >.content_bootom {
  309. width: 100%;
  310. // height: calc(100vh - 20.9375rem - 4.375rem);
  311. padding-bottom: 0;
  312. position: absolute;
  313. bottom: 0;
  314. top: 20.75rem;
  315. // border-radius: 6px 6px 0px 0px;
  316. overflow: hidden;
  317. background: rgb(255, 255, 255);
  318. padding: 0 10px;
  319. box-sizing: border-box;
  320. .up {
  321. width: 100%;
  322. display: flex;
  323. align-items: center;
  324. justify-content: space-between;
  325. margin-left: 1rem;
  326. border-bottom: 1px solid rgb(238, 238, 238);
  327. // transform: all 3s;
  328. >.down_up {
  329. width: .875rem;
  330. height: .875rem;
  331. background: url('../../static/xia.png') no-repeat;
  332. background-size: 100% 100%;
  333. }
  334. >.error{
  335. width: 60px;
  336. color:red
  337. }
  338. >.normal{
  339. width: 60px;
  340. color:#4682b4
  341. }
  342. >.list {
  343. position: relative;
  344. height: 3rem;
  345. display: flex;
  346. align-items: center;
  347. transform: all 3s;
  348. right: 0;
  349. color: rgb(0, 0, 0);
  350. font-family: Noto Sans SC;
  351. font-size: 16px;
  352. font-weight: 500;
  353. }
  354. >.delete {
  355. width: 3.75rem;
  356. height: 3.75rem;
  357. background: rgb(237, 101, 101);
  358. display: flex;
  359. align-items: center;
  360. justify-content: center;
  361. position: relative;
  362. right: -3.75rem;
  363. transform: all 3s;
  364. >.log {
  365. width: .875rem;
  366. height: .875rem;
  367. background: url('../../static/vector@1x.png') no-repeat;
  368. background-size: 100% 100%;
  369. }
  370. }
  371. }
  372. .scroll-Y {
  373. // height: calc(100% - 2.5rem - 2.75rem - 2.25rem - 2.25rem);
  374. height: calc(100% - 2.5rem - 2.75rem);
  375. }
  376. .but {
  377. width: 20.5625rem;
  378. height: 2.5rem;
  379. background: linear-gradient(179.10deg, rgba(51, 161, 165, 1.00) 11.326%, rgba(59, 111, 142, 1.00) 119.032%, rgba(59, 111, 142, 1.00) 119.032%, rgba(59, 111, 142, 1.00) 119.032%);
  380. border-radius: .25rem;
  381. color: rgb(255, 255, 255);
  382. font-family: Noto Sans SC;
  383. font-size: 1rem;
  384. margin: 0 auto;
  385. display: flex;
  386. align-items: center;
  387. justify-content: center;
  388. margin-top: 0.25rem;
  389. margin-bottom: 2.25rem;
  390. }
  391. }
  392. }
  393. }
  394. </style>