LvShanXiang.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <template>
  2. <div class="LvShanXiang">
  3. <hy-header></hy-header>
  4. <div class="warp">
  5. <div class="left">
  6. <div class="left1">
  7. <E-Left1 style="height: 100%"></E-Left1>
  8. </div>
  9. <div class="left2">
  10. <E-Left2 style="height: 100%"></E-Left2>
  11. </div>
  12. <div class="left3">
  13. <E-Left3 style="height: 100%"></E-Left3>
  14. </div>
  15. </div>
  16. <div class="middle">
  17. <section class="section">
  18. <div class="warp">
  19. <div class="item">
  20. <div>
  21. <span class="title">当月存栏量:</span>
  22. <span class="num">10534</span>
  23. <span class="unit">只</span>
  24. </div>
  25. </div>
  26. <div class="item">
  27. <div>
  28. <span class="title">当月出栏量:</span>
  29. <span class="num">1534</span>
  30. <span class="unit">只</span>
  31. </div>
  32. </div>
  33. <div class="item">
  34. <div>
  35. <span class="title">月种羊出栏:</span>
  36. <span class="num">2380</span>
  37. <span class="unit">只</span>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="warp">
  42. <div class="item">
  43. <div>
  44. <span class="title">当前肉羊价:</span>
  45. <span class="num">58.5</span>
  46. <span class="unit">元/kg</span>
  47. </div>
  48. </div>
  49. <div class="item">
  50. <div>
  51. <span class="title">当前种羊价:</span>
  52. <span class="num">68.5</span>
  53. <span class="unit">元/kg</span>
  54. </div>
  55. </div>
  56. <div class="item">
  57. <div>
  58. <span class="title">当前羊粪价:</span>
  59. <span class="num">0.8</span>
  60. <span class="unit">元/kg</span>
  61. </div>
  62. </div>
  63. </div>
  64. </section>
  65. <footer class="footer">
  66. <img src="../../assets/u922.png" />
  67. <div class="point p1">
  68. <i class="warp">
  69. <i class="middle">
  70. <i class="center"></i>
  71. </i>
  72. </i>
  73. </div>
  74. <div class="point p2">
  75. <i class="warp">
  76. <i class="middle">
  77. <i class="center"></i>
  78. </i>
  79. </i>
  80. </div>
  81. <div class="point p3">
  82. <i class="warp">
  83. <i class="middle">
  84. <i class="center"></i>
  85. </i>
  86. </i>
  87. </div>
  88. </footer>
  89. </div>
  90. <div class="right">
  91. <div class="right1">
  92. <E-Right1 style="height: 100%"></E-Right1>
  93. </div>
  94. <div class="right2">
  95. <E-Right2 style="height: 100%"></E-Right2>
  96. </div>
  97. <div class="right3">
  98. <E-Right3 style="height: 100%"></E-Right3>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </template>
  104. <script>
  105. import HyHeader from "@/components/HyHeader";
  106. import ELeft1 from "./charts/ELeft1";
  107. import ELeft2 from "./charts/ELeft2";
  108. import ELeft3 from "./charts/ELeft3";
  109. import ERight1 from "./charts/ERight1";
  110. import ERight2 from "./charts/ERight2";
  111. import ERight3 from "./charts/ERight3";
  112. export default {
  113. name: "LvShanXiang",
  114. data() {
  115. return {};
  116. },
  117. components: {
  118. HyHeader,
  119. ELeft1,
  120. ELeft2,
  121. ELeft3,
  122. ERight1,
  123. ERight2,
  124. ERight3,
  125. },
  126. created() {},
  127. methods: {},
  128. };
  129. </script>
  130. <style lang="scss" scope>
  131. .LvShanXiang {
  132. background-image: url(../../assets/bg.png);
  133. background-size: 100% 100%;
  134. background-repeat: no-repeat;
  135. box-sizing: border-box;
  136. // border: 1px solid #f52424;
  137. height: 100%;
  138. display: flex;
  139. flex-direction: column;
  140. > .warp {
  141. // border: 1px solid #ffee00;
  142. height: 100%;
  143. display: flex;
  144. .left {
  145. // border: 1px solid #2b65e0;
  146. width: 27%;
  147. display: flex;
  148. flex-direction: column;
  149. > .left1 {
  150. // border: 1px solid #8bdd77;
  151. height: 33.33%;
  152. }
  153. > .left2 {
  154. // border: 1px solid #ddad77;
  155. height: 33.33%;
  156. }
  157. > .left3 {
  158. // border: 1px solid #8bdd77;
  159. height: 33.33%;
  160. }
  161. }
  162. .middle {
  163. width: 46%;
  164. display: flex;
  165. flex-direction: column;
  166. align-items: center;
  167. > .section {
  168. width: 92%;
  169. .warp {
  170. display: flex;
  171. .item {
  172. border-radius: 20px;
  173. height: 90px;
  174. border: 4px solid #53bafd;
  175. box-sizing: border-box;
  176. flex: 1 0 20%;
  177. margin: 20px 60px;
  178. padding: 10px 10px 10px 40px;
  179. font-size: 35px;
  180. font-weight: 600;
  181. display: flex;
  182. align-items: center;
  183. .title {
  184. color: #fff;
  185. }
  186. .num {
  187. color: #53bafd;
  188. font-size: 1.2em;
  189. }
  190. .unit {
  191. color: #53bafd;
  192. font-size: 20px;
  193. margin-left: 15px;
  194. }
  195. }
  196. }
  197. }
  198. > .footer {
  199. // border: 1px solid #8877dd;
  200. width: 92%;
  201. flex-grow: 1;
  202. margin: 80px 0;
  203. display: flex;
  204. justify-content: center;
  205. align-items: center;
  206. position: relative;
  207. > img {
  208. height: 80%;
  209. }
  210. .point {
  211. position: absolute;
  212. > .warp {
  213. flex-basis: 1;
  214. display: flex;
  215. justify-content: center;
  216. align-items: center;
  217. border: 6px solid #2793d1;
  218. border-radius: 50%;
  219. box-sizing: border-box;
  220. animation: animation_warp 2s 0.2s infinite alternate;
  221. .middle {
  222. display: flex;
  223. justify-content: center;
  224. align-items: center;
  225. position: absolute;
  226. box-sizing: border-box;
  227. border: 6px solid #2793d1;
  228. border-radius: 50%;
  229. animation: animation_middle 2s 0.2s infinite
  230. alternate;
  231. .center {
  232. position: absolute;
  233. display: inline-block;
  234. width: 20px;
  235. height: 20px;
  236. box-sizing: border-box;
  237. background-color: #2793d1;
  238. border-radius: 50%;
  239. animation: animation_center 2s 0.2s infinite;
  240. }
  241. }
  242. }
  243. @keyframes animation_warp {
  244. 0% {
  245. width: 140px;
  246. height: 140px;
  247. }
  248. 100% {
  249. width: 50px;
  250. height: 50px;
  251. transform: translate(45px, 45px);
  252. border: 6px solid transparent;
  253. }
  254. }
  255. @keyframes animation_middle {
  256. 0% {
  257. width: 50px;
  258. height: 50px;
  259. border: 6px solid transparent;
  260. }
  261. 100% {
  262. width: 140px;
  263. height: 140px;
  264. }
  265. }
  266. @keyframes animation_center {
  267. 0% {
  268. background-color: transparent;
  269. }
  270. 100% {
  271. background-color: #2793d1;
  272. }
  273. }
  274. }
  275. > .p1 {
  276. left: 50%;
  277. top: 25%;
  278. }
  279. > .p2 {
  280. left: 60%;
  281. top: 45%;
  282. }
  283. > .p3 {
  284. left: 35%;
  285. top: 60%;
  286. }
  287. }
  288. }
  289. .right {
  290. // border: 1px solid #2b65e0;
  291. width: 27%;
  292. > .right1 {
  293. // border: 1px solid #8bdd77;
  294. height: 33.33%;
  295. }
  296. > .right2 {
  297. // border: 1px solid #ddad77;
  298. height: 33.33%;
  299. }
  300. > .right3 {
  301. // border: 1px solid #8bdd77;
  302. height: 33.33%;
  303. }
  304. }
  305. }
  306. }
  307. </style>