shoppingCart.vue 25 KB

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