shoppingCar.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. <template>
  2. <view>
  3. <u-navbar :title="'购物车(' + shoppingCartList.length + ')'" :is-back="false">
  4. <view class="u-nav-slot" slot="right" v-if="edit==false" @click="edit=true">
  5. 编辑
  6. </view>
  7. <view class="u-nav-slot" slot="right" style="color: #FF3523;" v-if="edit==true" @click="edit=false">
  8. 退出编辑
  9. </view>
  10. </u-navbar>
  11. <view class="class-card" v-for="(item,index) in shoppingCartList" :key="index">
  12. <!-- 单选框 -->
  13. <label class="radio" @click="radioChecked(item,index)">
  14. <radio value="" :checked="item.shoppingChecked" /><text></text>
  15. </label>
  16. <!-- 照片 -->
  17. <view class="photo" v-if="item.courseBase.posterUrl != null">
  18. <img :src="item.courseBase.posterUrl" alt="">
  19. </view>
  20. <view class="photo" v-else>
  21. <img src="../../../assets/img/picture1.png" alt="">
  22. </view>
  23. <!-- 课程信息 -->
  24. <view class="class-infos">
  25. <view class="title">
  26. <view :class="{className,editing:edit==true}">
  27. {{item.courseBase.courseName}}
  28. </view>
  29. <view class="amount" v-if="edit==false">
  30. <!-- x1 -->
  31. </view>
  32. </view>
  33. <!-- 课程标签 -->
  34. <view class="class-tags">
  35. <view class="item classname">
  36. {{item.tclass.className}}
  37. </view>
  38. <view class="item">
  39. {{item.coursePackage.packageName}}班
  40. </view>
  41. <view class="item">
  42. {{item.coursePackage.courseAmount}}节课
  43. </view>
  44. <view class="icon" v-if="!edit">
  45. <u-icon name="arrow-down" color="#B3B3B3" size="10"></u-icon>
  46. </view>
  47. </view>
  48. <!-- 价格 -->
  49. <view class="price">
  50. {{Math.round(item.coursePackage.unitPrice*item.coursePackage.courseAmount+item.coursePackage.waterElectricityAmount)}}元
  51. </view>
  52. <!-- <view :class="{priceInfo,editing:edit==true}">
  53. 包含 报名费{{(item.coursePackage.unitPrice*item.coursePackage.courseAmount).toFixed(2)}}元
  54. 水电费{{item.coursePackage.waterElectricityAmount.toFixed(2)}}元
  55. </view> -->
  56. </view>
  57. <view class="del-icon" v-if="edit==true" style="margin: auto 0;" @click="deleteShop(item,index)">
  58. <u-icon name="minus-circle-fill" color="#FF3523" size="40"></u-icon>
  59. </view>
  60. </view>
  61. <!-- 结算 -->
  62. <view class="settle" v-if="edit==false">
  63. <!-- 单选框 -->
  64. <label class="radio" @click="radioAllChecked()">
  65. <radio value="" :checked="shoppingAllChecked" /><text class="text">全选</text>
  66. </label>
  67. <!-- 总计 -->
  68. <view class="right">
  69. <view class="total">
  70. <view class="name">
  71. 总计
  72. </view>
  73. <view class="price">
  74. {{totalMoney}}元
  75. </view>
  76. </view>
  77. <!-- 结算按钮 -->
  78. <button class="settle-btn" @click="toCnfirmOrder">结算</button>
  79. </view>
  80. </view>
  81. <!-- 删除 -->
  82. <view class="del" v-if="edit==true">
  83. <!-- 单选框 -->
  84. <label class="radio" @click="radioAllChecked()">
  85. <radio value="" :checked="shoppingAllChecked" /><text class="text">全选</text>
  86. </label>
  87. <!-- 删除按钮 -->
  88. <button class="del-btn" @click="deleteShopAll">删除</button>
  89. </view>
  90. <view>
  91. <u-popup v-model="popShow" mode="bottom" :closeable='true'>
  92. <view class="popup">
  93. <view class="class-infos">
  94. <view class="picture">
  95. <img v-if="courseBase.posterUrl!= null" :src="courseBase.posterUrl" alt="">
  96. <img v-else src="../../../assets/img/courseD.png" alt="">
  97. </view>
  98. <view class="infos">
  99. <view class="class-name">
  100. {{courseBase.courseName}}
  101. </view>
  102. <view class="price">
  103. {{Math.round(packageDetail.unitPrice*packageDetail.courseAmount+packageDetail.waterElectricityAmount)}}元
  104. </view>
  105. <!-- <view class="price-detail" v-if="packageDetail.unitPrice!=null && packageDetail.courseAmount!=null">
  106. (包含报名费{{(packageDetail.unitPrice*packageDetail.courseAmount).toFixed(2)}}元
  107. 水电费{{packageDetail.waterElectricityAmount.toFixed(2)}}元)
  108. </view> -->
  109. </view>
  110. </view>
  111. <!-- 报名班级 -->
  112. <view class="sign-up">
  113. <view class="title">
  114. 报名班级
  115. </view>
  116. <view class="options">
  117. <view class="item" v-for="(item,index) in tclassList" :key="index"
  118. :class="activeClass==index ? '' : 'item-state2'" @click="choseClass(item,index)">
  119. {{item.className}}
  120. </view>
  121. </view>
  122. </view>
  123. <!-- 选择套餐 -->
  124. <view class="set-meal" v-if="coursePackageList.length != 0">
  125. <view class="title">
  126. 选择套餐
  127. </view>
  128. <view class="options">
  129. <view class="item" v-for="(item,index) in coursePackageList" :key="index"
  130. :class="activePackage==index ? '' : 'item-state2'" @click="chosePackage(item,index)">
  131. {{item.packageName}}班 {{item.courseAmount}}课时
  132. </view>
  133. </view>
  134. </view>
  135. <!-- 报名学生 -->
  136. <view class="apply-student">
  137. <view class="title">
  138. 报名学生
  139. </view>
  140. <view class="options">
  141. <view class="item" v-for="(item,index) in studentList" :key="index"
  142. :class="activeStudent==index ? 'item-checked' : ''" @click="choseStudent(item,index)">
  143. <view class="photo">
  144. <u-avatar class="avatar" mode="square"
  145. :src="item.headPhoto != null ? item.headPhoto : '../../assets/img/head.png'" size="80">
  146. </u-avatar>
  147. </view>
  148. <view class="infos">
  149. <view class="name-age">
  150. <view class="name">
  151. {{item.studentName}}
  152. </view>
  153. <view class="age">
  154. {{item.age}}岁
  155. </view>
  156. </view>
  157. <view class="tel">
  158. {{item.firstContactPhone}}
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. <!-- 加入购物车 -->
  165. <view class="btn-box">
  166. <button class="add" @click="confirmShop">确 认</button>
  167. </view>
  168. <view class="" style="height: 24rpx;">
  169. </view>
  170. </view>
  171. </u-popup>
  172. </view>
  173. <ParentsTabbar :current="2" ref="tabbarMain"></ParentsTabbar>
  174. </view>
  175. </template>
  176. <script>
  177. import * as mineApi from '@/apis/parents/mine.js'
  178. import * as courseApi from '@/apis/parents/course.js'
  179. import * as shoppingCarApi from '@/apis/parents/shoppingCar.js'
  180. import ParentsTabbar from '@/components/ParentsTabbar.vue'
  181. export default {
  182. components: {
  183. ParentsTabbar
  184. },
  185. data() {
  186. return {
  187. edit: false,
  188. priceInfo: {
  189. type: String,
  190. default: false
  191. },
  192. className: {
  193. type: String,
  194. default: false
  195. },
  196. shoppingCartList: [],
  197. shoppingAllChecked: false,
  198. totalMoney: 0,
  199. popShow: false,
  200. shopIndex: 0,
  201. activeClass: 0,
  202. activePackage: 0,
  203. activeStudent: 0,
  204. coursePackageList: [],
  205. tclassList: [],
  206. studentList: [],
  207. courseBase: {},
  208. classDetail: {},
  209. packageDetail: {},
  210. stuDetail: {},
  211. shopDetail: {}
  212. }
  213. },
  214. onReady() {
  215. if (this.carhelp.getStudentId()) {
  216. this.studentId = this.carhelp.getStudentId().studentId;
  217. this.getshoppingCarList(this.studentId);
  218. }
  219. },
  220. methods: {
  221. getshoppingCarList(studentId) {
  222. this.shoppingCartList = [];
  223. uni.showLoading({
  224. title: "加载中",
  225. mask: true,
  226. })
  227. shoppingCarApi.pageList({
  228. studentId: studentId,
  229. studentType: '1'
  230. }).then((res) => {
  231. uni.hideLoading();
  232. this.shoppingCartList = res.data.data;
  233. for (var i = 0; i < this.shoppingCartList.length; i++) {
  234. var key = "shoppingChecked";
  235. var value = false;
  236. this.shoppingCartList[i][key] = value;
  237. }
  238. }).catch(error => {
  239. uni.showToast({
  240. title: error,
  241. icon: "none"
  242. })
  243. })
  244. },
  245. confirmShop() {
  246. uni.showLoading({
  247. title: "加载中",
  248. mask: true,
  249. })
  250. shoppingCarApi.update({
  251. id: this.shopDetail.id,
  252. studentId: this.shopDetail.studentId,
  253. packageId: this.shopDetail.packageId,
  254. classId: this.shopDetail.classId
  255. }).then((res) => {
  256. uni.hideLoading();
  257. this.getshoppingCarList(this.studentId);
  258. this.popShow = false;
  259. }).catch(error => {
  260. uni.showToast({
  261. title: error,
  262. icon: "none"
  263. })
  264. })
  265. },
  266. choseClass(item, index) {
  267. this.activeClass = index;
  268. this.classDetail = item;
  269. },
  270. chosePackage(item, index) {
  271. this.activePackage = index;
  272. this.packageDetail = item;
  273. },
  274. choseStudent(item, index) {
  275. this.activeStudent = index;
  276. this.stuDetail = item;
  277. },
  278. selectShop(item, index) {
  279. this.shopDetail = item;
  280. this.getCourseDetail(item);
  281. this.getStudentList(item);
  282. this.popShow = true;
  283. },
  284. getCourseDetail(value) {
  285. uni.showLoading({
  286. title: "加载中",
  287. mask: true,
  288. })
  289. courseApi.getCourseDetail({
  290. courseId: value.courseBase.courseId,
  291. classId: value.classId
  292. }).then((res) => {
  293. uni.hideLoading();
  294. this.courseBase = res.data.courseBase;
  295. this.coursePackageList = res.data.coursePackageList;
  296. this.tclassList = res.data.tclassList;
  297. for (var i = 0; i < this.tclassList.length; i++) {
  298. if (this.tclassList[i].classId == value.classId) {
  299. this.activeClass = i;
  300. this.classDetail = this.tclassList[i];
  301. }
  302. }
  303. for (var j = 0; j < this.coursePackageList.length; j++) {
  304. if (this.coursePackageList[j].packageId == value.packageId) {
  305. this.activePackage = j;
  306. this.packageDetail = this.coursePackageList[j];
  307. }
  308. }
  309. }).catch(error => {
  310. uni.showToast({
  311. title: error,
  312. icon: "none"
  313. })
  314. })
  315. },
  316. getStudentList(value) {
  317. uni.showLoading({
  318. title: "加载中",
  319. mask: true,
  320. })
  321. mineApi.studentList().then((res) => {
  322. uni.hideLoading();
  323. this.studentList = res.data.studentList;
  324. for (var i = 0; i < this.studentList.length; i++) {
  325. if (this.studentList[i].studentId == value.studentId) {
  326. this.activeStudent = i;
  327. this.stuDetail = this.studentList[i];
  328. }
  329. }
  330. }).catch(error => {
  331. uni.showToast({
  332. title: error,
  333. icon: "none"
  334. })
  335. })
  336. },
  337. getAddBuyLogList(buyLogList,shoppingCartInfoIds) {
  338. uni.showLoading({
  339. title: "加载中",
  340. mask: true,
  341. })
  342. courseApi.addBuyLogList({buyLogList,shoppingCartInfoIds}).then((res) => {
  343. this.carhelp.setShoppingCartList(buyLogList);
  344. var id = res.data.ordInfoId;
  345. console.log(id)
  346. uni.hideLoading();
  347. uni.navigateTo({
  348. url: '/pages/parents/course/confirmOrder?id=' + id
  349. })
  350. }).catch(error => {
  351. uni.showToast({
  352. title: error,
  353. icon: "none"
  354. })
  355. })
  356. },
  357. toCnfirmOrder() {
  358. if (this.totalMoney != 0) {
  359. var buyLogList = [];
  360. var shoppingCartInfoIds = '';
  361. var idList = [];
  362. for (var i = 0; i < this.shoppingCartList.length; i++) {
  363. if (this.shoppingCartList[i].shoppingChecked) {
  364. buyLogList.push({
  365. courseId: this.shoppingCartList[i].courseBase.courseId,
  366. courseName: this.shoppingCartList[i].courseBase.courseName,
  367. posterUrl: this.shoppingCartList[i].courseBase.posterUrl,
  368. classId: this.shoppingCartList[i].classId,
  369. className: this.shoppingCartList[i].tclass.className,
  370. packageId: this.shoppingCartList[i].packageId,
  371. packageName: this.shoppingCartList[i].coursePackage.packageName,
  372. courseAmount: this.shoppingCartList[i].coursePackage.courseAmount,
  373. unitPrice: this.shoppingCartList[i].coursePackage.unitPrice,
  374. waterElectricityAmount: this.shoppingCartList[i].coursePackage.waterElectricityAmount,
  375. studentId: this.shoppingCartList[i].studentId,
  376. studentName: this.shoppingCartList[i].student.studentName,
  377. age: this.shoppingCartList[i].student.age,
  378. firstContactPhone: this.shoppingCartList[i].student.firstContactPhone,
  379. secondContactPhone: this.shoppingCartList[i].student.secondContactPhone,
  380. takerName: this.shoppingCartList[i].student.takerName
  381. });
  382. idList.push(this.shoppingCartList[i].id);
  383. }
  384. }
  385. shoppingCartInfoIds = idList.join(',');
  386. this.getAddBuyLogList(buyLogList,shoppingCartInfoIds);
  387. } else {
  388. uni.showToast({
  389. title: '请先勾选要购买的课程',
  390. icon: "none"
  391. })
  392. }
  393. },
  394. deleteShop(item, index) {
  395. uni.showLoading({
  396. title: "加载中",
  397. mask: true,
  398. })
  399. shoppingCarApi.deleteShop(item.id).then((res) => {
  400. uni.hideLoading();
  401. this.shoppingCartList.splice(index, 1);
  402. this.getTotalMoney();
  403. }).catch(error => {
  404. uni.showToast({
  405. title: error,
  406. icon: "none"
  407. })
  408. })
  409. },
  410. deleteShopAll() {
  411. var list = [];
  412. for (var i = 0; i < this.shoppingCartList.length; i++) {
  413. if (this.shoppingCartList[i].shoppingChecked) {
  414. list.push(this.shoppingCartList[i]);
  415. }
  416. }
  417. var idList = list.map(record => {
  418. return record.id;
  419. });
  420. console.log(idList)
  421. uni.showLoading({
  422. title: "加载中",
  423. mask: true,
  424. })
  425. shoppingCarApi.batchDelete(idList).then((res) => {
  426. uni.hideLoading();
  427. this.getshoppingCarList(this.studentId);
  428. this.getTotalMoney();
  429. }).catch(error => {
  430. uni.showToast({
  431. title: error,
  432. icon: "none"
  433. })
  434. })
  435. },
  436. radioChecked(item, index) {
  437. item.shoppingChecked = !item.shoppingChecked;
  438. this.$forceUpdate();
  439. this.getTotalMoney();
  440. },
  441. radioAllChecked() {
  442. this.shoppingAllChecked = !this.shoppingAllChecked;
  443. for (var i = 0; i < this.shoppingCartList.length; i++) {
  444. this.shoppingCartList[i].shoppingChecked = this.shoppingAllChecked;
  445. }
  446. this.getTotalMoney();
  447. },
  448. getTotalMoney() {
  449. var money = 0;
  450. var list = [];
  451. for (var i = 0; i < this.shoppingCartList.length; i++) {
  452. if (this.shoppingCartList[i].shoppingChecked) {
  453. list.push(this.shoppingCartList[i]);
  454. }
  455. }
  456. for (var j = 0; j < list.length; j++) {
  457. money += Math.round(list[j].coursePackage.courseAmount * list[j].coursePackage.unitPrice +
  458. list[j].coursePackage.waterElectricityAmount);
  459. }
  460. this.totalMoney = money;
  461. if (list.length == this.shoppingCartList.length) {
  462. this.shoppingAllChecked = true;
  463. } else {
  464. this.shoppingAllChecked = false;
  465. }
  466. },
  467. }
  468. }
  469. </script>
  470. <style lang="scss" scoped>
  471. .u-nav-slot {
  472. margin-right: 24rpx;
  473. font-size: 16px;
  474. color: #111111;
  475. }
  476. .class-card {
  477. margin: 24rpx;
  478. padding: 24rpx;
  479. background-color: #fff;
  480. border-radius: 8px;
  481. display: flex;
  482. // 单选框
  483. .radio {
  484. margin: auto 0
  485. }
  486. ::v-deep.uni-radio-input-checked {
  487. background-color: rgba(13, 186, 199, 1) !important;
  488. }
  489. ::v-deep.uni-radio-input {
  490. width: 40rpx;
  491. height: 40rpx;
  492. }
  493. //图片
  494. .photo {
  495. width: 152rpx;
  496. height: 152rpx;
  497. border-radius: 4px;
  498. overflow: hidden;
  499. margin-left: 16rpx;
  500. margin-top: 8rpx;
  501. img {
  502. width: 100%;
  503. height: 100%;
  504. }
  505. }
  506. // 课程信息
  507. .class-infos {
  508. margin-left: 16rpx;
  509. flex: 1;
  510. .title {
  511. display: flex;
  512. justify-content: space-between;
  513. align-items: center;
  514. .className {
  515. color: rgba(51, 51, 51, 1);
  516. font-size: 36rpx;
  517. }
  518. .class-name2 {
  519. width: 170px;
  520. white-space: nowrap;
  521. overflow: hidden;
  522. text-overflow: ellipsis;
  523. }
  524. .amount {
  525. color: rgba(51, 51, 51, 1);
  526. font-size: 32rpx;
  527. }
  528. }
  529. // 课程标签
  530. .class-tags {
  531. display: flex;
  532. align-items: center;
  533. margin-top: 4rpx;
  534. .classname {
  535. width: 220rpx !important;
  536. white-space: nowrap;
  537. overflow: hidden;
  538. text-overflow: ellipsis;
  539. }
  540. .item {
  541. width: 70rpx;
  542. white-space: nowrap;
  543. overflow: hidden;
  544. text-overflow: ellipsis;
  545. color: rgba(119, 119, 119, 1);
  546. font-size: 24rpx;
  547. margin-right: 8rpx;
  548. }
  549. }
  550. // 价格
  551. .price {
  552. color: rgba(255, 61, 0, 1);
  553. font-size: 36rpx;
  554. margin-top: 16rpx;
  555. font-weight: 600;
  556. }
  557. .priceInfo {
  558. color: rgba(119, 119, 119, 1);
  559. font-size: 24rpx;
  560. margin-top: 8rpx;
  561. }
  562. .editing {
  563. width: 170px;
  564. white-space: nowrap;
  565. overflow: hidden;
  566. text-overflow: ellipsis;
  567. }
  568. }
  569. }
  570. // 结算
  571. .settle {
  572. padding: 24rpx 32rpx;
  573. background-color: #fff;
  574. position: fixed;
  575. bottom: 110rpx;
  576. left: 0;
  577. right: 0;
  578. display: flex;
  579. align-items: center;
  580. justify-content: space-between;
  581. ::v-deep.uni-radio-input {
  582. width: 32rpx;
  583. height: 32rpx;
  584. }
  585. ::v-deep.uni-radio-input-checked {
  586. background-color: rgba(13, 186, 199, 1) !important;
  587. }
  588. .radio {
  589. .text {
  590. color: #777777;
  591. font-size: 32rpx;
  592. }
  593. }
  594. .total {
  595. display: flex;
  596. align-items: center;
  597. // margin-left: 120rpx;
  598. .name {
  599. color: rgba(51, 51, 51, 1);
  600. font-size: 36rpx;
  601. }
  602. .price {
  603. color: #0DBAC7;
  604. font-size: 36rpx;
  605. margin-left: 8rpx;
  606. }
  607. }
  608. // 结算按钮
  609. .settle-btn {
  610. width: 200rpx;
  611. height: 80rpx;
  612. line-height: 80rpx;
  613. border-radius: 50px;
  614. background-color: rgba(13, 186, 199, 1);
  615. color: rgba(255, 255, 255, 1);
  616. font-size: 32rpx;
  617. margin-left: 24rpx;
  618. }
  619. }
  620. .right {
  621. // flex:1;
  622. display: flex;
  623. }
  624. .del {
  625. padding: 24rpx 32rpx;
  626. background-color: #fff;
  627. position: fixed;
  628. bottom: 110rpx;
  629. left: 0;
  630. right: 0;
  631. display: flex;
  632. align-items: center;
  633. justify-content: space-between;
  634. ::v-deep.uni-radio-input {
  635. width: 32rpx;
  636. height: 32rpx;
  637. }
  638. ::v-deep.uni-radio-input-checked {
  639. background-color: rgba(13, 186, 199, 1) !important;
  640. }
  641. ::v-deep.radio {
  642. .text {
  643. color: #777777;
  644. font-size: 32rpx;
  645. }
  646. }
  647. ::v-deepuni-button {
  648. margin-right: 0;
  649. }
  650. .del-btn {
  651. width: 160rpx;
  652. height: 80rpx;
  653. line-height: 80rpx;
  654. border-radius: 50px;
  655. background-color: rgba(255, 53, 35, 1);
  656. color: rgba(255, 255, 255, 1);
  657. font-size: 32rpx;
  658. }
  659. }
  660. ::v-deep.uni-label-pointer {
  661. display: flex;
  662. align-items: center;
  663. }
  664. // 弹出层
  665. .popup {
  666. padding: 32rpx;
  667. height: 520px;
  668. padding-bottom: 100rpx;
  669. .class-infos {
  670. display: flex;
  671. align-items: center;
  672. .picture {
  673. width: 152rpx;
  674. height: 152rpx;
  675. border-radius: 4px;
  676. overflow: hidden;
  677. img {
  678. width: 100%;
  679. height: 100%;
  680. }
  681. }
  682. .infos {
  683. margin-left: 24rpx;
  684. .class-name {
  685. color: rgba(51, 51, 51, 1);
  686. font-size: 36rpx;
  687. }
  688. .price {
  689. color: rgba(255, 61, 0, 1);
  690. font-size: 36rpx;
  691. margin-top: 20rpx;
  692. font-weight: bold;
  693. }
  694. .price-detail {
  695. color: rgba(119, 119, 119, 1);
  696. font-size: 24rpx;
  697. margin-top: 8rpx;
  698. }
  699. }
  700. }
  701. // 报名班级 选择套餐
  702. .sign-up,
  703. .set-meal {
  704. margin-top: 24rpx;
  705. .title {
  706. color: rgba(51, 51, 51, 1);
  707. }
  708. .options {
  709. margin-top: 16rpx;
  710. display: flex;
  711. flex-wrap: wrap;
  712. .item {
  713. padding: 0 8rpx;
  714. height: 64rpx;
  715. line-height: 64rpx;
  716. text-align: center;
  717. border-radius: 4px;
  718. background-color: rgba(255, 255, 255, 1);
  719. color: rgba(13, 186, 199, 1);
  720. border: 1px solid rgba(13, 186, 199, 1);
  721. margin-right: 12rpx;
  722. margin-bottom: 16rpx;
  723. }
  724. .item-state2 {
  725. background-color: rgba(244, 246, 247, 1);
  726. color: rgba(51, 51, 51, 1);
  727. border: none;
  728. }
  729. }
  730. }
  731. // 报名学生
  732. .apply-student {
  733. margin-top: 24rpx;
  734. margin-bottom: 140rpx;
  735. .title {
  736. color: rgba(51, 51, 51, 1);
  737. }
  738. .options {
  739. margin-top: 16rpx;
  740. display: flex;
  741. flex-wrap: wrap;
  742. .item-checked {
  743. border: 1px solid rgba(13, 186, 199, 1);
  744. background-color: #fff !important;
  745. }
  746. .item {
  747. display: flex;
  748. align-items: center;
  749. padding: 16rpx;
  750. width: 320rpx;
  751. height: 112rpx;
  752. border-radius: 4px;
  753. margin-right: 16rpx;
  754. margin-bottom: 16rpx;
  755. background-color: #F4F6F7;
  756. .photo {
  757. width: 80rpx;
  758. height: 80rpx;
  759. border-radius: 2px;
  760. overflow: hidden;
  761. img {
  762. width: 100%;
  763. height: 100%;
  764. }
  765. }
  766. .infos {
  767. margin-left: 16rpx;
  768. .name-age {
  769. display: flex;
  770. align-items: baseline;
  771. .name {
  772. color: rgba(51, 51, 51, 1);
  773. font-size: 32rpx;
  774. }
  775. .age {
  776. color: rgba(119, 119, 119, 1);
  777. font-size: 24rpx;
  778. margin-left: 8rpx;
  779. }
  780. }
  781. .tel {
  782. color: rgba(119, 119, 119, 1);
  783. font-size: 24rpx;
  784. margin-top: 4rpx;
  785. }
  786. }
  787. }
  788. }
  789. }
  790. .btn-box {
  791. background-color: #fff;
  792. padding: 32rpx;
  793. position: fixed;
  794. bottom: 0rpx;
  795. left: 0rpx;
  796. right: 0rpx;
  797. z-index: 99;
  798. }
  799. .add {
  800. height: 80rpx;
  801. line-height: 80rpx;
  802. border-radius: 50px;
  803. background-color: rgba(13, 186, 199, 1);
  804. color: rgba(255, 255, 255, 1);
  805. font-size: 32rpx;
  806. text-align: center;
  807. }
  808. }
  809. </style>