shoppingCart.vue 24 KB

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