studentManage.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  1. <template>
  2. <view class="container" :style="[showEdit ? 'padding-bottom:180rpx' : '', showPage ? 'overflow:hidden' : 'overflow:visible']">
  3. <!-- 背景图片区域 -->
  4. <img class="img_bg" src="../../static/images/center-bg.png" />
  5. <!-- 输入框和设置按钮区域 -->
  6. <view class="header">
  7. <view class="header_input">
  8. <uni-icons type="search" size="28" color="#808080" @click="changeInputValue"></uni-icons>
  9. <input v-model="keyWord" class="input" type="text" placeholder="请输入学生姓名" />
  10. </view>
  11. <view class="header_set" @click="handleClickSet">
  12. <uni-icons type="gear" size="28" color="#383838"></uni-icons>
  13. </view>
  14. </view>
  15. <!-- 选择年级区域 -->
  16. <view class="grade">
  17. <uni-data-picker
  18. placeholder="请选择班级"
  19. popup-title="请选择班级"
  20. :map="{ text: 'name', value: 'classId' }"
  21. :clear-icon="false"
  22. :localdata="dataTree_student"
  23. v-model="classes_student"
  24. @nodeclick="onchange_student"
  25. ></uni-data-picker>
  26. </view>
  27. <!-- 功能按钮区域 -->
  28. <view class="school" v-if="list.length">
  29. <!-- 邀请家长按钮区域 -->
  30. <view v-if="!showEdit" class="invite" @click="handleInvitation">
  31. <uni-icons type="personadd" size="22" color="#0061FF"></uni-icons>
  32. &nbsp;邀请家长
  33. </view>
  34. <!-- 批量修改按钮区域 -->
  35. <view v-if="!showEdit" class="school_edit" @click="handleEdit('修改')">
  36. <img class="img" src="@/static/images/edit2.png" />
  37. 批量修改
  38. </view>
  39. <!-- 添加按钮区域 -->
  40. <view v-if="!showEdit" class="add" @click="handleAdd">
  41. <uni-icons type="plus" size="22" color="#0061FF"></uni-icons>
  42. &nbsp;添加
  43. </view>
  44. <!-- 删除按钮区域 -->
  45. <view v-if="!showEdit" class="delete" @click="handleDelete('删除')">
  46. <uni-icons type="trash" size="22" color="#D43030"></uni-icons>
  47. 批量删除
  48. </view>
  49. <!-- 全选按钮区域 -->
  50. <view v-if="showEdit" class="school_btn">
  51. <view class="cancel" @click="handleCancel">取消</view>
  52. <radio color="#0061FF" style="transform: scale(0.7)" :checked="allChecked" @click="handleAllCheck" />
  53. <view class="all">全选</view>
  54. </view>
  55. </view>
  56. <!-- 学生列表区域 -->
  57. <view class="list_box" v-if="list.length">
  58. <uni-swipe-action>
  59. <view v-for="(item, index) in list" :key="index">
  60. <uni-swipe-action-item :right-options="options" @click="onClickItem(item)">
  61. <!-- 每一个学生区域 -->
  62. <view class="item_box" @click="handleClickItem(item)">
  63. <view class="box_info">
  64. <image v-if="item.headImage" class="info_img" :src="item.headImage" mode="aspectFill" @click.stop="handleImageClick(item)"></image>
  65. <image
  66. v-else
  67. class="info_img" @click.stop="handleImageClick(item)"
  68. src="https://wanzai-1306339220.cos.ap-shanghai.myqcloud.com/excelModel/nupp7VVnHWpVa413437dba82ce85374b2a4ee1a6b973.png"
  69. mode="aspectFill"
  70. ></image>
  71. <view class="info_msg">
  72. <view class="msg_name">
  73. {{ item.name }}
  74. </view>
  75. <view class="msg_no">
  76. {{ item.cardNo }}
  77. </view>
  78. </view>
  79. </view>
  80. <view class="box_time">{{ item.timeGroup }}</view>
  81. <radio v-if="showEdit" color="#0061FF" style="transform: scale(0.7)" :checked="item.isChecked" />
  82. </view>
  83. </uni-swipe-action-item>
  84. <view style="height: 20rpx"></view>
  85. </view>
  86. </uni-swipe-action>
  87. </view>
  88. <!-- 关联时间组按钮区域 -->
  89. <view class="btn" v-if="showEdit && currentType == '修改'">
  90. <view class="btn_box" @click="handleBind">
  91. <uni-icons color="#fff" type="link" size="28"></uni-icons>
  92. <text class="text">关联时间组</text>
  93. </view>
  94. </view>
  95. <!-- 批量删除区域 -->
  96. <view class="btn" v-if="showEdit && currentType == '删除'">
  97. <view class="btn_box delete" @click="handleDeleteBatch">
  98. <uni-icons color="#fff" type="trash" size="28"></uni-icons>
  99. <text class="text">批量删除</text>
  100. </view>
  101. </view>
  102. <!-- 没有数据时展示的页面 -->
  103. <NoData v-if="!list.length" style="margin-top: 140rpx" />
  104. <!-- 弹窗区域 -->
  105. <uni-popup ref="popupDom">
  106. <view class="pop_up">
  107. <!-- 头部标题区域 -->
  108. <view class="popup_top">{{ headerName }} - 关联时间组</view>
  109. <!-- 时间组区域 -->
  110. <view class="popup_body">
  111. <!-- 每一个时间组区域 -->
  112. <view class="time_item" v-for="item in timeGroups" :key="item.id" @click="handleClickItemPop(item)">
  113. <view class="item_left">
  114. <view class="top">{{ item.name }}</view>
  115. <view class="bottom">{{ item.remark }}</view>
  116. </view>
  117. <radio color="#0061FF" style="transform: scale(0.9)" :checked="item.isChecked" />
  118. </view>
  119. </view>
  120. </view>
  121. </uni-popup>
  122. </view>
  123. </template>
  124. <script setup>
  125. import { ref } from 'vue'
  126. import { onLoad } from '@dcloudio/uni-app'
  127. import HeaderInput from '@/components/headerInput.vue'
  128. import NoData from '@/components/noData.vue'
  129. import { myRequest } from '@/utils/api.js'
  130. import { decryptDes } from '@/utils/des.js'
  131. import getLessLimitSizeImage from '@/utils/imageCompress.js'
  132. // 当前所处班级
  133. const classInfo = ref()
  134. // 搜索框绑定数据
  135. const keyWord = ref('')
  136. // 学生列表数据
  137. const list = ref([])
  138. // 缓存数据
  139. const copyList = ref([])
  140. // 是否显示全选radio
  141. const showEdit = ref(false)
  142. // 是否全选
  143. const allChecked = ref(false)
  144. // 弹窗DOM
  145. const popupDom = ref()
  146. // 时间组列表
  147. const timeGroups = ref([])
  148. // 弹窗标题
  149. const headerName = ref('')
  150. // 当前学生id
  151. const studentId = ref()
  152. // 滚动穿透控制
  153. const showPage = ref(false)
  154. const options = [
  155. {
  156. text: '删除',
  157. style: {
  158. backgroundColor: '#D43030'
  159. }
  160. }
  161. ]
  162. // 判断是修改还是删除
  163. const currentType = ref('')
  164. // 班级数组
  165. const dataTree_student = ref([])
  166. // 选择的班级
  167. const classes_student = ref()
  168. // 选择的年级
  169. const grade_student = ref()
  170. onLoad(() => {
  171. const id = uni.getStorageSync('userInfo').id
  172. getManageClass(id)
  173. })
  174. // 获取管理的班级数组
  175. const getManageClass = async (id) => {
  176. const res = await myRequest({
  177. url: '/wanzai/api/smartUser/getManageClass',
  178. data: {
  179. id
  180. }
  181. })
  182. // console.log(res)
  183. const result = JSON.parse(decryptDes(res.data))
  184. // console.log(result)
  185. dataTree_student.value = result
  186. classes_student.value = result[0].classId
  187. grade_student.value = result[0].gradeId
  188. classInfo.value = result[0].name
  189. uni.setStorageSync('grade_student', grade_student.value)
  190. uni.setStorageSync('classes_student', classes_student.value)
  191. uni.setStorageSync('currentClass', classInfo.value)
  192. uni.setNavigationBarTitle({
  193. title: classInfo.value
  194. })
  195. getData()
  196. }
  197. // 获取学生列表数据
  198. const getData = async () => {
  199. const res = await myRequest({
  200. url: '/wanzai/api/smartUser/queryClassUser',
  201. data: {
  202. userId: uni.getStorageSync('userInfo').id,
  203. keyWord: keyWord.value,
  204. classId: classes_student.value
  205. }
  206. })
  207. // console.log(res)
  208. const result = JSON.parse(decryptDes(res.data))
  209. // console.log(result)
  210. list.value = result.userDetails
  211. list.value.forEach((ele) => {
  212. ele.isChecked = false
  213. })
  214. }
  215. // 点击邀请家长按钮回调
  216. const handleInvitation = () => {
  217. let departmentId = uni.getStorageSync('departmentId')
  218. let departmentId_list = uni.getStorageSync('departmentId_list')
  219. if (departmentId && departmentId_list) {
  220. uni.navigateTo({
  221. url: '/pages/invitation/invitation'
  222. })
  223. } else {
  224. uni.showToast({
  225. title: '请先选择部门',
  226. icon: 'none'
  227. })
  228. setTimeout(() => {
  229. uni.navigateTo({
  230. url: '/pages/set/set'
  231. })
  232. }, 1500)
  233. }
  234. }
  235. // 点击批量按钮回调
  236. const handleEdit = (type) => {
  237. currentType.value = type
  238. showEdit.value = true
  239. copyList.value = JSON.parse(JSON.stringify(list.value))
  240. }
  241. // 点击添加按钮回调
  242. const handleAdd = () => {
  243. let departmentId = uni.getStorageSync('departmentId')
  244. let departmentId_list = uni.getStorageSync('departmentId_list')
  245. if (departmentId && departmentId_list) {
  246. uni.navigateTo({
  247. url: '/pages/addStudent/addStudent'
  248. })
  249. } else {
  250. uni.showToast({
  251. title: '请先选择部门',
  252. icon: 'none'
  253. })
  254. setTimeout(() => {
  255. uni.navigateTo({
  256. url: '/pages/set/set'
  257. })
  258. }, 1500)
  259. }
  260. }
  261. // 批量删除按钮回调
  262. const handleDelete = (type) => {
  263. currentType.value = type
  264. showEdit.value = true
  265. copyList.value = JSON.parse(JSON.stringify(list.value))
  266. }
  267. // 点击取消按钮回调
  268. const handleCancel = () => {
  269. currentType.value = ''
  270. showEdit.value = false
  271. allChecked.value = false
  272. list.value = copyList.value
  273. }
  274. // 点击全选按钮回调
  275. const handleAllCheck = () => {
  276. if (!allChecked.value) {
  277. list.value.forEach((ele) => {
  278. ele.isChecked = true
  279. })
  280. } else {
  281. list.value.forEach((ele) => {
  282. ele.isChecked = false
  283. })
  284. }
  285. allChecked.value = !allChecked.value
  286. }
  287. // 点击每一项删除回调
  288. const onClickItem = (item) => {
  289. uni.showModal({
  290. title: '提示',
  291. content: `确定把${item.name}移除吗?`,
  292. success: (res) => {
  293. if (res.confirm) {
  294. handleDeleteReq([item.id])
  295. }
  296. }
  297. })
  298. }
  299. // 删除请求
  300. const handleDeleteReq = async (ids) => {
  301. const res = await myRequest({
  302. url: '/wanzai/api/smartUser/appRemoveClass',
  303. method: 'post',
  304. data: {
  305. ids: ids
  306. }
  307. })
  308. // console.log(res)
  309. if (res.code == 200) {
  310. uni.showToast({
  311. title: res.message,
  312. icon: 'success'
  313. })
  314. setTimeout(() => {
  315. currentType.value = ''
  316. showEdit.value = false
  317. allChecked.value = false
  318. getData()
  319. }, 1500)
  320. }
  321. }
  322. // 点击每一个学生时的回调
  323. const handleClickItem = (item) => {
  324. if (showEdit.value) {
  325. item.isChecked = !item.isChecked
  326. // 判断全选按钮的状态
  327. allChecked.value = list.value.every((ele) => ele.isChecked)
  328. } else {
  329. // 编辑单个学生
  330. showPage.value = true
  331. headerName.value = item.name
  332. studentId.value = item.id
  333. getTimeGroups()
  334. popupDom.value.open('center')
  335. }
  336. }
  337. //切换头像
  338. const handleImageClick = (item) => {
  339. console.log(item)
  340. uni.chooseImage({
  341. count: 1,
  342. mediaType: ['image'],
  343. sourceType: ['camera'],
  344. sizeType: ['compressed'],
  345. success: (res) => {
  346. const tempFilePath = res.tempFilePaths[0];
  347. res.tempFiles.forEach((ele) => {
  348. if (ele.fileType === 'image' && ele.size > 1024 * 1024 * 2) {
  349. //这里的id和页面中写的html代码的canvas的id要一致
  350. let canvasId = 'zipCanvas'
  351. //原图的路径
  352. let imagePath = ele.tempFilePath
  353. //大小限制1024kb
  354. let limitSize = 1024 * 2
  355. //初始绘画区域是画布自身的宽度也就是屏幕宽度
  356. let drawWidth = uni.getSystemInfoSync().windowWidth
  357. // 图片过大压缩
  358. getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, (resPath) => {
  359. handleUploadMini(tempFilePath,item)
  360. })
  361. } else {
  362. handleUploadMini(tempFilePath,item)
  363. }
  364. })
  365. }
  366. })
  367. }
  368. const handleUploadMini = (ele,item) => {
  369. uni.showLoading({
  370. title: '上传中,请稍后',
  371. mask: true
  372. })
  373. uni.uploadFile({
  374. url: `https://www.campussmartlife.com/smartApi/wanzai/api/file/uploadFile`,
  375. filePath: ele,
  376. name: 'file',
  377. header: {
  378. token: uni.getStorageSync('token') || '',
  379. user_head: uni.getStorageSync('userhead') || ''
  380. },
  381. success: (uploadFileRes) => {
  382. let imgUrl = JSON.parse(uploadFileRes.data).data
  383. const result = JSON.parse(decryptDes(imgUrl)).fileUrl
  384. console.log(result)
  385. changeImg(result,item)
  386. },
  387. fail: (err) => {
  388. console.log('err',err)
  389. uni.showToast({
  390. title: '上传失败',
  391. icon: 'error'
  392. })
  393. },
  394. complete: () => {
  395. uni.hideLoading()
  396. }
  397. })
  398. }
  399. //修改头像
  400. const changeImg = async (image,item) => {
  401. const res = await myRequest({
  402. url: '/wanzai/api/smartUser/updateSmartUserImageById',
  403. method: 'post',
  404. data: {
  405. id:item.id,
  406. headImage:image,
  407. }
  408. })
  409. if (res.code == 200) {
  410. uni.showToast({
  411. title: res.message,
  412. icon: 'success'
  413. })
  414. setTimeout(() => {
  415. getData()
  416. }, 1500)
  417. }
  418. }
  419. // 获取时间组列表数据
  420. const getTimeGroups = async () => {
  421. const res = await myRequest({
  422. url: '/wanzai/api/smartUser/timeGroups'
  423. })
  424. // console.log(res)
  425. const result = JSON.parse(decryptDes(res.data))
  426. // console.log(result)
  427. timeGroups.value = result
  428. timeGroups.value.forEach((ele) => {
  429. ele.isChecked = false
  430. })
  431. }
  432. // 点击弹窗每一个时间组的回调
  433. const handleClickItemPop = (item) => {
  434. timeGroups.value.forEach((ele) => {
  435. ele.isChecked = false
  436. })
  437. item.isChecked = !item.isChecked
  438. uni.showModal({
  439. title: '提示',
  440. content: '确定修改时间组吗?',
  441. success: async (res) => {
  442. if (res.confirm) {
  443. handleConfirm(item.id)
  444. }
  445. }
  446. })
  447. }
  448. const handleConfirm = async (timeGroupId) => {
  449. const res = await myRequest({
  450. url: '/wanzai/api/smartUser/setUserTimeGroup',
  451. method: 'post',
  452. data: {
  453. ids: [studentId.value],
  454. timeGroupId
  455. }
  456. })
  457. // console.log(res)
  458. uni.showToast({
  459. title: res.message,
  460. icon: 'none',
  461. mask: true
  462. })
  463. if (res.code == 200) {
  464. setTimeout(() => {
  465. uni.reLaunch({
  466. url: '/pages/studentManage/studentManage'
  467. })
  468. }, 1500)
  469. }
  470. }
  471. // 点击关联时间组按钮回调
  472. const handleBind = () => {
  473. // 判断是否选择了学生
  474. const flag = list.value.find((ele) => ele.isChecked)
  475. if (!flag) {
  476. uni.showToast({
  477. title: '请至少选择一名学生',
  478. icon: 'none',
  479. mask: true
  480. })
  481. } else {
  482. let arr = []
  483. list.value.forEach((ele) => {
  484. if (ele.isChecked) {
  485. arr.push(ele.id)
  486. }
  487. })
  488. uni.navigateTo({
  489. url: `/pages/timeGroup/timeGroup?ids=${JSON.stringify(arr)}`
  490. })
  491. }
  492. }
  493. // 批量删除按钮回调
  494. const handleDeleteBatch = () => {
  495. // 判断是否选择了学生
  496. const flag = list.value.find((ele) => ele.isChecked)
  497. if (!flag) {
  498. uni.showToast({
  499. title: '请至少选择一名学生',
  500. icon: 'none',
  501. mask: true
  502. })
  503. } else {
  504. uni.showModal({
  505. title: '提示',
  506. content: '确定批量移除吗?',
  507. success: (res) => {
  508. if (res.confirm) {
  509. let arr = []
  510. list.value.forEach((ele) => {
  511. if (ele.isChecked) {
  512. arr.push(ele.id)
  513. }
  514. })
  515. handleDeleteReq(arr)
  516. }
  517. }
  518. })
  519. }
  520. }
  521. // 输入框组件自定义事件
  522. const changeInputValue = () => {
  523. getData()
  524. }
  525. // 设置图标点击回调
  526. const handleClickSet = () => {
  527. uni.navigateTo({
  528. url: '/pages/set/set'
  529. })
  530. }
  531. // 学生部门筛选框选择时的回调
  532. const onchange_student = (e) => {
  533. // console.log(e)
  534. classes_student.value = e.classId
  535. grade_student.value = e.gradeId
  536. classInfo.value = e.name
  537. uni.setStorageSync('currentClass', classInfo.value)
  538. uni.setNavigationBarTitle({
  539. title: classInfo.value
  540. })
  541. uni.setStorageSync('grade_student', grade_student.value)
  542. uni.setStorageSync('classes_student', classes_student.value)
  543. getData()
  544. }
  545. </script>
  546. <style lang="scss" scoped>
  547. .container {
  548. display: flex;
  549. flex-direction: column;
  550. padding: 0 20rpx;
  551. min-height: 100vh;
  552. background-color: #f1f6fe;
  553. // 背景图片区域样式
  554. .img_bg {
  555. position: absolute;
  556. top: -70rpx;
  557. right: 0;
  558. width: 589rpx;
  559. height: 320rpx;
  560. pointer-events: none;
  561. }
  562. .header {
  563. display: flex;
  564. justify-content: space-between;
  565. align-items: center;
  566. padding-top: 30rpx;
  567. .header_input {
  568. display: flex;
  569. align-items: center;
  570. box-sizing: border-box;
  571. padding-left: 40rpx;
  572. width: 589rpx;
  573. height: 100rpx;
  574. font-size: 28rpx;
  575. border-radius: 13rpx;
  576. border: 2rpx solid #cccccc;
  577. background-color: #fff;
  578. .input {
  579. padding: 0 20rpx;
  580. width: 425rpx;
  581. }
  582. }
  583. .header_set {
  584. display: flex;
  585. justify-content: center;
  586. align-items: center;
  587. width: 100rpx;
  588. height: 100rpx;
  589. border-radius: 13rpx;
  590. border: 2rpx solid #cccccc;
  591. background-color: #fff;
  592. }
  593. }
  594. .grade {
  595. margin-top: 10rpx;
  596. height: 70rpx;
  597. }
  598. // 学校名称区域样式
  599. .school {
  600. display: flex;
  601. // justify-content: space-between;
  602. align-items: center;
  603. margin-top: 38rpx;
  604. color: #808080;
  605. font-size: 28rpx;
  606. .invite {
  607. display: flex;
  608. align-items: center;
  609. margin-right: 30rpx;
  610. color: #0061ff;
  611. }
  612. .school_edit {
  613. display: flex;
  614. align-items: center;
  615. margin-right: 80rpx;
  616. color: #00baad;
  617. .img {
  618. width: 45rpx;
  619. height: 45rpx;
  620. }
  621. }
  622. .add {
  623. display: flex;
  624. align-items: center;
  625. color: #0061ff;
  626. }
  627. .delete {
  628. display: flex;
  629. align-items: center;
  630. margin-left: auto;
  631. color: #d43030;
  632. }
  633. .school_btn {
  634. display: flex;
  635. align-items: center;
  636. .cancel {
  637. margin-right: 20rpx;
  638. color: #d43030;
  639. }
  640. .all {
  641. margin-left: -10rpx;
  642. }
  643. }
  644. }
  645. .list_box {
  646. padding-bottom: 30rpx;
  647. margin-top: 22rpx;
  648. background-color: #f1f6fe;
  649. .item_box {
  650. display: flex;
  651. justify-content: space-between;
  652. align-items: center;
  653. padding: 0 20rpx;
  654. height: 167rpx;
  655. font-size: 28rpx;
  656. border-radius: 8rpx;
  657. background-color: #fff;
  658. .box_info {
  659. display: flex;
  660. .info_img {
  661. width: 100rpx;
  662. height: 100rpx;
  663. border-radius: 50%;
  664. }
  665. .info_msg {
  666. display: flex;
  667. flex-direction: column;
  668. justify-content: space-between;
  669. margin-left: 28rpx;
  670. .msg_name {
  671. font-size: 32rpx;
  672. }
  673. .msg_no {
  674. color: #808080;
  675. }
  676. }
  677. }
  678. .box_time {
  679. }
  680. }
  681. }
  682. .btn {
  683. position: fixed;
  684. bottom: 0;
  685. padding: 0 30rpx 30rpx;
  686. background-color: #fff;
  687. .btn_box {
  688. display: flex;
  689. justify-content: center;
  690. align-items: center;
  691. margin-top: 28rpx;
  692. width: 650rpx;
  693. height: 100rpx;
  694. color: #fff;
  695. font-size: 32rpx;
  696. border-radius: 8rpx;
  697. background-color: #0061ff;
  698. .text {
  699. margin-left: 10rpx;
  700. }
  701. }
  702. .delete {
  703. background-color: #d43030;
  704. }
  705. }
  706. .pop_up {
  707. width: 710rpx;
  708. height: 855rpx;
  709. border-radius: 22rpx;
  710. background-color: #fff;
  711. .popup_top {
  712. height: 94rpx;
  713. line-height: 94rpx;
  714. text-align: center;
  715. font-size: 28rpx;
  716. border-bottom: 1rpx solid #e6e6e6;
  717. }
  718. .popup_body {
  719. height: 760rpx;
  720. overflow-y: auto;
  721. .time_item {
  722. display: flex;
  723. justify-content: space-between;
  724. align-items: center;
  725. padding: 0 40rpx;
  726. height: 130rpx;
  727. border-bottom: 1rpx solid #e6e6e6;
  728. .item_left {
  729. display: flex;
  730. flex-direction: column;
  731. justify-content: space-between;
  732. height: 80rpx;
  733. .top {
  734. font-size: 28rpx;
  735. }
  736. .bottom {
  737. font-size: 24rpx;
  738. color: #b3b3b3;
  739. }
  740. }
  741. }
  742. }
  743. }
  744. }
  745. </style>