index.vue 18 KB

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