shoppingCart.vue 23 KB

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