index.vue 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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">
  30. <view class="lable">航班日期</view>
  31. <uni-easyinput :inputBorder="false" :styles="style" :disabled="true" v-model="dataheight"
  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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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" :styles="style" :disabled="true" 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. </view>
  131. </template>
  132. <script>
  133. export default {
  134. data() {
  135. return {
  136. style: {
  137. disableColor: "#fff",
  138. color: "#000"
  139. },
  140. detailedTable: [{
  141. name: '离港:HU7410 CKG-CSX (113/171)'
  142. },
  143. {
  144. name: '离港:HU7410 CKG-CSX (113/171)'
  145. },
  146. {
  147. name: '离港:HU7410 CKG-CSX (113/171)'
  148. },
  149. {
  150. name: '离港:HU7410 CKG-CSX (113/171)'
  151. },
  152. {
  153. name: '离港:HU7410 CKG-CSX (113/171)'
  154. }
  155. ],
  156. dataheight: '10.75rem',
  157. info: [{
  158. content: '内容 A'
  159. }, {
  160. content: '内容 B'
  161. }, {
  162. content: '内容 C'
  163. }],
  164. current: 0,
  165. mode: 'round',
  166. }
  167. },
  168. created(option) {},
  169. onLoad() {},
  170. onUnload() {},
  171. onShow() {},
  172. mounted() {},
  173. components: {},
  174. methods: {
  175. movetran(e) {
  176. let arr = uni.getSystemInfoSync().windowHeight;
  177. this.dataheight = (e.changedTouches[0].clientY / 16) + 'rem'
  178. if (e.changedTouches[0].clientY / 16 > 10.75) {
  179. this.dataheight = 10.75 + 'rem'
  180. } else if (e.changedTouches[0].clientY / 16 < 3.75) {
  181. this.dataheight = 3.75 + 'rem'
  182. }
  183. },
  184. uplist() {
  185. uni.redirectTo({
  186. url: "/pages/loadingdetails/index"
  187. })
  188. },
  189. lop(index) {
  190. this.action = index
  191. },
  192. seach() {
  193. uni.redirectTo({
  194. url: "/pages/search/index"
  195. })
  196. },
  197. fall() {
  198. uni.switchTab({
  199. url: "/pages/mypage/index"
  200. })
  201. },
  202. change(e) {
  203. this.current = e.detail.current;
  204. }
  205. },
  206. }
  207. </script>
  208. <style lang="scss" scoped>
  209. .app-content {
  210. >.header {
  211. width: 100%;
  212. height: 4.375rem;
  213. display: flex;
  214. justify-content: center;
  215. align-items: center;
  216. // background: rgba(49,85,99,1);
  217. color: rgb(16, 17, 22);
  218. font-family: Noto Sans SC;
  219. font-size: 1rem;
  220. position: fixed;
  221. left:0;
  222. top:0;
  223. z-index: 1;
  224. >.log {
  225. width: .375rem;
  226. height: .75rem;
  227. font-size: .75rem;
  228. position: absolute;
  229. left: 1.5rem;
  230. background: url('../../static/ico@1x.png') no-repeat;
  231. background-size: 100% 100%;
  232. }
  233. >.up {
  234. width: .8456rem;
  235. height: .8456rem;
  236. position: absolute;
  237. right: 1.5rem;
  238. background: url('../../static/search.png') no-repeat;
  239. background-size: 100% 100%;
  240. // color: rgb(37, 121, 160);
  241. // font-family: Noto Sans SC;
  242. // font-size: .875rem;
  243. // font-weight: 500;
  244. }
  245. }
  246. >.content {
  247. width: 100%;
  248. // height: calc(100vh - 20.9375rem - 4.375rem);
  249. padding-bottom: 0;
  250. position: absolute;
  251. bottom: 0;
  252. top: 10.75rem;
  253. border-radius: 6px 6px 0px 0px;
  254. overflow: hidden;
  255. background: rgb(255, 255, 255);
  256. >.choice {
  257. width: 100%;
  258. // height: 3.75rem;
  259. display: flex;
  260. align-items: center;
  261. padding: 0 0 0 0.8rem;
  262. box-sizing: border-box;
  263. >.scroll-Y {
  264. // height: calc(100% - 2.5rem - 2.75rem - 2.25rem - 2.25rem);
  265. width: 100%;
  266. height: 27.75rem;
  267. .list {
  268. height: 3.375rem;
  269. display: flex;
  270. align-items: center;
  271. border-bottom: 1px solid rgb(238, 238, 238);
  272. position: relative;
  273. color: rgb(0, 0, 0);
  274. font-family: Noto Sans SC;
  275. font-size: 13px;
  276. font-weight: 400;
  277. >.lable {
  278. color: rgb(0, 0, 0);
  279. font-family: Noto Sans SC;
  280. font-size: 13px;
  281. font-weight: 500;
  282. line-height: 19px;
  283. letter-spacing: 0px;
  284. text-align: left;
  285. width: 6rem;
  286. }
  287. >.listup {
  288. width: .25rem;
  289. height: .5rem;
  290. background: url('../../static/icos.png') no-repeat;
  291. background-size: 100% 100%;
  292. position: absolute;
  293. right: 1.5rem;
  294. }
  295. }
  296. }
  297. }
  298. .but {
  299. width: 20.5625rem;
  300. height: 2.5rem;
  301. 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%);
  302. border-radius: .25rem;
  303. color: rgb(255, 255, 255);
  304. font-family: Noto Sans SC;
  305. font-size: 1rem;
  306. margin: 0 auto;
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. margin-top: 0.25rem;
  311. margin-bottom: 2.25rem;
  312. }
  313. }
  314. }
  315. </style>