mainStatistics.vue 21 KB

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