index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. <template>
  2. <view class="pages">
  3. <!-- head -->
  4. <sklineHeader title="购物车"></sklineHeader>
  5. <view class="cart-body">
  6. <!-- 内容 -->
  7. <scroll-view
  8. scroll-y
  9. class="cart-list"
  10. type="custom"
  11. :bounces="false"
  12. @scrolltolower="onreachBottom">
  13. <sticky-header>
  14. <!-- 头部 -->
  15. <view class="cart-head" v-if="total>0">
  16. <view class="cart-head-left">共<text>{{total}}</text>款商品</view>
  17. <view class="cart-head-right">
  18. <view class="cart-head-btton blue" @click="editAll">
  19. <text>{{editFlag?'完成':'编辑'}}</text>
  20. </view>
  21. </view>
  22. </view>
  23. </sticky-header>
  24. <productItem
  25. v-for="(item, index) in list"
  26. :key="index"
  27. :list="item"
  28. @changeQty="changeQty"
  29. @check="chooseItem"
  30. @editQty="editQty"
  31. @remove="removeCart">
  32. </productItem>
  33. <!-- loading -->
  34. <view class="loading-bar" v-if="total>0 && status!='loading'">{{noDataText}}</view>
  35. <view class="empty-bar" v-if="total==0 && status!='loading'" @click="goBack">
  36. <image mode="aspectFit" :src="empty.imgUrl"></image>
  37. <view>{{empty.tip}}</view>
  38. </view>
  39. </scroll-view>
  40. <!-- 底部 -->
  41. <view class="cart-footer" v-if="total>0">
  42. <view class="cart-footer-box">
  43. <view class="cart-footer-left">
  44. <view class="cart-footer-left-all" @click="chooseAll">
  45. <view class="cart-footer-left-all-icon">
  46. <uni-icons v-if="allDisabled&&!editFlag" type="circle-filled" size="24" color="#ccc"></uni-icons>
  47. <uni-icons v-else :type="allChecked?'checkbox-filled':'circle'" size="24" :color="allChecked?'#dd0000':'#666'"></uni-icons>
  48. </view>
  49. <view class="cart-footer-left-all-text">
  50. <text>全选</text>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="cart-footer-right">
  55. <view class="cart-footer-left-price" v-if="!editFlag && totalAmount">
  56. <view class="flex align_center">
  57. <view class="cart-footer-left-price-text">
  58. <text>合计:</text>
  59. </view>
  60. <view class="cart-footer-left-price-num">
  61. ¥<text>{{Number(totalAmount).toFixed(2).toString().split('.')[0]}}</text>.{{Number(totalAmount).toFixed(2).toString().split('.')[1]}}
  62. </view>
  63. </view>
  64. <view class="flex align_center">
  65. <view class="cart-footer-left-price-text1">
  66. <text>优惠:¥{{totalDiscount}}</text>
  67. <text>代金券:¥{{totalCoupon}}</text>
  68. </view>
  69. </view>
  70. </view>
  71. <view v-else></view>
  72. <view class="cart-footer-right-button">
  73. <button class="btns" :loading="loading" v-if="!editFlag" type="warn" size="mini" @click="settlement">去结算({{totalNum}})</button>
  74. <button v-else class="btns" type="warn" plain size="mini" @click="batchRemove">删除({{totalSel}})</button>
  75. </view>
  76. </view>
  77. </view>
  78. <view :style="{height:safeAreaBottom+'px'}"></view>
  79. </view>
  80. </view>
  81. <!-- 修改数量弹框 -->
  82. <page-container
  83. :show="showPopu"
  84. :round="true"
  85. :z-index="100"
  86. position="center"
  87. customStyle="right: 0; left: 0; top: 0; bottom: 0; margin: auto 10%;width: fit-content;height: fit-content;border-radius:15px;"
  88. @afterleave="closePopu">
  89. <view class="popu-content">
  90. <view class="popu-close" @click="closePopu">
  91. <uni-icons size="26" type="closeempty"></uni-icons>
  92. </view>
  93. <view class="popu-content-num flex align_center justify_between">
  94. <text>数量</text>
  95. <u-number-box v-model="qty" :input-width="100" :input-height="60" :min="1" :max="999"></u-number-box>
  96. </view>
  97. </view>
  98. </page-container>
  99. </view>
  100. </template>
  101. <script>
  102. import {
  103. mapState,
  104. mapMutations,
  105. } from 'vuex'
  106. import productItem from '@/pagesB/cart/productitem.vue'
  107. import sklineHeader from '../../components/skline/sklineHeader.vue'
  108. import { getCartList, updateCart, deleteCart } from '@/api/cart.js'
  109. import { purchaseSave, purchaseCheck } from '@/api/purchase.js'
  110. export default {
  111. components:{
  112. productItem,
  113. sklineHeader
  114. },
  115. onLoad() {
  116. // 计算区域高度
  117. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  118. this.screenWidth = uni.getSystemInfoSync().windowWidth
  119. this.screenHeight = uni.getSystemInfoSync().windowHeight
  120. this.safeAreaBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
  121. // 获取列表数据
  122. this.pageInit()
  123. },
  124. data() {
  125. return {
  126. loading: false,
  127. showPopu: false,
  128. status: 'loading',
  129. noDataText: '暂无产品',
  130. empty: {
  131. tip: '购物车空空的,去挑选商品吧',
  132. imgUrl: '/static/kongCart.png'
  133. },
  134. // 查询条件
  135. pageNo: 1, // 页数
  136. pageSize: 10000, // 每页数
  137. list: [], // 列表数据
  138. total: 0, // 总款数
  139. totalAmount: 0, // 总金额
  140. totalDiscount:0, // 总优惠
  141. totalCoupon: 0, // 总代金券
  142. totalNum: 0, // 总数量
  143. totalSel: 0, // 已选数量
  144. editFlag: false, // 是否编辑状态
  145. allChecked: false, // 是否全选
  146. screenWidth: 325, // 屏幕宽度
  147. screenHeight: 0, // 屏幕高度
  148. statusBarHeight: 44, // 状态栏高度
  149. safeAreaBottom: 0, // 底部安全区域高度
  150. }
  151. },
  152. computed: {
  153. ...mapState(['hasLogin']),
  154. userInfo(){
  155. return this.$store.state.vuex_userInfo
  156. },
  157. allDisabled(){
  158. let ret = false
  159. if(!this.editFlag){
  160. this.list.forEach(key => {
  161. ret = key.every(item => !item.status || item.status==0 || item.dealerScopeFlag==0)
  162. })
  163. }
  164. return ret
  165. }
  166. },
  167. methods: {
  168. goBack(){
  169. uni.navigateBack()
  170. },
  171. pageInit(){
  172. this.pageNo = 1
  173. this.list = []
  174. this.getRow()
  175. },
  176. // 关闭弹框
  177. closePopu(){
  178. this.showPopu = false
  179. },
  180. // 打开编辑数量弹框
  181. editQty(item){
  182. this.showPopu = true
  183. },
  184. // 查询列表
  185. getRow (pageNo) {
  186. let _this = this
  187. if (pageNo) {
  188. this.pageNo = pageNo
  189. }
  190. let params = {
  191. pageNo: this.pageNo,
  192. pageSize: this.pageSize,
  193. queryWord: this.queryWord
  194. }
  195. this.status = "loading"
  196. getCartList(params).then(res => {
  197. if (res.status == 200) {
  198. _this.total = res.data.count || 0
  199. const list = res.data.list
  200. for(let i=0;i<list.length;i=i+10){
  201. _this.list.push(list.slice(i,(i+10)>list.length?list.length:(i+10)).map(key=>{
  202. const a = key.shopPromoProduct
  203. key.orginPrice = key.price
  204. if(a){
  205. key.promoType = a.promoType
  206. key.resultValue = a.resultValue
  207. key.conditionValue = a.conditionValue
  208. key.discountType = a.discountType
  209. key.promoProductSn = a.promoProductSn
  210. key.promoSn = a.promoSn
  211. // 特价
  212. if(key.promoType=='PROMO_PROD'){
  213. // 直降
  214. if(key.discountType == 'STRAIGHT_DOWN'){
  215. key.price = key.price - key.resultValue
  216. }
  217. // 折扣
  218. if(key.discountType == 'DISCOUNT'){
  219. key.price = Number(key.price * key.resultValue).toFixed(2)
  220. }
  221. }
  222. }
  223. delete key.shopPromoProduct
  224. return {
  225. id: key.id,
  226. edit: false,
  227. checked: _this.allChecked,
  228. cartSn: key.cartSn,
  229. price: key.price,
  230. orginPrice: key.orginPrice,
  231. qty: key.qty,
  232. productSn: key.productSn,
  233. productName: key.productEntity.productName,
  234. productImage: key.productEntity.images,
  235. productCode: key.productEntity.code,
  236. productOrigCode: key.productEntity.origCode,
  237. unit: key.productEntity.unit,
  238. status: key.status,
  239. dealerScopeFlag: key.dealerScopeFlag,
  240. resultValue: key.resultValue,
  241. conditionValue: key.conditionValue,
  242. discountType: key.discountType,
  243. promoType: key.promoType,
  244. promoProductSn: key.promoProductSn,
  245. promoSn: key.promoSn,
  246. giftQty: 0
  247. }
  248. }))
  249. }
  250. // 默认全选
  251. if(_this.pageNo == 1){
  252. _this.$nextTick(()=>{
  253. _this.chooseAll()
  254. })
  255. }
  256. // 判断是否最后一页
  257. const maxPages = Math.ceil(_this.total / _this.pageSize)
  258. if(this.pageNo >= maxPages){
  259. _this.status = 'nomore'
  260. _this.noDataText = '没有更多了'
  261. }else{
  262. _this.status = 'loadmore'
  263. _this.noDataText = '加载更多'
  264. }
  265. } else {
  266. _this.list = []
  267. _this.total = 0
  268. _this.status = 'loadmore'
  269. _this.noDataText = res.message
  270. }
  271. })
  272. },
  273. // scroll-view到底部加载更多
  274. onreachBottom() {
  275. // 判断是否最后一页
  276. const maxPages = Math.ceil(this.total / this.pageSize)
  277. if(this.pageNo >= maxPages){
  278. this.status = "nomore"
  279. this.noDataText = '没有更多了'
  280. }else{
  281. this.pageNo += 1
  282. this.getRow()
  283. }
  284. },
  285. // 根据cartSn查找
  286. getItemById(cartSn){
  287. const a = this.list.findIndex(k => k.find(s=> s.cartSn == cartSn))
  288. const b = a>=0 ? this.list[a].findIndex(s=> s.cartSn == cartSn) : -1
  289. return {p:a,s:b}
  290. },
  291. // 已选产品变更数量
  292. changeQty(val,cartSn){
  293. uni.showLoading({
  294. title: '加载中'
  295. })
  296. updateCart({
  297. cartSn: cartSn,
  298. qty: val
  299. }).then(res => {
  300. if(res.status == 200){
  301. const crow = this.getItemById(cartSn)
  302. if(crow.p>=0&&crow.s>=0){
  303. this.list[crow.p][crow.s].qty = val
  304. this.list[crow.p].splice()
  305. // 合计
  306. this.getChooseHeji()
  307. uni.$emit('refashCart')
  308. }
  309. }
  310. uni.hideLoading()
  311. })
  312. },
  313. // 单选择
  314. chooseItem(cartSn){
  315. const crow = this.getItemById(cartSn)
  316. if(crow.p>=0&&crow.s>=0){
  317. this.list[crow.p][crow.s].checked = !this.list[crow.p][crow.s].checked
  318. // 合计
  319. this.getChooseHeji()
  320. // 判断是否全选
  321. this.isAllChecked()
  322. }
  323. },
  324. // 判断是否全选
  325. isAllChecked(){
  326. if(this.editFlag){
  327. this.allChecked = this.list.every(key => key.every(item => item.checked))
  328. }else{
  329. this.allChecked = this.list.every(key => key.filter(item => item.status==1&&item.dealerScopeFlag==1 ).every(item => item.checked))
  330. }
  331. },
  332. // 编辑
  333. editAll(){
  334. this.editFlag = !this.editFlag
  335. this.list.forEach(key => {
  336. key.forEach(item => {
  337. item.edit = this.editFlag
  338. if(!item.status||item.status==0||item.dealerScopeFlag==0){
  339. item.checked = false
  340. }
  341. })
  342. })
  343. // 合计
  344. this.getChooseHeji()
  345. // 判断是否全选
  346. this.isAllChecked()
  347. },
  348. // 清空购物车
  349. clearAll(){
  350. const _this = this
  351. uni.showModal({
  352. title: '提示',
  353. content: '确定清空购物车?',
  354. confirmText: '确定',
  355. success(res) {
  356. if(res.confirm){
  357. uni.showLoading({
  358. title: '正在清空...',
  359. mask: true
  360. })
  361. }
  362. }
  363. })
  364. },
  365. // 全选
  366. chooseAll(){
  367. if(this.allDisabled){
  368. return
  369. }
  370. this.allChecked = !this.allChecked
  371. this.list.forEach(key => {
  372. // 非编辑模式
  373. if(!this.editFlag){
  374. key.filter(item=>item.status == 1 && item.dealerScopeFlag == 1).forEach(item => {
  375. item.checked = this.allChecked
  376. })
  377. }else{
  378. // 编辑模式
  379. key.forEach(item => {
  380. item.checked = this.allChecked
  381. })
  382. }
  383. })
  384. // 合计
  385. this.getChooseHeji()
  386. },
  387. //单个删除
  388. removeChoose(cartSn,isBatch){
  389. // 删除项
  390. const crow = this.getItemById(cartSn)
  391. if(crow.p>=0&&crow.s>=0){
  392. this.list[crow.p].splice(crow.s, 1);
  393. this.total = this.total - 1
  394. // 合计
  395. if(!isBatch){
  396. this.getChooseHeji()
  397. uni.$emit('refashCart')
  398. // 判断是否全选
  399. this.isAllChecked()
  400. }
  401. }
  402. },
  403. // 批量删除
  404. batchRemove(){
  405. if(this.totalNum==0){
  406. uni.showToast({
  407. title: '请选择产品',
  408. icon: 'none'
  409. })
  410. return false
  411. }
  412. const _this = this
  413. uni.showModal({
  414. title: '提示',
  415. content: '确定删除商品吗?',
  416. confirmText: '确定',
  417. success(res) {
  418. if(res.confirm){
  419. const snList = []
  420. _this.list.forEach(item => {
  421. item.filter(k=>k.checked).forEach(s=>{
  422. snList.push(s.cartSn)
  423. })
  424. })
  425. // 删除购物车
  426. _this.removeCart(snList,true,true)
  427. }
  428. }
  429. })
  430. },
  431. // 删除商品
  432. removeCart(snList,isBatch,isTip){
  433. const _this = this
  434. if(isTip){
  435. uni.showLoading({
  436. title: '删除中'
  437. })
  438. }
  439. deleteCart({cartSns:snList}).then(ret => {
  440. if(ret.status == 200){
  441. snList.forEach(sn => {
  442. _this.removeChoose(sn,isBatch)
  443. })
  444. // 合计,批量操作
  445. if(isBatch){
  446. _this.getChooseHeji()
  447. uni.$emit('refashCart')
  448. // 判断是否全选
  449. _this.isAllChecked()
  450. }
  451. if(isTip){
  452. uni.showToast({
  453. title: '删除成功',
  454. icon: 'none'
  455. })
  456. }
  457. }
  458. uni.hideLoading()
  459. })
  460. },
  461. // 去结算
  462. settlement(){
  463. if(this.totalAmount>0){
  464. this.submitOrder()
  465. }else{
  466. uni.showToast({
  467. title: '请选择产品',
  468. icon: 'none'
  469. })
  470. }
  471. },
  472. // 去结算
  473. submitOrder(){
  474. const _this = this
  475. // 获取已选商品
  476. const detailList = []
  477. const cartSn = []
  478. _this.list.forEach(key => {
  479. key.filter(item=>item.checked).forEach(item => {
  480. detailList.push({
  481. productSn:item.productSn,
  482. productCode:item.productCode,
  483. qty: item.qty,
  484. price:item.orginPrice,
  485. })
  486. cartSn.push({
  487. cartSn: item.cartSn,
  488. productSn:item.productSn
  489. })
  490. })
  491. })
  492. // 校验并提示信息
  493. purchaseCheck({detailList:detailList}).then(res => {
  494. if(res.status == 200){
  495. const successList = res.data.successList.map(item => {
  496. return {
  497. productSn:item.productSn,
  498. productCode: item.productCode,
  499. qty: item.qty,
  500. price:item.price
  501. }
  502. })
  503. const delSn = cartSn.filter(item => successList.find(k => k.productSn == item.productSn)).map(item => item.cartSn)
  504. const removeList = res.data.removeList.map(item => item.productCode)
  505. const selloutList = res.data.selloutList.map(item => item.productCode)
  506. console.log(successList,delSn)
  507. console.log(removeList,selloutList)
  508. // 有已下架或已售罄产品提示
  509. if(removeList.length || selloutList.length){
  510. uni.showModal({
  511. title: '提示',
  512. content: (removeList.length ? `产品${removeList.join(',')}已下架,`:'')+(selloutList.length?`产品${selloutList.join(',')}已售罄,`:'')+`不可采购。`+(successList.length?'是否继续采购其他产品?':''),
  513. showCancel: successList.length,
  514. confirmText: successList.length?'确定':'知道了',
  515. success(ret) {
  516. if(ret.confirm && successList.length){
  517. _this.submitForm(successList,delSn)
  518. }
  519. }
  520. })
  521. }else{
  522. // 提交
  523. _this.submitForm(successList,delSn)
  524. }
  525. }else{
  526. uni.showToast({
  527. title: res.message,
  528. icon: 'none'
  529. })
  530. }
  531. })
  532. },
  533. // 确认提交
  534. submitForm(detailList,cartSn){
  535. uni.showLoading({
  536. title: '提交中...',
  537. mask: true
  538. })
  539. this.loading = true
  540. purchaseSave({
  541. detailList: detailList
  542. }).then(res => {
  543. this.loading = false
  544. uni.hideLoading()
  545. if(res.status == 200){
  546. // 删除已提交产品
  547. this.removeCart(cartSn,true,false)
  548. res.data.detailList = []
  549. this.$store.state.vuex_tempData = res.data
  550. uni.navigateTo({
  551. url: "/pagesB/procureOrder"
  552. })
  553. }else{
  554. uni.showToast({
  555. title: res.message,
  556. icon: 'none'
  557. })
  558. }
  559. })
  560. },
  561. // 计算总款数、合计、数量
  562. getChooseHeji(){
  563. this.totalAmount = 0
  564. this.totalDiscount = 0
  565. this.totalCoupon = 0
  566. this.totalNum = 0
  567. this.totalSel = 0
  568. this.list.forEach(key => {
  569. key.filter(item=>item.checked).forEach(item => {
  570. this.totalAmount += item.price * item.qty // 总金额
  571. this.totalNum += item.qty // 总数量
  572. this.totalSel += 1 // 已选数量
  573. // 如果是返券类型
  574. if(item.promoType=='BUY_PROD_GIVE_VALID'){
  575. this.totalCoupon += item.resultValue * item.qty
  576. }
  577. // 特价
  578. if(item.promoType=='PROMO_PROD'){
  579. // 直降
  580. if(item.discountType == 'STRAIGHT_DOWN'){
  581. this.totalDiscount += item.resultValue * item.qty
  582. }
  583. // 折扣
  584. if(item.discountType == 'DISCOUNT'){
  585. this.totalDiscount += Number(item.price * (1-item.resultValue)) * item.qty
  586. }
  587. }
  588. // 满赠
  589. item.giftQty = item.promoType=='BUY_PROD_GIVE_PROD' ? Math.floor(item.qty / item.conditionValue)*item.resultValue : 0
  590. })
  591. })
  592. },
  593. }
  594. }
  595. </script>
  596. <style lang="less">
  597. .pages{
  598. height: 100vh;
  599. display: flex;
  600. flex-direction: column;
  601. .popu-content{
  602. display: flex;
  603. flex-direction: column;
  604. align-items: center;
  605. padding: 10px 15px;
  606. .popu-close{
  607. padding: 10px;
  608. position: absolute;
  609. right: 0;
  610. top: 0;
  611. }
  612. .popu-content-num{
  613. font-size: 14px;
  614. color: #999999;
  615. padding: 10px 0;
  616. > text{
  617. margin-right: 10px;
  618. font-size: 10px;
  619. }
  620. }
  621. }
  622. .cart-body{
  623. position: relative;
  624. flex-grow: 1;
  625. display: flex;
  626. flex-direction: column;
  627. .cart-head{
  628. display: flex;
  629. justify-content: space-between;
  630. align-items: center;
  631. padding: 0 20rpx;
  632. background-color: #FFFFFF;
  633. height: 40px;
  634. .cart-head-left{
  635. display: flex;
  636. align-items: center;
  637. font-size: 28rpx;
  638. color: #333333;
  639. height: 100%;
  640. text{
  641. color: #d81e06;
  642. margin: 0 10rpx;
  643. }
  644. }
  645. .cart-head-right{
  646. display: flex;
  647. align-items: center;
  648. }
  649. .red{
  650. color: #d81e06;
  651. }
  652. .blue{
  653. color: #2196F3;
  654. }
  655. .cart-head-btton{
  656. height: 100%;
  657. font-size: 28rpx;
  658. margin-right: 10px;
  659. }
  660. }
  661. .cart-list{
  662. flex-grow: 1;
  663. background-color: #F5F5F5;
  664. width: 100%;
  665. .loading-bar{
  666. text-align: center;
  667. padding: 10px 0;
  668. color: #999999;
  669. }
  670. .empty-bar{
  671. display: flex;
  672. flex-direction: column;
  673. align-items: center;
  674. justify-content: center;
  675. padding: 20px 0;
  676. margin-top: 20vh;
  677. image{
  678. width: 100px;
  679. height: 100px;
  680. }
  681. view{
  682. font-size: 14px;
  683. color: #999999;
  684. margin-top: 10px;
  685. }
  686. }
  687. }
  688. .cart-footer{
  689. width: 100%;
  690. background-color: #FFFFFF;
  691. .cart-footer-box{
  692. width: 100%;
  693. height: 100rpx;
  694. display: flex;
  695. justify-content: space-between;
  696. align-items: center;
  697. }
  698. .cart-footer-left{
  699. display: flex;
  700. align-items: center;
  701. padding: 0 20rpx 0 36rpx;
  702. .cart-footer-left-all{
  703. display: flex;
  704. align-items: center;
  705. .cart-footer-left-all-text{
  706. margin-left: 10rpx;
  707. font-size: 28rpx;
  708. color: #333333;
  709. }
  710. }
  711. }
  712. .cart-footer-right{
  713. padding: 0 20rpx;
  714. display: flex;
  715. align-items: center;
  716. justify-content: space-between;
  717. flex-grow:1;
  718. .cart-footer-left-price{
  719. flex-grow:1;
  720. > view{
  721. display: flex;
  722. align-items: baseline;
  723. justify-content: flex-end;
  724. }
  725. .cart-footer-left-price-text{
  726. font-size: 24rpx;
  727. color: #333333;
  728. }
  729. .cart-footer-left-price-text1{
  730. font-size: 20rpx;
  731. color: #666;
  732. display: flex;
  733. align-items: center;
  734. margin-top: 2px;
  735. text{
  736. margin-right: 5px;
  737. }
  738. }
  739. .cart-footer-left-price-num{
  740. display: flex;
  741. align-items: baseline;
  742. font-size: 24rpx;
  743. color: #d81e06;
  744. text{
  745. font-size: 32rpx;
  746. }
  747. }
  748. }
  749. .red{
  750. color: #d81e06;
  751. }
  752. .cart-head-btton{
  753. height: 100%;
  754. font-size: 28rpx;
  755. color: #333333;
  756. }
  757. .cart-footer-right-button{
  758. display: flex;
  759. align-items: center;
  760. margin-left: 20rpx;
  761. text-align: right;
  762. .btns{
  763. border-radius: 100rpx;
  764. height: 36px;
  765. }
  766. }
  767. }
  768. }
  769. }
  770. }
  771. </style>