statistics.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  1. <template>
  2. <view class="container">
  3. <u-navbar leftIconColor="#fff" titleStyle="color:#fff;fontSize:36rpx;" :autoBack="true" bgColor="#2C6FF3"
  4. :placeholder="true" title="销售统计"></u-navbar>
  5. <view class="content">
  6. <view class="card">
  7. <view class="select">
  8. <view class="time-tab flex justify-between">
  9. <block v-for="(item,index) in timeList" :key="item.id">
  10. <view class="time-tab-item" :class="[timeTabCurrent==item.id?'time-tab-show':'']"
  11. @click="timeTabClick(item.id)">
  12. {{item.name}}
  13. </view>
  14. </block>
  15. </view>
  16. <view class="time-select flex justify-around">
  17. <view class="flex align-center">
  18. <view @click="timePickerShow('start')">
  19. {{timeStart?timeStart:'开始时间'}}
  20. </view>
  21. <view>
  22. </view>
  23. <view @click="timePickerShow('end')">
  24. {{timeEnd?timeEnd:'结束时间'}}
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="total flex justify-around">
  30. <view class="flex flex-direction align-center">
  31. <view class="total-name">
  32. 总销售额(元)
  33. </view>
  34. <view class="total-num" style="color: #2C6FF3;">
  35. {{$xy.delMoney(total.salesMoney)}}
  36. </view>
  37. </view>
  38. <view class="flex flex-direction align-center">
  39. <view class="total-name">
  40. 订单量(笔)
  41. </view>
  42. <view class="total-num" style="color: #F9B237;">
  43. {{total.salesCount||0}}
  44. </view>
  45. </view>
  46. <view class="flex flex-direction align-center">
  47. <view class="total-name">
  48. 客单价(元)
  49. </view>
  50. <view class="total-num" v-if="total.salesCount>0" style="color: #E94F4F;">
  51. {{($xy.delMoney(total.salesMoney)/total.salesCount).toFixed(2)||0}}
  52. </view>
  53. <view class="total-num" v-else style="color:#E94F4F;">
  54. 0
  55. </view>
  56. </view>
  57. </view>
  58. <view class="chart" style="height: 600rpx;">
  59. <qiun-data-charts type="qy-line-gradual" :opts="opts" :chartData="chartData"
  60. :errorMessage="errorMessage" />
  61. </view>
  62. </view>
  63. <view class="device-table card">
  64. <view class="table">
  65. <view class="table-title flex justify-between align-center">
  66. <view class="title">
  67. 设备销售排行
  68. </view>
  69. <view class="sort-type flex">
  70. <view :class="[deviceSortType==0?'sort-type-item sort-type-show':'sort-type-item']"
  71. @click="deviceSort(0)">
  72. 销售额
  73. </view>
  74. <view :class="[deviceSortType==1?'sort-type-item sort-type-show':'sort-type-item']"
  75. @click="deviceSort(1)">
  76. 订单笔数
  77. </view>
  78. </view>
  79. </view>
  80. <uni-table :border="false" :stripe="false" emptyText="暂无更多数据">
  81. <!-- 表头行 -->
  82. <uni-tr>
  83. <uni-th align="center" width="52">排名</uni-th>
  84. <uni-th align="center" width="110">上榜设备</uni-th>
  85. <uni-th align="center" width="92">销售额</uni-th>
  86. <uni-th align="center" width="92">订单笔数</uni-th>
  87. </uni-tr>
  88. <!-- 表格数据行 -->
  89. <uni-tr v-for="(item,index) in list1" :key="item.deviceId">
  90. <uni-td v-if="index==0">
  91. <view class="table-td">
  92. <image class="table-img" src="../../static/images/global/first-class.png"
  93. mode="widthFix"></image>
  94. </view>
  95. </uni-td>
  96. <uni-td v-else-if="index==1">
  97. <view class="table-td">
  98. <image class="table-img" src="../../static/images/global/second-class.png"
  99. mode="widthFix"></image>
  100. </view>
  101. </uni-td>
  102. <uni-td v-else-if="index==2">
  103. <view class="table-td">
  104. <image class="table-img" src="../../static/images/global/third-class.png"
  105. mode="widthFix"></image>
  106. </view>
  107. </uni-td>
  108. <uni-td v-else>
  109. <view class="table-td">
  110. {{index+1}}
  111. </view>
  112. </uni-td>
  113. <uni-td>
  114. <view class="table-td table-td-name">{{item.deviceName||item.deviceId}}</view>
  115. </uni-td>
  116. <uni-td>
  117. <view class="table-td">¥{{$xy.delMoney(item.salesMoney)}}</view>
  118. </uni-td>
  119. <uni-td>
  120. <view class="table-td">{{item.salesCount}}笔</view>
  121. </uni-td>
  122. </uni-tr>
  123. </uni-table>
  124. </view>
  125. <view class="more" @click="more('device')" v-if="list1.length==5">
  126. 查看更多<view><u-icon name="arrow-right" color="#2C6FF3"></u-icon></view>
  127. </view>
  128. </view>
  129. <view class="goods-table card">
  130. <view class="table">
  131. <view class="table-title flex justify-between align-center">
  132. <view class="title">
  133. 商品销售排行
  134. </view>
  135. <view class="sort-type flex">
  136. <view :class="[goodsSortType==0?'sort-type-item sort-type-show':'sort-type-item']"
  137. @click="goodsSort(0)">
  138. 销售额
  139. </view>
  140. <view :class="[goodsSortType==1?'sort-type-item sort-type-show':'sort-type-item']"
  141. @click="goodsSort(1)">
  142. 销量
  143. </view>
  144. </view>
  145. </view>
  146. <uni-table :border="false" :stripe="false" emptyText="暂无更多数据">
  147. <!-- 表头行 -->
  148. <uni-tr>
  149. <uni-th align="center" width="52">排名</uni-th>
  150. <uni-th align="center" width="110">上榜商品</uni-th>
  151. <uni-th align="center" width="92">销售额</uni-th>
  152. <uni-th align="center" width="92">销量</uni-th>
  153. </uni-tr>
  154. <!-- 表格数据行 -->
  155. <uni-tr v-for="(item,index) in list2" :key="item.goodsId">
  156. <uni-td v-if="index==0">
  157. <view class="table-td">
  158. <image class="table-img" src="../../static/images/global/first-class.png"
  159. mode="widthFix"></image>
  160. </view>
  161. </uni-td>
  162. <uni-td v-else-if="index==1">
  163. <view class="table-td">
  164. <image class="table-img" src="../../static/images/global/second-class.png"
  165. mode="widthFix"></image>
  166. </view>
  167. </uni-td>
  168. <uni-td v-else-if="index==2">
  169. <view class="table-td">
  170. <image class="table-img" src="../../static/images/global/third-class.png"
  171. mode="widthFix"></image>
  172. </view>
  173. </uni-td>
  174. <uni-td v-else>
  175. <view class="table-td">
  176. {{index+1}}
  177. </view>
  178. </uni-td>
  179. <uni-td>
  180. <view class="table-td table-td-name">{{item.goodsName}}</view>
  181. </uni-td>
  182. <uni-td>
  183. <view class="table-td">¥{{$xy.delMoney(item.salesMoney)}}</view>
  184. </uni-td>
  185. <uni-td>
  186. <view class="table-td">{{item.goodsCount}}件</view>
  187. </uni-td>
  188. </uni-tr>
  189. </uni-table>
  190. </view>
  191. <view class="more" @click="more('goods')" v-if="list2.length==5">
  192. 查看更多<view><u-icon name="arrow-right" color="#2C6FF3"></u-icon></view>
  193. </view>
  194. </view>
  195. </view>
  196. <u-datetime-picker :show="timeShow" :mode="timeMode" v-model="time" @confirm="confirm"
  197. :closeOnClickOverlay="true" @close="close" @cancel="close"></u-datetime-picker>
  198. <u-picker :show="pickerShow" :columns="columns" @confirm="pickerComfirm" :closeOnClickOverlay="true"
  199. @close="pickerClose" @cancel="pickerClose"></u-picker>
  200. </view>
  201. </template>
  202. <script>
  203. import {
  204. sumCount,
  205. sumPage
  206. } from "@/api/commodity/goods.js"
  207. import {
  208. sumCount as deviceSumCount,
  209. sumPage as deviceSumPage,
  210. salesData
  211. } from "@/api/device/device.js"
  212. export default {
  213. data() {
  214. return {
  215. timeType: ['日', '月', '年'],
  216. timeCurrent: 0,
  217. timeStart: '',
  218. timeEnd: '',
  219. deviceSortType: 0,
  220. goodsSortType: 0,
  221. timeShow: false,
  222. timeMode: 'date',
  223. startOrEnd: '',
  224. time: new Date(),
  225. pickerType: 'year',
  226. pickerShow: false,
  227. // typeColumns: [
  228. // ['销售额从高到低', '销售额从低到高', '销售数量从高到低', '销售数量从低到高']
  229. // ],
  230. typeColumns: [
  231. ['销售额', '订单笔数']
  232. ],
  233. page: 1, //商品分页
  234. size: 10,
  235. status: 'loadmore', //加载更多
  236. list1: [], //设备列表
  237. list2: [], //商品列表
  238. fullHeight: 0,
  239. total: {
  240. goodsCount: 0,
  241. salesMoney: 0
  242. },
  243. tabCurrent: 0,
  244. timeList: [{
  245. id: 0,
  246. name: '昨天'
  247. },
  248. {
  249. id: 1,
  250. name: '今天'
  251. },
  252. {
  253. id: 2,
  254. name: '近7日'
  255. },
  256. {
  257. id: 3,
  258. name: '近30日'
  259. },
  260. {
  261. id: 4,
  262. name: '本月'
  263. },
  264. ],
  265. timeTabCurrent: 1,
  266. title: '设备销售额排行',
  267. opts: {
  268. enableScroll: false,
  269. legend: {
  270. position: 'top',
  271. float: 'right',
  272. padding: 20,
  273. itemGap: 20
  274. },
  275. xAxis: {
  276. disableGrid: true,
  277. labelCount: 6,
  278. },
  279. yAxis: {
  280. gridType: "solid",
  281. dashLength: 2,
  282. showTitle: true,
  283. axisLineColor: '#fff',
  284. data: [{
  285. position: "left",
  286. title: "/元"
  287. },
  288. {
  289. position: "right",
  290. title: "/单",
  291. textAlign: "left"
  292. },
  293. ]
  294. },
  295. extra: {
  296. area: {
  297. type: "curve",
  298. opacity: 0.2,
  299. addLine: true,
  300. width: 2,
  301. gradient: true,
  302. activeType: "hollow"
  303. }
  304. }
  305. },
  306. errorMessage: '无数据',
  307. chartData: {
  308. categories: [],
  309. series: []
  310. },
  311. }
  312. },
  313. watch: {
  314. // tabCurrent: {
  315. // handler(newVal, oldVal) {
  316. // if (newVal == 0) {
  317. // this.title = '设备销售额排行'
  318. // }
  319. // if (newVal == 1) {
  320. // this.title = '商品销售额排行'
  321. // }
  322. // },
  323. // deep: true
  324. // }
  325. },
  326. onShow() {
  327. let timeObj = this.setResetTime(this.timeTabCurrent)
  328. this.timeStart = timeObj.start
  329. this.timeEnd = timeObj.end
  330. this.getData()
  331. },
  332. methods: {
  333. getData() {
  334. this.getList1(this.deviceSortType)
  335. this.getList2(this.goodsSortType)
  336. this.getDeviceTotal(this.deviceSortType)
  337. this.getCountData()
  338. },
  339. timeTabClick(e) {
  340. this.timeTabCurrent = e
  341. let timeObj = this.setResetTime(this.timeTabCurrent)
  342. this.timeStart = timeObj.start
  343. this.timeEnd = timeObj.end
  344. this.getData()
  345. },
  346. setResetTime(type) {
  347. let date = new Date()
  348. let time = {
  349. start: uni.$u.timeFormat(date, 'yyyy-mm-dd'),
  350. end: uni.$u.timeFormat(date, 'yyyy-mm-dd')
  351. }
  352. switch (type) {
  353. case 0: //昨天
  354. time = {
  355. start: uni.$u.timeFormat(date - 24 * 60 * 60 * 1000, 'yyyy-mm-dd'),
  356. end: uni.$u.timeFormat(date - 24 * 60 * 60 * 1000, 'yyyy-mm-dd')
  357. }
  358. break;
  359. case 1: //今天
  360. time = {
  361. start: uni.$u.timeFormat(date, 'yyyy-mm-dd'),
  362. end: uni.$u.timeFormat(date, 'yyyy-mm-dd')
  363. }
  364. break;
  365. case 2: //近7日
  366. time = {
  367. start: uni.$u.timeFormat(date - 7 * 24 * 60 * 60 * 1000, 'yyyy-mm-dd'),
  368. end: uni.$u.timeFormat(date, 'yyyy-mm-dd')
  369. }
  370. break;
  371. case 3: //近30日
  372. time = {
  373. start: uni.$u.timeFrom(date - 30 * 24 * 60 * 60 * 1000, 'yyyy-mm-dd'),
  374. end: uni.$u.timeFrom(date, 'yyyy-mm-dd')
  375. }
  376. break;
  377. case 4: //本月
  378. let start = uni.$u.timeFrom(date, 'yyyy-mm-dd')
  379. time = {
  380. start: start.substr(0, 8) + '01',
  381. end: uni.$u.timeFrom(date, 'yyyy-mm-dd')
  382. }
  383. break;
  384. default:
  385. break;
  386. }
  387. return time
  388. },
  389. timePickerShow(type) {
  390. this.pickerType = 'year';
  391. this.startOrEnd = type
  392. if (this.timeCurrent == 2) {
  393. this.columns = yearList
  394. this.pickerShow = true
  395. } else {
  396. this.timeShow = true;
  397. }
  398. },
  399. deviceSort(type) {
  400. this.deviceSortType = type
  401. this.getList1(type)
  402. },
  403. goodsSort(type) {
  404. this.goodsSortType = type
  405. this.getList2(type)
  406. },
  407. close() {
  408. this.timeShow = false
  409. },
  410. confirm(e) {
  411. let time = '';
  412. time = uni.$u.timeFormat(e.value, 'yyyy-mm-dd')
  413. if (this.startOrEnd == 'start') {
  414. this.timeStart = time
  415. }
  416. if (this.startOrEnd == 'end') {
  417. this.timeEnd = time
  418. }
  419. this.getData()
  420. this.timeShow = false;
  421. },
  422. pickerClose() {
  423. this.pickerShow = false
  424. },
  425. //获取统计数据
  426. getCountData(type) {
  427. salesData({
  428. type: "day",
  429. beginDate: this.timeStart,
  430. endDate: this.timeEnd
  431. }).then(res => {
  432. let data = res.data;
  433. let tempChartData = {};
  434. this.delData(data);
  435. tempChartData.series = data.series ? data.series : [];
  436. tempChartData.categories = data.categories ? data.categories : [];
  437. this.chartData = JSON.parse(JSON.stringify(tempChartData));
  438. }).catch(err => {
  439. })
  440. },
  441. // 处理统计图表数据
  442. delData(data) {
  443. let arr = data.categories.map(item => {
  444. if (item.length < 3) {
  445. item = item + '点'
  446. } else {
  447. item = item.substr(4, 2) + '月' + item.substr(6, 2) + '日'
  448. }
  449. return item
  450. })
  451. data.categories = arr
  452. },
  453. getParams(type) {
  454. let orderByKey = "";
  455. let orderBy = "";
  456. switch (type) {
  457. case '销售额':
  458. orderBy = 'desc';
  459. orderByKey = 'sales_money';
  460. break;
  461. case '订单笔数':
  462. orderBy = 'desc';
  463. orderByKey = 'sales_count';
  464. break;
  465. case '销量':
  466. orderBy = 'desc';
  467. orderByKey = 'goods_count';
  468. break;
  469. default:
  470. break;
  471. }
  472. let params = {
  473. type: 'day',
  474. orderByKey: orderByKey,
  475. orderBy: orderBy,
  476. beginDate: this.timeStart,
  477. endDate: this.timeEnd
  478. }
  479. return params
  480. },
  481. //商品统计总数居
  482. getGoodsTotal() {
  483. let params = this.getParams()
  484. sumCount(params).then(res => {
  485. this.total = res.data
  486. })
  487. },
  488. //设备统计总数居
  489. getDeviceTotal(type) {
  490. let params = this.getParams(type)
  491. deviceSumCount(params).then(res => {
  492. this.total = res.data
  493. })
  494. },
  495. //获取设备排行
  496. getList1(e) {
  497. let type = e == 0 ? '销售额' : '订单笔数';
  498. let dataParams = this.getParams(type)
  499. let pageParams = {
  500. page: {
  501. current: 1,
  502. size: 5
  503. }
  504. }
  505. let params = Object.assign(dataParams, pageParams)
  506. deviceSumPage(params).then(res => {
  507. if (res.data) {
  508. this.list1 = res.data.records;
  509. } else {
  510. this.list1 = []
  511. }
  512. })
  513. },
  514. //获取商品排行
  515. getList2(e) {
  516. let type = e == 0 ? '销售额' : '销量';
  517. let dataParams = this.getParams(type)
  518. let pageParams = {
  519. page: {
  520. current: 1,
  521. size: 5
  522. }
  523. }
  524. let params = Object.assign(dataParams, pageParams)
  525. sumPage(params).then(res => {
  526. if (res.data) {
  527. this.list2 = res.data.records;
  528. } else {
  529. this.list2 = []
  530. }
  531. })
  532. },
  533. more(type) {
  534. let sortType = type == 'device' ? this.deviceSortType : this.goodsSortType
  535. this.$tab.navigateTo(
  536. `/pages/globalPages/statisticsMore?type=${type}&&timeStart=${this.timeStart}&&timeEnd=${this.timeEnd}&&sortType=${sortType}`
  537. )
  538. }
  539. }
  540. }
  541. </script>
  542. <style lang="scss" scoped>
  543. .container {
  544. .content {
  545. padding-bottom: 24rpx;
  546. .card {
  547. width: 724rpx;
  548. margin-left: 13rpx;
  549. background-color: #fff;
  550. margin-top: 20rpx;
  551. box-shadow: 0px 0px 10rpx 0px rgba(174, 201, 255, 0.2);
  552. border-radius: 14rpx;
  553. }
  554. .tab {
  555. padding: 24rpx;
  556. // background-color: #fff;
  557. }
  558. .select {
  559. padding-top: 34rpx;
  560. .time-tab {
  561. padding: 0 36rpx;
  562. .time-tab-item {
  563. width: 20%;
  564. border: 1rpx solid #CCCCCC;
  565. border-left: none;
  566. text-align: center;
  567. font-size: 26rpx;
  568. line-height: 58rpx;
  569. color: #777777;
  570. &:first-of-type {
  571. border-left: 1rpx solid #CCCCCC;
  572. border-radius: 6rpx 0px 0px 6rpx;
  573. }
  574. &:last-of-type {
  575. border-radius: 0px 6rpx 6rpx 0px;
  576. }
  577. &.time-tab-show {
  578. background: #F4F8FF;
  579. color: #2C6FF3;
  580. }
  581. }
  582. }
  583. .time-select {
  584. padding: 34rpx 36rpx;
  585. color: rgb(144, 144, 144);
  586. font-size: 28rpx;
  587. >view {
  588. >view:nth-child(1) {
  589. width: 160rpx;
  590. text-align: right;
  591. }
  592. >view:nth-child(2) {
  593. width: 80rpx;
  594. padding: 0 24rpx;
  595. }
  596. }
  597. }
  598. }
  599. .total {
  600. padding: 12rpx 0;
  601. background-color: #fff;
  602. .total-name {
  603. color: #333;
  604. font-size: 28rpx;
  605. line-height: 28rpx;
  606. margin-top: 48rpx;
  607. }
  608. .total-num {
  609. color: #eab09a;
  610. font-size: 42rpx;
  611. font-weight: bold;
  612. line-height: 41rpx;
  613. margin-top: 24rpx;
  614. }
  615. }
  616. .search {
  617. padding: 24rpx 24rpx;
  618. background-color: #fff;
  619. position: relative;
  620. font-size: 26rpx;
  621. .time-type {
  622. width: 180rpx;
  623. }
  624. .time-select {
  625. width: 340rpx;
  626. line-height: 64rpx;
  627. background-color: #eeeeef;
  628. border-radius: 6rpx;
  629. }
  630. }
  631. .chart {
  632. background-color: #fff;
  633. }
  634. .table {
  635. width: 724rpx;
  636. background-color: #fff;
  637. margin-top: 18rpx;
  638. color: #333;
  639. .table-title {
  640. font-size: 32rpx;
  641. line-height: 50rpx;
  642. padding: 24rpx;
  643. font-weight: 800;
  644. color: #333333;
  645. border-bottom: 1rpx solid #ebeef5;
  646. }
  647. .table-td {
  648. width: 100%;
  649. text-align: center;
  650. &.table-td-name {
  651. width: 230rpx;
  652. white-space: wrap;
  653. }
  654. }
  655. .table-img {
  656. width: 40rpx;
  657. height: 40rpx;
  658. position: relative;
  659. }
  660. .sort-type {
  661. width: 250rpx;
  662. height: 50rpx;
  663. line-height: 48rpx;
  664. text-align: center;
  665. font-weight: normal;
  666. .sort-type-item {
  667. width: 50%;
  668. font-size: 26rpx;
  669. color: #555555;
  670. background-color: #fff;
  671. &.sort-type-item:nth-child(1) {
  672. border-top-left-radius: 6rpx;
  673. border-bottom-left-radius: 6rpx;
  674. border-top: 1rpx solid #CCCCCC;
  675. border-left: 1rpx solid #CCCCCC;
  676. border-bottom: 1rpx solid #CCCCCC;
  677. &.sort-type-show {
  678. color: #fff;
  679. border-top: 1rpx solid #2C6FF3;
  680. border-left: 1rpx solid #2C6FF3;
  681. border-bottom: 1rpx solid #2C6FF3;
  682. background-color: #2C6FF3;
  683. }
  684. }
  685. &.sort-type-item:nth-child(2) {
  686. border-top-right-radius: 6rpx;
  687. border-bottom-right-radius: 6rpx;
  688. border-top: 1rpx solid #CCCCCC;
  689. border-right: 1rpx solid #CCCCCC;
  690. border-bottom: 1rpx solid #CCCCCC;
  691. &.sort-type-show {
  692. color: #fff;
  693. border-top: 1rpx solid #2C6FF3;
  694. border-right: 1rpx solid #2C6FF3;
  695. border-bottom: 1rpx solid #2C6FF3;
  696. background-color: #2C6FF3;
  697. }
  698. }
  699. }
  700. }
  701. /deep/.uni-table-th {
  702. color: #333;
  703. font-weight: normal;
  704. }
  705. /deep/.uni-table-td {
  706. vertical-align: middle;
  707. }
  708. }
  709. .more {
  710. text-align: right;
  711. padding-right: 40rpx;
  712. position: relative;
  713. color: #2C6FF3;
  714. line-height: 80rpx;
  715. background-color: #fff;
  716. >view {
  717. position: absolute;
  718. right: 12rpx;
  719. top: 50%;
  720. transform: translateY(-50%);
  721. }
  722. }
  723. }
  724. }
  725. </style>