index.vue 18 KB

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