promoDetail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. <template>
  2. <view class="video-pagesCons">
  3. <view class="tab-search">
  4. <u-search placeholder="请输入产品名称/轮胎规格" shape="round" :clearabled="true" show-action v-model="queryWord" @clear="pageInit" @search="pageInit" @custom="pageInit"></u-search>
  5. </view>
  6. <view class="tab-body">
  7. <!-- <scroll-view scroll-y style="height: 100%;width: 100%;overflow: auto;" @scrolltolower="onreachBottom"> -->
  8. <view class="product-list" v-if="list.length">
  9. <view
  10. class="check-order-list"
  11. v-for="(item,index) in list"
  12. :key="item.id"
  13. >
  14. <view class="video-item">
  15. <view>
  16. <u-image :src="item.productImage+'?x-oss-process=image/resize,p_50'" height="140px" width="100%"></u-image>
  17. <view class="back-price">返<text>{{item.promoRuleValue}}</text>元</view>
  18. <view class="product-code">{{item.productCode}}</view>
  19. </view>
  20. <view>
  21. <view class="product-name">{{item.productName}}</view>
  22. <view class="product-guige ellipsis-two">{{item.productOrigCode}}</view>
  23. <view class="product-button">
  24. <view class="price-txt">¥<text>{{item.cost}}</text></view>
  25. <view @click="chooseProduct(item)">
  26. <view class="cart-add" :class="!item.checked?'colr-add':'colr-checks'">
  27. <u-icon v-if="!item.checked" color="#fff" name="plus"></u-icon>
  28. <view v-else>
  29. <u-icon name="plus" color="#fff"></u-icon>{{item.qty}}
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view style="padding: 20upx;">
  39. <u-empty :src="`/static/nodata.png`" icon-size="180" :text="noDataText" img-width="120" v-if="list.length==0 && status!='loading'" mode="list"></u-empty>
  40. <u-loadmore v-if="(total>=list.length&&list.length)||status=='loading'" :status="status" />
  41. </view>
  42. <!-- </scroll-view> -->
  43. </view>
  44. <!-- 底部栏 -->
  45. <view class="bottom-bar" @click="clearAction">
  46. <view class="bottom-bar-left">
  47. <view class="bottom-bar-left-item">
  48. <view class="bottom-bar-left-item-icon" @click="openChoose">
  49. <u-icon name="shopping-cart" size="40"></u-icon>
  50. <u-badge type="error" :count="totalNum" :offset="[-7,-8]"></u-badge>
  51. </view>
  52. </view>
  53. <view class="bottom-bar-left-item" v-if="showChoosePopu">
  54. 合计:<view class="price-txt">¥<text>{{totalAmount}}</text></view>
  55. </view>
  56. </view>
  57. <view :class="'bottom-bar-right bg-'+(showChoosePopu?'1':'0')" @click="submitOrder">
  58. <view class="bottom-bar-right-item">{{showChoosePopu?'确认采购':'去结算'}}</view>
  59. </view>
  60. </view>
  61. <!-- 已选列表 -->
  62. <page-container
  63. :show="showChoosePopu"
  64. :round="true"
  65. position="bottom"
  66. custom-style="height:80%"
  67. @enter="openRender"
  68. @leave="closePopu">
  69. <scroll-view :style="{width:screenWidth + 'px',height:'100%'}" scroll-y="true" @scrolltolower="onreachPopuBottom">
  70. <view class="choose-title">
  71. <view class="flex align_center">
  72. <view>已选<text class="p-nums">{{chooseLength}}</text>款产品 </view>
  73. <u-button @click="claerChoose" size="mini" type="error" plain style="margin: 0 20upx;">清空列表</u-button>
  74. <text class="choose-inf">左滑删除产品</text>
  75. </view>
  76. <u-icon name="close" size="30" @click="showChoosePopu=false"></u-icon>
  77. </view>
  78. <view class="choose-product-list" v-if="showSwipeAction">
  79. <u-swipe-action
  80. :show="item.show"
  81. v-for="(item, index) in chooseProductList"
  82. :index="item.id"
  83. :key="item.id"
  84. @click="chooseClick"
  85. @open="chooseOpen"
  86. :options="chooseOptions"
  87. >
  88. <view class="choose-product-item" :style="{width:(screenWidth-20) + 'px'}">
  89. <view>
  90. <view class="choose-product-item-img">
  91. <u-image :src="item.productImage+'?x-oss-process=image/resize,p_50'" height="200rpx" width="100%"></u-image>
  92. <view class="back-price">返<text>{{item.promoRuleValue}}</text>元</view>
  93. <view class="choose-product-item-left-info-code">{{item.productCode}}</view>
  94. </view>
  95. <view class="choose-product-item-info">
  96. <view class="choose-product-item-left-info-name">{{item.productName}}</view>
  97. <view class="choose-product-item-left-info-guige ellipsis-two">{{item.productOrigCode}}</view>
  98. <view class="choose-product-item-left-info-price">
  99. <view class="price-txt">¥<text>{{item.cost}}</text></view>
  100. <view>
  101. <u-number-box v-model="item.qty" :index="item.id" :input-width="60" :input-height="60" size="mini" :min="1" @change="changeQty"></u-number-box>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </u-swipe-action>
  108. </view>
  109. </scroll-view>
  110. </page-container>
  111. </view>
  112. </template>
  113. <script>
  114. import {
  115. mapState,
  116. mapMutations,
  117. } from 'vuex'
  118. import { queryPromoProductByPage } from '@/api/video.js'
  119. import { purchaseSave } from '@/api/purchase.js'
  120. export default {
  121. data() {
  122. return {
  123. status: 'loading',
  124. noDataText: '暂无数据',
  125. queryWord: '',// 关键词查询列表
  126. // 查询条件
  127. pageNo: 1, // 当前页
  128. pageSize: 6,//每页条数
  129. list: [], // 产品列表
  130. total: 0, // 总记录
  131. showChoosePopu: false,//已选列表弹框
  132. chooseList:[], // 已选数据
  133. chooseProductList:[], // 已选弹框中当前数据
  134. chooseOptions:[
  135. {
  136. text: '删除',
  137. style: {
  138. backgroundColor: '#dd524d'
  139. }
  140. }
  141. ], // 左滑删除已选产品
  142. screenWidth: 750, // 屏幕宽度
  143. showSwipeAction: false, // 已选弹框是否一打开
  144. choosePageNo: 1, // 已选产品当前页
  145. choosePageSize: 4, // 已选产品每页数
  146. chooseTotal: 0 ,// 已选产品总记录数
  147. promoActiveSn: null, // 活动sn
  148. submitOk: false
  149. }
  150. },
  151. computed: {
  152. ...mapState(['hasLogin']),
  153. userInfo(){
  154. return this.$store.state.vuex_userInfo
  155. },
  156. // 已选产品总款数
  157. chooseLength(){
  158. return this.chooseList.length
  159. },
  160. // 已选产品总金额
  161. totalAmount(){
  162. let total = 0
  163. this.chooseList.forEach(key => {
  164. total = total + key.cost * key.qty
  165. })
  166. return total.toFixed(2)
  167. },
  168. // 已选产品总数量
  169. totalNum(){
  170. let total = 0
  171. this.chooseList.forEach(key => {
  172. total = total + key.qty
  173. })
  174. return total
  175. }
  176. },
  177. onLoad(opts) {
  178. uni.setNavigationBarTitle({
  179. title: opts.title||'促销活动产品'
  180. })
  181. this.screenWidth = uni.getSystemInfoSync().windowWidth
  182. this.$store.state.vuex_tempData = null
  183. this.promoActiveSn = opts.promoActiveSn
  184. // 购物车是否有缓存
  185. const cacheList = this.$store.state.vuex_cartList.find(k => k.sn == this.promoActiveSn)
  186. this.chooseList = cacheList ? JSON.parse(JSON.stringify(cacheList.list)) : []
  187. // 查询产品列表
  188. this.pageInit()
  189. },
  190. onShow() {
  191. this.showChoosePopu=false
  192. },
  193. onUnload() {
  194. // 存储已选列表值
  195. const hasCache = this.$store.state.vuex_cartList.find(k => k.sn == this.promoActiveSn)
  196. if(hasCache){
  197. hasCache.list = this.chooseList
  198. }else{
  199. this.$store.state.vuex_cartList.push({sn:this.promoActiveSn,list: this.chooseList})
  200. }
  201. this.$u.vuex('vuex_cartList', this.$store.state.vuex_cartList)
  202. // 清空数据
  203. this.chooseList = null
  204. this.list = null
  205. },
  206. // 到底部加载更多
  207. onReachBottom() {
  208. if(this.list.length < this.total){
  209. this.pageNo += 1
  210. this.getRow()
  211. }else{
  212. this.status = "nomore"
  213. }
  214. },
  215. methods: {
  216. // 初始化页面
  217. pageInit(){
  218. // 重置分页
  219. this.total = 0
  220. this.pageNo = 1
  221. this.list = []
  222. // 获取列表数据
  223. this.getRow()
  224. },
  225. // 添加已选产品
  226. chooseProduct(item){
  227. if(!item.checked){
  228. item.checked = true
  229. item.qty = 1
  230. item.show = false
  231. this.chooseList.unshift(this.$u.deepClone(item))
  232. }else{
  233. item.qty = item.qty + 1
  234. // 已添加,则增加数量
  235. const row = this.chooseList.find(key => key.id == item.id)
  236. if(row){
  237. row.qty = row.qty + 1
  238. }
  239. this.chooseList.splice()
  240. }
  241. },
  242. // 渲染已选产品列表
  243. openRender(){
  244. setTimeout(()=>{
  245. this.showSwipeAction = true
  246. },100)
  247. },
  248. // 关闭已选列表弹框
  249. closePopu(){
  250. this.chooseProductList = []
  251. this.showChoosePopu=false
  252. if(this.submitOk){
  253. uni.navigateTo({
  254. url: '/pagesB/procureOrder'
  255. })
  256. }
  257. },
  258. // 打开已选产品列表
  259. openChoose(){
  260. this.submitOk = false
  261. if(this.chooseLength){
  262. this.showChoosePopu = !this.showChoosePopu
  263. if(this.showChoosePopu){
  264. console.log(this.chooseList)
  265. // 默认加载第一页数据
  266. this.chooseTotal = this.chooseList.length
  267. this.choosePageNo = 0
  268. this.onreachPopuBottom()
  269. }
  270. }else{
  271. this.$u.toast(`请选择产品`);
  272. }
  273. },
  274. // 已选产品滚动到底部
  275. onreachPopuBottom(){
  276. const totalPages = Math.ceil(this.chooseTotal/this.choosePageSize)
  277. if(this.choosePageNo>=totalPages){
  278. return
  279. }
  280. uni.showLoading({
  281. title: '加载中',
  282. mask: true
  283. })
  284. this.choosePageNo = this.choosePageNo + 1
  285. const start = (this.choosePageNo-1)*this.choosePageSize
  286. const end = this.choosePageNo*this.choosePageSize
  287. const list = this.chooseTotal > this.choosePageSize ? this.chooseList.slice(start,end>this.chooseTotal?this.chooseTotal:end) : this.chooseList
  288. this.chooseProductList = this.chooseProductList.concat(list)
  289. this.chooseProductList.splice()
  290. this.$nextTick(()=>{
  291. uni.hideLoading()
  292. })
  293. },
  294. // 已选产品变更数量
  295. changeQty(e){
  296. const _this = this
  297. const rowIndex = this.chooseProductList.findIndex(key => key.id == e.index)
  298. if(e.value>0){
  299. this.chooseProductList[rowIndex].qty = e.value
  300. // 更新原始数据
  301. const rindex = this.chooseList.findIndex(key => key.id == e.index)
  302. if(rindex>=0){
  303. this.chooseList[rindex].qty = e.value
  304. this.chooseList.splice()
  305. }
  306. // 更新页面产品数据
  307. const aindex = this.list.findIndex(key => key.id == e.index)
  308. if(aindex>=0){
  309. this.list[aindex].qty = e.value
  310. this.list.splice()
  311. }
  312. }else{
  313. // 数量为0时,删除
  314. // this.chooseClick(e.index,0)
  315. }
  316. },
  317. //已选产品删除
  318. chooseClick(index, btns){
  319. if(btns == 0) {
  320. // 更新列表已选状态
  321. const row = this.list.find(item => item.id == index)
  322. if(row){
  323. row.checked = false
  324. row.qty = 0
  325. }
  326. const rindex = this.chooseProductList.findIndex(item => item.id == index)
  327. if(rindex>=0){
  328. this.chooseProductList.splice(rindex, 1);
  329. this.chooseList.splice(rindex, 1);
  330. }
  331. // 如果数量小于每页数量,自动加载下一页
  332. if(this.chooseProductList.length < this.choosePageSize){
  333. this.onreachPopuBottom()
  334. }
  335. this.$u.toast(`删除成功!`);
  336. }
  337. },
  338. // 同时打开一个
  339. chooseOpen(index){
  340. // 先将正在被操作的swipeAction标记为打开状态,否则由于props的特性限制,
  341. // 原本为'false',再次设置为'false'会无效
  342. const row = this.chooseProductList.find(item => item.id == index)
  343. if(row) {
  344. row.show = true
  345. }
  346. this.chooseProductList.map((item, idx) => {
  347. if(index != item.id) this.chooseProductList[idx].show = false;
  348. })
  349. },
  350. // 清除滑动按钮
  351. clearAction(){
  352. this.chooseProductList.map(item => {
  353. item.show = false
  354. })
  355. this.chooseProductList.splice()
  356. },
  357. // 确定清空已选列表
  358. claerChoose(){
  359. const _this = this
  360. uni.showModal({
  361. title: '提示',
  362. content: '确定清空已选列表?',
  363. confirmText: '确定',
  364. success(res) {
  365. if(res.confirm){
  366. _this.clearChooseData()
  367. }
  368. }
  369. })
  370. },
  371. // 清空已选数据
  372. clearChooseData(){
  373. this.chooseList = []
  374. this.chooseProductList = []
  375. this.showChoosePopu = false
  376. // 重置已选状态
  377. this.list.filter(item => item.checked).map(item=>{
  378. item.checked = false
  379. item.qty = 0
  380. })
  381. },
  382. // 查询列表
  383. getRow () {
  384. let _this = this
  385. let params = {
  386. pageNo: this.pageNo,
  387. pageSize: this.pageSize,
  388. queryWord: this.queryWord,
  389. promoActiveSn: this.promoActiveSn
  390. }
  391. this.status = "loading"
  392. queryPromoProductByPage(params).then(res => {
  393. if (res.code == 200 || res.status == 204 || res.status == 200) {
  394. const list = res.data.list||[]
  395. const ret = []
  396. // 更新已选状态
  397. list.map(k => {
  398. // 如果筛选或分页后,更新页面列表产品数量
  399. const hasChecked = this.chooseList.find(s=>s.id == k.id)
  400. ret.push({
  401. id: k.id,
  402. cost: k.cost,
  403. checked: hasChecked,
  404. qty: hasChecked ? hasChecked.qty : 0,
  405. productCode: k.productCode,
  406. productSn: k.productSn,
  407. productImage: k.productImage,
  408. productName: k.productName,
  409. productOrigCode: k.productOrigCode,
  410. promoActiveSn: k.promoActiveSn,
  411. promoRuleSn: k.promoRuleSn,
  412. promoRuleValue: k.promoRuleValue,
  413. promoRuleType: k.promoRuleType,
  414. show: false
  415. })
  416. })
  417. _this.list = _this.list.concat(ret)
  418. _this.total = res.data.count || 0
  419. } else {
  420. _this.list = []
  421. _this.total = 0
  422. _this.noDataText = res.message
  423. }
  424. _this.status = _this.total>=_this.list.length ? "nomore" : 'loadmore'
  425. })
  426. },
  427. // 提交订单
  428. submitOrder(){
  429. if(this.showChoosePopu){
  430. uni.showLoading({
  431. title: '提交中...',
  432. mask: true
  433. })
  434. const detailList = []
  435. this.chooseList.map(item => {
  436. detailList.push({
  437. promoActiveSn: this.promoActiveSn,
  438. promoRuleSn:item.promoRuleSn,
  439. productSn:item.productSn,
  440. productCode:item.productCode,
  441. qty:item.qty,
  442. price:item.cost,
  443. giveAmount:item.promoRuleValue
  444. })
  445. })
  446. purchaseSave({
  447. promoActiveSn: this.promoActiveSn,
  448. detailList: detailList
  449. }).then(res => {
  450. if(res.status == 200){
  451. this.$store.state.vuex_tempData = res.data
  452. this.clearChooseData()
  453. this.submitOk = true
  454. }
  455. uni.hideLoading()
  456. })
  457. }else{
  458. this.openChoose()
  459. }
  460. },
  461. }
  462. }
  463. </script>
  464. <style lang="less">
  465. page{
  466. height: 100vh;
  467. }
  468. .video-pagesCons{
  469. height: 100vh;
  470. position: relative;
  471. .tab-search{
  472. padding: 15rpx 20rpx;
  473. background: #fff;
  474. position: fixed;
  475. top:0;
  476. left:0;
  477. width:100%;
  478. z-index:20;
  479. }
  480. .tab-body{
  481. display: flex;
  482. flex-direction: column;
  483. flex-grow: 1;
  484. padding: 90rpx 0 130rpx 0;
  485. .product-list{
  486. display: flex;
  487. flex-wrap: wrap;
  488. }
  489. .check-order-list{
  490. width: 50%;
  491. padding: 10upx;
  492. .video-item{
  493. background: #ffffff;
  494. border-radius: 10upx;
  495. box-shadow: 1px 1px 3px #EEEEEE;
  496. height: 100%;
  497. display: flex;
  498. flex-direction: column;
  499. > view{
  500. &:first-child{
  501. position: relative;
  502. overflow: hidden;
  503. border-bottom: 1px solid #eee;
  504. .product-code{
  505. color: #666;
  506. position: absolute;
  507. width: 100%;
  508. left:0;
  509. bottom:0;
  510. background: rgba(255,255,255,0.7);
  511. text-align: center;
  512. }
  513. }
  514. &:last-child{
  515. padding: 20rpx 20rpx 70rpx 20rpx;
  516. position: relative;
  517. flex-grow: 1;
  518. .product-name{
  519. font-size: 28rpx;
  520. }
  521. .product-guige{
  522. margin: 10rpx 0 20rpx 0;
  523. color: #2196F3;
  524. text{
  525. margin-right: 10rpx;
  526. }
  527. }
  528. }
  529. .product-button{
  530. display: flex;
  531. justify-content: space-between;
  532. align-items: center;
  533. position: absolute;
  534. bottom: 20rpx;
  535. left: 0;
  536. width: 100%;
  537. padding: 0 20rpx;
  538. }
  539. .cart-add{
  540. padding: 6rpx 15rpx;
  541. border-radius: 30rpx;
  542. background: #2196F3;
  543. color: #fff;
  544. display: flex;
  545. align-items: center;
  546. justify-content: center;
  547. font-size: 24rpx;
  548. }
  549. .colr-add{
  550. background: #2196F3;
  551. padding: 10rpx 20rpx;
  552. }
  553. .colr-checks{
  554. background: #00aa00;
  555. }
  556. }
  557. }
  558. }
  559. }
  560. .bottom-bar{
  561. height: 130upx;
  562. z-index: 200;
  563. background-color: #fff;
  564. display: flex;
  565. align-items: center;
  566. justify-content: space-between;
  567. font-size: 32upx;
  568. position: fixed;
  569. bottom:0;
  570. left:0;
  571. width:100%;
  572. .bottom-bar-left{
  573. padding: 0 30upx;
  574. flex-grow: 1;
  575. display: flex;
  576. align-items: center;
  577. }
  578. .bottom-bar-left-item{
  579. padding-right: 20rpx;
  580. font-size: 24rpx;
  581. display: flex;
  582. align-items: center;
  583. }
  584. .bottom-bar-left-item-icon{
  585. position: relative;
  586. background: #2196F3;
  587. padding: 20rpx;
  588. border-radius: 100%;
  589. color: #fff;
  590. }
  591. .bottom-bar-right{
  592. padding: 0 50rpx;
  593. height: 100%;
  594. background: #2196F3;
  595. display: flex;
  596. align-items: center;
  597. .bottom-bar-right-item{
  598. color: #fff;
  599. }
  600. }
  601. .bg-0{
  602. background: #2196F3;
  603. }
  604. .bg-1{
  605. background: #f44336;
  606. }
  607. }
  608. .price-txt{
  609. color: red;
  610. text{
  611. font-size: 36rpx;
  612. }
  613. }
  614. .choose-title{
  615. display: flex;
  616. align-items:center;
  617. justify-content: space-between;
  618. padding: 25rpx;
  619. position: fixed;
  620. background: #fff;
  621. width: 100%;
  622. z-index: 3;
  623. border-bottom: 1px solid #eee;
  624. .p-nums{
  625. color: #2196F3;
  626. margin: 0 6rpx;
  627. }
  628. .choose-inf{
  629. color: #999;
  630. font-size: 24rpx;
  631. }
  632. }
  633. .choose-product-list{
  634. padding: 100rpx 20rpx 130rpx;
  635. width: 100%;
  636. .choose-product-item{
  637. display: flex;
  638. align-items: center;
  639. justify-content: space-between;
  640. padding: 20rpx 0;
  641. border-bottom: 1px solid #eee;
  642. > view{
  643. display: flex;
  644. align-items: center;
  645. justify-content: space-between;
  646. flex-grow: 1;
  647. width: 100%;
  648. }
  649. .choose-product-item-img{
  650. margin-right: 20rpx;
  651. width: 35%;
  652. position: relative;
  653. overflow: hidden;
  654. border: 1px solid #eee;
  655. padding: 10rpx;
  656. .back-price{
  657. zoom: calc(0.8);
  658. }
  659. .choose-product-item-left-info-code{
  660. color: #666;
  661. position: absolute;
  662. width: 100%;
  663. left:0;
  664. bottom:0;
  665. background: rgba(255,255,255,0.7);
  666. text-align: center;
  667. }
  668. }
  669. .choose-product-item-info{
  670. margin-right: 10rpx;
  671. width: 65%;
  672. flex-grow: 1;
  673. .choose-product-item-left-info-price{
  674. display: flex;
  675. align-items:center;
  676. justify-content: space-between;
  677. >view{
  678. &:last-child{
  679. display: flex;
  680. align-items:center;
  681. }
  682. }
  683. }
  684. .choose-product-item-left-info-name{
  685. font-size: 28rpx;
  686. }
  687. .choose-product-item-left-info-guige{
  688. color: #2196F3;
  689. margin: 10rpx 0;
  690. text{
  691. margin-right: 10rpx;
  692. }
  693. }
  694. }
  695. }
  696. }
  697. .back-price{
  698. padding: 6rpx 55rpx;
  699. background: rgba(255 ,87 ,34 , 1);
  700. position: absolute;
  701. top: 10rpx;
  702. right: -40rpx;
  703. color: #fff;
  704. z-index: 2;
  705. font-size: 20rpx;
  706. text-align: center;
  707. transform: rotate(40deg);
  708. display: flex;
  709. align-items: center;
  710. text{
  711. font-size: 28rpx;
  712. }
  713. }
  714. }
  715. </style>