mainStatistics.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. <template>
  2. <view>
  3. <view class="head">
  4. <view class="">
  5. <image class="userFlagimg" src="../../static/img/userFlag.png" mode=""></image>
  6. </view>
  7. <view class="pname">
  8. <font class="wenzi" style="color: #BDD6F3;font-size:28upx">用户:{{pname}}</font>
  9. </view>
  10. <view class="company">
  11. <font style="color: #BDD6F3;font-size:28upx">申泽智能物联</font>
  12. </view>
  13. </view>
  14. <view class="ri">
  15. <view class="riShell">
  16. <view class="riImg">
  17. <image style="width: 64upx;height: 64upx;padding-top: 20upx;" src="../../static/img/ri.png"></image>
  18. </view>
  19. <view class="riTitle">
  20. <view style="text-align:left;font-size:28upx;font-family:PingFang-SC-Medium">
  21. <font class="fontLeft" style="color: #596D83;">今日收入总额:</font>
  22. <font style="color: #ED341F;"> {{dayTotalMoney}}</font>
  23. </view>
  24. <view style="text-align:left;font-size:28upx;font-family:PingFang-SC-Medium">
  25. <font class="fontLeft" style="color: #596D83;">今日销售数量:</font>
  26. <font style="color: #ED341F;"> {{dayTotalNum}}</font>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="riqi">
  31. <view style="text-align:right" class="tody">
  32. <font style="color: #596D83;">2019年10月7日</font>
  33. </view>
  34. <view style="text-align:right" class="xingqi">
  35. <font style="color: #596D83;">星期一</font>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="fourTitle">
  40. <view class="four">
  41. <view class="fourImg">
  42. <image style="width: 54upx;height: 54upx;padding-top: 20upx;" src="../../static/img/zhou.png" mode=""></image>
  43. </view>
  44. <view class="fourShell">
  45. <view class="one">
  46. <font class="fontLeft" style="color: #596D83;">本周收入总额:</font>
  47. <font style="color: #ED341F;"> {{dayTotalMoney}}</font>
  48. </view>
  49. <view class="two">
  50. <font class="fontLeft" style="color: #596D83;">本周销售数量:</font>
  51. <font style="color: #ED341F;"> {{dayTotalNum}}</font>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="four">
  56. <view class="fourImg">
  57. <image style="width: 54upx;height: 54upx;padding-top: 20upx;" src="../../static/img/yue.png" mode=""></image>
  58. </view>
  59. <view class="fourShell">
  60. <view class="one">
  61. <font class="fontLeft" style="color: #596D83;">本月收入总额:</font>
  62. <font style="color: #ED341F;"> {{monthTotalMoney}}</font>
  63. </view>
  64. <view class="two">
  65. <font class="fontLeft" style="color: #596D83;">本月销售数量:</font>
  66. <font style="color: #ED341F;"> {{monthTotalNum}}</font>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="four">
  71. <view class="fourImg">
  72. <image style="width: 54upx;height: 54upx;padding-top: 20upx;" src="../../static/img/nian.png" mode=""></image>
  73. </view>
  74. <view class="fourShell">
  75. <view class="one">
  76. <font class="fontLeft" style="color: #596D83;">本年收入总额:</font>
  77. <font style="color: #ED341F;"> {{yearTotalMoney}}</font>
  78. </view>
  79. <view class="two">
  80. <font class="fontLeft" style="color: #596D83;">本年销售数量:</font>
  81. <font style="color: #ED341F;"> {{yearTotalNum}}</font>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="four">
  86. <view class="fourImg">
  87. <image style="width: 54upx;height: 54upx;padding-top: 20upx;" src="../../static/img/zong.png" mode=""></image>
  88. </view>
  89. <view class="fourShell">
  90. <view class="one">
  91. <font class="fontLeft" style="color: #596D83;">投放机器数量:</font>
  92. <font style="color: #ED341F;"> {{machineTotalNum}}</font>
  93. </view>
  94. <view class="two">
  95. <font class="fontLeft" style="color: #596D83;">运营机器数量:</font>
  96. <font style="color: #ED341F;"> {{machineUseNum}}</font>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="qiun-columns">
  102. <view class="qiun-bg-white qiun-title-bar qiun-common-mt">
  103. <view class="qiun-title-dot-light">今日销售情况</view>
  104. <view class="shijian" style="text-align: center;position: relative;">
  105. <image @click="pre('day')" class="preImg" src="/static/img/leftTriangle.png"></image>
  106. <span>{{startDate1}}</span>
  107. <image @click="next('day')" class="nextImg" src="/static/img/rightTriangle.png"></image>
  108. </view>
  109. </view>
  110. <view class="qiun-charts" style="background-color: #FFFFFF;">
  111. <canvas canvas-id="canvaColumn1" id="canvaColumn1" class="charts" disable-scroll=true @touchstart="touchLine1" @touchmove="moveLine1"
  112. @touchend="touchEndLine1" style="background-color: #FFFFFF;"></canvas>
  113. </view>
  114. </view>
  115. <view class="qiun-columns">
  116. <view class="qiun-bg-white qiun-title-bar qiun-common-mt">
  117. <view class="qiun-title-dot-light">本周销售情况</view>
  118. <view class="shijian" style="text-align: center;position: relative;">
  119. <image @click="pre('week')" class="preImg" src="/static/img/leftTriangle.png"></image>
  120. <span>{{startDate2}} 至 {{endDate2}}</span>
  121. <image @click="next('week')" class="nextImg" src="/static/img/rightTriangle.png"></image>
  122. </view>
  123. </view>
  124. <view class="qiun-charts" style="background-color: #FFFFFF;">
  125. <canvas canvas-id="canvaColumn2" id="canvaColumn2" class="charts" disable-scroll=true @touchstart="touchLine2" @touchmove="moveLine2"
  126. @touchend="touchEndLine2" style="background-color: #FFFFFF;"></canvas>
  127. </view>
  128. </view>
  129. <view class="qiun-columns">
  130. <view class="qiun-bg-white qiun-title-bar qiun-common-mt">
  131. <view class="qiun-title-dot-light">本月销售情况</view>
  132. <view class="shijian" style="text-align: center;position: relative;">
  133. <image @click="pre('month')" class="preImg" src="/static/img/leftTriangle.png"></image>
  134. <span>{{startDate3}} 至 {{endDate3}}</span>
  135. <image @click="next('month')" class="nextImg" src="/static/img/rightTriangle.png"></image>
  136. </view>
  137. </view>
  138. <view class="qiun-charts" style="background-color: #FFFFFF;">
  139. <canvas canvas-id="canvaColumn3" id="canvaColumn3" class="charts" disable-scroll=true @touchstart="touchLine3" @touchmove="moveLine3"
  140. @touchend="touchEndLine3" style="background-color: #FFFFFF;"></canvas>
  141. </view>
  142. </view>
  143. <view class="qiun-columns">
  144. <view class="qiun-bg-white qiun-title-bar qiun-common-mt">
  145. <view class="qiun-title-dot-light">本年销售情况</view>
  146. <view class="shijian" style="text-align: center;position: relative;">
  147. <image @click="pre('year')" class="preImg" src="/static/img/leftTriangle.png"></image>
  148. <span>{{startDate4}} 至 {{endDate4}}</span>
  149. <image @click="next('year')" class="nextImg" src="/static/img/rightTriangle.png"></image>
  150. </view>
  151. </view>
  152. <view class="qiun-charts" style="background-color: #FFFFFF;">
  153. <canvas canvas-id="canvaColumn4" id="canvaColumn4" class="charts" disable-scroll=true @touchstart="touchLine4" @touchmove="moveLine4"
  154. @touchend="touchEndLine4" style="background-color: #FFFFFF;"></canvas>
  155. </view>
  156. </view>
  157. </view>
  158. </template>
  159. <script>
  160. import { mapState, mapActions, mapMutations } from 'vuex';
  161. import uCharts from '@/components/u-charts/u-charts.js';
  162. import {dateUtils} from '@/common/util.js';
  163. var _self;
  164. var canvaColumn1=null;
  165. var canvaColumn2=null;
  166. var canvaColumn3=null;
  167. var canvaColumn4=null;
  168. export default {
  169. name: 'mainStatistics',
  170. props: {
  171. equipmentId: '',
  172. adminId: '',
  173. pname:'',
  174. },
  175. data() {
  176. return {
  177. machineTotalNum:0,
  178. machineUseNum:0,
  179. dayTotalMoney:0,
  180. dayTotalNum:0,
  181. weekTotalMoney:0,
  182. weekTotalNum:0,
  183. monthTotalMoney:0,
  184. monthTotalNum:0,
  185. yearTotalMoney:0,
  186. yearTotalNum:0,
  187. cWidth: '',
  188. cHeight: '',
  189. pixelRatio: 1,
  190. startDate1: '',
  191. startDate2: '',
  192. endDate2: '',
  193. startDate3: '',
  194. endDate3: '',
  195. startDate4: '',
  196. endDate4: '',
  197. }
  198. },
  199. computed: {
  200. ...mapState(['loginUser']),
  201. },
  202. // onLoad(option){
  203. // console.log("onLoad")
  204. // this.init();
  205. // },
  206. onShow() {
  207. var test = uni.getStorageSync('test');
  208. //判断是不是初次登陆
  209. if(test == 2){
  210. this.init();
  211. }
  212. },
  213. mounted() {
  214. console.log("mounted");
  215. this.init();
  216. },
  217. methods: {
  218. ...mapActions('chart', ['getStatistics','getMainStatistics','getMachineNum']),
  219. async init(){
  220. console.log('pname:{}',this.pname)
  221. if(!this.pname){
  222. console.log('loginUser:{}',this.loginUser)
  223. this.pname=this.loginUser.name;
  224. }
  225. console.log("adminId:" + this.adminId)
  226. console.log("equipmentId:" + this.equipmentId)
  227. _self = this;
  228. //图表中图
  229. this.cWidth = uni.upx2px(690);
  230. this.cHeight = uni.upx2px(370);
  231. await this.getMainStatisticsData();
  232. await this.initDateRang(new Date(),'day');
  233. await this.initDateRang(new Date(),'week');
  234. await this.initDateRang(new Date(),'month');
  235. await this.initDateRang(new Date(),'year');
  236. //初次登陆跳转后,把test变成2
  237. uni.setStorageSync('test', '2');
  238. },
  239. initDateRang(day,chartType) {
  240. const daystr = dateUtils.formateDate(day, 'yyyy/MM/dd');
  241. if(chartType === 'day'){
  242. this.startDate1 = dateUtils.formateDate(day, 'yyyy/MM/dd');
  243. }
  244. if (chartType === 'week') {
  245. this.startDate2 = dateUtils.formateDate(dateUtils.getFirstDayOfWeek(day), 'yyyy/MM/dd');
  246. this.endDate2 = dateUtils.formateDate(dateUtils.getLastDayOfWeek(day), 'yyyy/MM/dd');
  247. }
  248. if (chartType === 'month') {
  249. this.startDate3 = dateUtils.formateDate(dateUtils.getCurrentMonFirstDate(day), 'yyyy/MM/dd');
  250. this.endDate3 = dateUtils.formateDate(dateUtils.getCurrentMonLastDate(day), 'yyyy/MM/dd');
  251. }
  252. if (chartType === 'year') {
  253. this.startDate4 = dateUtils.formateDate(dateUtils.getCurrentYearFirstDate(day), 'yyyy/MM/dd');
  254. this.endDate4 = dateUtils.formateDate(dateUtils.getCurrentYearLastDate(day), 'yyyy/MM/dd');
  255. }
  256. return this.getStatisticsData(chartType);
  257. },
  258. /**上一个 */
  259. pre(chartType) {
  260. let day;
  261. if (chartType === 'day') { // 日
  262. day = new Date(this.startDate1);
  263. day.setDate(day.getDate() - 1);
  264. }
  265. if(chartType === 'week'){ // 周
  266. day = new Date(this.startDate2);
  267. day.setDate(day.getDate() - 7);
  268. }
  269. if (chartType === 'month') { // 月
  270. day = new Date(this.startDate3);
  271. day.setMonth(day.getMonth() - 1);
  272. }
  273. if (chartType === 'year') { // 年
  274. day = new Date(this.startDate4);
  275. day.setFullYear(day.getFullYear() - 1);
  276. }
  277. this.initDateRang(day,chartType);
  278. },
  279. /**下一个 */
  280. next(chartType) {
  281. let day;
  282. if (chartType === 'day') { // 日
  283. day = new Date(this.startDate1);
  284. day.setDate(day.getDate() + 1);
  285. }
  286. if(chartType === 'week'){ // 周
  287. day = new Date(this.startDate2);
  288. day.setDate(day.getDate() + 7);
  289. }
  290. if (chartType === 'month') { // 月
  291. day = new Date(this.startDate3);
  292. day.setMonth(day.getMonth() + 1);
  293. }
  294. if (chartType === 'year') { // 年
  295. day = new Date(this.startDate4);
  296. day.setFullYear(day.getFullYear() + 1);
  297. }
  298. this.initDateRang(day,chartType);
  299. },
  300. getStatisticsData(chartType) {
  301. const param = {
  302. 'chartType': chartType
  303. };
  304. if(chartType=='day'){
  305. param['startDate'] = this.startDate1;
  306. param['endDate'] = this.startDate1;
  307. }
  308. if(chartType=='week'){
  309. param['startDate'] = this.startDate2;
  310. param['endDate'] = this.endDate2;
  311. }
  312. if(chartType=='month'){
  313. param['startDate'] = this.startDate3;
  314. param['endDate'] = this.endDate3;
  315. }
  316. if(chartType=='year'){
  317. param['startDate'] = this.startDate4;
  318. param['endDate'] = this.endDate4;
  319. }
  320. if(this.adminId){ // 子组件,则拿传过来的参
  321. param['adminId'] = this.adminId;
  322. }else if ('admin' !== this.loginUser['username']) { //否则为主页,拿登录用户
  323. param['adminId'] = this.loginUser['id'];
  324. }
  325. if (this.equipmentId) {
  326. param['equipmentId'] = this.equipmentId;
  327. }
  328. return this.getStatistics(param)
  329. .then(data => {
  330. uni.stopPullDownRefresh();
  331. if(param['chartType']=='day'){
  332. canvaColumn1 = this.initChart('canvaColumn1',data);
  333. }
  334. if(param['chartType']=='week'){
  335. canvaColumn2 = this.initChart('canvaColumn2',data);
  336. }
  337. if(param['chartType']=='month'){
  338. canvaColumn3 = this.initChart('canvaColumn3',data);
  339. }
  340. if(param['chartType']=='year'){
  341. canvaColumn4 = this.initChart('canvaColumn4',data);
  342. }
  343. }
  344. , _ => {
  345. uni.stopPullDownRefresh();
  346. if(param['chartType']=='day'){
  347. canvaColumn1 = this.initChart('canvaColumn1',{categories:['暂无数据'],series:[{name: '销售个数',data:[0]}]});
  348. }
  349. if(param['chartType']=='week'){
  350. canvaColumn2 = this.initChart('canvaColumn2',{categories:['暂无数据'],series:[{name: '销售个数',data:[0]}]});
  351. }
  352. if(param['chartType']=='month'){
  353. canvaColumn3 = this.initChart('canvaColumn3',{categories:['暂无数据'],series:[{name: '销售个数',data:[0]}]});
  354. }
  355. if(param['chartType']=='year'){
  356. canvaColumn4 = this.initChart('canvaColumn4',{categories:['暂无数据'],series:[{name: '销售个数',data:[0]}]});
  357. }
  358. }
  359. );
  360. },
  361. initChart(canvasId, chartData){
  362. return new uCharts({
  363. $this: _self,
  364. canvasId: canvasId,
  365. enableScroll: true,
  366. type: 'column',
  367. legend: true,
  368. fontSize: 11,
  369. background: '#FFFFFF',//y轴颜色
  370. pixelRatio: 1,
  371. animation: true,
  372. categories: chartData.categories,
  373. series: chartData.series,
  374. xAxis: {
  375. type: 'grid',
  376. gridType: 'dash',
  377. itemCount: 5, //x轴单屏显示数据的数量,默认为5个
  378. scrollShow: true, //新增是否显示滚动条,默认false
  379. scrollAlign: 'left', //滚动条初始位置
  380. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF 滚动条颜色底色
  381. scrollColor: '#DEE7F7', //默认为 #A6A6A6 滚动条颜色
  382. // disableGrid:true,
  383. },
  384. yAxis: {
  385. //disabled:true
  386. },
  387. dataLabel: true,
  388. width: _self.cWidth * _self.pixelRatio,
  389. height: _self.cHeight * _self.pixelRatio,
  390. extra: {
  391. column: {
  392. // width: _self.cWidth*_self.pixelRatio*0.45/chartData.categories.length
  393. width: 30
  394. }
  395. }
  396. });
  397. },
  398. getMainStatisticsData(){
  399. const param = {};
  400. if(this.adminId){ // 子组件,则拿传过来的参
  401. param['adminId'] = this.adminId;
  402. }else if ('admin' !== this.loginUser['username']) { //否则为主页,拿登录用户
  403. param['adminId'] = this.loginUser['id'];
  404. }
  405. if (this.equipmentId) {
  406. param['equipmentId'] = this.equipmentId;
  407. }
  408. console.log('getMainStatisticsData:{}',param);
  409. var adminId = param.adminId;
  410. var equipmentId = this.equipmentId;
  411. var serverurl = this.serverurl;
  412. uni.request({
  413. url: serverurl+'/TEquipment/getMachineNum',
  414. data:{
  415. "adminId":adminId,
  416. "equipmentId":equipmentId
  417. },
  418. method:"POST",
  419. success: (res) => {
  420. var list = res.data.data;
  421. this.machineTotalNum = list[0];
  422. this.machineUseNum = list[1];
  423. }
  424. });
  425. return this.getMainStatistics(param)
  426. .then(data => {
  427. for (let bean of data) {
  428. if(bean['categorie']==='day'){
  429. this.dayTotalMoney=bean['salePrice'];
  430. this.dayTotalNum=bean['saleNum'];
  431. }
  432. if(bean['categorie']==='week'){
  433. this.weekTotalMoney=bean['salePrice'];
  434. this.weekTotalNum=bean['saleNum'];
  435. }
  436. if(bean['categorie']==='month'){
  437. this.monthTotalMoney=bean['salePrice'];
  438. this.monthTotalNum=bean['saleNum'];
  439. }
  440. if(bean['categorie']==='year'){
  441. this.yearTotalMoney=bean['salePrice'];
  442. this.yearTotalNum=bean['saleNum'];
  443. }
  444. }
  445. uni.stopPullDownRefresh();
  446. }
  447. , _ => void uni.stopPullDownRefresh());
  448. },
  449. touchLine1(e) {
  450. if(canvaColumn1){
  451. canvaColumn1.scrollStart(e);
  452. }
  453. },
  454. moveLine1(e) {
  455. if(canvaColumn1){
  456. canvaColumn1.scroll(e);
  457. }
  458. },
  459. touchEndLine1(e) {
  460. if(canvaColumn1){
  461. canvaColumn1.scrollEnd(e);
  462. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  463. canvaColumn1.showToolTip(e, {
  464. format: function(item, category) {
  465. return category + ' ' + item.name + ':' + item.data
  466. }
  467. });
  468. }
  469. },
  470. touchLine2(e) {
  471. if(canvaColumn2){
  472. canvaColumn2.scrollStart(e);
  473. }
  474. },
  475. moveLine2(e) {
  476. if(canvaColumn2){
  477. canvaColumn2.scroll(e);
  478. }
  479. },
  480. touchEndLine2(e) {
  481. if(canvaColumn2){
  482. canvaColumn2.scrollEnd(e);
  483. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  484. canvaColumn2.showToolTip(e, {
  485. format: function(item, category) {
  486. return category + ' ' + item.name + ':' + item.data
  487. }
  488. });
  489. }
  490. },
  491. touchLine3(e) {
  492. if(canvaColumn3){
  493. canvaColumn3.scrollStart(e);
  494. }
  495. },
  496. moveLine3(e) {
  497. if(canvaColumn3){
  498. canvaColumn3.scroll(e);
  499. }
  500. },
  501. touchEndLine3(e) {
  502. if(canvaColumn3){
  503. canvaColumn3.scrollEnd(e);
  504. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  505. canvaColumn3.showToolTip(e, {
  506. format: function(item, category) {
  507. return category + ' ' + item.name + ':' + item.data
  508. }
  509. });
  510. }
  511. },
  512. touchLine4(e) {
  513. if(canvaColumn4){
  514. canvaColumn4.scrollStart(e);
  515. }
  516. },
  517. moveLine4(e) {
  518. if(canvaColumn4){
  519. canvaColumn4.scroll(e);
  520. }
  521. },
  522. touchEndLine4(e) {
  523. if(canvaColumn4){
  524. canvaColumn4.scrollEnd(e);
  525. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  526. canvaColumn4.showToolTip(e, {
  527. format: function(item, category) {
  528. return category + ' ' + item.name + ':' + item.data
  529. }
  530. });
  531. }
  532. },
  533. }
  534. }
  535. </script>
  536. <style>
  537. page {
  538. /* background: #F2F2F2; */
  539. background:#FFFFFF;
  540. width: 750upx;
  541. overflow-x: hidden;
  542. }
  543. .head{
  544. display: flex;
  545. flex-direction: row;
  546. background:#206DC3;
  547. width: 750upx;
  548. height: 180upx;
  549. }
  550. .company{
  551. width: 48%;
  552. text-align:right;
  553. }
  554. .pname{
  555. display: flex;
  556. flex-direction: row;
  557. width: 40%;
  558. }
  559. .userFlagimg{
  560. padding-left: 10upx;
  561. padding-top: 10upx;
  562. width: 26upx;
  563. height: 28upx;
  564. }
  565. .wenzi{
  566. padding-right: 0upx;
  567. /* text-align:right; */
  568. white-space: nowrap;
  569. overflow: hidden;
  570. /* text-overflow: ellipsis; */
  571. }
  572. .ri{
  573. width: 690upx;
  574. height: 180upx;
  575. background:#FFFFFF;
  576. border-radius: 15upx;
  577. /* 上移 */
  578. transform: translateY(-90upx);
  579. text-align:center;
  580. margin: auto;
  581. display: flex;
  582. flex-direction: row;
  583. /* 阴影 */
  584. box-shadow:0upx -1upx 20upx #D3D3D3;
  585. /* box-shadow:0px 0px 10px 5px #aaa; */
  586. }
  587. .riShell{
  588. display: flex;
  589. flex-direction: row;
  590. margin: auto;
  591. }
  592. .riTitle{
  593. display: flex;
  594. flex-direction: column;
  595. margin: auto;
  596. }
  597. .riqi{
  598. display: flex;
  599. flex-direction: column;
  600. margin: auto;
  601. }
  602. .fourTitle{
  603. width: 690upx;
  604. height: 294upx;
  605. display: flex;
  606. flex-direction: row;
  607. flex-wrap:wrap;
  608. background:#FFFFFF;
  609. box-shadow:0upx 0upx 20upx #D3D3D3;
  610. margin: auto;
  611. border-radius: 15upx;
  612. transform: translateY(-60upx);
  613. }
  614. .four{
  615. display: flex;
  616. flex-direction: row;
  617. margin: auto;
  618. width: 48%;
  619. }
  620. .fourImg{
  621. width: 54upx;
  622. height: 54upx;
  623. }
  624. .qiun-padding {
  625. padding: 2%;
  626. width: 96%;
  627. }
  628. .qiun-wrap {
  629. display: flex;
  630. flex-wrap: wrap;
  631. }
  632. .qiun-rows {
  633. display: flex;
  634. flex-direction: row !important;
  635. }
  636. .qiun-columns {
  637. display: flex;
  638. flex-direction: column !important;
  639. }
  640. .qiun-common-mt {
  641. margin-top: 0upx;
  642. height: 200upx;
  643. }
  644. .qiun-bg-white {
  645. background: #FFFFFF;
  646. }
  647. .qiun-title-bar {
  648. width: 100%;
  649. /* padding: 10upx 2%; */
  650. flex-wrap: nowrap;
  651. border-radius: 15upx;
  652. }
  653. .qiun-title-dot-light {
  654. border-left: 30upx solid #0ea391;
  655. padding-top: 20upx;
  656. /* border-left: 20upx; */
  657. padding-left: 10upx;
  658. height: 85upx;
  659. font-family: "PingFang-SC-Bold";
  660. font-weight: bold;
  661. margin: auto;
  662. font-size: 32upx;
  663. color: #363D44;
  664. }
  665. .shijian{
  666. padding-top: 30upx;
  667. height: 80upx;
  668. width: 690upx;
  669. margin: auto;
  670. box-shadow:0upx 0upx 10upx #D3D3D3;
  671. }
  672. .qiun-charts {
  673. width: 690upx;
  674. height: 370upx;
  675. padding-top: 30upx;
  676. background-color: #FFFFFF;
  677. margin: auto;
  678. }
  679. .charts {
  680. width: 690upx;
  681. height: 370upx;
  682. background-color: #FFFFFF;
  683. margin: auto;
  684. }
  685. .preImg {
  686. position: absolute;left: 40upx; width: 27upx;height: 45upx;
  687. }
  688. .nextImg {
  689. position: absolute;right: 40upx; width: 27upx;height: 45upx;
  690. }
  691. .fontLeft{
  692. margin-right: 20upx;
  693. }
  694. </style>