courseDetails.vue 19 KB

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