courseDetails.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  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" v-for="(item,index) in coursePackageList" :key="index"
  205. :class="activePackage==index ? '' : 'item-state2'" @click="chosePackage(item,index)">
  206. {{item.packageName}}班 {{item.courseAmount}}课时
  207. </view>
  208. </view>
  209. </view>
  210. <!-- 报名学生 -->
  211. <view class="apply-student">
  212. <view class="title">
  213. 报名学生
  214. </view>
  215. <view class="options">
  216. <view class="item" v-for="(item,index) in studentList" :key="index"
  217. :class="activeStudent==index ? 'item-checked' : ''" @click="choseStudent(item,index)">
  218. <view class="photo">
  219. <u-avatar class="avatar" mode="square"
  220. :src="item.headPhoto != null ? item.headPhoto : '../../assets/img/head.png'" size="80">
  221. </u-avatar>
  222. </view>
  223. <view class="infos">
  224. <view class="name-age">
  225. <view class="name">
  226. {{item.studentName}}
  227. </view>
  228. <view class="age">
  229. {{item.age}}岁
  230. </view>
  231. </view>
  232. <view class="tel">
  233. {{item.firstContactPhone}}
  234. </view>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. <!-- 加入购物车 -->
  240. <view class="btn-box">
  241. <button class="add" @click="addShoppingCart">加入购物车</button>
  242. </view>
  243. <view class="" style="height: 24rpx;">
  244. </view>
  245. </view>
  246. </u-popup>
  247. </view>
  248. </view>
  249. </template>
  250. <script>
  251. import * as mineApi from '@/apis/parents/mine.js'
  252. import * as courseApi from '@/apis/parents/course.js'
  253. import * as shoppingCarApi from '@/apis/parents/shoppingCar.js'
  254. export default {
  255. data() {
  256. return {
  257. swiperList: [{
  258. image: 'https://cdn.uviewui.com/uview/swiper/1.jpg'
  259. }
  260. ],
  261. courseId: '',
  262. classId: '',
  263. courseBase: {},
  264. coursePackageList: [],
  265. tclassList: [],
  266. classDetail: {},
  267. packageDetail: {},
  268. studentId: '',
  269. stuDetail: {},
  270. show: false,
  271. studentList: [],
  272. popShow:false,
  273. activeClass: 0,
  274. activePackage: 0,
  275. activeStudent: 0,
  276. shoppingCartList: [],
  277. shoppDetail: {},
  278. classWeek: '',
  279. classTime: ''
  280. }
  281. },
  282. onLoad(op) {
  283. if(op.id) {
  284. this.courseId = op.id;
  285. this.classId = op.classId;
  286. this.getCourseDetail();
  287. }
  288. },
  289. onReady() {
  290. if (this.carhelp.getStudentId()) {
  291. this.studentId = this.carhelp.getStudentId().studentId;
  292. }
  293. if (this.carhelp.getShoppingCartList()) {
  294. this.shoppingCartList = this.carhelp.getShoppingCartList();
  295. }
  296. this.getStudentList();
  297. },
  298. methods: {
  299. popShowClick() {
  300. if(this.studentList != 0) {
  301. this.popShow = true;
  302. } else {
  303. this.$refs.uToast.show({
  304. title: '请先添加子女',
  305. type: 'warning',
  306. url: '/pages/parents/mine/addChildInformation'
  307. })
  308. }
  309. },
  310. toShoppingCar() {
  311. uni.redirectTo({
  312. url: '/pages/parents/course/shoppingCar'
  313. });
  314. },
  315. addShoppingCart() {
  316. this.popShow = false;
  317. var data = {
  318. studentId: this.stuDetail.studentId,
  319. packageId: this.packageDetail.packageId,
  320. classId: this.classDetail.classId,
  321. studentType: '1'
  322. }
  323. uni.showLoading({
  324. title: "加载中",
  325. mask: true,
  326. })
  327. shoppingCarApi.add(data).then((res) => {
  328. uni.hideLoading();
  329. uni.showToast({
  330. title: '加入购物车成功',
  331. icon: "none"
  332. })
  333. }).catch(error => {
  334. uni.showToast({
  335. title: error,
  336. icon: "none"
  337. })
  338. })
  339. },
  340. choseClass(item,index) {
  341. this.activeClass = index;
  342. this.classDetail = item;
  343. },
  344. chosePackage(item,index) {
  345. this.activePackage = index;
  346. this.packageDetail = item;
  347. if(this.packageDetail.unitPrice == null) {
  348. this.packageDetail.unitPrice = 0;
  349. }
  350. if(this.packageDetail.waterElectricityAmount == null) {
  351. this.packageDetail.waterElectricityAmount = 0;
  352. }
  353. },
  354. choseStudent(item,index) {
  355. this.activeStudent = index;
  356. this.stuDetail = item;
  357. },
  358. getStudentList() {
  359. uni.showLoading({
  360. title: "加载中",
  361. mask: true,
  362. })
  363. mineApi.studentList().then((res) => {
  364. uni.hideLoading();
  365. this.studentList = res.data.studentList;
  366. for (var i = 0; i < this.studentList.length; i++) {
  367. if(this.studentList[i].studentId == this.studentId) {
  368. this.stuDetail = this.studentList[i];
  369. this.activeStudent = i;
  370. }
  371. }
  372. }).catch(error => {
  373. uni.showToast({
  374. title: error,
  375. icon: "none"
  376. })
  377. })
  378. },
  379. getCourseDetail() {
  380. uni.showLoading({
  381. title: "加载中",
  382. mask: true,
  383. })
  384. courseApi.getCourseDetail({
  385. courseId: this.courseId,
  386. classId: this.classId
  387. }).then((res) => {
  388. uni.hideLoading();
  389. this.courseBase = res.data.courseBase;
  390. this.coursePackageList = res.data.coursePackageList;
  391. if(this.coursePackageList.length != 0) {
  392. this.packageDetail = this.coursePackageList[0];
  393. if(this.packageDetail.unitPrice == null) {
  394. this.packageDetail.unitPrice = 0;
  395. }
  396. if(this.packageDetail.waterElectricityAmount == null) {
  397. this.packageDetail.waterElectricityAmount = 0;
  398. }
  399. }
  400. this.tclassList = res.data.tclassList;
  401. for (var i = 0; i < this.tclassList.length; i++) {
  402. if(this.tclassList[i].classId == this.classId) {
  403. this.classDetail = this.tclassList[i];
  404. this.activeClass = i;
  405. }
  406. }
  407. var week = this.classDetail.scheduleBuilderList[0].repeatSet;
  408. if(week.indexOf('1') != -1) {
  409. week = week.replace('1','一');
  410. }
  411. if(week.indexOf('2') != -1) {
  412. week = week.replace('2','二');
  413. }
  414. if(week.indexOf('3') != -1) {
  415. week = week.replace('3','三');
  416. }
  417. if(week.indexOf('4') != -1) {
  418. week = week.replace('4','四');
  419. }
  420. if(week.indexOf('5') != -1) {
  421. week = week.replace('5','五');
  422. }
  423. if(week.indexOf('6') != -1) {
  424. week = week.replace('6','六');
  425. }
  426. if(week.indexOf('0') != -1) {
  427. week = week.replace('0','日');
  428. }
  429. this.classWeek = week;
  430. this.classTime = this.classDetail.scheduleBuilderList[0].coursePeriods
  431. }).catch(error => {
  432. uni.showToast({
  433. title: error,
  434. icon: "none"
  435. })
  436. })
  437. },
  438. }
  439. }
  440. </script>
  441. <style lang="scss" scoped>
  442. page {
  443. padding-bottom: 132px;
  444. background-color: #fff;
  445. }
  446. .picture {
  447. height: 280px;
  448. position: relative;
  449. .icon {
  450. position: absolute;
  451. left: 10px;
  452. top: 10px;
  453. z-index: 1;
  454. font-size: 20px;
  455. }
  456. .tag {
  457. width: 120rpx;
  458. line-height: 64rpx;
  459. border-radius: 50px;
  460. background-color: rgba(0, 0, 0, 0.5);
  461. color: rgba(255, 255, 255, 1);
  462. font-size: 14px;
  463. text-align: center;
  464. position: absolute;
  465. right: 16px;
  466. bottom: 23px;
  467. }
  468. img {
  469. width: 100%;
  470. height: 100%;
  471. }
  472. }
  473. .space {
  474. background-color: #fff;
  475. border-radius: 24rpx 24rpx 0px 0px;
  476. height: 22px;
  477. width: 100%;
  478. margin-top: -12px;
  479. position: absolute;
  480. left: 0;
  481. right: 0;
  482. border-bottom: none;
  483. }
  484. .main {
  485. background-color: rgba(255, 255, 255, 1);
  486. padding: 16rpx 40rpx;
  487. .infos {
  488. .title {
  489. line-height: 26px;
  490. color: rgba(51, 51, 51, 1);
  491. font-size: 20px;
  492. font-weight: bold;
  493. }
  494. .price {
  495. margin-top: 16px;
  496. font-size: 18px;
  497. text {
  498. color: rgba(255, 61, 0, 1);
  499. }
  500. }
  501. .time,
  502. .location,
  503. .classroom {
  504. display: flex;
  505. margin-top: 12px;
  506. line-height: 24px;
  507. .name {
  508. color: rgba(119, 119, 119, 1);
  509. }
  510. .content {
  511. color: rgba(51, 51, 51, 1);
  512. margin-left: 12px;
  513. flex: 1;
  514. display: flex;
  515. justify-content: space-between;
  516. .img {
  517. width: 20px;
  518. height: 20px;
  519. img {
  520. width: 100%;
  521. height: 100%;
  522. vertical-align: middle;
  523. }
  524. }
  525. }
  526. }
  527. }
  528. .title {
  529. color: rgba(51, 51, 51, 1);
  530. font-size: 18px;
  531. font-weight: bold;
  532. }
  533. .teacher {
  534. margin-top: 40px;
  535. .teacher-card {
  536. margin-top: 24rpx;
  537. display: flex;
  538. justify-content: space-between;
  539. .item {
  540. width: 47.5%;
  541. padding: 24rpx 0 24rpx 24rpx;
  542. border-radius: 24rpx;
  543. background-color: rgba(236, 236, 236, 1);
  544. display: flex;
  545. }
  546. .photo {
  547. width: 96rpx;
  548. height: 96rpx;
  549. overflow: hidden;
  550. border-radius: 100rpx;
  551. img {
  552. width: 100%;
  553. height: 100%;
  554. }
  555. }
  556. .teacher-name {
  557. display: flex;
  558. flex-direction: column;
  559. justify-content: space-between;
  560. margin-left: 16rpx;
  561. .name {
  562. line-height: 44rpx;
  563. font-size: 32rpx;
  564. color: rgba(51, 51, 51, 1);
  565. }
  566. .status {
  567. color: rgba(119, 119, 119, 1);
  568. line-height: 40rpx;
  569. }
  570. }
  571. .more {
  572. display: flex;
  573. align-items: center;
  574. margin-left: 16rpx;
  575. }
  576. }
  577. }
  578. .tag {
  579. margin-top: 48rpx;
  580. padding: 18px 12px;
  581. border-radius: 12px;
  582. background-color: rgba(13, 186, 199, 0.1);
  583. height: 120rpx;
  584. display: flex;
  585. justify-content: space-between;
  586. align-items: center;
  587. .item {
  588. display: flex;
  589. align-items: center;
  590. .name {
  591. margin-left: 8rpx;
  592. color: rgba(16, 16, 16, 1);
  593. }
  594. .phone-teacher {
  595. margin-left: 8px;
  596. }
  597. }
  598. }
  599. .class-detail {
  600. margin-top: 80rpx;
  601. .detail {
  602. color: rgba(119, 119, 119, 1);
  603. line-height: 20px;
  604. margin-top: 24rpx;
  605. }
  606. .img {
  607. margin-top: 40rpx;
  608. width: 100%;
  609. height: 200px;
  610. img {
  611. width: 100%;
  612. height: 100%;
  613. }
  614. }
  615. }
  616. .school-age,
  617. .target {
  618. margin-top: 80rpx;
  619. .content {
  620. margin-top: 12px;
  621. color: rgba(119, 119, 119, 1);
  622. }
  623. }
  624. }
  625. .bottom {
  626. width: 100%;
  627. background-color: rgba(255, 255, 255, 1);
  628. position: fixed;
  629. bottom: 0;
  630. left: 0;
  631. right: 0;
  632. padding: 20rpx 32rpx;
  633. display: flex;
  634. justify-content: space-between;
  635. .icon{
  636. text-align: center;
  637. }
  638. .text{
  639. color: rgba(16, 16, 16, 1);
  640. font-size: 24rpx;
  641. }
  642. .add {
  643. width:560rpx;
  644. border-radius: 50px;
  645. background-color: rgba(13, 186, 199, 1);
  646. line-height: 40px;
  647. color: rgba(255, 255, 255, 1);
  648. font-size: 16px;
  649. z-index: 999;
  650. margin-right: 0;
  651. }
  652. .registered{
  653. width: 100%;
  654. height: 80rpx;
  655. line-height: 80rpx;
  656. border-radius: 50px;
  657. background-color: rgba(153, 153, 153, 1);
  658. color: rgba(255, 255, 255, 1);
  659. font-size: 32rpx;
  660. }
  661. }
  662. // 弹出层
  663. .popup{
  664. padding: 32rpx;
  665. height:520px;
  666. padding-bottom:100rpx;
  667. .class-infos{
  668. display: flex;
  669. align-items: center;
  670. .picture{
  671. width: 152rpx;
  672. height: 152rpx;
  673. border-radius: 4px;
  674. overflow: hidden;
  675. img{
  676. width: 100%;
  677. height: 100%;
  678. }
  679. }
  680. .infos{
  681. margin-left: 24rpx;
  682. .class-name{
  683. color: rgba(51, 51, 51, 1);
  684. font-size: 36rpx;
  685. }
  686. .price{
  687. color: rgba(255, 61, 0, 1);
  688. font-size: 36rpx;
  689. margin-top: 20rpx;
  690. font-weight: bold;
  691. }
  692. .price-detail{
  693. color: rgba(119, 119, 119, 1);
  694. font-size: 24rpx;
  695. margin-top: 8rpx;
  696. }
  697. }
  698. }
  699. // 报名班级 选择套餐
  700. .sign-up,.set-meal{
  701. margin-top: 24rpx;
  702. .title{
  703. color: rgba(51, 51, 51, 1);
  704. }
  705. .options{
  706. margin-top: 16rpx;
  707. display: flex;
  708. flex-wrap: wrap;
  709. .item{
  710. height: 64rpx;
  711. line-height: 64rpx;
  712. text-align: center;
  713. border-radius: 4px;
  714. background-color: rgba(255, 255, 255, 1);
  715. color: rgba(13, 186, 199, 1);
  716. border: 1px solid rgba(13, 186, 199, 1);
  717. margin-right: 12rpx;
  718. margin-bottom: 16rpx;
  719. padding: 0 16rpx;
  720. }
  721. .item-state2{
  722. background-color: rgba(244, 246, 247, 1);
  723. color: rgba(51, 51, 51, 1);
  724. border: none;
  725. }
  726. }
  727. }
  728. // 报名学生
  729. .apply-student{
  730. margin-top: 24rpx;
  731. margin-bottom: 140rpx;
  732. .title{
  733. color: rgba(51, 51, 51, 1);
  734. }
  735. .options{
  736. margin-top: 16rpx;
  737. display: flex;
  738. flex-wrap:wrap;
  739. .item-checked{
  740. border: 1px solid rgba(13, 186, 199, 1);
  741. background-color: #fff !important;
  742. }
  743. .item{
  744. display: flex;
  745. align-items: center;
  746. padding: 16rpx;
  747. width: 320rpx;
  748. height: 112rpx;
  749. border-radius: 4px;
  750. margin-right: 16rpx;
  751. margin-bottom: 16rpx;
  752. background-color: #F4F6F7;
  753. .photo{
  754. width: 80rpx;
  755. height: 80rpx;
  756. border-radius: 2px;
  757. overflow: hidden;
  758. img{
  759. width: 100%;
  760. height: 100%;
  761. }
  762. }
  763. .infos{
  764. margin-left: 16rpx;
  765. .name-age{
  766. display: flex;
  767. align-items: baseline;
  768. .name{
  769. color: rgba(51, 51, 51, 1);
  770. font-size: 32rpx;
  771. }
  772. .age{
  773. color: rgba(119, 119, 119, 1);
  774. font-size: 24rpx;
  775. margin-left: 8rpx;
  776. }
  777. }
  778. .tel{
  779. color: rgba(119, 119, 119, 1);
  780. font-size: 24rpx;
  781. margin-top: 4rpx;
  782. }
  783. }
  784. }
  785. }
  786. }
  787. .btn-box{
  788. background-color:#fff;
  789. padding: 32rpx;
  790. position: fixed;
  791. bottom: 0rpx;
  792. left: 0rpx;
  793. right: 0rpx;
  794. z-index: 99;
  795. }
  796. .add{
  797. height: 80rpx;
  798. line-height: 80rpx;
  799. border-radius: 50px;
  800. background-color: rgba(13, 186, 199, 1);
  801. color: rgba(255, 255, 255, 1);
  802. font-size: 32rpx;
  803. text-align: center;
  804. }
  805. }
  806. </style>