mainStatistics.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  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 style="color: #596D83;">今日收入总额:\t\t\t </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 style="color: #596D83;">今日销售数量:\t\t\t </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 style="color: #596D83;">本周收入总额:\t\t\t </font>
  47. <font style="color: #ED341F;"> {{dayTotalMoney}}</font>
  48. </view>
  49. <view class="two">
  50. <font style="color: #596D83;">本周销售数量:\t\t\t </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 style="color: #596D83;">本月收入总额:\t\t\t </font>
  62. <font style="color: #ED341F;"> {{monthTotalMoney}}</font>
  63. </view>
  64. <view class="two">
  65. <font style="color: #596D83;">本月销售数量:\t\t\t </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 style="color: #596D83;">本年收入总额:\t\t\t </font>
  77. <font style="color: #ED341F;"> {{yearTotalMoney}}</font>
  78. </view>
  79. <view class="two">
  80. <font style="color: #596D83;">本年销售数量:\t\t\t </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 style="color: #596D83;">投放机器数量:\t\t\t </font>
  92. <font style="color: #ED341F;"> {{machineTotalNum}}</font>
  93. </view>
  94. <view class="two">
  95. <font style="color: #596D83;">运营机器数量:\t\t\t </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. },
  174. data() {
  175. return {
  176. pname:'',
  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 pname = uni.getStorageSync("name");
  208. this.pname = pname;
  209. var test = uni.getStorageSync('test');
  210. //判断是不是初次登陆
  211. if(test == 2){
  212. this.init();
  213. }
  214. },
  215. mounted() {
  216. console.log("mounted");
  217. var pname = uni.getStorageSync("name");
  218. this.pname = pname;
  219. this.init();
  220. },
  221. methods: {
  222. ...mapActions('chart', ['getStatistics','getMainStatistics','getMachineNum']),
  223. async init(){
  224. console.log("adminId:" + this.adminId)
  225. console.log("equipmentId:" + this.equipmentId)
  226. _self = this;
  227. //图表中图
  228. this.cWidth = uni.upx2px(690);
  229. this.cHeight = uni.upx2px(370);
  230. await this.getMainStatisticsData();
  231. await this.initDateRang(new Date(),'day');
  232. await this.initDateRang(new Date(),'week');
  233. await this.initDateRang(new Date(),'month');
  234. await this.initDateRang(new Date(),'year');
  235. //初次登陆跳转后,把test变成2
  236. uni.setStorageSync('test', '2');
  237. },
  238. initDateRang(day,chartType) {
  239. const daystr = dateUtils.formateDate(day, 'yyyy/MM/dd');
  240. if(chartType === 'day'){
  241. this.startDate1 = dateUtils.formateDate(day, 'yyyy/MM/dd');
  242. }
  243. if (chartType === 'week') {
  244. this.startDate2 = dateUtils.formateDate(dateUtils.getFirstDayOfWeek(day), 'yyyy/MM/dd');
  245. this.endDate2 = dateUtils.formateDate(dateUtils.getLastDayOfWeek(day), 'yyyy/MM/dd');
  246. }
  247. if (chartType === 'month') {
  248. this.startDate3 = dateUtils.formateDate(dateUtils.getCurrentMonFirstDate(day), 'yyyy/MM/dd');
  249. this.endDate3 = dateUtils.formateDate(dateUtils.getCurrentMonLastDate(day), 'yyyy/MM/dd');
  250. }
  251. if (chartType === 'year') {
  252. this.startDate4 = dateUtils.formateDate(dateUtils.getCurrentYearFirstDate(day), 'yyyy/MM/dd');
  253. this.endDate4 = dateUtils.formateDate(dateUtils.getCurrentYearLastDate(day), 'yyyy/MM/dd');
  254. }
  255. return this.getStatisticsData(chartType);
  256. },
  257. /**上一个 */
  258. pre(chartType) {
  259. let day;
  260. if (chartType === 'day') { // 日
  261. day = new Date(this.startDate1);
  262. day.setDate(day.getDate() - 1);
  263. }
  264. if(chartType === 'week'){ // 周
  265. day = new Date(this.startDate2);
  266. day.setDate(day.getDate() - 7);
  267. }
  268. if (chartType === 'month') { // 月
  269. day = new Date(this.startDate3);
  270. day.setMonth(day.getMonth() - 1);
  271. }
  272. if (chartType === 'year') { // 年
  273. day = new Date(this.startDate4);
  274. day.setFullYear(day.getFullYear() - 1);
  275. }
  276. this.initDateRang(day,chartType);
  277. },
  278. /**下一个 */
  279. next(chartType) {
  280. let day;
  281. if (chartType === 'day') { // 日
  282. day = new Date(this.startDate1);
  283. day.setDate(day.getDate() + 1);
  284. }
  285. if(chartType === 'week'){ // 周
  286. day = new Date(this.startDate2);
  287. day.setDate(day.getDate() + 7);
  288. }
  289. if (chartType === 'month') { // 月
  290. day = new Date(this.startDate3);
  291. day.setMonth(day.getMonth() + 1);
  292. }
  293. if (chartType === 'year') { // 年
  294. day = new Date(this.startDate4);
  295. day.setFullYear(day.getFullYear() + 1);
  296. }
  297. this.initDateRang(day,chartType);
  298. },
  299. getStatisticsData(chartType) {
  300. const param = {
  301. 'chartType': chartType
  302. };
  303. if(chartType=='day'){
  304. param['startDate'] = this.startDate1;
  305. param['endDate'] = this.startDate1;
  306. }
  307. if(chartType=='week'){
  308. param['startDate'] = this.startDate2;
  309. param['endDate'] = this.endDate2;
  310. }
  311. if(chartType=='month'){
  312. param['startDate'] = this.startDate3;
  313. param['endDate'] = this.endDate3;
  314. }
  315. if(chartType=='year'){
  316. param['startDate'] = this.startDate4;
  317. param['endDate'] = this.endDate4;
  318. }
  319. if(this.adminId){ // 子组件,则拿传过来的参
  320. param['adminId'] = this.adminId;
  321. }else if ('admin' !== this.loginUser['username']) { //否则为主页,拿登录用户
  322. param['adminId'] = this.loginUser['id'];
  323. }
  324. if (this.equipmentId) {
  325. param['equipmentId'] = this.equipmentId;
  326. }
  327. return this.getStatistics(param)
  328. .then(data => {
  329. uni.stopPullDownRefresh();
  330. if(param['chartType']=='day'){
  331. canvaColumn1 = this.initChart('canvaColumn1',data);
  332. }
  333. if(param['chartType']=='week'){
  334. canvaColumn2 = this.initChart('canvaColumn2',data);
  335. }
  336. if(param['chartType']=='month'){
  337. canvaColumn3 = this.initChart('canvaColumn3',data);
  338. }
  339. if(param['chartType']=='year'){
  340. canvaColumn4 = this.initChart('canvaColumn4',data);
  341. }
  342. }
  343. , _ => {
  344. uni.stopPullDownRefresh();
  345. if(param['chartType']=='day'){
  346. canvaColumn1 = this.initChart('canvaColumn1',{categories:['暂无数据'],series:[{name: '销售个数',data:[0]}]});
  347. }
  348. if(param['chartType']=='week'){
  349. canvaColumn2 = this.initChart('canvaColumn2',{categories:['暂无数据'],series:[{name: '销售个数',data:[0]}]});
  350. }
  351. if(param['chartType']=='month'){
  352. canvaColumn3 = this.initChart('canvaColumn3',{categories:['暂无数据'],series:[{name: '销售个数',data:[0]}]});
  353. }
  354. if(param['chartType']=='year'){
  355. canvaColumn4 = this.initChart('canvaColumn4',{categories:['暂无数据'],series:[{name: '销售个数',data:[0]}]});
  356. }
  357. }
  358. );
  359. },
  360. initChart(canvasId, chartData){
  361. return new uCharts({
  362. $this: _self,
  363. canvasId: canvasId,
  364. enableScroll: true,
  365. type: 'column',
  366. legend: true,
  367. fontSize: 11,
  368. background: '#FFFFFF',//y轴颜色
  369. pixelRatio: 1,
  370. animation: true,
  371. categories: chartData.categories,
  372. series: chartData.series,
  373. xAxis: {
  374. type: 'grid',
  375. gridType: 'dash',
  376. itemCount: 5, //x轴单屏显示数据的数量,默认为5个
  377. scrollShow: true, //新增是否显示滚动条,默认false
  378. scrollAlign: 'left', //滚动条初始位置
  379. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF 滚动条颜色底色
  380. scrollColor: '#DEE7F7', //默认为 #A6A6A6 滚动条颜色
  381. // disableGrid:true,
  382. },
  383. yAxis: {
  384. //disabled:true
  385. },
  386. dataLabel: true,
  387. width: _self.cWidth * _self.pixelRatio,
  388. height: _self.cHeight * _self.pixelRatio,
  389. extra: {
  390. column: {
  391. // width: _self.cWidth*_self.pixelRatio*0.45/chartData.categories.length
  392. width: 30
  393. }
  394. }
  395. });
  396. },
  397. getMainStatisticsData(){
  398. const param = {};
  399. if(this.adminId){ // 子组件,则拿传过来的参
  400. param['adminId'] = this.adminId;
  401. }else if ('admin' !== this.loginUser['username']) { //否则为主页,拿登录用户
  402. param['adminId'] = this.loginUser['id'];
  403. }
  404. if (this.equipmentId) {
  405. param['equipmentId'] = this.equipmentId;
  406. }
  407. console.log('getMainStatisticsData:{}',param);
  408. var adminId = param.adminId;
  409. var equipmentId = this.equipmentId;
  410. var serverurl = this.serverurl;
  411. uni.request({
  412. url: serverurl+'/TEquipment/getMachineNum',
  413. data:{
  414. "adminId":adminId,
  415. "equipmentId":equipmentId
  416. },
  417. method:"POST",
  418. success: (res) => {
  419. var list = res.data.data;
  420. this.machineTotalNum = list[0];
  421. this.machineUseNum = list[1];
  422. }
  423. });
  424. return this.getMainStatistics(param)
  425. .then(data => {
  426. for (let bean of data) {
  427. if(bean['categorie']==='day'){
  428. this.dayTotalMoney=bean['salePrice'];
  429. this.dayTotalNum=bean['saleNum'];
  430. }
  431. if(bean['categorie']==='week'){
  432. this.weekTotalMoney=bean['salePrice'];
  433. this.weekTotalNum=bean['saleNum'];
  434. }
  435. if(bean['categorie']==='month'){
  436. this.monthTotalMoney=bean['salePrice'];
  437. this.monthTotalNum=bean['saleNum'];
  438. }
  439. if(bean['categorie']==='year'){
  440. this.yearTotalMoney=bean['salePrice'];
  441. this.yearTotalNum=bean['saleNum'];
  442. }
  443. }
  444. uni.stopPullDownRefresh();
  445. }
  446. , _ => void uni.stopPullDownRefresh());
  447. },
  448. touchLine1(e) {
  449. if(canvaColumn1){
  450. canvaColumn1.scrollStart(e);
  451. }
  452. },
  453. moveLine1(e) {
  454. if(canvaColumn1){
  455. canvaColumn1.scroll(e);
  456. }
  457. },
  458. touchEndLine1(e) {
  459. if(canvaColumn1){
  460. canvaColumn1.scrollEnd(e);
  461. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  462. canvaColumn1.showToolTip(e, {
  463. format: function(item, category) {
  464. return category + ' ' + item.name + ':' + item.data
  465. }
  466. });
  467. }
  468. },
  469. touchLine2(e) {
  470. if(canvaColumn2){
  471. canvaColumn2.scrollStart(e);
  472. }
  473. },
  474. moveLine2(e) {
  475. if(canvaColumn2){
  476. canvaColumn2.scroll(e);
  477. }
  478. },
  479. touchEndLine2(e) {
  480. if(canvaColumn2){
  481. canvaColumn2.scrollEnd(e);
  482. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  483. canvaColumn2.showToolTip(e, {
  484. format: function(item, category) {
  485. return category + ' ' + item.name + ':' + item.data
  486. }
  487. });
  488. }
  489. },
  490. touchLine3(e) {
  491. if(canvaColumn3){
  492. canvaColumn3.scrollStart(e);
  493. }
  494. },
  495. moveLine3(e) {
  496. if(canvaColumn3){
  497. canvaColumn3.scroll(e);
  498. }
  499. },
  500. touchEndLine3(e) {
  501. if(canvaColumn3){
  502. canvaColumn3.scrollEnd(e);
  503. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  504. canvaColumn3.showToolTip(e, {
  505. format: function(item, category) {
  506. return category + ' ' + item.name + ':' + item.data
  507. }
  508. });
  509. }
  510. },
  511. touchLine4(e) {
  512. if(canvaColumn4){
  513. canvaColumn4.scrollStart(e);
  514. }
  515. },
  516. moveLine4(e) {
  517. if(canvaColumn4){
  518. canvaColumn4.scroll(e);
  519. }
  520. },
  521. touchEndLine4(e) {
  522. if(canvaColumn4){
  523. canvaColumn4.scrollEnd(e);
  524. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  525. canvaColumn4.showToolTip(e, {
  526. format: function(item, category) {
  527. return category + ' ' + item.name + ':' + item.data
  528. }
  529. });
  530. }
  531. },
  532. }
  533. }
  534. </script>
  535. <style>
  536. page {
  537. /* background: #F2F2F2; */
  538. background:#FFFFFF;
  539. width: 750upx;
  540. overflow-x: hidden;
  541. }
  542. .head{
  543. display: flex;
  544. flex-direction: row;
  545. background:#206DC3;
  546. width: 750upx;
  547. height: 180upx;
  548. }
  549. .company{
  550. width: 48%;
  551. text-align:right;
  552. }
  553. .pname{
  554. display: flex;
  555. flex-direction: row;
  556. width: 40%;
  557. }
  558. .userFlagimg{
  559. padding-left: 10upx;
  560. padding-top: 10upx;
  561. width: 26upx;
  562. height: 28upx;
  563. }
  564. .wenzi{
  565. padding-right: 0upx;
  566. /* text-align:right; */
  567. white-space: nowrap;
  568. overflow: hidden;
  569. /* text-overflow: ellipsis; */
  570. }
  571. .ri{
  572. width: 690upx;
  573. height: 180upx;
  574. background:#FFFFFF;
  575. border-radius: 15upx;
  576. /* 上移 */
  577. transform: translateY(-90upx);
  578. text-align:center;
  579. margin: auto;
  580. display: flex;
  581. flex-direction: row;
  582. /* 阴影 */
  583. box-shadow:0upx -1upx 20upx #D3D3D3;
  584. /* box-shadow:0px 0px 10px 5px #aaa; */
  585. }
  586. .riShell{
  587. display: flex;
  588. flex-direction: row;
  589. margin: auto;
  590. }
  591. .riTitle{
  592. display: flex;
  593. flex-direction: column;
  594. margin: auto;
  595. }
  596. .riqi{
  597. display: flex;
  598. flex-direction: column;
  599. margin: auto;
  600. }
  601. .fourTitle{
  602. width: 690upx;
  603. height: 294upx;
  604. display: flex;
  605. flex-direction: row;
  606. flex-wrap:wrap;
  607. background:#FFFFFF;
  608. box-shadow:0upx 0upx 20upx #D3D3D3;
  609. margin: auto;
  610. border-radius: 15upx;
  611. transform: translateY(-60upx);
  612. }
  613. .four{
  614. display: flex;
  615. flex-direction: row;
  616. margin: auto;
  617. width: 48%;
  618. }
  619. .fourImg{
  620. width: 54upx;
  621. height: 54upx;
  622. }
  623. .qiun-padding {
  624. padding: 2%;
  625. width: 96%;
  626. }
  627. .qiun-wrap {
  628. display: flex;
  629. flex-wrap: wrap;
  630. }
  631. .qiun-rows {
  632. display: flex;
  633. flex-direction: row !important;
  634. }
  635. .qiun-columns {
  636. display: flex;
  637. flex-direction: column !important;
  638. }
  639. .qiun-common-mt {
  640. margin-top: 0upx;
  641. height: 200upx;
  642. }
  643. .qiun-bg-white {
  644. background: #FFFFFF;
  645. }
  646. .qiun-title-bar {
  647. width: 100%;
  648. /* padding: 10upx 2%; */
  649. flex-wrap: nowrap;
  650. border-radius: 15upx;
  651. }
  652. .qiun-title-dot-light {
  653. border-left: 30upx solid #0ea391;
  654. padding-top: 20upx;
  655. /* border-left: 20upx; */
  656. padding-left: 10upx;
  657. height: 85upx;
  658. font-family: "PingFang-SC-Bold";
  659. font-weight: bold;
  660. margin: auto;
  661. font-size: 32upx;
  662. color: #363D44;
  663. }
  664. .shijian{
  665. padding-top: 30upx;
  666. height: 80upx;
  667. width: 690upx;
  668. margin: auto;
  669. box-shadow:0upx 0upx 10upx #D3D3D3;
  670. }
  671. .qiun-charts {
  672. width: 690upx;
  673. height: 370upx;
  674. padding-top: 30upx;
  675. background-color: #FFFFFF;
  676. margin: auto;
  677. }
  678. .charts {
  679. width: 690upx;
  680. height: 370upx;
  681. background-color: #FFFFFF;
  682. margin: auto;
  683. }
  684. .preImg {
  685. position: absolute;left: 40upx; width: 27upx;height: 45upx;
  686. }
  687. .nextImg {
  688. position: absolute;right: 40upx; width: 27upx;height: 45upx;
  689. }
  690. </style>