shoppingCart.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. <template>
  2. <view>
  3. <u-navbar
  4. :is-back="false"
  5. title="购物车"
  6. :border-bottom="false"
  7. title-color="#333333"
  8. back-icon-color="#ffffff"
  9. >
  10. <view class="slot-wrap">
  11. <image
  12. :src="$method.splitImgHost(config.smallLogo)"
  13. style="width: 178rpx; height: 31rpx; margin-left: 30rpx"
  14. ></image>
  15. </view>
  16. </u-navbar>
  17. <view v-show="isLogin">
  18. <view v-if="!list.length"
  19. ><u-empty text="购物车为空" margin-top="500" mode="car"></u-empty
  20. ></view>
  21. <view v-else>
  22. <view class="shop_list">
  23. <uni-swipe-action>
  24. <u-checkbox-group @change="checkboxGroupChange" placement="column">
  25. <view>
  26. <uni-swipe-action-item
  27. :autoClose="false"
  28. @change="swipeChange($event, item)"
  29. :show="item.show"
  30. v-for="(item, index) in list"
  31. :key="index"
  32. >
  33. <view class="goods-item">
  34. <view class="item-wrap">
  35. <view class="goods-msg">
  36. <u-checkbox
  37. @change="checkboxChange"
  38. :disabled="item.goodsStatus == 0"
  39. style="width: 100%"
  40. v-model="list[index].checked"
  41. shape="circle"
  42. :name="index"
  43. >
  44. <view class="flex">
  45. <view class="goods-img">
  46. <image
  47. :src="$method.splitImgHost(item.coverUrl, true)"
  48. ></image>
  49. </view>
  50. <view class="flex__auto">
  51. <view class="goods-title">{{
  52. item.goodsName
  53. }}</view>
  54. <view class="priceTag"
  55. >¥ {{ item.standPrice }}</view
  56. >
  57. <view
  58. class="priceTag"
  59. v-if="item.goodsStatus == 0"
  60. >该商品已下架</view
  61. >
  62. </view>
  63. </view>
  64. </u-checkbox>
  65. </view>
  66. <view
  67. class="goods-select"
  68. v-if="item.templateType != null && item.goodsType == 1"
  69. >
  70. <u-line color="#D6D6DB" />
  71. <view
  72. class="goods-select__type"
  73. v-if="item.templateType == 'class'"
  74. @click="openPopup(0, item, index)"
  75. >
  76. <view style="color: #666666; font-size: 24rpx">{{
  77. !item.gradObj.className
  78. ? "选择班级"
  79. : item.gradObj.className
  80. }}</view>
  81. <view
  82. ><u-icon
  83. name="arrow-right"
  84. color="#999999"
  85. size="28"
  86. ></u-icon
  87. ></view>
  88. </view>
  89. <view
  90. v-if="item.gradObj.gradeId"
  91. style="padding: 0 100rpx 0 15rpx"
  92. >
  93. <Class-time-tip
  94. :classInfo="item.gradObj"
  95. ></Class-time-tip>
  96. </view>
  97. <view
  98. class="goods-select__type"
  99. v-if="item.templateType == 'apply'"
  100. @click="openPopup(1, item, index)"
  101. >
  102. <view style="color: #666666; font-size: 24rpx">
  103. {{
  104. !item.applyAreas.areaName
  105. ? "报考地区"
  106. : item.examDate.examineName +
  107. "-" +
  108. item.applyAreas.areaName +
  109. "-" +
  110. item.applyAreas.cityName
  111. }}
  112. </view>
  113. <view
  114. ><u-icon
  115. name="arrow-right"
  116. color="#999999"
  117. size="28"
  118. ></u-icon
  119. ></view>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. <template v-slot:right>
  125. <view class="operate" @click="delItem(item)">
  126. <view><text>删除</text></view>
  127. </view>
  128. </template>
  129. </uni-swipe-action-item>
  130. </view>
  131. </u-checkbox-group>
  132. </uni-swipe-action>
  133. </view>
  134. </view>
  135. <u-popup v-model="show" mode="bottom" border-radius="40">
  136. <view class="popup_box">
  137. <view style="margin-bottom: 20rpx">
  138. <view class="line1"></view>
  139. <view class="grade">选择班级</view>
  140. </view>
  141. <u-line color="#D6D6DB" />
  142. <view>
  143. <scroll-view scroll-y="true" style="height: 536rpx">
  144. <view>
  145. <u-radio-group v-model="gradeValue">
  146. <view v-for="(item, index) in gradeList" :key="index">
  147. <view
  148. style="display: flex; align-items: center; padding: 20rpx"
  149. >
  150. <view>
  151. <u-radio shape="circle" :name="index">
  152. <view
  153. :class="
  154. index == gradeValue
  155. ? 'white-box blue-box'
  156. : 'white-box'
  157. "
  158. >
  159. <view>
  160. <view class="blackTxt">{{ item.className }}</view>
  161. <Class-time-tip
  162. :classInfo="item"
  163. ></Class-time-tip>
  164. </view>
  165. </view>
  166. </u-radio>
  167. </view>
  168. </view>
  169. </view>
  170. </u-radio-group>
  171. </view>
  172. </scroll-view>
  173. </view>
  174. <view class="confrim-btn"
  175. ><view class="okBtn" @click="okPopup(0)">确定</view></view
  176. >
  177. </view>
  178. </u-popup>
  179. <u-popup v-model="show1" mode="bottom" border-radius="40">
  180. <view class="popup_box">
  181. <view style="margin-bottom: 20rpx">
  182. <view class="line1"></view>
  183. <view class="grade">选择考期/地区</view>
  184. </view>
  185. <u-line color="#D6D6DB" />
  186. <view style="display: flex; height: 536rpx">
  187. <view style="width: 50%">
  188. <view class="topTxt">考期</view>
  189. <view>
  190. <picker-view
  191. :indicator-style="indicatorStyle"
  192. :value="value"
  193. @change="bindChangeE"
  194. class="picker-view"
  195. >
  196. <picker-view-column>
  197. <view
  198. class="picker-item"
  199. v-for="(item, index) in examine"
  200. :key="index"
  201. >{{ item.examineName }}</view
  202. >
  203. </picker-view-column>
  204. </picker-view>
  205. </view>
  206. </view>
  207. <view style="width: 50%">
  208. <view class="topTxt">地区</view>
  209. <view>
  210. <picker-view
  211. :indicator-style="indicatorStyle"
  212. :value="value"
  213. @change="bindChange"
  214. class="picker-view"
  215. >
  216. <picker-view-column>
  217. <view
  218. class="picker-item"
  219. v-for="(item, index) in provinceList"
  220. :key="index"
  221. >{{ item.areaName }}</view
  222. >
  223. </picker-view-column>
  224. <picker-view-column>
  225. <view
  226. class="picker-item"
  227. v-for="(item, index) in cityList"
  228. :key="index"
  229. >{{ item.areaName }}</view
  230. >
  231. </picker-view-column>
  232. </picker-view>
  233. </view>
  234. </view>
  235. </view>
  236. <view class="confrim-btn"
  237. ><view class="okBtn" @click="okPopup(1)">确定</view></view
  238. >
  239. </view>
  240. </u-popup>
  241. </view>
  242. <view v-show="!isLogin">
  243. <view
  244. style="
  245. display: flex;
  246. align-items: center;
  247. flex-direction: column;
  248. margin-top: 40%;
  249. font-size: 32rpx;
  250. "
  251. >
  252. <view style="color: #999999">您还没有登录哦~</view>
  253. <view style="margin-top: 30rpx"
  254. ><u-button type="primary" @click="login">去登录</u-button></view
  255. >
  256. </view>
  257. </view>
  258. <view class="bottomBox" v-if="!hideBuyState">
  259. <view class="bottons_all">
  260. <view class="check_alls">
  261. <u-checkbox
  262. label="all"
  263. name="all"
  264. shape="circle"
  265. @change="checkboxAllChange"
  266. v-model="allChecked"
  267. ></u-checkbox>
  268. <text class="checkall">全选</text>
  269. <!-- <text class="rmb">¥</text> -->
  270. <view class="all_sum">结算:</view>
  271. <view class="priceTag">¥ {{ toFixed(totalPrice) }}</view>
  272. </view>
  273. <view style="display: flex; align-items: center">
  274. <!-- <view style="color: #999999;margin-right: 8rpx;">合计</view> -->
  275. <view
  276. style="display: flex; color: #ffffff; align-items: center"
  277. @click="goBuy()"
  278. >
  279. <view class="btn2">结算</view>
  280. <!-- <u-icon name="arrow-right" color="#fff" size="30"></u-icon> -->
  281. </view>
  282. </view>
  283. </view>
  284. </view>
  285. </view>
  286. </template>
  287. <script>
  288. import { mapGetters } from "vuex";
  289. import ClassTimeTip from "../../components/common/ClassTimeTip.vue";
  290. export default {
  291. data() {
  292. return {
  293. gradeValue: -1,
  294. isLogin: false,
  295. allChecked: false,
  296. checkboxValue1: [],
  297. list: [],
  298. value1: "",
  299. show: false,
  300. show1: false,
  301. totalPrice: 0.0,
  302. isOld: false,
  303. checkboxList: [],
  304. gradeList: [],
  305. examine: [],
  306. provinceList: [],
  307. cityList: [],
  308. detail: {},
  309. detailIndex: -1,
  310. applyObj: {
  311. applyAreasJson: null,
  312. examDateJson: null,
  313. },
  314. pAreaIndex: 0,
  315. cAreaIndex: 0,
  316. examIndex: 0,
  317. current: 3,
  318. };
  319. },
  320. computed: { ...mapGetters(["userInfo", "hideBuyState", "config"]) },
  321. onLoad(option) {
  322. // console.log(option,987)
  323. },
  324. onShow() {
  325. this.isLogin = this.$method.isLogin();
  326. if (this.isLogin) {
  327. if (uni.getStorageSync("updateCart") || !this.isOld) {
  328. this.isOld = true;
  329. this.cartList();
  330. uni.removeStorageSync("updateCart"); //消费购物车刷新事件
  331. }
  332. }
  333. },
  334. methods: {
  335. toFixed(num) {
  336. return num.toFixed(2);
  337. },
  338. bindChangeE(e) {
  339. this.examIndex = e.detail.value[0];
  340. },
  341. bindChange(e) {
  342. const val = e.detail.value;
  343. if (this.pAreaIndex != e.detail.value[0]) {
  344. this.pAreaIndex = e.detail.value[0];
  345. this.getCityList(this.provinceList[this.pAreaIndex].areaId);
  346. }
  347. if (this.cAreaIndex != e.detail.value[1]) {
  348. this.cAreaIndex = e.detail.value[1];
  349. }
  350. },
  351. checkAreaData() {
  352. if (this.examine.length == 0) {
  353. uni.showModal({
  354. title: "提示",
  355. content: "请选择考期",
  356. showCancel: false,
  357. });
  358. return false;
  359. }
  360. return true;
  361. },
  362. checkData() {
  363. if (this.detail.templateType == "class") {
  364. if (this.gradeValue < 0) {
  365. uni.showModal({
  366. title: "提示",
  367. content: "请选择班级",
  368. showCancel: false,
  369. });
  370. return false;
  371. }
  372. } else if (this.detail.templateType == "apply") {
  373. if (!this.applyObj.examDateJson) {
  374. uni.showModal({
  375. title: "提示",
  376. content: "请选择考期",
  377. showCancel: false,
  378. });
  379. return false;
  380. }
  381. }
  382. return true;
  383. },
  384. //弹出框确定
  385. okPopup(index) {
  386. if (index == 0) {
  387. if (!this.checkData()) {
  388. return;
  389. }
  390. this.gradeIndex = this.gradeValue;
  391. this.list[this.detailIndex].gradObj = this.gradeList[this.gradeIndex]; //商品赋值选中班级
  392. // this.$set(
  393. // this.list[this.detailIndex],
  394. // "gradObj",
  395. // this.gradeList[this.gradeIndex]
  396. // );
  397. this.show = false;
  398. } else {
  399. if (!this.checkAreaData()) {
  400. return;
  401. }
  402. this.examDate = this.examine[this.examIndex];
  403. let pData = this.provinceList[this.pAreaIndex];
  404. let cData = this.cityList[this.cAreaIndex];
  405. this.applyAreas = {
  406. areaName: pData.areaName,
  407. areaId: pData.areaId,
  408. cityId: cData.areaId,
  409. cityName: cData.areaName,
  410. };
  411. // this.applyObj.applyAreasJson = JSON.stringify(this.applyAreas)
  412. // this.applyObj.examDateJson = JSON.stringify(this.examDate)
  413. this.list[this.detailIndex].examDate = this.examDate; //商品赋值选中考期地区
  414. this.list[this.detailIndex].applyAreas = this.applyAreas; //商品赋值选中考期地区
  415. this.show1 = false;
  416. }
  417. },
  418. getExamine(id) {
  419. let self = this;
  420. this.$api.getExamine({ projectId: id }).then((res) => {
  421. if (res.data.code == 200) {
  422. self.examine = res.data.rows;
  423. }
  424. });
  425. },
  426. getCityList(id) {
  427. let self = this;
  428. this.$api.getCityList({ parentId: id }).then((res) => {
  429. if (res.data.code == 200) {
  430. self.cityList = res.data.rows;
  431. }
  432. });
  433. },
  434. getProvinceList() {
  435. let self = this;
  436. if (self.provinceList.length > 0) {
  437. return;
  438. }
  439. this.$api.getProvinceList().then((res) => {
  440. if (res.data.code == 200) {
  441. self.provinceList = res.data.rows;
  442. if (self.provinceList.length > 0) {
  443. self.getCityList(self.provinceList[0].areaId);
  444. }
  445. }
  446. });
  447. },
  448. goodsGradeList(goodsId) {
  449. let self = this;
  450. this.$api.goodsGradeList({ goodsId: goodsId }).then((res) => {
  451. if (res.data.code == 200) {
  452. self.gradeList = res.data.rows;
  453. if (self.gradeList.length == 0) {
  454. let item = {
  455. className: "系统分班",
  456. gradeId: 0,
  457. };
  458. self.gradeList.push(item);
  459. }
  460. }
  461. });
  462. },
  463. openPopup(index, item, itemIndex) {
  464. this.detail = item;
  465. this.detailIndex = itemIndex;
  466. if (index == 0) {
  467. this.gradeValue = -1;
  468. this.show = true;
  469. this.goodsGradeList(item.goodsId);
  470. } else {
  471. this.applyObj = {
  472. applyAreasJson: null,
  473. examDateJson: null,
  474. };
  475. (this.pAreaIndex = 0),
  476. (this.cAreaIndex = 0),
  477. (this.examIndex = 0),
  478. (this.show1 = true);
  479. this.getProvinceList();
  480. this.getExamine(item.projectId);
  481. }
  482. },
  483. checkboxGroupChange(e) {
  484. this.checkboxList = e;
  485. if (this.checkboxList.length == this.list.length) {
  486. this.allChecked = true;
  487. } else {
  488. this.allChecked = false;
  489. }
  490. },
  491. login() {
  492. uni.navigateTo({ url: "/pages4/login/login" });
  493. },
  494. cartList() {
  495. let self = this;
  496. this.allChecked = false;
  497. this.totalPrice = 0.0;
  498. this.checkboxList = [];
  499. this.$api.cartList().then((res) => {
  500. if (res.data.code == 200) {
  501. for (let i = 0; i < res.data.rows.length; i++) {
  502. let item = res.data.rows[i];
  503. item.checked = false;
  504. if (item.status != 1 || item.goodsStatus != 1) {
  505. item.disabled = true;
  506. } else {
  507. item.disabled = false;
  508. }
  509. item.show = false;
  510. item.gradObj = {}; //存储班级
  511. item.applyAreas = {};
  512. item.examDate = {};
  513. }
  514. self.list = res.data.rows;
  515. }
  516. });
  517. },
  518. delItem(item) {
  519. let self = this;
  520. this.$api.deleteCart(item.id).then((res) => {
  521. if (res.data.code == 200) {
  522. self.cartList();
  523. }
  524. });
  525. },
  526. swipeChange(e, item) {
  527. item.show = e;
  528. },
  529. goBuy() {
  530. if (this.checkboxList.length == 0) {
  531. uni.showModal({
  532. title: "提示",
  533. content: "请选择商品",
  534. showCancel: false,
  535. });
  536. return;
  537. }
  538. let checkGoodsList = [];
  539. for (let i = 0; i < this.checkboxList.length; i++) {
  540. let index = this.checkboxList[i];
  541. let item = this.list[index];
  542. checkGoodsList.push(item);
  543. if (item.templateType == "class" && item.goodsType == 1) {
  544. if (!item.gradObj.className) {
  545. uni.showModal({
  546. title: "提示",
  547. content: "请选择班级",
  548. showCancel: false,
  549. });
  550. return false;
  551. }
  552. }
  553. if (item.templateType == "apply" && item.goodsType == 1) {
  554. // if (!item.applyAreas.areaName) {
  555. // uni.showModal({
  556. // title: '提示',
  557. // content: '请选择报考地区',
  558. // showCancel: false
  559. // });
  560. // return false;
  561. // }
  562. }
  563. }
  564. this.$store.commit("setShoppingCartList", {
  565. shoppingCartList: checkGoodsList,
  566. });
  567. this.$navTo.togo("/pages2/order/confirm_pay?fromCart=true");
  568. },
  569. checkboxChange(n) {
  570. this.$nextTick(() => {
  571. this.totalPrice = 0.0;
  572. for (let i = 0; i < this.list.length; i++) {
  573. if (this.list[i].checked) {
  574. this.totalPrice += this.list[i].standPrice;
  575. }
  576. }
  577. });
  578. },
  579. checkboxAllChange(n) {
  580. this.$nextTick(() => {
  581. this.totalPrice = 0.0;
  582. this.checkboxList = [];
  583. if (n.value) {
  584. for (let i = 0; i < this.list.length; i++) {
  585. this.list[i].checked = true;
  586. this.totalPrice += this.list[i].standPrice;
  587. this.checkboxList.push(i);
  588. }
  589. } else {
  590. for (let i = 0; i < this.list.length; i++) {
  591. this.list[i].checked = false;
  592. }
  593. }
  594. });
  595. },
  596. },
  597. components: { ClassTimeTip },
  598. };
  599. </script>
  600. <style>
  601. page {
  602. background-color: #eaeef1;
  603. }
  604. </style>
  605. <style scoped lang="scss">
  606. .shop_list {
  607. padding: 16rpx 16rpx 180rpx 16rpx;
  608. // padding-bottom: 98rpx;
  609. }
  610. .operate {
  611. background-color: #ff3b30;
  612. color: #ffffff;
  613. border-top-right-radius: 16rpx;
  614. border-bottom-right-radius: 16rpx;
  615. margin-bottom: 20rpx;
  616. display: flex;
  617. align-items: center;
  618. justify-content: center;
  619. padding: 0 20rpx;
  620. }
  621. .picker-item {
  622. height: 50px;
  623. align-items: center;
  624. justify-content: center;
  625. text-align: center;
  626. }
  627. .picker-view {
  628. width: 100%;
  629. height: 420rpx;
  630. text-align: center;
  631. }
  632. .topTxt {
  633. font-size: 30rpx;
  634. color: #666666;
  635. text-align: center;
  636. padding: 20rpx 0;
  637. }
  638. .blackTxt {
  639. font-size: 30rpx;
  640. font-family: PingFang SC;
  641. font-weight: bold;
  642. color: #333333;
  643. }
  644. .blue-box {
  645. background: #ebf5ff;
  646. }
  647. .white-box {
  648. width: 646rpx;
  649. border-radius: 24rpx;
  650. align-items: center;
  651. display: flex;
  652. padding-left: 15rpx;
  653. }
  654. .okBtn {
  655. width: 200rpx;
  656. height: 64rpx;
  657. background: linear-gradient(0deg, #015eea, #00c0fa);
  658. border-radius: 32rpx;
  659. color: #ffffff;
  660. text-align: center;
  661. line-height: 64rpx;
  662. }
  663. .confrim-btn {
  664. border-top: 1px solid #eeeeee;
  665. height: 98rpx;
  666. width: 100%;
  667. display: flex;
  668. align-items: center;
  669. justify-content: center;
  670. }
  671. .grade {
  672. height: 23rpx;
  673. font-size: 24rpx;
  674. color: #999999;
  675. margin: 0 auto;
  676. margin-top: 15rpx;
  677. text-align: center;
  678. }
  679. .line1 {
  680. width: 80rpx;
  681. height: 8rpx;
  682. background: #999999;
  683. border-radius: 4rpx;
  684. margin: 0 auto;
  685. margin-top: 15rpx;
  686. }
  687. .popup_box {
  688. height: 700rpx;
  689. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  690. border-radius: 32rpx 32rpx 0rpx 0rpx;
  691. }
  692. .goods-item {
  693. width: 100%;
  694. background: #ffffff;
  695. border-radius: 24rpx;
  696. margin-bottom: 12rpx;
  697. padding: 15rpx 0;
  698. display: flex;
  699. .item-wrap {
  700. width: 100%;
  701. .goods-msg {
  702. padding: 0rpx 0rpx 0rpx 22rpx;
  703. display: flex;
  704. align-items: center;
  705. .flex {
  706. display: flex;
  707. padding-bottom: 15rpx;
  708. width: 630rpx;
  709. .goods-img {
  710. overflow: hidden;
  711. width: 204rpx;
  712. height: 120rpx;
  713. border-radius: 22rpx;
  714. margin-left: 22rpx;
  715. margin-right: 24rpx;
  716. image {
  717. display: block;
  718. // width: 278rpx;
  719. // height: 156rpx;
  720. width: 100%;
  721. height: 100%;
  722. }
  723. }
  724. &__auto {
  725. flex: 1;
  726. .goods-title {
  727. color: #333333;
  728. font-size: 28rpx;
  729. font-weight: bold;
  730. text-align: right;
  731. width: 378rpx;
  732. overflow: hidden;
  733. text-overflow: ellipsis;
  734. white-space: nowrap;
  735. }
  736. .priceTag {
  737. font-size: 32rpx;
  738. font-family: PingFang SC;
  739. font-weight: bold;
  740. color: #fc3f3f;
  741. display: flex;
  742. // flex-direction: row-reverse;
  743. margin-right: 8rpx;
  744. margin-top: 25rpx;
  745. }
  746. }
  747. }
  748. }
  749. .goods-select {
  750. &__type {
  751. display: flex;
  752. justify-content: space-between;
  753. align-items: center;
  754. height: 50rpx;
  755. padding: 0 15rpx;
  756. }
  757. }
  758. }
  759. }
  760. .btn2 {
  761. font-size: 32rpx;
  762. font-weight: 500;
  763. color: #ffffff;
  764. margin-right: 8rpx;
  765. width: 232rpx;
  766. height: 92rpx;
  767. line-height: 92rpx;
  768. text-align: center;
  769. background: #fc3f3f;
  770. border-radius: 120rpx;
  771. }
  772. .bottomBox {
  773. position: fixed;
  774. bottom: 0rpx;
  775. width: 100%;
  776. left: 0;
  777. height: 132rpx;
  778. background-color: #ffffff;
  779. display: flex;
  780. justify-content: space-between;
  781. align-items: center;
  782. padding: 0 32rpx;
  783. box-shadow: 0px -2px 6px 0px rgba(0, 0, 0, 0.1);
  784. z-index: 9999;
  785. .bottons_all {
  786. // width: 674rpx;
  787. // height: 104rpx;
  788. // background: #007AFF;
  789. // border-radius: 52rpx;
  790. width: 100%;
  791. display: flex;
  792. align-items: center;
  793. justify-content: space-between;
  794. // padding: 0rpx 26rpx 0rpx 23rpx;
  795. }
  796. .priceTag {
  797. font-size: 32rpx;
  798. font-family: PingFang SC;
  799. font-weight: bold;
  800. color: #fc3f3f;
  801. display: flex;
  802. flex-direction: row-reverse;
  803. margin-right: 20rpx;
  804. }
  805. .check_alls {
  806. display: flex;
  807. align-items: center;
  808. color: #969696;
  809. // .rmb {
  810. // // margin-right: 9rpx;
  811. // // margin-left: 35rpx;
  812. // // font-size: 20rpx;
  813. // // position: relative;
  814. // // top: -14rpx;
  815. // // left: 0rpx;
  816. // }
  817. }
  818. .all_sum {
  819. font-size: 28rpx;
  820. font-weight: 800;
  821. color: #303030;
  822. margin-left: 35rpx;
  823. }
  824. .checkall {
  825. font-weight: 500;
  826. color: #969696;
  827. font-size: 28rpx;
  828. }
  829. }
  830. .half_circle {
  831. position: fixed;
  832. bottom: 0rpx;
  833. width: 100%;
  834. left: 0;
  835. height: 20rpx;
  836. border: 1rpx solid;
  837. display: flex;
  838. justify-content: center;
  839. .bulge {
  840. width: 110rpx;
  841. height: 55rpx;
  842. border-radius: 55px 55px 0px 0px;
  843. background-color: #fff;
  844. }
  845. }
  846. </style>