detail.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <template>
  2. <view class="container">
  3. <!-- 车牌号区域 -->
  4. <view class="box">
  5. <view class="left">
  6. 车牌号
  7. </view>
  8. <picker style="width: 40%;" @change="bindPickerChange($event,1)" :value="busIndex" :range="busList">
  9. <view class="right">
  10. {{busList[busIndex]}}
  11. <div class="right-img">
  12. <img src="../../static/bottom.png">
  13. </div>
  14. </view>
  15. </picker>
  16. </view>
  17. <!-- 人数区域 -->
  18. <view class="box">
  19. <view class="left">
  20. 人数
  21. </view>
  22. <picker style="width: 40%;" @change="bindPickerChange($event,1)" :value="busIndex" :range="busList">
  23. <view class="right">
  24. {{busList[busIndex]}}
  25. <div class="right-img">
  26. <img src="../../static/bottom.png">
  27. </div>
  28. </view>
  29. </picker>
  30. </view>
  31. <!-- 时间区域 -->
  32. <view class="box">
  33. <view class="left">
  34. 时间
  35. </view>
  36. <view class="right">
  37. <uni-datetime-picker v-model="single">
  38. <view class="right">
  39. {{single}}
  40. <div class="right-img">
  41. <img src="../../static/bottom.png">
  42. </div>
  43. </view>
  44. </uni-datetime-picker>
  45. </view>
  46. </view>
  47. <!-- 路线区域 -->
  48. <view class="box">
  49. <view class="left">
  50. 路线
  51. </view>
  52. <picker style="width: 40%;" @change="bindPickerChange($event,1)" :value="pathIndex" :range="pathList">
  53. <view class="right">
  54. {{pathList[pathIndex]}}
  55. <div class="right-img">
  56. <img src="../../static/bottom.png">
  57. </div>
  58. </view>
  59. </picker>
  60. </view>
  61. <!-- 状态区域 -->
  62. <view class="box">
  63. <view class="left">
  64. 状态
  65. </view>
  66. <picker style="width: 40%;" @change="bindPickerChange($event,1)" :value="busIndex" :range="busList">
  67. <view class="right">
  68. <!-- {{busList[busIndex]}} -->
  69. 预约进行中
  70. <!-- <div class="right-img">
  71. <img src="../../static/bottom.png">
  72. </div> -->
  73. </view>
  74. </picker>
  75. </view>
  76. <!-- 人员名单区域 -->
  77. <view class="list">
  78. <view class="list-title">
  79. 人员名单(25/52)
  80. </view>
  81. <view class="list-item" v-for="(item,index) in listData" :key="index">
  82. <view class="item-img">
  83. <img :src="item.url">
  84. </view>
  85. <view class="item-info">
  86. <view class="info-name">
  87. <view>
  88. {{item.name}}
  89. </view>
  90. <view class="info-name-img">
  91. <img :src="item.sex ===1?'../../static/boy.png':'../../static/gril.png'">
  92. </view>
  93. </view>
  94. <view class="info-mes">
  95. {{item.identity}}<span>{{item.time}}</span>
  96. </view>
  97. </view>
  98. <view class="item-type">
  99. <img src="../../static/subscribe.png">
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </template>
  105. <script setup>
  106. import {
  107. ref
  108. } from "vue"
  109. import {
  110. onLoad
  111. } from '@dcloudio/uni-app'
  112. onLoad((options) => {
  113. info.value = JSON.parse(options.info)
  114. console.log(info.value);
  115. })
  116. const info = ref({})
  117. const busList = ref(["赣AU8G96", "赣AU8G99", "赣AU8G86"])
  118. const busIndex = ref(0)
  119. const pathList = ref(["墨轩湖 - 综合楼", "墨轩湖 - 老校区 - 美程宾馆", "墨轩湖 - 老校区"])
  120. const pathIndex = ref(0)
  121. const single = ref('2023-03-28 17:10')
  122. const bindPickerChange = (e, type) => {
  123. console.log(123);
  124. }
  125. const listData = ref([
  126. {
  127. name: '张三',
  128. url: '../../static/man.png',
  129. // 1代表男生,2代表女生
  130. sex: 1,
  131. identity: '教职工',
  132. time: '2023-03-01 10:33:12',
  133. // 1代表已预约
  134. type: 1
  135. },
  136. {
  137. name: '小刘',
  138. url: '../../static/woman.png',
  139. // 1代表男生,2代表女生
  140. sex: 2,
  141. identity: '教职工',
  142. time: '2023-03-01 10:33:12',
  143. // 1代表已预约
  144. type: 1
  145. },
  146. {
  147. name: '小王',
  148. url: '../../static/woman.png',
  149. // 1代表男生,2代表女生
  150. sex: 2,
  151. identity: '教职工',
  152. time: '2023-03-01 10:33:12',
  153. // 1代表已预约
  154. type: 1
  155. },
  156. {
  157. name: '张三',
  158. url: '../../static/man.png',
  159. // 1代表男生,2代表女生
  160. sex: 1,
  161. identity: '教职工',
  162. time: '2023-03-01 10:33:12',
  163. // 1代表已预约
  164. type: 1
  165. },
  166. {
  167. name: '小刘',
  168. url: '../../static/woman.png',
  169. // 1代表男生,2代表女生
  170. sex: 2,
  171. identity: '教职工',
  172. time: '2023-03-01 10:33:12',
  173. // 1代表已预约
  174. type: 1
  175. },
  176. {
  177. name: '小王',
  178. url: '../../static/woman.png',
  179. // 1代表男生,2代表女生
  180. sex: 2,
  181. identity: '教职工',
  182. time: '2023-03-01 10:33:12',
  183. // 1代表已预约
  184. type: 1
  185. }
  186. ])
  187. </script>
  188. <style lang="scss" scoped>
  189. .container {
  190. .box {
  191. display: flex;
  192. justify-content: space-between;
  193. align-items: center;
  194. padding: 0 30rpx;
  195. height: 98rpx;
  196. font-size: 28rpx;
  197. border-bottom: 1rpx solid #E6E6E6;
  198. .left {
  199. flex: 1;
  200. color: #999999;
  201. }
  202. .right {
  203. flex: 1;
  204. display: flex;
  205. justify-content: flex-end;
  206. .right-img {
  207. margin-left: 27rpx;
  208. margin-top: -5rpx;
  209. width: 17rpx;
  210. height: 12rpx;
  211. img {
  212. width: 100%;
  213. height: 100%;
  214. }
  215. }
  216. }
  217. }
  218. .list {
  219. padding: 33rpx 30rpx;
  220. .list-title {
  221. height: 41rpx;
  222. color: #999999;
  223. font-size: 28rpx;
  224. }
  225. .list-item {
  226. display: flex;
  227. align-items: center;
  228. box-sizing: border-box;
  229. padding: 29rpx 0 26rpx 0;
  230. height: 155rpx;
  231. border-bottom: 1rpx solid #E6E6E6;
  232. .item-img {
  233. width: 100rpx;
  234. height: 100rpx;
  235. border-radius: 50%;
  236. img {
  237. width: 100%;
  238. height: 100%;
  239. }
  240. }
  241. .item-info {
  242. flex: 1;
  243. display: flex;
  244. flex-direction: column;
  245. justify-content: space-evenly;
  246. margin-left: 6rpx;
  247. height: 100rpx;
  248. .info-name {
  249. display: flex;
  250. align-items: center;
  251. font-size: 32rpx;
  252. .info-name-img {
  253. margin-left: 26rpx;
  254. width: 30rpx;
  255. height: 35rpx;
  256. img {
  257. width: 100%;
  258. height: 100%;
  259. }
  260. }
  261. }
  262. .info-mes {
  263. font-size: 24rpx;
  264. color: #999999;
  265. span {
  266. margin-left: 26rpx;
  267. color: #A6A6A6;
  268. }
  269. }
  270. }
  271. .item-type {
  272. width: 104rpx;
  273. height: 41rpx;
  274. img {
  275. width: 100%;
  276. height: 100%;
  277. }
  278. }
  279. }
  280. }
  281. }
  282. </style>