shoppingCart.vue 20 KB

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