index.vue 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <template>
  2. <view class="app-content">
  3. <view class="header">
  4. <view class="log" @tap="fall"></view>
  5. </view>
  6. <!-- <view class="nav">
  7. <view :class="action === index ? 'nav_lists': 'nav_list'" v-for="(item, index) in list" :key="index" @tap="lop(index)">{{item.name}}</view>
  8. </view> -->
  9. <uni-swiper-dot :info="info" :current="current" field="content" :mode="mode">
  10. <swiper class="swiper-box" @change="change" style="height:11rem">
  11. <swiper-item v-for="(item ,index) in info" :key="index" >
  12. <view class="swiper-item">
  13. <image style="width:100%" src="../../static/bg.png" mode="widthFix"></image>
  14. </view>
  15. </swiper-item>
  16. </swiper>
  17. </uni-swiper-dot>
  18. <view class="content" :style="{top:dataheight}">
  19. <uni-section title="行李详情" type="line"></uni-section>
  20. <view class="choice" @touchmove="movetran">
  21. <scroll-view scroll-y="true" class="scroll-Y">
  22. <view class="list">
  23. <view class="lable">航班号</view>
  24. <uni-easyinput :inputBorder="false" :styles="style" :disabled="true" v-model="dataheight"
  25. type="text" placeholder="航班号" />
  26. </uni-forms>
  27. <view class="listup"></view>
  28. </view>
  29. <view class="list" @click="show('simple')">
  30. <view class="lable">航班日期</view>
  31. <uni-easyinput :inputBorder="false" :clearable="true" :styles="style" :disabled="false" v-model="datatime"
  32. type="text" placeholder="航班日期" />
  33. </uni-forms>
  34. <view class="listup"></view>
  35. </view>
  36. <view class="list">
  37. <view class="lable">行李牌号</view>
  38. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  39. type="text" placeholder="行李牌号" />
  40. </uni-forms>
  41. <view class="listup"></view>
  42. </view>
  43. <view class="list">
  44. <view class="lable">操作节点</view>
  45. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  46. type="text" placeholder="操作节点" />
  47. </uni-forms>
  48. <view class="listup"></view>
  49. </view>
  50. <view class="list">
  51. <view class="lable">操作位置</view>
  52. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  53. type="text" placeholder="操作位置" />
  54. </uni-forms>
  55. <view class="listup"></view>
  56. </view>
  57. <view class="list">
  58. <view class="lable">操作时间</view>
  59. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  60. type="text" placeholder="操作时间" />
  61. </uni-forms>
  62. <view class="listup"></view>
  63. </view>
  64. <view class="list">
  65. <view class="lable">操作人</view>
  66. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  67. type="text" placeholder="操作人" />
  68. </uni-forms>
  69. <view class="listup"></view>
  70. </view>
  71. <view class="list">
  72. <view class="lable">发往节点</view>
  73. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  74. type="text" placeholder="发往节点" />
  75. </uni-forms>
  76. <view class="listup"></view>
  77. </view>
  78. <view class="list">
  79. <view class="lable">发往位置</view>
  80. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  81. type="text" placeholder="发往位置" />
  82. </uni-forms>
  83. <view class="listup"></view>
  84. </view>
  85. <view class="list">
  86. <view class="lable">特殊行李类型</view>
  87. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  88. type="text" placeholder="特殊行李类型" />
  89. </uni-forms>
  90. <view class="listup"></view>
  91. </view>
  92. <view class="list">
  93. <view class="lable">异常类型</view>
  94. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  95. type="text" placeholder="异常类型" />
  96. </uni-forms>
  97. <view class="listup"></view>
  98. </view>
  99. <view class="list">
  100. <view class="lable">装车状态</view>
  101. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  102. type="text" placeholder="装车状态" />
  103. </uni-forms>
  104. <view class="listup"></view>
  105. </view>
  106. <view class="list">
  107. <view class="lable">装车序号</view>
  108. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  109. type="text" placeholder="装车序号" />
  110. </uni-forms>
  111. <view class="listup"></view>
  112. </view>
  113. <view class="list">
  114. <view class="lable">容器</view>
  115. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  116. type="text" placeholder="容器" />
  117. </uni-forms>
  118. <view class="listup"></view>
  119. </view>
  120. <view class="list">
  121. <view class="lable">备注</view>
  122. <uni-easyinput :inputBorder="false" :clearable="false" :styles="style" :disabled="false" v-model="dataheight"
  123. type="text" placeholder="备注" />
  124. </uni-forms>
  125. <view class="listup"></view>
  126. </view>
  127. </scroll-view>
  128. </view>
  129. </view>
  130. <luanqing-date-picker
  131. ref="datePickerObj"
  132. :isSimple="mode === 'simple'"
  133. :isMultiple="mode === 'multiple'"
  134. @finishSelectDate="finishSelectDate"
  135. :defaultCheckedList="['2023-03-28','2023-03-25']">
  136. </luanqing-date-picker>
  137. </view>
  138. </template>
  139. <script>
  140. export default {
  141. data() {
  142. return {
  143. style: {
  144. disableColor: "#fff",
  145. color: "#000"
  146. },
  147. detailedTable: [{
  148. name: '离港:HU7410 CKG-CSX (113/171)'
  149. },
  150. {
  151. name: '离港:HU7410 CKG-CSX (113/171)'
  152. },
  153. {
  154. name: '离港:HU7410 CKG-CSX (113/171)'
  155. },
  156. {
  157. name: '离港:HU7410 CKG-CSX (113/171)'
  158. },
  159. {
  160. name: '离港:HU7410 CKG-CSX (113/171)'
  161. }
  162. ],
  163. dataheight: '10.75rem',
  164. datatime: '',
  165. info: [{
  166. content: '内容 A'
  167. }, {
  168. content: '内容 B'
  169. }, {
  170. content: '内容 C'
  171. }],
  172. current: 0,
  173. mode: 'round',
  174. mode: 'simple',
  175. }
  176. },
  177. created(option) {},
  178. onLoad() {},
  179. onUnload() {},
  180. onShow() {},
  181. mounted() {},
  182. components: {},
  183. methods: {
  184. show(showType){
  185. this.mode = showType;
  186. this.$refs.datePickerObj.open();
  187. },
  188. finishSelectDate(e){
  189. this.datatime = e[0]
  190. console.error("选择了日期:",e);
  191. },
  192. movetran(e) {
  193. let arr = uni.getSystemInfoSync().windowHeight;
  194. this.dataheight = (e.changedTouches[0].clientY / 16) + 'rem'
  195. if (e.changedTouches[0].clientY / 16 > 10.75) {
  196. this.dataheight = 10.75 + 'rem'
  197. } else if (e.changedTouches[0].clientY / 16 < 3.75) {
  198. this.dataheight = 3.75 + 'rem'
  199. }
  200. },
  201. uplist() {
  202. uni.redirectTo({
  203. url: "/pages/loadingdetails/index"
  204. })
  205. },
  206. lop(index) {
  207. this.action = index
  208. },
  209. seach() {
  210. uni.redirectTo({
  211. url: "/pages/search/index"
  212. })
  213. },
  214. fall() {
  215. uni.switchTab({
  216. url: "/pages/mypage/index"
  217. })
  218. },
  219. change(e) {
  220. this.current = e.detail.current;
  221. }
  222. },
  223. }
  224. </script>
  225. <style lang="scss" scoped>
  226. .app-content {
  227. >.header {
  228. width: 100%;
  229. height: 4.375rem;
  230. display: flex;
  231. justify-content: center;
  232. align-items: center;
  233. // background: rgba(49,85,99,1);
  234. color: rgb(16, 17, 22);
  235. font-family: Noto Sans SC;
  236. font-size: 1rem;
  237. position: fixed;
  238. left:0;
  239. top:0;
  240. z-index: 1;
  241. >.log {
  242. width: .375rem;
  243. height: .75rem;
  244. font-size: .75rem;
  245. position: absolute;
  246. left: 1.5rem;
  247. background: url('../../static/ico@1x.png') no-repeat;
  248. background-size: 100% 100%;
  249. }
  250. >.up {
  251. width: .8456rem;
  252. height: .8456rem;
  253. position: absolute;
  254. right: 1.5rem;
  255. background: url('../../static/search.png') no-repeat;
  256. background-size: 100% 100%;
  257. // color: rgb(37, 121, 160);
  258. // font-family: Noto Sans SC;
  259. // font-size: .875rem;
  260. // font-weight: 500;
  261. }
  262. }
  263. >.content {
  264. width: 100%;
  265. // height: calc(100vh - 20.9375rem - 4.375rem);
  266. padding-bottom: 0;
  267. position: absolute;
  268. bottom: 0;
  269. top: 10.75rem;
  270. border-radius: 6px 6px 0px 0px;
  271. overflow: hidden;
  272. background: rgb(255, 255, 255);
  273. >.choice {
  274. width: 100%;
  275. // height: 3.75rem;
  276. display: flex;
  277. align-items: center;
  278. padding: 0 0 0 0.8rem;
  279. box-sizing: border-box;
  280. >.scroll-Y {
  281. // height: calc(100% - 2.5rem - 2.75rem - 2.25rem - 2.25rem);
  282. width: 100%;
  283. height: 27.75rem;
  284. .list {
  285. height: 3.375rem;
  286. display: flex;
  287. align-items: center;
  288. border-bottom: 1px solid rgb(238, 238, 238);
  289. position: relative;
  290. color: rgb(0, 0, 0);
  291. font-family: Noto Sans SC;
  292. font-size: 13px;
  293. font-weight: 400;
  294. >.lable {
  295. color: rgb(0, 0, 0);
  296. font-family: Noto Sans SC;
  297. font-size: 13px;
  298. font-weight: 500;
  299. line-height: 19px;
  300. letter-spacing: 0px;
  301. text-align: left;
  302. width: 6rem;
  303. }
  304. >.listup {
  305. width: .25rem;
  306. height: .5rem;
  307. background: url('../../static/icos.png') no-repeat;
  308. background-size: 100% 100%;
  309. position: absolute;
  310. right: 1.5rem;
  311. }
  312. }
  313. }
  314. }
  315. .but {
  316. width: 20.5625rem;
  317. height: 2.5rem;
  318. 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%);
  319. border-radius: .25rem;
  320. color: rgb(255, 255, 255);
  321. font-family: Noto Sans SC;
  322. font-size: 1rem;
  323. margin: 0 auto;
  324. display: flex;
  325. align-items: center;
  326. justify-content: center;
  327. margin-top: 0.25rem;
  328. margin-bottom: 2.25rem;
  329. }
  330. }
  331. }
  332. </style>