report.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987
  1. <template>
  2. <view class="content">
  3. <view class="content1">
  4. <u-navbar back-text="" title="数据统计" :border-bottom='false' :background="background" back-icon-color='white'
  5. title-color='white'>
  6. </u-navbar>
  7. <view class="row2">
  8. <view class="left" @click="dateClick">
  9. {{nowDate}}
  10. <u-icon name="arrow-down-fill" size="16" class="icon"></u-icon>
  11. </view>
  12. <view class="right">
  13. <view :class="typeSelect==index?'type-bgc':''" class="type-style" v-for="(item,index) in moneyList"
  14. @click="typeClick(index)">
  15. {{item.name}}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="row3">
  20. <view class="title">
  21. 总收入
  22. </view>
  23. <view class="number">
  24. 核算中
  25. </view>
  26. </view>
  27. </view>
  28. <view class="move-content">
  29. <view class="content2 content-wrap">
  30. <view class="row1">
  31. <view class="left title">
  32. 合同完成进度
  33. </view>
  34. <view class="right">
  35. <view class="item" :class="contractSelect=='0'?'item-Select':''" @click="htClick(0)">采购</view>
  36. <view class="item" :class="contractSelect=='1'?'item-Select':''" @click="htClick(1)">销售</view>
  37. </view>
  38. </view>
  39. <u-line color="#EEEEEE" class="u-line" />
  40. <view class="row2">
  41. <view class="top">
  42. 合同总量
  43. </view>
  44. <view class="bottom">
  45. <view class="left">
  46. <image src="../../static/img/report/hetongzongliang.png" mode=""></image>
  47. </view>
  48. <view class="right" v-if="contractSelect=='0'">
  49. <view class="top">
  50. <view class="left">
  51. 已完成量
  52. <view class="number">{{dataObj3.percentage}}</view>
  53. </view>
  54. <view class="right-number">{{dataObj3.total}}吨</view>
  55. </view>
  56. <view class="bottom">
  57. <u-line-progress height="12" active-color="#22C572" :show-percent="false"
  58. :striped="true" :percent="dataObj3.percent" :striped-active="true">
  59. </u-line-progress>
  60. </view>
  61. </view>
  62. <view class="right" v-if="contractSelect=='1'">
  63. <view class="top">
  64. <view class="left">
  65. 已完成量
  66. <view class="number">{{dataObj0.percentage}}</view>
  67. </view>
  68. <view class="right-number">{{dataObj0.total}}吨</view>
  69. </view>
  70. <view class="bottom">
  71. <u-line-progress height="12" active-color="#22C572" :show-percent="false"
  72. :striped="true" :percent="dataObj0.percent" :striped-active="true">
  73. </u-line-progress>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="row3">
  79. <view class="top">
  80. 合同总额
  81. </view>
  82. <view class="bottom">
  83. <view class="left">
  84. <image src="../../static/img/report/kaipiao.png" mode=""></image>
  85. </view>
  86. <view class="right" v-if="contractSelect=='0'">
  87. <view class="top">
  88. <view class="left">
  89. 已开票
  90. <view class="number">{{dataObj4.percentage}}</view>
  91. </view>
  92. <view class="right-number">¥{{dataObj4.total}}</view>
  93. </view>
  94. <view class="bottom">
  95. <u-line-progress height="12" active-color="#FD714F" :show-percent="false"
  96. :striped="true" :percent="dataObj4.percent" :striped-active="true">
  97. </u-line-progress>
  98. </view>
  99. </view>
  100. <view class="right" v-if="contractSelect=='1'">
  101. <view class="top">
  102. <view class="left">
  103. 已开票
  104. <view class="number">{{dataObj1.percentage}}</view>
  105. </view>
  106. <view class="right-number">¥{{dataObj1.total}}</view>
  107. </view>
  108. <view class="bottom">
  109. <u-line-progress height="12" active-color="#FD714F" :show-percent="false"
  110. :striped="true" :percent="dataObj1.percent" :striped-active="true">
  111. </u-line-progress>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="row4">
  117. <view class="top">
  118. 合同总额
  119. </view>
  120. <view class="bottom">
  121. <view class="left">
  122. <image src="../../static/img/report/hetongzongliang.png" mode=""></image>
  123. </view>
  124. <view class="right" v-if="contractSelect=='0'">
  125. <view class="top">
  126. <view class="left">
  127. 已结算
  128. <view class="number">{{dataObj5.percentage}}</view>
  129. </view>
  130. <view class="right-number">¥{{dataObj5.total}}</view>
  131. </view>
  132. <view class="bottom">
  133. <u-line-progress height="12" active-color="#5C75DF" :show-percent="false"
  134. :striped="true" :percent="dataObj5.percent" :striped-active="true">
  135. </u-line-progress>
  136. </view>
  137. </view>
  138. <view class="right" v-if="contractSelect=='1'">
  139. <view class="top">
  140. <view class="left">
  141. 已结算
  142. <view class="number">{{dataObj2.percentage}}</view>
  143. </view>
  144. <view class="right-number">¥{{dataObj5.total}}</view>
  145. </view>
  146. <view class="bottom">
  147. <u-line-progress height="12" active-color="#5C75DF" :show-percent="false"
  148. :striped="true" :percent="dataObj5.percent" :striped-active="true">
  149. </u-line-progress>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="content3 content-wrap">
  156. <view class="title">粮食品种占比</view>
  157. <u-line color="#EEEEEE" class="u-line" />
  158. <qiun-data-charts type="line" class='line-chart' :chartData="chartData" :opts='zringoptions'
  159. background="none" :ontouch="true" />
  160. </view>
  161. <view class="content4 content-wrap">
  162. <view class="title">在途信息统计表</view>
  163. <u-line color="#EEEEEE" class="u-line" />
  164. <qiun-data-charts type="column" class='line-chart' :chartData="carChartData" :opts='ringoptions'
  165. background="none" />
  166. </view>
  167. <view class="content5 content-wrap">
  168. <view class="title">库存成本</view>
  169. <u-line color="#EEEEEE" class="u-line" />
  170. <view class="row1">
  171. <view class="left">
  172. <image src="../../static/img/report/kuncunliang.png" mode=""></image>
  173. <view class="text">
  174. 总库存量(吨)
  175. </view>
  176. </view>
  177. <view class="right">
  178. {{inventoryCost}}
  179. </view>
  180. </view>
  181. <view class="row2">
  182. <view class="left">
  183. <image src="../../static/img/report/jiazhi.png" mode=""></image>
  184. <view class="text">
  185. 库存价值(元)
  186. </view>
  187. </view>
  188. <view class="right">
  189. {{inventoryValue}}
  190. </view>
  191. </view>
  192. </view>
  193. <view class="content6 content-wrap">
  194. <view class="title">库点流向分布</view>
  195. <u-line color="#EEEEEE" class="u-line" />
  196. <iframe class='map' :src='url'></iframe>
  197. </view>
  198. <view class="content7">
  199. <view class="row1" v-for="(item,index) in ztList">
  200. <view class="zt">
  201. <view class="point"></view>在途
  202. </view>
  203. <view>{{item.startName}}</view>
  204. <img src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/jiantou.png" alt="">
  205. <view class="">
  206. {{item.endName}}
  207. </view>
  208. </view>
  209. </view>
  210. </view>
  211. <u-select v-model="showDate" mode="mutil-column" confirm-color='#22C572' :list="dateList" @confirm="confirm">
  212. </u-select>
  213. </view>
  214. </template>
  215. <script>
  216. export default {
  217. data() {
  218. return {
  219. inventoryCost: '',
  220. inventoryValue: '',
  221. contractSelect: '0',
  222. url: '',
  223. nowDate: '2021年全年',
  224. background: {
  225. backgroundColor: '#2E303A',
  226. // 导航栏背景图
  227. // background: 'url(https://cdn.uviewui.com/uview/swiper/1.jpg) no-repeat',
  228. // 还可以设置背景图size属性
  229. // backgroundSize: 'cover',
  230. // 渐变色
  231. // backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))'
  232. },
  233. typeSelect: '0',
  234. contractSelect: '0',
  235. showDate: false,
  236. chartData: {},
  237. carChartData: {},
  238. carRingoptions: {},
  239. ringoptions: {},
  240. zringoptions: {},
  241. moneyList: [{
  242. name: '收入'
  243. }, {
  244. name: '支出'
  245. }, {
  246. name: '毛利润'
  247. }],
  248. dataList: [],
  249. dataObj0: {
  250. percentage: '',
  251. total: '',
  252. percentage: ''
  253. },
  254. dataObj1: {
  255. percentage: '',
  256. total: '',
  257. percentage: ''
  258. },
  259. dataObj2: {
  260. percentage: '',
  261. total: '',
  262. percentage: ''
  263. },
  264. dataObj3: {
  265. percentage: '',
  266. total: '',
  267. percentage: ''
  268. },
  269. dataObj4: {
  270. percentage: '',
  271. total: '',
  272. percentage: ''
  273. },
  274. dataObj5: {
  275. percentage: '',
  276. total: '',
  277. percentage: ''
  278. },
  279. dateList: [
  280. [{
  281. value: '1',
  282. label: '2020年'
  283. },
  284. {
  285. value: '2',
  286. label: '2021年'
  287. }
  288. ],
  289. [{
  290. value: '0',
  291. label: '全年'
  292. },
  293. {
  294. value: '1',
  295. label: '1月'
  296. },
  297. {
  298. value: '2',
  299. label: '2月'
  300. },
  301. {
  302. value: '3',
  303. label: '3月'
  304. },
  305. {
  306. value: '4',
  307. label: '4月'
  308. },
  309. {
  310. value: '5',
  311. label: '5月'
  312. },
  313. {
  314. value: '6',
  315. label: '6月'
  316. },
  317. {
  318. value: '7',
  319. label: '7月'
  320. },
  321. {
  322. value: '8',
  323. label: '8月'
  324. },
  325. {
  326. value: '9',
  327. label: '9月'
  328. },
  329. {
  330. value: '10',
  331. label: '10月'
  332. },
  333. {
  334. value: '11',
  335. label: '11月'
  336. },
  337. {
  338. value: '12',
  339. label: '12月'
  340. },
  341. ]
  342. ],
  343. ztList: []
  344. }
  345. },
  346. onLoad: function(option) {
  347. uni.showLoading({
  348. title:"数据加载中...",
  349. mask:true
  350. })
  351. this.url = "https://liangxin.zthymaoyi.com/map.html?id=" + uni.getStorageSync('pcUserInfo').compId
  352. this.init()
  353. },
  354. methods: {
  355. init() {
  356. this.$api.doRequest('get', '/biInfoController/selectBiInfo?compId=' + uni.getStorageSync('pcUserInfo')
  357. .compId).then(res => {
  358. console.log(res)
  359. uni.hideLoading()
  360. let _list = []
  361. this.dataList = res.data.data
  362. for (let i = 0; i < res.data.data.length; i++) {
  363. let _obj = {}
  364. let _color = []
  365. let _title = ""
  366. let _subtitle = ''
  367. let _name = ''
  368. let _count = ''
  369. let _data = []
  370. if (i < 6) {debugger
  371. res.data.data[i].biViewInfoList[0].percent = Number(res.data.data[i].biViewInfoList[0]
  372. .percentage.substring(0, res.data.data[i].biViewInfoList[0].percentage.length -
  373. 1))
  374. switch (i) {
  375. case 0:
  376. this.dataObj0 = {
  377. percentage: res.data.data[i].biViewInfoList[0].percentage,
  378. total: Number(res.data.data[i].total),
  379. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  380. }
  381. break;
  382. case 1:
  383. this.dataObj1 = {
  384. percentage: res.data.data[i].biViewInfoList[0].percentage,
  385. total: Number(res.data.data[i].total),
  386. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  387. }
  388. break;
  389. case 2:
  390. this.dataObj2 = {
  391. percentage: res.data.data[i].biViewInfoList[0].percentage,
  392. total: Number(res.data.data[i].total),
  393. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  394. }
  395. break;
  396. case 3:
  397. this.dataObj3 = {
  398. percentage: res.data.data[i].biViewInfoList[0].percentage,
  399. total: Number(res.data.data[i].total),
  400. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  401. }
  402. break;
  403. case 4:
  404. this.dataObj4 = {
  405. percentage: res.data.data[i].biViewInfoList[0].percentage,
  406. total: Number(res.data.data[i].total),
  407. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  408. }
  409. break;
  410. case 5:
  411. this.dataObj5 = {
  412. percentage: res.data.data[i].biViewInfoList[0].percentage,
  413. total: Number(res.data.data[i].total),
  414. percent: Number(res.data.data[i].biViewInfoList[0].percent)
  415. }
  416. break;
  417. }
  418. } else if (i == 6) {
  419. this.carCount1 = res.data.data[i].biViewInfoList[0].count
  420. this.carCount2 = res.data.data[i].biViewInfoList[1].count
  421. this.carCount3 = res.data.data[i].biViewInfoList[2].count
  422. let _x = []
  423. let _y = []
  424. for (let k = 0; k < res.data.data[i].biViewInfoList.length; k++) {
  425. _x.push(res.data.data[i].biViewInfoList[k].name)
  426. _y.push(Number(res.data.data[i].biViewInfoList[k].count))
  427. }
  428. this.carChartData = {
  429. categories: _x,
  430. series: [{
  431. "name": '车辆',
  432. "data": _y
  433. }]
  434. }
  435. this.ringoptions = {
  436. "type": "column",
  437. "canvasId": "",
  438. "canvas2d": false,
  439. "background": "none",
  440. "animation": true,
  441. "timing": "easeOut",
  442. "duration": 1000,
  443. "color": [
  444. "#22C572"
  445. ],
  446. "padding": [
  447. 15,
  448. 15,
  449. 0,
  450. 5
  451. ],
  452. "rotate": false,
  453. "errorReload": true,
  454. "fontSize": 13,
  455. "fontColor": "#666666",
  456. "enableScroll": false,
  457. "touchMoveLimit": 60,
  458. "enableMarkLine": false,
  459. "dataLabel": true,
  460. "dataPointShape": true,
  461. "dataPointShapeType": "solid",
  462. "tapLegend": true,
  463. "xAxis": {
  464. "disabled": false,
  465. "axisLine": false,
  466. "axisLineColor": "#CCCCCC",
  467. "calibration": false,
  468. "fontColor": "#666666",
  469. "fontSize": 13,
  470. "rotateLabel": false,
  471. "itemCount": 5,
  472. "boundaryGap": "center",
  473. "disableGrid": true,
  474. "gridColor": "#CCCCCC",
  475. "gridType": "solid",
  476. "dashLength": 4,
  477. "gridEval": 1,
  478. "scrollShow": false,
  479. "scrollAlign": "left",
  480. "scrollColor": "#A6A6A6",
  481. "scrollBackgroundColor": "#EFEBEF",
  482. "format": ""
  483. },
  484. "yAxis": {
  485. "disabled": true,
  486. "disableGrid": true,
  487. "splitNumber": 5,
  488. "gridType": "solid",
  489. "dashLength": 8,
  490. "gridColor": "#CCCCCC",
  491. "padding": 10,
  492. "showTitle": false,
  493. "data": []
  494. },
  495. "legend": {
  496. "show": false,
  497. "position": "bottom",
  498. "float": "center",
  499. "padding": 5,
  500. "margin": 5,
  501. "backgroundColor": "rgba(0,0,0,0)",
  502. "borderColor": "rgba(0,0,0,0)",
  503. "borderWidth": 0,
  504. "fontSize": 13,
  505. "fontColor": "#666666",
  506. "lineHeight": 11,
  507. "hiddenColor": "#CECECE",
  508. "itemGap": 10
  509. },
  510. "extra": {
  511. "column": {
  512. "type": "group",
  513. "width": 30,
  514. "seriesGap": 2,
  515. "categoryGap": 3,
  516. "barBorderCircle": true,
  517. "linearType": "none",
  518. "linearOpacity": 1,
  519. "colorStop": 0,
  520. "meterBorder": 1,
  521. "meterFillColor": "#FFFFFF",
  522. "activeBgColor": "#000000",
  523. "activeBgOpacity": 0.08,
  524. "meterBorde": 1
  525. },
  526. "tooltip": {
  527. "showBox": true,
  528. "showArrow": true,
  529. "showCategory": false,
  530. "borderWidth": 0,
  531. "borderRadius": 0,
  532. "borderColor": "#000000",
  533. "borderOpacity": 0.7,
  534. "bgColor": "#000000",
  535. "bgOpacity": 0.7,
  536. "gridType": "solid",
  537. "dashLength": 4,
  538. "gridColor": "#CCCCCC",
  539. "fontColor": "#FFFFFF",
  540. "splitLine": true,
  541. "horizentalLine": false,
  542. "xAxisLabel": false,
  543. "yAxisLabel": false,
  544. "labelBgColor": "#FFFFFF",
  545. "labelBgOpacity": 0.7,
  546. "labelFontColor": "#666666"
  547. },
  548. "markLine": {
  549. "type": "solid",
  550. "dashLength": 4,
  551. "data": []
  552. }
  553. }
  554. }
  555. } else if (i == 7) {
  556. this.inventoryCost = Number(res.data.data[i].biViewInfoList[0].count)
  557. this.inventoryValue = Number(res.data.data[i].biViewInfoList[1].count)
  558. } else if (i == 8) {
  559. let _x = []
  560. let _y = []
  561. for (let k = 0; k < res.data.data[i].biViewInfoList.length; k++) {
  562. _x.push(res.data.data[i].biViewInfoList[k].name)
  563. _y.push(Number(res.data.data[i].biViewInfoList[k].count))
  564. }
  565. this.chartData = {
  566. categories: _x,
  567. series: [{
  568. "name": '储量',
  569. "data": _y
  570. }]
  571. }
  572. this.zringoptions = {
  573. "type": "line",
  574. "canvasId": "",
  575. "canvas2d": false,
  576. "background": "none",
  577. "animation": true,
  578. "timing": "easeOut",
  579. "duration": 1000,
  580. "color": [
  581. "#91CB74",
  582. ],
  583. "padding": [
  584. 15,
  585. 10,
  586. 0,
  587. 15
  588. ],
  589. "rotate": false,
  590. "errorReload": true,
  591. "fontSize": 13,
  592. "fontColor": "#666666",
  593. "enableScroll": true,
  594. "touchMoveLimit": 60,
  595. "enableMarkLine": true,
  596. "dataLabel": true,
  597. "dataPointShape": true,
  598. "dataPointShapeType": "hollow",
  599. "tapLegend": true,
  600. "xAxis": {
  601. "disabled": false,
  602. "axisLine": false,
  603. "axisLineColor": "#CCCCCC",
  604. "calibration": false,
  605. "fontColor": "#666666",
  606. "fontSize": 13,
  607. "rotateLabel": false,
  608. "itemCount": 4,
  609. "boundaryGap": "center",
  610. "disableGrid": false,
  611. "gridColor": "#CCCCCC",
  612. "gridType": "dash",
  613. "dashLength": 4,
  614. "gridEval": 1,
  615. "scrollShow": false,
  616. "scrollAlign": "left",
  617. "scrollColor": "#A6A6A6",
  618. "scrollBackgroundColor": "#EFEBEF",
  619. "format": ""
  620. },
  621. "yAxis": {
  622. "disabled": true,
  623. "disableGrid": true,
  624. "splitNumber": 5,
  625. "gridType": "dash",
  626. "dashLength": 2,
  627. "gridColor": "#CCCCCC",
  628. "padding": 10,
  629. "showTitle": false,
  630. "data": []
  631. },
  632. "legend": {
  633. "show": false,
  634. "position": "bottom",
  635. "float": "center",
  636. "padding": 5,
  637. "margin": 5,
  638. "backgroundColor": "rgba(0,0,0,0)",
  639. "borderColor": "rgba(0,0,0,0)",
  640. "borderWidth": 0,
  641. "fontSize": 13,
  642. "fontColor": "#666666",
  643. "lineHeight": 11,
  644. "hiddenColor": "#CECECE",
  645. "itemGap": 10
  646. },
  647. "extra": {
  648. "line": {
  649. "type": "straight",
  650. "width": 2
  651. },
  652. "tooltip": {
  653. "showBox": true,
  654. "showArrow": true,
  655. "showCategory": false,
  656. "borderWidth": 0,
  657. "borderRadius": 0,
  658. "borderColor": "#000000",
  659. "borderOpacity": 0.7,
  660. "bgColor": "#000000",
  661. "bgOpacity": 0.7,
  662. "gridType": "dash",
  663. "dashLength": 4,
  664. "gridColor": "#22C572",
  665. "fontColor": "#FFFFFF",
  666. "splitLine": true,
  667. "horizentalLine": false,
  668. "xAxisLabel": false,
  669. "yAxisLabel": false,
  670. "labelBgColor": "#FFFFFF",
  671. "labelBgOpacity": 0.7,
  672. "labelFontColor": "#666666"
  673. },
  674. "markLine": {
  675. "type": "solid",
  676. "dashLength": 4,
  677. "data": []
  678. }
  679. }
  680. }
  681. } else if (i == 9) {
  682. for (let k = 0; k < res.data.data[i].biViewInfoList.length; k++) {
  683. var obj = res.data.data[i].biViewInfoList[k]
  684. obj.startName = obj.name.split('→')[0].substring(0, 5) + '...'
  685. obj.endName = obj.name.split('→')[1]
  686. }
  687. this.ztList = res.data.data[i].biViewInfoList
  688. // this.prizeScroll();
  689. }
  690. }
  691. this.chartlist = _list
  692. uni.hideLoading()
  693. })
  694. },
  695. getHeight(Class) {
  696. let query = uni.createSelectorQuery().in(this);
  697. query
  698. .selectAll(Class)
  699. .boundingClientRect(data => {
  700. this.height = data[0].height;
  701. })
  702. .exec();
  703. },
  704. prizeScroll() {
  705. let speed = 50;
  706. let animation = uni.createAnimation({
  707. duration: this.getHeight('.content7') / speed,
  708. timingFunction: 'linear',
  709. delay: 0
  710. });
  711. // this.animation = animation;
  712. setInterval(() => {
  713. if (this.scrollHeight >= this.height) {
  714. animation.translateY(0).step();
  715. this.scrollHeight = 0;
  716. this.animationData = animation.export();
  717. } else {
  718. this.scrollHeight = this.scrollHeight + 1;
  719. animation.translateY(-this.scrollHeight).step();
  720. this.animationData = animation.export();
  721. }
  722. }, speed);
  723. },
  724. confirm(e) {
  725. console.log(e)
  726. },
  727. dateClick() {
  728. this.showDate = true
  729. },
  730. typeClick(index) {
  731. this.typeSelect = index
  732. console.log(index)
  733. },
  734. htClick(index) {
  735. // this.itemSelect = index
  736. this.contractSelect = index
  737. }
  738. }
  739. }
  740. </script>
  741. <style scoped lang="scss">
  742. .title {
  743. font-size: 32rpx;
  744. font-weight: 400;
  745. color: #343434;
  746. }
  747. .content-wrap {
  748. background: white;
  749. margin: 0 20rpx;
  750. border-radius: 20rpx;
  751. padding: 20rpx;
  752. }
  753. .u-line {
  754. margin: 20rpx 0 !important;
  755. }
  756. .line-chart {
  757. height: 200px;
  758. }
  759. .content1 {
  760. background: #2E303A;
  761. padding: 0 20rpx 180rpx 20rpx;
  762. .row2 {
  763. display: flex;
  764. justify-content: space-between;
  765. color: white;
  766. font-size: 32rpx;
  767. align-items: center;
  768. color: #FFFFFF;
  769. .icon {
  770. margin: 0 10rpx;
  771. }
  772. .right {
  773. display: flex;
  774. font-size: 26rpx;
  775. .type-style {
  776. margin-left: 38rpx;
  777. padding: 6rpx 16rpx;
  778. border-radius: 10rpx;
  779. color: #A6A6A6;
  780. }
  781. .type-bgc {
  782. background: rgba(255, 255, 255, 0.3);
  783. color: white;
  784. }
  785. }
  786. }
  787. .row3 {
  788. .title {
  789. font-size: 26rpx;
  790. font-weight: 400;
  791. color: #C5C5C5;
  792. margin: 35rpx 0 20rpx 0;
  793. }
  794. .number {
  795. font-size: 32rpx;
  796. font-weight: 400;
  797. color: #E2C4A1;
  798. }
  799. }
  800. }
  801. .move-content {
  802. position: relative;
  803. top: -136rpx;
  804. }
  805. .content2 {
  806. .row1 {
  807. display: flex;
  808. justify-content: space-between;
  809. .left {}
  810. .right {
  811. display: flex;
  812. .item {
  813. background: #F1F1F1;
  814. border-radius: 30px;
  815. margin-left: 20rpx;
  816. font-size: 2rpx;
  817. color: #333333;
  818. padding: 13rpx 27rpx;
  819. }
  820. .item-Select {
  821. background-color: black;
  822. color: white;
  823. }
  824. }
  825. }
  826. .row2,
  827. .row3,
  828. .row4 {
  829. .top {
  830. font-size: 26rpx;
  831. color: #929292;
  832. margin: 0;
  833. }
  834. .bottom {
  835. display: flex;
  836. align-items: center;
  837. margin: 10rpx;
  838. .left {
  839. margin-left: 20rpx;
  840. image {
  841. width: 45rpx;
  842. height: 45rpx;
  843. }
  844. }
  845. .right {
  846. width: 100%;
  847. padding-left: 20rpx;
  848. .top {
  849. display: flex;
  850. justify-content: space-between;
  851. width: 100%;
  852. margin-top: 10px;
  853. .left,
  854. .right-number {
  855. display: flex;
  856. align-items: center;
  857. font-size: 26rpx;
  858. color: #343434;
  859. .number {
  860. font-size: 26rpx;
  861. font-weight: 400;
  862. color: #929292;
  863. margin-left: 10rpx;
  864. }
  865. }
  866. }
  867. .bottom {
  868. margin: 30rpx 0 30rpx 20rpx;
  869. }
  870. }
  871. }
  872. }
  873. }
  874. .content3,
  875. .content4,
  876. .content5,
  877. .content6 {
  878. margin-top: 20rpx;
  879. }
  880. .content5 {
  881. .row1,
  882. .row2 {
  883. display: flex;
  884. justify-content: space-between;
  885. align-items: center;
  886. margin: 40rpx 0;
  887. .left {
  888. display: flex;
  889. align-items: center;
  890. .text {
  891. font-size: 28rpx;
  892. font-weight: 400;
  893. color: #707575;
  894. margin-left: 20rpx;
  895. }
  896. }
  897. .right {
  898. font-size: 34rpx;
  899. font-weight: 500;
  900. color: #333333;
  901. }
  902. image {
  903. width: 54rpx;
  904. height: 54rpx;
  905. }
  906. }
  907. }
  908. .content6 {
  909. .map {
  910. border: 0;
  911. width: 100%;
  912. height: 500rpx;
  913. }
  914. }
  915. .content7 {
  916. position: relative;
  917. .row1 {
  918. background: #FAFAFA;
  919. display: flex;
  920. align-items: center;
  921. justify-content: space-between;
  922. margin: 20rpx;
  923. padding: 20rpx;
  924. color: #707575;
  925. .point {
  926. width: 15rpx;
  927. height: 15rpx;
  928. border-radius: 50%;
  929. background: #22C572;
  930. margin-right: 10px;
  931. }
  932. .zt {
  933. display: flex;
  934. align-items: center;
  935. }
  936. }
  937. }
  938. </style>