shoppingCart.vue 27 KB

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