courseDetails.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. <template>
  2. <view>
  3. <u-navbar :title="classDetail.className"></u-navbar>
  4. <view class="picture" v-if="courseBase.posterUrl != null">
  5. <!-- <view class="icon" @click="backHomePage">
  6. <u-icon name="arrow-left" color="#ffffff"></u-icon>
  7. </view> -->
  8. <!-- <view class="wrap">
  9. <u-swiper :list="swiperList" mode="number" indicator-pos="bottomRight" :autoplay="false"
  10. height="550"></u-swiper>
  11. </view> -->
  12. <img :src="courseBase.posterUrl" alt="">
  13. <!-- <view class="tag">
  14. 1/5
  15. </view> -->
  16. </view>
  17. <view class="space">
  18. </view>
  19. <view class="main">
  20. <view class="infos">
  21. <view class="title">
  22. {{classDetail.className}}
  23. </view>
  24. <!-- <view class="price">
  25. <text>¥1000元</text> / 36课次(春季班)
  26. </view> -->
  27. <view class="time" v-if="classDetail.scheduleBuilderList != null">
  28. <view class="name">
  29. 时间
  30. </view>
  31. <view class="content">
  32. 周{{classWeek}} {{classTime}}
  33. </view>
  34. </view>
  35. <view class="location">
  36. <view class="name">
  37. 地址
  38. </view>
  39. <view class="content">
  40. <view class="text" v-if="courseBase.suitSchool == '1'">
  41. 青少年宫校区
  42. </view>
  43. <view class="text" v-if="courseBase.suitSchool == '2'">
  44. 分校区
  45. </view>
  46. <view class="img">
  47. <img src="../../../assets/img/riFill-navigation-fill@1x.png" alt="">
  48. </view>
  49. </view>
  50. </view>
  51. <view class="classroom">
  52. <view class="name">
  53. 教室
  54. </view>
  55. <view class="content">
  56. {{classDetail.classRoomN}}
  57. </view>
  58. </view>
  59. </view>
  60. <view class="teacher">
  61. <view class="title">
  62. 授课老师
  63. </view>
  64. <view class="teacher-card">
  65. <view class="item"
  66. @click="gotoUrl('pages/parents/teacherHomepage/teacherHomepage?id=' + classDetail.courseTeachers)">
  67. <view class="photo">
  68. <u-avatar class="avatar"
  69. :src="classDetail.teachersHeadPhoto!=null ?
  70. classDetail.teachersHeadPhoto : '../../assets/img/head.png'" size="96">
  71. </u-avatar>
  72. </view>
  73. <view class="teacher-name">
  74. <view class="name">
  75. {{classDetail.courseTeachersN}}
  76. </view>
  77. <view class="status">
  78. 主讲老师
  79. </view>
  80. </view>
  81. <view class="more">
  82. <u-icon name="arrow-right" color="#cccccc"></u-icon>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="tag">
  88. <view class="item">
  89. <!-- <view class="icon">
  90. <u-icon name="phone" color="#0DBAC7" size="48"></u-icon>
  91. </view> -->
  92. <view class="name">
  93. 咨询电话:
  94. </view>
  95. <view class="phone-teacher">
  96. {{classDetail.consultPhone != null ? classDetail.consultPhone : '暂无'}}
  97. </view>
  98. </view>
  99. <!-- <u-line color="#0DBAC7" direction="col" length="24" />
  100. <view class="item">
  101. <view class="icon">
  102. <u-icon name="email" color="#0DBAC7" size="48"></u-icon>
  103. </view>
  104. <view class="name">
  105. 金牌教师
  106. </view>
  107. </view>
  108. <u-line color="#0DBAC7" direction="col" length="24" />
  109. <view class="item">
  110. <view class="icon">
  111. <u-icon name="weixin-fill" color="#0DBAC7" size="48"></u-icon>
  112. </view>
  113. <view class="name">
  114. 品质保障
  115. </view>
  116. </view> -->
  117. </view>
  118. <view class="class-detail">
  119. <view class="title">
  120. 课程详情
  121. </view>
  122. <view class="detail">
  123. {{courseBase.remark!=null ? courseBase.remark : '无'}}
  124. </view>
  125. <!-- <view class="img">
  126. <img src="../../../assets/img/detaiimg.png" alt="">
  127. </view> -->
  128. </view>
  129. <!-- <view class="school-age">
  130. <view class="title">
  131. 适学年龄
  132. </view>
  133. <view class="content">
  134. 适合4-12岁儿童、青少年
  135. </view>
  136. </view>
  137. <view class="target">
  138. <view class="title">
  139. 课程目标
  140. </view>
  141. <view class="content">
  142. 了解足球相关基础知识,培养兴趣。
  143. </view>
  144. </view> -->
  145. </view>
  146. <view class="bottom">
  147. <view class="shopping-car" @click="toShoppingCar">
  148. <view class="icon">
  149. <u-icon name="shopping-cart" color="#777777" size="40"></u-icon>
  150. </view>
  151. <view class="text">
  152. 购物车
  153. </view>
  154. </view>
  155. <button class="add" @click="popShowClick">加入购物车</button>
  156. </view>
  157. <u-toast ref="uToast" />
  158. <!-- 已经报名 -->
  159. <!-- <view class="bottom">
  160. <button class="registered">已报名,请于一周内缴费</button>
  161. </view> -->
  162. <!-- 弹出层 -->
  163. <view >
  164. <u-popup v-model="popShow" mode="bottom" :closeable='true'>
  165. <view class="popup">
  166. <view class="class-infos">
  167. <view class="picture" v-if="courseBase.posterUrl != null">
  168. <img :src="courseBase.posterUrl" alt="">
  169. </view>
  170. <view class="picture" v-else>
  171. <img src="../../../assets/img/courseD.png" alt="">
  172. </view>
  173. <view class="infos">
  174. <view class="class-name">
  175. {{courseBase.courseName}}
  176. </view>
  177. <view class="price">
  178. {{packageDetail.unitPrice!=null && packageDetail.courseAmount!=null ?
  179. Math.round(packageDetail.unitPrice*packageDetail.courseAmount+packageDetail.waterElectricityAmount) : '0.00'}}元
  180. </view>
  181. <!-- <view class="price-detail" v-if="packageDetail.unitPrice!=null && packageDetail.courseAmount!=null">
  182. (包含报名费{{(packageDetail.unitPrice*packageDetail.courseAmount).toFixed(2)}}元 水电费{{packageDetail.waterElectricityAmount.toFixed(2)}}元)
  183. </view> -->
  184. </view>
  185. </view>
  186. <!-- 报名班级 -->
  187. <view class="sign-up">
  188. <view class="title">
  189. 报名班级
  190. </view>
  191. <view class="options">
  192. <view class="item" v-for="(item,index) in tclassList" :key="index"
  193. :class="activeClass==index ? '' : 'item-state2'" @click="choseClass(item,index)">
  194. {{item.className}}
  195. </view>
  196. </view>
  197. </view>
  198. <!-- 选择套餐 -->
  199. <view class="set-meal" v-if="coursePackageList.length != 0">
  200. <view class="title">
  201. 选择套餐
  202. </view>
  203. <view class="options">
  204. <view class="item"
  205. v-for="(item,index) in coursePackageList" :key="index"
  206. :class="activePackage==index ? '' : 'item-state2'"
  207. @click="chosePackage(item,index)" v-if="item.isMobileShow"
  208. :style="{ color: item.saleIf ? '' : 'rgba(128, 128, 128, 0.5)' }">
  209. {{item.packageName}}班 {{item.courseAmount}}课时
  210. </view>
  211. </view>
  212. </view>
  213. <!-- 报名学生 -->
  214. <view class="apply-student">
  215. <view class="title">
  216. 报名学生
  217. </view>
  218. <view class="options">
  219. <view class="item" v-for="(item,index) in studentList" :key="index"
  220. :class="activeStudent==index ? 'item-checked' : ''" @click="choseStudent(item,index)">
  221. <view class="photo">
  222. <u-avatar class="avatar" mode="square"
  223. :src="item.headPhoto != null ? item.headPhoto : '../../assets/img/head.png'" size="80">
  224. </u-avatar>
  225. </view>
  226. <view class="infos">
  227. <view class="name-age">
  228. <view class="name">
  229. {{item.studentName}}
  230. </view>
  231. <view class="age">
  232. {{item.age}}岁
  233. </view>
  234. </view>
  235. <view class="tel">
  236. {{item.firstContactPhone}}
  237. </view>
  238. </view>
  239. </view>
  240. </view>
  241. </view>
  242. <!-- 加入购物车 -->
  243. <view class="btn-box">
  244. <button class="add" @click="addShoppingCart">加入购物车</button>
  245. </view>
  246. <view class="" style="height: 24rpx;">
  247. </view>
  248. </view>
  249. </u-popup>
  250. </view>
  251. </view>
  252. </template>
  253. <script>
  254. import * as mineApi from '@/apis/parents/mine.js'
  255. import * as courseApi from '@/apis/parents/course.js'
  256. import * as shoppingCarApi from '@/apis/parents/shoppingCar.js'
  257. export default {
  258. data() {
  259. return {
  260. swiperList: [{
  261. image: 'https://cdn.uviewui.com/uview/swiper/1.jpg'
  262. }
  263. ],
  264. courseId: '',
  265. classId: '',
  266. courseBase: {},
  267. coursePackageList: [],
  268. tclassList: [],
  269. classDetail: {},
  270. packageDetail: {},
  271. studentId: '',
  272. stuDetail: {},
  273. show: false,
  274. studentList: [],
  275. popShow:false,
  276. activeClass: 0,
  277. activePackage: 0,
  278. activeStudent: 0,
  279. shoppingCartList: [],
  280. shoppDetail: {},
  281. classWeek: '',
  282. classTime: ''
  283. }
  284. },
  285. onLoad(op) {
  286. if(op.id) {
  287. this.courseId = op.id;
  288. this.classId = op.classId;
  289. this.getCourseDetail();
  290. }
  291. },
  292. onReady() {
  293. if (this.carhelp.getStudentId()) {
  294. this.studentId = this.carhelp.getStudentId().studentId;
  295. }
  296. if (this.carhelp.getShoppingCartList()) {
  297. this.shoppingCartList = this.carhelp.getShoppingCartList();
  298. }
  299. this.getStudentList();
  300. },
  301. methods: {
  302. popShowClick() {
  303. if(this.studentList != 0) {
  304. this.popShow = true;
  305. } else {
  306. this.$refs.uToast.show({
  307. title: '请先添加子女',
  308. type: 'warning',
  309. url: '/pages/parents/mine/addChildInformation'
  310. })
  311. }
  312. },
  313. toShoppingCar() {
  314. uni.redirectTo({
  315. url: '/pages/parents/course/shoppingCar'
  316. });
  317. },
  318. addShoppingCart() {
  319. this.popShow = false;
  320. var data = {
  321. studentId: this.stuDetail.studentId,
  322. packageId: this.packageDetail.packageId,
  323. classId: this.classDetail.classId,
  324. studentType: '1'
  325. }
  326. uni.showLoading({
  327. title: "加载中",
  328. mask: true,
  329. })
  330. shoppingCarApi.add(data).then((res) => {
  331. uni.hideLoading();
  332. uni.showToast({
  333. title: '加入购物车成功',
  334. icon: "none"
  335. })
  336. }).catch(error => {
  337. uni.showToast({
  338. title: error,
  339. icon: "none"
  340. })
  341. })
  342. },
  343. choseClass(item,index) {
  344. this.activeClass = index;
  345. this.classDetail = item;
  346. },
  347. chosePackage(item,index) {
  348. if(item.saleIf) {
  349. this.activePackage = index;
  350. this.packageDetail = item;
  351. if(this.packageDetail.unitPrice == null) {
  352. this.packageDetail.unitPrice = 0;
  353. }
  354. if(this.packageDetail.waterElectricityAmount == null) {
  355. this.packageDetail.waterElectricityAmount = 0;
  356. }
  357. }
  358. },
  359. choseStudent(item,index) {
  360. this.activeStudent = index;
  361. this.stuDetail = item;
  362. },
  363. getStudentList() {
  364. uni.showLoading({
  365. title: "加载中",
  366. mask: true,
  367. })
  368. mineApi.studentList().then((res) => {
  369. uni.hideLoading();
  370. this.studentList = res.data.studentList;
  371. for (var i = 0; i < this.studentList.length; i++) {
  372. if(this.studentList[i].studentId == this.studentId) {
  373. this.stuDetail = this.studentList[i];
  374. this.activeStudent = i;
  375. }
  376. }
  377. }).catch(error => {
  378. uni.showToast({
  379. title: error,
  380. icon: "none"
  381. })
  382. })
  383. },
  384. getCourseDetail() {
  385. uni.showLoading({
  386. title: "加载中",
  387. mask: true,
  388. })
  389. courseApi.getCourseDetail({
  390. courseId: this.courseId,
  391. classId: this.classId
  392. }).then((res) => {
  393. uni.hideLoading();
  394. this.courseBase = res.data.courseBase;
  395. this.coursePackageList = res.data.coursePackageList;
  396. if(this.coursePackageList.length != 0) {
  397. // this.packageDetail = this.coursePackageList[0];
  398. if(this.packageDetail.unitPrice == null) {
  399. this.packageDetail.unitPrice = 0;
  400. }
  401. if(this.packageDetail.waterElectricityAmount == null) {
  402. this.packageDetail.waterElectricityAmount = 0;
  403. }
  404. for (var i = 0; i < this.coursePackageList.length; i++) {
  405. if(this.coursePackageList[i].isMobileShow && this.coursePackageList[i].saleIf) {
  406. this.packageDetail = this.coursePackageList[i];
  407. this.activePackage = i;
  408. break;
  409. }
  410. }
  411. }
  412. this.tclassList = res.data.tclassList;
  413. for (var i = 0; i < this.tclassList.length; i++) {
  414. if(this.tclassList[i].classId == this.classId) {
  415. this.classDetail = this.tclassList[i];
  416. this.activeClass = i;
  417. }
  418. }
  419. var week = this.classDetail.scheduleBuilderList[0].repeatSet;
  420. if(week.indexOf('1') != -1) {
  421. week = week.replace('1','一');
  422. }
  423. if(week.indexOf('2') != -1) {
  424. week = week.replace('2','二');
  425. }
  426. if(week.indexOf('3') != -1) {
  427. week = week.replace('3','三');
  428. }
  429. if(week.indexOf('4') != -1) {
  430. week = week.replace('4','四');
  431. }
  432. if(week.indexOf('5') != -1) {
  433. week = week.replace('5','五');
  434. }
  435. if(week.indexOf('6') != -1) {
  436. week = week.replace('6','六');
  437. }
  438. if(week.indexOf('0') != -1) {
  439. week = week.replace('0','日');
  440. }
  441. this.classWeek = week;
  442. this.classTime = this.classDetail.scheduleBuilderList[0].coursePeriods
  443. }).catch(error => {
  444. uni.showToast({
  445. title: error,
  446. icon: "none"
  447. })
  448. })
  449. },
  450. }
  451. }
  452. </script>
  453. <style lang="scss" scoped>
  454. page {
  455. padding-bottom: 132px;
  456. background-color: #fff;
  457. }
  458. .picture {
  459. height: 280px;
  460. position: relative;
  461. .icon {
  462. position: absolute;
  463. left: 10px;
  464. top: 10px;
  465. z-index: 1;
  466. font-size: 20px;
  467. }
  468. .tag {
  469. width: 120rpx;
  470. line-height: 64rpx;
  471. border-radius: 50px;
  472. background-color: rgba(0, 0, 0, 0.5);
  473. color: rgba(255, 255, 255, 1);
  474. font-size: 14px;
  475. text-align: center;
  476. position: absolute;
  477. right: 16px;
  478. bottom: 23px;
  479. }
  480. img {
  481. width: 100%;
  482. height: 100%;
  483. }
  484. }
  485. .space {
  486. background-color: #fff;
  487. border-radius: 24rpx 24rpx 0px 0px;
  488. height: 22px;
  489. width: 100%;
  490. margin-top: -12px;
  491. position: absolute;
  492. left: 0;
  493. right: 0;
  494. border-bottom: none;
  495. }
  496. .main {
  497. background-color: rgba(255, 255, 255, 1);
  498. padding: 16rpx 40rpx;
  499. .infos {
  500. .title {
  501. line-height: 26px;
  502. color: rgba(51, 51, 51, 1);
  503. font-size: 20px;
  504. font-weight: bold;
  505. }
  506. .price {
  507. margin-top: 16px;
  508. font-size: 18px;
  509. text {
  510. color: rgba(255, 61, 0, 1);
  511. }
  512. }
  513. .time,
  514. .location,
  515. .classroom {
  516. display: flex;
  517. margin-top: 12px;
  518. line-height: 24px;
  519. .name {
  520. color: rgba(119, 119, 119, 1);
  521. }
  522. .content {
  523. color: rgba(51, 51, 51, 1);
  524. margin-left: 12px;
  525. flex: 1;
  526. display: flex;
  527. justify-content: space-between;
  528. .img {
  529. width: 20px;
  530. height: 20px;
  531. img {
  532. width: 100%;
  533. height: 100%;
  534. vertical-align: middle;
  535. }
  536. }
  537. }
  538. }
  539. }
  540. .title {
  541. color: rgba(51, 51, 51, 1);
  542. font-size: 18px;
  543. font-weight: bold;
  544. }
  545. .teacher {
  546. margin-top: 40px;
  547. .teacher-card {
  548. margin-top: 24rpx;
  549. display: flex;
  550. justify-content: space-between;
  551. .item {
  552. width: 47.5%;
  553. padding: 24rpx 0 24rpx 24rpx;
  554. border-radius: 24rpx;
  555. background-color: rgba(236, 236, 236, 1);
  556. display: flex;
  557. }
  558. .photo {
  559. width: 96rpx;
  560. height: 96rpx;
  561. overflow: hidden;
  562. border-radius: 100rpx;
  563. img {
  564. width: 100%;
  565. height: 100%;
  566. }
  567. }
  568. .teacher-name {
  569. display: flex;
  570. flex-direction: column;
  571. justify-content: space-between;
  572. margin-left: 16rpx;
  573. .name {
  574. line-height: 44rpx;
  575. font-size: 32rpx;
  576. color: rgba(51, 51, 51, 1);
  577. }
  578. .status {
  579. color: rgba(119, 119, 119, 1);
  580. line-height: 40rpx;
  581. }
  582. }
  583. .more {
  584. display: flex;
  585. align-items: center;
  586. margin-left: 16rpx;
  587. }
  588. }
  589. }
  590. .tag {
  591. margin-top: 48rpx;
  592. padding: 18px 12px;
  593. border-radius: 12px;
  594. background-color: rgba(13, 186, 199, 0.1);
  595. height: 120rpx;
  596. display: flex;
  597. justify-content: space-between;
  598. align-items: center;
  599. .item {
  600. display: flex;
  601. align-items: center;
  602. .name {
  603. margin-left: 8rpx;
  604. color: rgba(16, 16, 16, 1);
  605. }
  606. .phone-teacher {
  607. margin-left: 8px;
  608. }
  609. }
  610. }
  611. .class-detail {
  612. margin-top: 80rpx;
  613. .detail {
  614. color: rgba(119, 119, 119, 1);
  615. line-height: 20px;
  616. margin-top: 24rpx;
  617. }
  618. .img {
  619. margin-top: 40rpx;
  620. width: 100%;
  621. height: 200px;
  622. img {
  623. width: 100%;
  624. height: 100%;
  625. }
  626. }
  627. }
  628. .school-age,
  629. .target {
  630. margin-top: 80rpx;
  631. .content {
  632. margin-top: 12px;
  633. color: rgba(119, 119, 119, 1);
  634. }
  635. }
  636. }
  637. .bottom {
  638. width: 100%;
  639. background-color: rgba(255, 255, 255, 1);
  640. position: fixed;
  641. bottom: 0;
  642. left: 0;
  643. right: 0;
  644. padding: 20rpx 32rpx;
  645. display: flex;
  646. justify-content: space-between;
  647. .icon{
  648. text-align: center;
  649. }
  650. .text{
  651. color: rgba(16, 16, 16, 1);
  652. font-size: 24rpx;
  653. }
  654. .add {
  655. width:560rpx;
  656. border-radius: 50px;
  657. background-color: rgba(13, 186, 199, 1);
  658. line-height: 40px;
  659. color: rgba(255, 255, 255, 1);
  660. font-size: 16px;
  661. z-index: 999;
  662. margin-right: 0;
  663. }
  664. .registered{
  665. width: 100%;
  666. height: 80rpx;
  667. line-height: 80rpx;
  668. border-radius: 50px;
  669. background-color: rgba(153, 153, 153, 1);
  670. color: rgba(255, 255, 255, 1);
  671. font-size: 32rpx;
  672. }
  673. }
  674. // 弹出层
  675. .popup{
  676. padding: 32rpx;
  677. height:520px;
  678. padding-bottom:100rpx;
  679. .class-infos{
  680. display: flex;
  681. align-items: center;
  682. .picture{
  683. width: 152rpx;
  684. height: 152rpx;
  685. border-radius: 4px;
  686. overflow: hidden;
  687. img{
  688. width: 100%;
  689. height: 100%;
  690. }
  691. }
  692. .infos{
  693. margin-left: 24rpx;
  694. .class-name{
  695. color: rgba(51, 51, 51, 1);
  696. font-size: 36rpx;
  697. }
  698. .price{
  699. color: rgba(255, 61, 0, 1);
  700. font-size: 36rpx;
  701. margin-top: 20rpx;
  702. font-weight: bold;
  703. }
  704. .price-detail{
  705. color: rgba(119, 119, 119, 1);
  706. font-size: 24rpx;
  707. margin-top: 8rpx;
  708. }
  709. }
  710. }
  711. // 报名班级 选择套餐
  712. .sign-up,.set-meal{
  713. margin-top: 24rpx;
  714. .title{
  715. color: rgba(51, 51, 51, 1);
  716. }
  717. .options{
  718. margin-top: 16rpx;
  719. display: flex;
  720. flex-wrap: wrap;
  721. .item{
  722. height: 64rpx;
  723. line-height: 64rpx;
  724. text-align: center;
  725. border-radius: 4px;
  726. background-color: rgba(255, 255, 255, 1);
  727. color: rgba(13, 186, 199, 1);
  728. border: 1px solid rgba(13, 186, 199, 1);
  729. margin-right: 12rpx;
  730. margin-bottom: 16rpx;
  731. padding: 0 16rpx;
  732. }
  733. .item-state2{
  734. background-color: rgba(244, 246, 247, 1);
  735. color: rgba(51, 51, 51, 1);
  736. border: none;
  737. }
  738. }
  739. }
  740. // 报名学生
  741. .apply-student{
  742. margin-top: 24rpx;
  743. margin-bottom: 140rpx;
  744. .title{
  745. color: rgba(51, 51, 51, 1);
  746. }
  747. .options{
  748. margin-top: 16rpx;
  749. display: flex;
  750. flex-wrap:wrap;
  751. .item-checked{
  752. border: 1px solid rgba(13, 186, 199, 1);
  753. background-color: #fff !important;
  754. }
  755. .item{
  756. display: flex;
  757. align-items: center;
  758. padding: 16rpx;
  759. width: 320rpx;
  760. height: 112rpx;
  761. border-radius: 4px;
  762. margin-right: 16rpx;
  763. margin-bottom: 16rpx;
  764. background-color: #F4F6F7;
  765. .photo{
  766. width: 80rpx;
  767. height: 80rpx;
  768. border-radius: 2px;
  769. overflow: hidden;
  770. img{
  771. width: 100%;
  772. height: 100%;
  773. }
  774. }
  775. .infos{
  776. margin-left: 16rpx;
  777. .name-age{
  778. display: flex;
  779. align-items: baseline;
  780. .name{
  781. color: rgba(51, 51, 51, 1);
  782. font-size: 32rpx;
  783. }
  784. .age{
  785. color: rgba(119, 119, 119, 1);
  786. font-size: 24rpx;
  787. margin-left: 8rpx;
  788. }
  789. }
  790. .tel{
  791. color: rgba(119, 119, 119, 1);
  792. font-size: 24rpx;
  793. margin-top: 4rpx;
  794. }
  795. }
  796. }
  797. }
  798. }
  799. .btn-box{
  800. background-color:#fff;
  801. padding: 32rpx;
  802. position: fixed;
  803. bottom: 0rpx;
  804. left: 0rpx;
  805. right: 0rpx;
  806. z-index: 99;
  807. }
  808. .add{
  809. height: 80rpx;
  810. line-height: 80rpx;
  811. border-radius: 50px;
  812. background-color: rgba(13, 186, 199, 1);
  813. color: rgba(255, 255, 255, 1);
  814. font-size: 32rpx;
  815. text-align: center;
  816. }
  817. }
  818. </style>