promoProduct.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <template>
  2. <view class="scrollPage">
  3. <!-- head -->
  4. <view class="scrollPage-header">
  5. <view :style="{height:statusBarHeight+'px'}"></view>
  6. <view class="header-title">
  7. <view class="header-left" @click="goBack">
  8. <image style="width: 16px; height: 16px;margin-right:3px;" mode="aspectFit" src="./static/arrow-left.png"></image>
  9. <text>返回</text>
  10. </view>
  11. <view class="header-title"><text class="ellipsis-one" overflow="ellipsis">{{title}}</text></view>
  12. <view class="header-right"></view>
  13. </view>
  14. </view>
  15. <!-- body -->
  16. <scroll-view
  17. class="scrollPage-body"
  18. :style="{height: (screenHeight - statusBarHeight - safeAreaBottom - 94) + 'px'}"
  19. scroll-y="true"
  20. type="custom"
  21. @scrolltolower="reachBottom">
  22. <!-- 搜索,吸顶 -->
  23. <sticky-header>
  24. <view class="search-head">
  25. <uni-search-bar radius="100" placeholder="请输入产品名称/轮胎规格" clearButton="auto" cancelButton="none" @confirm="searchList" @clear="searchList" />
  26. </view>
  27. </sticky-header>
  28. <!-- 产品列表 -->
  29. <productItem
  30. v-for="(item,index) in list"
  31. :key="index"
  32. :list="item"
  33. :index="index"
  34. :itemWidth="(screenWidth*0.94-screenWidth*0.03)*0.5"
  35. :gap="screenWidth*0.03"
  36. @chooseProduct="chooseProduct"
  37. ></productItem>
  38. <!-- loading -->
  39. <view class="loading-bar" v-if="list.length && (loading||loadEnd)">{{loadText}}</view>
  40. <view class="empty-bar" v-if="total==0&&!loading">
  41. <image mode="aspectFit" :src="empty.imgUrl"></image>
  42. <view>{{empty.tip}}</view>
  43. </view>
  44. </scroll-view>
  45. <!-- footer -->
  46. <view class="scrollPage-footer">
  47. <view>
  48. <view class="bottom-bar-left">
  49. <view class="bottom-bar-left-item">
  50. <view class="bottom-bar-left-item-icon" @click="openChoose">
  51. <image style="width: 20px; height: 20px;" mode="aspectFit" src="./static/cart.png"></image>
  52. <text class="badge" v-if="totalNum">{{totalNum>99?'99+':totalNum}}</text>
  53. </view>
  54. </view>
  55. <view class="bottom-bar-left-item">
  56. <!-- 合计:<view class="price-txt">¥<text>{{totalAmount}}</text></view> -->
  57. </view>
  58. </view>
  59. <view :class="'bottom-bar-right'" @click="submitOrder">
  60. <view class="bottom-bar-right-item">去结算</view>
  61. </view>
  62. </view>
  63. <view :style="{height:safeAreaBottom+'px'}"></view>
  64. </view>
  65. <!-- 已选产品 -->
  66. <page-container
  67. :show="showChoosePopu"
  68. :round="true"
  69. :z-index="10"
  70. position="bottom"
  71. custom-style="height:80%"
  72. @afterenter="openRender"
  73. @afterleave="closePopu">
  74. <view class="popup-body" v-if="showSwipeAction">
  75. <scroll-view
  76. :style="{width:screenWidth + 'px',height:'100%'}"
  77. scroll-y="true"
  78. type="custom"
  79. >
  80. <sticky-header>
  81. <view class="choose-title">
  82. <view class="choose-left">
  83. <view>已选<text class="p-nums">{{chooseLength}}</text>款产品</view>
  84. <!-- <button @click="claerChoose" size="mini" type="warn" plain>清空列表</button> -->
  85. <!-- <button class="editBtn" @click="handleEditChoose" size="mini" type="primary" plain>{{editChoose?'完成':'编辑'}}</button> -->
  86. <view class="clearBtn" @click="claerChoose">
  87. <text>清空列表</text>
  88. </view>
  89. <view class="editBtn" @click="handleEditChoose">
  90. <text>{{editChoose?'完成':'编辑'}}</text>
  91. </view>
  92. </view>
  93. <view class="choose-close" @click="showChoosePopu=false">
  94. <uni-icons type="closeempty" size="28"></uni-icons>
  95. </view>
  96. </view>
  97. </sticky-header>
  98. <chooseProductItem
  99. v-for="(item, index) in showList"
  100. :key="item.id"
  101. :index="index"
  102. :list="item"
  103. :edit="editChoose"
  104. @changeQty="changeQty"
  105. @remove="removeChoose">
  106. </chooseProductItem>
  107. <view style="min-height: 180rpx;"></view>
  108. </scroll-view>
  109. <view class="choose-footer">
  110. <view>
  111. <view class="choose-footer-left">
  112. <view class="choose-footer-left-item">
  113. <!-- 总数:<view><text class="p-nums">{{totalNum}}</text></view> -->
  114. </view>
  115. <view class="choose-footer-left-item">
  116. 合计:<view class="price-txt">¥<text>{{totalAmount}}</text></view>
  117. </view>
  118. </view>
  119. <view class="choose-footer-right bg-1" @click="submitOrder">
  120. <view class="choose-footer-right-item">确认采购</view>
  121. </view>
  122. </view>
  123. <view :style="{height:safeAreaBottom+'px'}"></view>
  124. </view>
  125. </view>
  126. </page-container>
  127. </view>
  128. </template>
  129. <script>
  130. import {
  131. mapState,
  132. mapMutations,
  133. } from 'vuex'
  134. import { queryPromoProductByPage } from '@/api/video.js'
  135. import { purchaseSave } from '@/api/purchase.js'
  136. import productItem from '@/pagesB/components/productItemSkline.vue'
  137. import chooseProductItem from '@/pagesB/components/chooseProductItemSkline.vue'
  138. export default {
  139. components:{
  140. productItem,
  141. chooseProductItem
  142. },
  143. data() {
  144. return {
  145. title: '促销产品列表',
  146. pageNo:1,
  147. pageSize:16,
  148. total:0,
  149. list:[],
  150. loading:false,
  151. loadEnd: false,
  152. loadText: '加载中...',
  153. empty: {
  154. tip: '暂无产品',
  155. imgUrl: '/static/nodata.png'
  156. },
  157. queryWord:'',
  158. promoActiveSn:'',
  159. screenWidth: 750,
  160. screenHeight: 0,
  161. statusBarHeight: 44,
  162. safeAreaBottom: 0,
  163. // 已选弹框
  164. showChoosePopu: false,
  165. showSwipeAction: false,
  166. chooseList:[],
  167. editChoose: false,
  168. choosePageSize: 12,
  169. // 数量,合计
  170. chooseLength: 0, //已选产品总款数
  171. totalAmount: 0, //已选产品总金额
  172. totalNum: 0, //已选产品总数量
  173. };
  174. },
  175. computed: {
  176. ...mapState(['hasLogin']),
  177. userInfo(){
  178. return this.$store.state.vuex_userInfo
  179. },
  180. fristLength(){
  181. return this.chooseList.length > 0 ? this.chooseList[0].length : 0
  182. },
  183. showList(){
  184. return this.showSwipeAction ? this.chooseList : []
  185. }
  186. },
  187. onLoad(opts) {
  188. this.title = opts.title||'促销产品列表'
  189. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  190. this.screenWidth = uni.getSystemInfoSync().windowWidth
  191. this.screenHeight = uni.getSystemInfoSync().windowHeight
  192. this.safeAreaBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
  193. // 清空临时数据
  194. this.$store.state.vuex_tempData = null
  195. this.promoActiveSn = opts.promoActiveSn
  196. // 查询列表
  197. this.getList()
  198. this.chooseList = this.getCacheList()
  199. this.getChooseHeji()
  200. },
  201. onUnload(){
  202. // 存储已选列表值
  203. const hasCache = this.$store.state.vuex_cartList.find(k => k.sn == this.promoActiveSn)
  204. if(hasCache){
  205. hasCache.list = this.chooseList
  206. }else{
  207. this.$store.state.vuex_cartList.push({sn:this.promoActiveSn,list: this.chooseList})
  208. }
  209. this.$u.vuex('vuex_cartList', this.$store.state.vuex_cartList)
  210. // 清空数据
  211. this.chooseList = null
  212. this.list = null
  213. },
  214. methods: {
  215. goBack() {
  216. uni.navigateBack();
  217. },
  218. // 从缓存获取数据
  219. getCacheList(){
  220. const cacheList = this.$store.state.vuex_cartList.find(k => k.sn == this.promoActiveSn)
  221. return cacheList ? JSON.parse(JSON.stringify(cacheList.list)) : []
  222. },
  223. // 滚动到底部
  224. reachBottom() {
  225. if(!this.loading && !this.loadEnd){
  226. this.pageNo++
  227. this.getList()
  228. }
  229. },
  230. // 搜索
  231. searchList(event){
  232. this.loadEnd = false
  233. this.loadText = '加载中...'
  234. this.queryWord = event.value
  235. this.list = []
  236. this.pageNo = 1
  237. this.getList()
  238. },
  239. // 列表查询
  240. getList(){
  241. this.loading = true
  242. queryPromoProductByPage({
  243. pageNo: this.pageNo,
  244. pageSize: this.pageSize,
  245. queryWord: this.queryWord,
  246. promoActiveSn: this.promoActiveSn
  247. }).then(res => {
  248. this.loading = false
  249. if(res.status == 200){
  250. this.total = res.data.count
  251. if(this.total){
  252. const list = res.data.list || []
  253. const ret = []
  254. // 更新已选状态
  255. list.forEach(k => {
  256. // 如果筛选或分页后,更新页面列表产品数量
  257. const row = this.getChooseItemById(k.id)
  258. const hasChecked = row.p>=0 && row.s>=0
  259. ret.push({
  260. id: k.id,
  261. cost: k.cost,
  262. checked: hasChecked ? true : false,
  263. qty: hasChecked ? this.chooseList[row.p][row.s].qty : 0,
  264. productCode: k.productCode,
  265. productSn: k.productSn,
  266. productImage: k.productImage,
  267. productName: k.productName,
  268. productOrigCode: k.productOrigCode,
  269. promoActiveSn: k.promoActiveSn,
  270. promoRuleSn: k.promoRuleSn,
  271. promoRuleValue: k.promoRuleValue,
  272. promoRuleType: k.promoRuleType,
  273. })
  274. })
  275. // 追加数据
  276. this.list.push(ret)
  277. // 判断是否最后一页
  278. const maxPages = Math.ceil(this.total / this.pageSize)
  279. if(this.pageNo >= maxPages){
  280. this.loadEnd = true
  281. this.loadText = '没有更多了'
  282. }
  283. }else{
  284. this.loadEnd = false
  285. this.loadText = '暂无产品'
  286. }
  287. }
  288. }).catch(err => {
  289. this.loading = false
  290. })
  291. },
  292. // 根据id查找chooseList
  293. getChooseItemById(id){
  294. const a = this.chooseList.findIndex(k => k.find(s=> s.id == id))
  295. const b = a>=0 ? this.chooseList[a].findIndex(s=> s.id == id) : -1
  296. return {p:a,s:b}
  297. },
  298. // 计算总款数、合计、数量
  299. getChooseHeji(){
  300. this.chooseLength = 0
  301. this.totalAmount = 0
  302. this.totalNum = 0
  303. this.chooseList.forEach(key => {
  304. this.chooseLength += key.length // 总款数
  305. key.forEach(item => {
  306. this.totalAmount += item.cost * item.qty // 总金额
  307. this.totalNum += item.qty // 总数量
  308. })
  309. })
  310. },
  311. // 选择产品
  312. chooseProduct(item,index){
  313. const rowItem = this.list[index].find(k => k.id == item.id)
  314. // 新加
  315. if(!rowItem.checked){
  316. rowItem.checked = true
  317. rowItem.qty = 1
  318. // 存入二维数组中
  319. const chooselens = this.chooseList.length
  320. if(chooselens){
  321. const firstRow = this.chooseList[0]
  322. if(firstRow.length<this.choosePageSize){
  323. firstRow.unshift(this.$u.deepClone(rowItem))
  324. }else{
  325. this.chooseList.unshift([this.$u.deepClone(rowItem)])
  326. }
  327. }else{
  328. this.chooseList.unshift([this.$u.deepClone(rowItem)])
  329. }
  330. }else{
  331. rowItem.qty = rowItem.qty + 1
  332. // 已添加,则增加已选列表中的数量
  333. const row = this.getChooseItemById(rowItem.id)
  334. if(row.p>=0 && row.s>=0){
  335. this.chooseList[row.p][row.s].qty = this.chooseList[row.p][row.s].qty + 1
  336. this.chooseList[row.p].splice()
  337. }
  338. }
  339. // 合计
  340. this.getChooseHeji()
  341. },
  342. // 打开已选产品列表
  343. openChoose(){
  344. this.submitOk = false
  345. if(this.chooseLength){
  346. uni.showLoading({
  347. title:'加载中...',
  348. mask: true
  349. })
  350. this.showChoosePopu = true
  351. }else{
  352. this.$u.toast(`请选择产品`);
  353. }
  354. },
  355. // 渲染已选产品列表
  356. openRender(){
  357. this.showSwipeAction = true
  358. setTimeout(()=>{
  359. uni.hideLoading()
  360. },300)
  361. },
  362. // 关闭后
  363. closePopu(){
  364. setTimeout(()=>{
  365. this.showSwipeAction = false
  366. },300)
  367. this.showChoosePopu = false
  368. this.editChoose = false
  369. uni.hideLoading()
  370. // 提交成功
  371. if(this.submitOk){
  372. uni.navigateTo({
  373. url: "/pagesB/procureOrder"
  374. })
  375. }
  376. },
  377. // 确定清空已选列表
  378. claerChoose(){
  379. const _this = this
  380. uni.showModal({
  381. title: '提示',
  382. content: '确定清空已选列表?',
  383. confirmText: '确定',
  384. success(res) {
  385. if(res.confirm){
  386. uni.showLoading({
  387. title: '正在清空...',
  388. mask: true
  389. })
  390. _this.clearChooseData()
  391. }
  392. }
  393. })
  394. },
  395. // 清空已选数据
  396. clearChooseData(){
  397. this.showChoosePopu = false
  398. this.chooseList = []
  399. // 合计
  400. this.getChooseHeji()
  401. // 重置已选状态
  402. this.list.forEach(key => {
  403. key.filter(item => item.checked).forEach(item=>{
  404. item.checked = false
  405. item.qty = 0
  406. })
  407. })
  408. },
  409. // 编辑已选产品
  410. handleEditChoose(){
  411. this.editChoose=!this.editChoose
  412. uni.showLoading({
  413. title: '加载中...',
  414. mask: true
  415. })
  416. this.$nextTick(()=>{
  417. uni.hideLoading()
  418. })
  419. },
  420. // 根据id 获取页面list项
  421. getListItemById(id){
  422. const aindex = this.list.findIndex(key => key.find(a => a.id == id))
  423. const aindex2 = aindex >=0 ? this.list[aindex].findIndex(a => a.id == id) : -1
  424. return {p:aindex,s:aindex2}
  425. },
  426. // 已选产品变更数量
  427. changeQty(val,id){
  428. const crow = this.getChooseItemById(id)
  429. if(crow.p>=0&&crow.s>=0){
  430. this.chooseList[crow.p][crow.s].qty = val
  431. this.chooseList[crow.p].splice()
  432. // 合计
  433. this.getChooseHeji()
  434. }
  435. // 更新页面产品数据
  436. const row = this.getListItemById(id)
  437. if(row.p>=0 && row.s>=0){
  438. this.list[row.p][row.s].qty = val
  439. this.list[row.p].splice()
  440. }
  441. },
  442. //已选产品删除
  443. removeChoose(id){
  444. // 删除项
  445. const crow = this.getChooseItemById(id)
  446. if(crow.p>=0&&crow.s>=0){
  447. this.chooseList[crow.p].splice(crow.s, 1);
  448. // 合计
  449. this.getChooseHeji()
  450. }
  451. // 如果没有数据了
  452. if(this.chooseList.length==0){
  453. this.clearChooseData()
  454. }
  455. // 更新列表已选状态
  456. const row = this.getListItemById(id)
  457. if(row.p>=0 && row.s>=0){
  458. this.list[row.p][row.s].qty = 0
  459. this.list[row.p][row.s].checked = false
  460. this.list[row.p].splice()
  461. }
  462. },
  463. // 去结算
  464. submitOrder(){
  465. if(this.showChoosePopu){
  466. uni.showLoading({
  467. title: '提交中...',
  468. mask: true
  469. })
  470. // 展开成一维数组
  471. const detailList = []
  472. this.chooseList.forEach(key => {
  473. key.forEach(item => {
  474. detailList.push({
  475. promoActiveSn: this.promoActiveSn,
  476. promoRuleSn:item.promoRuleSn,
  477. productSn:item.productSn,
  478. productCode:item.productCode,
  479. qty:item.qty,
  480. price:item.cost,
  481. giveAmount:item.promoRuleValue
  482. })
  483. })
  484. })
  485. purchaseSave({
  486. promoActiveSn: this.promoActiveSn,
  487. detailList: detailList
  488. }).then(res => {
  489. if(res.status == 200){
  490. res.data.detailList = []
  491. this.$store.state.vuex_tempData = res.data
  492. this.clearChooseData()
  493. this.submitOk = true
  494. }else{
  495. uni.showToast({
  496. title: res.message,
  497. icon: 'none'
  498. })
  499. }
  500. })
  501. }else{
  502. this.openChoose()
  503. }
  504. }
  505. }
  506. }
  507. </script>
  508. <style lang="less">
  509. /* 显示一行省略号 */
  510. .ellipsis-one{
  511. white-space: nowrap;
  512. text-overflow: ellipsis;
  513. overflow: hidden;
  514. word-break: break-all;
  515. }
  516. .scrollPage{
  517. height: 100vh;
  518. display: flex;
  519. flex-direction: column;
  520. .loading-bar{
  521. text-align: center;
  522. padding: 10px 0;
  523. color: #999999;
  524. }
  525. .empty-bar{
  526. display: flex;
  527. flex-direction: column;
  528. align-items: center;
  529. justify-content: center;
  530. padding: 20px 0;
  531. image{
  532. width: 100px;
  533. height: 100px;
  534. }
  535. view{
  536. font-size: 14px;
  537. color: #999999;
  538. margin-top: 10px;
  539. }
  540. }
  541. .scrollPage-header{
  542. z-index: 1;
  543. .header-title{
  544. display: flex;
  545. align-items: center;
  546. justify-content: space-between;
  547. padding: 0 10px;
  548. height: 44px;
  549. background-color: #FFFFFF;
  550. box-shadow: 0px 1px 0px 0px #E6E6E6;
  551. .header-title{
  552. font-size: 16px;
  553. color: #333333;
  554. max-width: 70%;
  555. }
  556. .header-left{
  557. display: flex;
  558. align-items: center;
  559. text{
  560. font-size: 14px;
  561. color: #333333;
  562. margin-left: 5px;
  563. }
  564. }
  565. .header-right{
  566. width: 50px;
  567. }
  568. }
  569. }
  570. .scrollPage-body{
  571. flex-grow: 1;
  572. height: 100%;
  573. .search-head{
  574. background: #fff;
  575. }
  576. }
  577. .scrollPage-footer{
  578. background: #fff;
  579. z-index: 200;
  580. > view{
  581. height: 50px;
  582. display: flex;
  583. align-items: center;
  584. justify-content: space-between;
  585. font-size: 32upx;
  586. }
  587. .bottom-bar-left{
  588. padding: 0 30upx;
  589. flex-grow: 1;
  590. display: flex;
  591. align-items: center;
  592. }
  593. .bottom-bar-left-item{
  594. padding-right: 20rpx;
  595. font-size: 24rpx;
  596. display: flex;
  597. align-items: center;
  598. .price-txt{
  599. color: red;
  600. display: flex;
  601. align-items: center;
  602. text{
  603. font-size: 36rpx;
  604. }
  605. }
  606. }
  607. .bottom-bar-left-item-icon{
  608. position: relative;
  609. background: #2196F3;
  610. width: 80rpx;
  611. height: 80rpx;
  612. border-radius: 100%;
  613. display: flex;
  614. align-items: center;
  615. justify-content: center;
  616. .badge{
  617. background: #f44336;
  618. color: #fff;
  619. position: absolute;
  620. left: 50rpx;
  621. top: -3px;
  622. font-size: 12px;
  623. display: flex;
  624. align-items: center;
  625. justify-content: center;
  626. border-radius: 50rpx;
  627. padding: 0 10rpx;
  628. }
  629. }
  630. .bottom-bar-right{
  631. width: 35%;
  632. height: 100%;
  633. background: #066cff;
  634. display: flex;
  635. align-items: center;
  636. justify-content: center;
  637. .bottom-bar-right-item{
  638. color: #fff;
  639. }
  640. }
  641. .bg-0{
  642. background: #066cff;
  643. }
  644. .bg-1{
  645. background: #f44336;
  646. }
  647. }
  648. .choose-title{
  649. display: flex;
  650. align-items:center;
  651. justify-content: space-between;
  652. background: #fff;
  653. width: 100%;
  654. border-bottom: 1px solid #eee;
  655. border-radius: 40rpx 40rpx 0 0;
  656. > view{
  657. padding: 20rpx 30rpx;
  658. }
  659. .choose-left{
  660. display: flex;
  661. align-items:center;
  662. flex-grow: 1;
  663. > view{
  664. display: flex;
  665. align-items:center;
  666. flex-grow: 1;
  667. }
  668. button{
  669. padding: 0 10px;
  670. height: auto;
  671. font-size: 12px;
  672. margin-left: 10px;
  673. }
  674. .editBtn{
  675. color: #2196F3;
  676. justify-content: center;
  677. }
  678. .clearBtn{
  679. color: #ff0000;
  680. justify-content: center;
  681. }
  682. }
  683. .p-nums{
  684. color: #2196F3;
  685. margin: 0 6rpx;
  686. }
  687. }
  688. .popup-body{
  689. height: 100%;
  690. position: relative;
  691. }
  692. .choose-footer{
  693. position: fixed;
  694. bottom: 0;
  695. left: 0;
  696. background: #fff;
  697. z-index: 100;
  698. width: 100%;
  699. > view{
  700. width: 100%;
  701. height: 100rpx;
  702. display: flex;
  703. align-items: center;
  704. justify-content: space-between;
  705. }
  706. .choose-footer-left{
  707. flex-grow: 1;
  708. display: flex;
  709. align-items: center;
  710. padding: 0 30rpx;
  711. > view{
  712. font-size: 28rpx;
  713. }
  714. .choose-footer-left-item{
  715. display: flex;
  716. align-items: center;
  717. margin-right: 10px;
  718. .price-txt{
  719. color: red;
  720. display: flex;
  721. align-items: center;
  722. text{
  723. font-size: 36rpx;
  724. }
  725. }
  726. }
  727. }
  728. .choose-footer-right{
  729. width: 35%;
  730. height: 100%;
  731. background: #2196F3;
  732. display: flex;
  733. align-items: center;
  734. justify-content: center;
  735. .choose-footer-right-item{
  736. color: #fff;
  737. }
  738. }
  739. .bg-1{
  740. background: #f44336;
  741. }
  742. }
  743. }
  744. </style>