index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <template>
  2. <view v-if="isLogin">
  3. <!-- 背景图 -->
  4. <view class="index-bg">
  5. <image src="../../static/pages/images/self/indexBg.png"></image>
  6. </view>
  7. <!-- 数据 -->
  8. <view class="data-box">
  9. <view>
  10. <view class="ljsy">{{statisticData.totalProfit?statisticData.totalProfit:0}}</view>
  11. <view class="ljsy-label">累计收益(元)</view>
  12. </view>
  13. <view class="jy ddflex">
  14. <view>
  15. <view class="jy-data">{{statisticData.todayOrderCount?statisticData.todayOrderCount:0}}</view>
  16. <view class="jy-label">今日订单数</view>
  17. </view>
  18. <view class="jy-line"></view>
  19. <view>
  20. <view class="jy-data"><text style="font-size: 22rpx;font-weight: 400;">¥</text>{{statisticData.todayTurnover?statisticData.todayTurnover:0}}</view>
  21. <view class="jy-label">今日营业额</view>
  22. </view>
  23. <view class="jy-line"></view>
  24. <view>
  25. <view class="jy-data"><text style="font-size: 22rpx;font-weight: 400;">¥</text>{{statisticData.todayProfit?statisticData.todayProfit:0}}</view>
  26. <view class="jy-label">今日收益额</view>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- 总数 -->
  31. <view class="total-box ddflex">
  32. <view class="fflex" v-if="!userInfo.storeId">
  33. <view class="total-label">商家总数</view>
  34. <view class="total-data">{{statisticData.merchantCount?statisticData.merchantCount:0}}</view>
  35. </view>
  36. <view v-if="!userInfo.storeId" class="total-data-line"></view>
  37. <view class="fflex" v-if="!userInfo.storeId">
  38. <view class="total-label">门店总数</view>
  39. <view class="total-data">{{statisticData.storeCount?statisticData.storeCount:0}}</view>
  40. </view>
  41. <view v-if="!userInfo.storeId" class="total-data-line"></view>
  42. <view class="fflex">
  43. <view class="total-label">设备总数</view>
  44. <view class="total-data">{{statisticData.batteryCount?statisticData.batteryCount:0}}</view>
  45. </view>
  46. <view class="total-data-line"></view>
  47. <view class="fflex">
  48. <view class="total-label">订单总数</view>
  49. <view class="total-data">{{statisticData.totalOrderCount?statisticData.totalOrderCount:0}}</view>
  50. </view>
  51. </view>
  52. <!-- nav -->
  53. <view v-if="!userInfo.storeId" class="nav-box ddflex">
  54. <view class="nav-item">
  55. <image class="nav-item-icon" src="../../static/pages/images/wdsj.png" @click="jumpUrl('/pages/myStore/myStore')"></image>
  56. <view class="nav-item-title">我的商家</view>
  57. </view>
  58. <view class="nav-item" @click="jumpUrl('/pages/myMerchant/myMerchant')">
  59. <image class="nav-item-icon" src="../../static/pages/images/wdmd.png"></image>
  60. <view class="nav-item-title">我的门店</view>
  61. </view>
  62. <view class="nav-item" v-if="!userInfo.storeId&&!userInfo.merchantId" @click="jumpUrl('/mine/myUser/myUser')">
  63. <image class="nav-item-icon" src="../../static/pages/images/wdyh.png"></image>
  64. <view class="nav-item-title">我的用户</view>
  65. </view>
  66. <view class="nav-item" @click="jumpUrl('/pages/operationData/operationData')">
  67. <image class="nav-item-icon" src="../../static/pages/images/yysj.png"></image>
  68. <view class="nav-item-title">运营数据</view>
  69. </view>
  70. </view>
  71. <view v-if="userInfo.storeId" class="nav-box ddflex" style="padding: 10rpx 30rpx;justify-content: space-between;" @click="jumpUrl('/pages/operationData/operationData')">
  72. <view class="nav-item ddflex">
  73. <image class="nav-item-icon" src="../../static/pages/images/yysj.png"></image>
  74. <view class="nav-item-title">运营数据</view>
  75. </view>
  76. <image style="width: 36rpx;height:36rpx;" src="../../static/pages/images/ssicon.png"></image>
  77. </view>
  78. <!-- 图表统计 -->
  79. <view class="echart-box">
  80. <view class="echart-box-header ddflex">
  81. <view class="echart-box-title">交易趋势</view>
  82. <view class="echart-box-timeType ddflex">
  83. <view :class="'echart-box-timeType-item '+(timeType==1?'echart-box-timeType-item-acitve':'')"
  84. @click="timeTypeChange(1)">今日</view>
  85. <view :class="'echart-box-timeType-item '+(timeType==2?'echart-box-timeType-item-acitve':'')"
  86. @click="timeTypeChange(2)">近7日</view>
  87. <view :class="'echart-box-timeType-item '+(timeType==3?'echart-box-timeType-item-acitve':'')"
  88. @click="timeTypeChange(3)">近30日</view>
  89. </view>
  90. </view>
  91. <view style="height:500rpx">
  92. <l-echart ref="chart" @finished="init"></l-echart>
  93. </view>
  94. </view>
  95. <!-- 图表统计 -->
  96. <view class="echart-box">
  97. <view class="echart-box-header ddflex">
  98. <view class="echart-box-title">商家营业额排名</view>
  99. <view class="echart-box-timeType ddflex">
  100. <view :class="'echart-box-timeType-item '+(storeType==1?'echart-box-timeType-item-acitve':'')"
  101. @click="storeTypeChange(1)">商户</view>
  102. <view :class="'echart-box-timeType-item '+(storeType==2?'echart-box-timeType-item-acitve':'')"
  103. @click="storeTypeChange(2)">门店</view>
  104. </view>
  105. </view>
  106. <view>
  107. <l-echart ref="chart2" @finished="init"></l-echart>
  108. </view>
  109. </view>
  110. <!-- 图表统计 -->
  111. <view class="echart-box">
  112. <view class="echart-box-header ddflex">
  113. <view class="echart-box-title">设备状态</view>
  114. </view>
  115. <view class="ddflex">
  116. <view class="fflex" style="height: 250rpx;">
  117. <l-echart ref="chart4" @finished="init"></l-echart>
  118. </view>
  119. <view class="fflex" style="height: 250rpx;">
  120. <l-echart ref="chart5" @finished="init"></l-echart>
  121. </view>
  122. <view class="fflex" style="height: 250rpx;">
  123. <l-echart ref="chart6" @finished="init"></l-echart>
  124. </view>
  125. </view>
  126. <view class="echart-line"></view>
  127. <view class="ddflex">
  128. <view style="width: 100%;height: 300rpx;">
  129. <l-echart ref="chart3" @finished="init"></l-echart>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="guide" @tap="hideGuide" v-if="first">
  134. <image src="/static/pages/images/guide.png" mode="widthFix"></image>
  135. </view>
  136. <foot channel="home" :isUpdate="isUpdate"></foot>
  137. </view>
  138. <view v-else>
  139. <view class="wei-login" v-if="!isLogin">
  140. <image :src="picUrlss + 'wei_login.png'"></image>
  141. <view>暂未登录</view>
  142. <navigator url="/pages/authorize/authorize" hover-class="none" class="cart-login">立即登录</navigator>
  143. </view>
  144. <foot channel="home" :isUpdate="isUpdate"></foot>
  145. </view>
  146. </template>
  147. <script>
  148. //index.js
  149. //获取应用实例
  150. const app = getApp();
  151. const req = require('../../utils/request.js');
  152. const api = require('../../utils/api.js');
  153. const utils = require('../../utils/util.js');
  154. const mes = require('../../utils/requestmessage.js');
  155. const route = require('../../utils/route');
  156. const QQMapWX = require("../../utils/qqmap.js");
  157. import foot from '../../components/nav-bar/index';
  158. import footerCopyright from '../../components/footer-copyright/footer-copyright';
  159. import LEchart from '../../components/l-echart/l-echart.vue';
  160. import * as echarts from '../../utils/echarts.min.js'
  161. export default {
  162. data() {
  163. return {
  164. picUrlss: req.public.picUrls,
  165. systems: {},
  166. bottomBlankHeight: app.globalData.isIPhoneX ? 68 : 0,
  167. pxToRpxScale: 0,
  168. rpxTopxScale: 0,
  169. isLogin:false,
  170. timeType: 1, //统计时间 1.按日 2.按月 3.按季度
  171. storeType:1,//营业额查询1.商家 2.门店
  172. statisticData:{},//统计数据
  173. echartData:{},//曲线图
  174. storeRanking:{},//营业额排行
  175. userInfo:{},
  176. // 交易趋势图表数据
  177. option: {
  178. tooltip: {
  179. trigger: 'axis',
  180. axisPointer: {
  181. type: 'shadow'
  182. },
  183. confine: true
  184. },
  185. legend: {
  186. data: ['订单数', '订单金额','收益金额'],
  187. x: 'center', //可设定图例在左、右、居中
  188. y: 'top', //可设定图例在上、下、居中
  189. padding: [15, 0, 0, 0]
  190. },
  191. grid: {
  192. left: 0,
  193. right: 8,
  194. bottom: 5,
  195. top: 45,
  196. containLabel: true
  197. },
  198. xAxis: [{
  199. type: 'category',
  200. data: [],
  201. axisLine: {
  202. lineStyle: {
  203. color: '#999999'
  204. }
  205. },
  206. axisLabel: {
  207. color: '#666666',
  208. // interval: 0,
  209. }
  210. }],
  211. yAxis: [{
  212. type: 'value',
  213. axisTick: {
  214. show: false
  215. },
  216. axisLine: {
  217. lineStyle: {
  218. color: '#999999'
  219. }
  220. },
  221. axisLabel: {
  222. color: '#666666'
  223. }
  224. }],
  225. series: [{
  226. name: '订单数',
  227. type: 'line',
  228. data: [],
  229. showSymbol: false,
  230. smooth: true,
  231. itemStyle: {
  232. // 颜色
  233. color: '#5F50E6',
  234. // 给bar设置倒角
  235. barBorderRadius: [15, 15, 0, 0]
  236. }
  237. },
  238. {
  239. name: '订单金额',
  240. type: 'line',
  241. data: [],
  242. showSymbol: false,
  243. smooth: true,
  244. itemStyle: {
  245. // 颜色
  246. color: '#FF7D00',
  247. // 给bar设置倒角
  248. barBorderRadius: [15, 15, 0, 0]
  249. }
  250. },
  251. {
  252. name: '收益金额',
  253. type: 'line',
  254. data: [],
  255. showSymbol: false,
  256. smooth: true,
  257. itemStyle: {
  258. // 颜色
  259. color: '#FFDC0F',
  260. // 给bar设置倒角
  261. barBorderRadius: [15, 15, 0, 0]
  262. }
  263. },
  264. ]
  265. },
  266. // 商家营业额排名
  267. option2: {
  268. tooltip: {
  269. trigger: 'axis',
  270. axisPointer: {
  271. type: 'shadow'
  272. },
  273. confine: true
  274. },
  275. grid: {
  276. left: 0,
  277. right: 5,
  278. bottom: 40,
  279. top: 40,
  280. containLabel: true
  281. },
  282. xAxis: [{
  283. type: 'value',
  284. // data: [],
  285. show: false,
  286. axisLine: {
  287. lineStyle: {
  288. color: '#999999'
  289. }
  290. },
  291. axisLabel: {
  292. color: '#666666',
  293. // interval: 0,
  294. },
  295. splitLine:{
  296. show:false // 不显示网格线
  297. },
  298. }],
  299. yAxis: [{
  300. type: 'category',
  301. axisTick: {
  302. show: false
  303. },
  304. data: [],
  305. axisLine: {
  306. lineStyle: {
  307. color: '#999999'
  308. }
  309. },
  310. axisLabel: {
  311. color: '#666666',
  312. // inside:true,
  313. width:10,
  314. padding: [-20, 0, 0, 0],
  315. verticalAlign:'top',
  316. align:'left',
  317. inside:true
  318. },
  319. }],
  320. series: [{
  321. name: '营业额',
  322. type: 'bar',
  323. label: {
  324. normal: {
  325. show: true,
  326. position: 'right',
  327. color: '#4c4a4a',
  328. formatter:'¥{c}',
  329. padding: [-20, 5, 0, -100],
  330. verticalAlign:'top',
  331. align:'right'
  332. },
  333. },
  334. data: [],
  335. barWidth: 5,
  336. itemStyle: {
  337. // 颜色
  338. color: '#FF770F',
  339. // 给bar设置倒角
  340. barBorderRadius: [0, 15, 15, 0]
  341. }
  342. }]
  343. },
  344. // 设备状态
  345. option3: {
  346. title: {
  347. text: '设备出租比例',
  348. textStyle: {
  349. fontSize: 14
  350. },
  351. left: '70%',
  352. top: '30%'
  353. },
  354. tooltip: {
  355. trigger: 'axis',
  356. axisPointer: {
  357. type: 'shadow'
  358. },
  359. confine: true
  360. },
  361. legend: {
  362. data: ['已租', '未租'],
  363. x: 'right', //可设定图例在左、右、居中
  364. y: '50%', //可设定图例在上、下、居中
  365. itemHeight:5,
  366. itemWidth:20
  367. },
  368. grid: {
  369. left: 0,
  370. containLabel: true
  371. },
  372. series: [{
  373. name: '设备出租比例',
  374. type: 'pie',
  375. center: ['30%', '50%'],
  376. radius: ['60%', '80%'],
  377. label: {
  378. show: false
  379. },
  380. data: [{
  381. value: 1055,
  382. name: '未租',
  383. itemStyle: {
  384. color: "#FF770F"
  385. }
  386. },
  387. {
  388. value: 735,
  389. name: '已租',
  390. itemStyle: {
  391. color: "#EAECF5"
  392. }
  393. }
  394. ]
  395. }]
  396. },
  397. // 已租设备
  398. option4: {
  399. title: {
  400. text: '已租设备',
  401. textStyle: {
  402. fontSize: 14,
  403. fontWeight: 500
  404. },
  405. left: 'center',
  406. bottom: '0'
  407. },
  408. series: [{
  409. type: 'pie',
  410. radius: ['60%', '70%'],
  411. label: {
  412. normal: {
  413. show: true,
  414. position: 'center',
  415. color: '#4c4a4a',
  416. formatter:'{c}',
  417. },
  418. emphasis: { //中间文字显示 
  419. show: true,
  420. textStyle:{
  421. }
  422. }
  423. },
  424. data: [{
  425. value: 1055,
  426. name: '已租',
  427. itemStyle: {
  428. color: "#0FCB27"
  429. }
  430. },
  431. {
  432. value: 735,
  433. name: '未租',
  434. itemStyle: {
  435. color: "#EAECF5"
  436. }
  437. }
  438. ]
  439. }]
  440. },
  441. // 未租设备
  442. option5: {
  443. title: {
  444. text: '未租设备',
  445. textStyle: {
  446. fontSize: 14,
  447. fontWeight: 500
  448. },
  449. left: 'center',
  450. bottom: '0'
  451. },
  452. series: [{
  453. type: 'pie',
  454. center: ['50%', '50%'],
  455. radius: ['60%', '70%'],
  456. label: {
  457. normal: {
  458. show: true,
  459. position: 'center',
  460. color: '#4c4a4a',
  461. formatter:'{c}',
  462. },
  463. emphasis: { //中间文字显示 
  464. show: true,
  465. textStyle:{
  466. }
  467. }
  468. },
  469. data: [{
  470. value: 1055,
  471. name: '未租设备',
  472. itemStyle: {
  473. color: "#666464"
  474. }
  475. },
  476. {
  477. value: 735,
  478. name: '已租设备',
  479. itemStyle: {
  480. color: "#EAECF5"
  481. }
  482. }
  483. ]
  484. }]
  485. },
  486. // 到期设备
  487. option6: {
  488. title: {
  489. text: '到期设备',
  490. textStyle: {
  491. fontSize: 14,
  492. fontWeight: 500
  493. },
  494. left: 'center',
  495. bottom: '0'
  496. },
  497. series: [{
  498. type: 'pie',
  499. center: ['50%', '50%'],
  500. radius: ['60%', '70%'],
  501. label: {
  502. normal: {
  503. show: true,
  504. position: 'center',
  505. color: '#4c4a4a',
  506. formatter:'{c}',
  507. },
  508. emphasis: { //中间文字显示 
  509. show: true,
  510. textStyle:{
  511. }
  512. }
  513. },
  514. data: [{
  515. value: 1055,
  516. name: '到期',
  517. itemStyle: {
  518. color: "#FF770F"
  519. }
  520. },
  521. {
  522. value: 735,
  523. name: '未到期',
  524. itemStyle: {
  525. color: "#EAECF5"
  526. }
  527. }
  528. ]
  529. }]
  530. },
  531. };
  532. },
  533. components: {
  534. foot,
  535. footerCopyright,
  536. LEchart
  537. },
  538. props: {},
  539. onLoad: async function(options) {
  540. },
  541. async onShow() {
  542. if(req.isLogins(false)){
  543. this.isLogin = true
  544. await this.getEchartData()
  545. await this.getStatisticData()
  546. await this.getStoreData()
  547. this.init()
  548. this.getUserInfo()
  549. }else{
  550. this.isLogin = false
  551. }
  552. },
  553. onUnload() {},
  554. onHide() {},
  555. onReachBottom() {},
  556. methods: {
  557. jumpUrl(url){
  558. if(req.isLogins(true)){
  559. uni.navigateTo({
  560. url:url
  561. })
  562. }
  563. },
  564. // 统计时间切换
  565. async timeTypeChange(val) {
  566. if (this.timeType == val) return false
  567. this.timeType = val
  568. await this.getEchartData()
  569. this.init()
  570. },
  571. // 营业额切换
  572. async storeTypeChange(val) {
  573. if (this.storeType == val) return false
  574. this.storeType = val
  575. await this.getStoreData()
  576. this.init()
  577. },
  578. init() {
  579. this.$refs.chart.init(echarts, async chart => {
  580. // let echartData = await this.getEchartData()
  581. this.option.yAxis[0].axisLabel.fontSize = 13 * this.rpxTopxScale
  582. this.option.xAxis[0].axisLabel.fontSize = 13 * this.rpxTopxScale
  583. this.option.legend.itemHeight = 10 * this.rpxTopxScale
  584. this.option.legend.itemWidth = 40 * this.rpxTopxScale
  585. if(this.echartData.orderList.length>0){
  586. this.option.xAxis[0].data = this.echartData.orderList.map(item=>{return item.showTime})
  587. this.option.series[0].data = this.echartData.orderList.map(item=>{return item.orderCount})
  588. }
  589. if(this.echartData.profitList.length>0){
  590. this.option.series[1].data = this.echartData.profitList.map(item=>{return item.profit})
  591. }
  592. if(this.echartData.turnoverList.length>0){
  593. this.option.series[2].data = this.echartData.turnoverList.map(item=>{return item.turnover})
  594. }
  595. chart.setOption(this.option);
  596. });
  597. if (this.$refs.chart2) {
  598. this.$refs.chart2.init(echarts, async chart => {
  599. // let echartData = await this.getEchartData()
  600. if(this.storeRanking.length>0){
  601. this.option2.yAxis[0].data = this.storeRanking.map(item=>{return item.name})
  602. this.option2.series[0].data = this.storeRanking.map(item=>{return item.turnover})
  603. }
  604. chart.setOption(this.option2);
  605. });
  606. }
  607. if (this.$refs.chart3) {
  608. this.$refs.chart3.init(echarts, async chart => {
  609. this.option3.title.textStyle.fontSize = 28 * this.rpxTopxScale
  610. this.option3.legend.itemHeight = 10 * this.rpxTopxScale
  611. this.option3.legend.itemWidth = 40 * this.rpxTopxScale
  612. this.option3.series[0].data[0].value = this.statisticData.noLeaseCount
  613. this.option3.series[0].data[1].value = this.statisticData.leaseCount
  614. chart.setOption(this.option3);
  615. });
  616. }
  617. if (this.$refs.chart4) {
  618. this.$refs.chart4.init(echarts, async chart => {
  619. this.option4.title.textStyle.fontSize = 24 * this.rpxTopxScale
  620. this.option4.series[0].data[0].value = this.statisticData.leaseCount
  621. this.option4.series[0].data[1].value = this.statisticData.noLeaseCount
  622. this.option4.series[0].label.normal.formatter = ()=>{return this.statisticData.leaseCount}
  623. chart.setOption(this.option4);
  624. });
  625. }
  626. if (this.$refs.chart5) {
  627. this.$refs.chart5.init(echarts, async chart => {
  628. this.option5.title.textStyle.fontSize = 24 * this.rpxTopxScale
  629. this.option5.series[0].data[0].value = this.statisticData.noLeaseCount
  630. this.option5.series[0].data[1].value = this.statisticData.leaseCount
  631. this.option4.series[0].label.normal.formatter = ()=>{return this.statisticData.noLeaseCount}
  632. chart.setOption(this.option5);
  633. });
  634. }
  635. if (this.$refs.chart6) {
  636. this.$refs.chart6.init(echarts, async chart => {
  637. this.option6.title.textStyle.fontSize = 24 * this.rpxTopxScale
  638. this.option6.series[0].data[0].value = this.statisticData.expireCount
  639. this.option6.series[0].data[1].value =Number(this.statisticData.batteryCount) - Number(this.statisticData.leaseCount)
  640. this.option6.series[0].label.normal.formatter = ()=>{return this.statisticData.expireCount}
  641. chart.setOption(this.option6);
  642. });
  643. }
  644. },
  645. // 获取图表数据
  646. getEchartData() {
  647. return new Promise((r, j) => {
  648. req.getRequest('/admin/v2/statistic/chart', {type: this.timeType}, res => {
  649. this.echartData = res
  650. console.log('statistic chart', res)
  651. r(res)
  652. })
  653. })
  654. },
  655. // 获取营业额数据
  656. getStoreData() {
  657. return new Promise((r, j) => {
  658. req.getRequest('/admin/v2/statistic/ranking', {type: this.storeType}, res => {
  659. this.storeRanking = res
  660. console.log('statistic ranking', res)
  661. r(res)
  662. })
  663. })
  664. },
  665. // 获取图表数据
  666. getStatisticData() {
  667. return new Promise((r, j) => {
  668. req.getRequest('/admin/v2/statistic/top', {}, res => {
  669. console.log('statistic top', res)
  670. this.statisticData = res
  671. r(res)
  672. })
  673. })
  674. },
  675. // 获取当前用户
  676. getUserInfo(){
  677. req.getRequest('/admin/v2/userInfo',{},res=>{
  678. this.userInfo = res
  679. })
  680. }
  681. },
  682. mounted() {
  683. const systemInfo = uni.getSystemInfoSync();
  684. // px转换到rpx的比例
  685. let pxToRpxScale = 750 / systemInfo.windowWidth;
  686. this.pxToRpxScale = pxToRpxScale
  687. this.rpxTopxScale = systemInfo.windowWidth / 750
  688. let systems = {
  689. ktxStatusHeight: systemInfo.statusBarHeight * pxToRpxScale, // 状态栏的高度
  690. navigationHeight: 44 * pxToRpxScale // 导航栏的高度
  691. };
  692. systems.barHeight = systems.ktxStatusHeight + systems.navigationHeight;
  693. this.systems = systems;
  694. }
  695. };
  696. </script>
  697. <style>
  698. @import './index.css';
  699. </style>