LvShanXiang.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <template>
  2. <div class="LvShanXiang">
  3. <hy-header :navTag="0"></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">33</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">53</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. document.title = "吕山牧场";
  128. },
  129. methods: {},
  130. };
  131. </script>
  132. <style lang="scss" scope>
  133. .LvShanXiang {
  134. background-image: url(../../assets/bg.png);
  135. background-size: 100% 100%;
  136. background-repeat: no-repeat;
  137. box-sizing: border-box;
  138. // border: 1px solid #f52424;
  139. height: 100%;
  140. display: flex;
  141. flex-direction: column;
  142. > .warp {
  143. // border: 1px solid #ffee00;
  144. height: 100%;
  145. display: flex;
  146. .left {
  147. // border: 1px solid #2b65e0;
  148. width: 20%;
  149. display: flex;
  150. flex-direction: column;
  151. > .left1 {
  152. // border: 1px solid #8bdd77;
  153. height: 33.33%;
  154. }
  155. > .left2 {
  156. // border: 1px solid #ddad77;
  157. height: 33.33%;
  158. }
  159. > .left3 {
  160. // border: 1px solid #8bdd77;
  161. height: 33.33%;
  162. }
  163. }
  164. >.middle {
  165. width: 60%;
  166. min-width: 1600px;
  167. display: flex;
  168. flex-direction: column;
  169. align-items: center;
  170. > .section {
  171. width: 92%;
  172. .warp {
  173. display: flex;
  174. justify-content: space-around;
  175. .item {
  176. border-radius: 20px;
  177. height: 90px;
  178. min-width: 450px;
  179. border: 4px solid #53bafd;
  180. box-sizing: border-box;
  181. flex: 1 0 20%;
  182. margin: 20px 3%;
  183. padding: 10px 10px 10px 10px;
  184. font-size: 35px;
  185. font-weight: 600;
  186. display: flex;
  187. justify-content: center;
  188. align-items: center;
  189. .title {
  190. color: #fff;
  191. }
  192. .num {
  193. color: #53bafd;
  194. font-size: 1.2em;
  195. }
  196. .unit {
  197. color: #53bafd;
  198. font-size: 20px;
  199. margin-left: 15px;
  200. }
  201. }
  202. }
  203. }
  204. > .footer {
  205. // border: 1px solid #8877dd;
  206. width: 92%;
  207. flex-grow: 1;
  208. margin: 80px 0;
  209. display: flex;
  210. justify-content: center;
  211. align-items: center;
  212. position: relative;
  213. > img {
  214. height: 80%;
  215. }
  216. .point {
  217. position: absolute;
  218. > .warp {
  219. flex-basis: 1;
  220. display: flex;
  221. justify-content: center;
  222. align-items: center;
  223. border: 6px solid #2793d1;
  224. border-radius: 50%;
  225. box-sizing: border-box;
  226. animation: animation_warp 2s 0.2s infinite alternate;
  227. >.middle {
  228. display: flex;
  229. justify-content: center;
  230. align-items: center;
  231. position: absolute;
  232. box-sizing: border-box;
  233. border: 6px solid #2793d1;
  234. border-radius: 50%;
  235. animation: animation_middle 2s 0.2s infinite
  236. alternate;
  237. .center {
  238. position: absolute;
  239. display: inline-block;
  240. width: 20px;
  241. height: 20px;
  242. box-sizing: border-box;
  243. background-color: #2793d1;
  244. border-radius: 50%;
  245. animation: animation_center 2s 0.2s infinite;
  246. }
  247. }
  248. }
  249. @keyframes animation_warp {
  250. 0% {
  251. width: 140px;
  252. height: 140px;
  253. }
  254. 100% {
  255. width: 50px;
  256. height: 50px;
  257. transform: translate(45px, 45px);
  258. border: 6px solid transparent;
  259. }
  260. }
  261. @keyframes animation_middle {
  262. 0% {
  263. width: 50px;
  264. height: 50px;
  265. border: 6px solid transparent;
  266. }
  267. 100% {
  268. width: 140px;
  269. height: 140px;
  270. }
  271. }
  272. @keyframes animation_center {
  273. 0% {
  274. background-color: transparent;
  275. }
  276. 100% {
  277. background-color: #2793d1;
  278. }
  279. }
  280. }
  281. > .p1 {
  282. left: 50%;
  283. top: 25%;
  284. }
  285. > .p2 {
  286. left: 60%;
  287. top: 45%;
  288. }
  289. > .p3 {
  290. left: 35%;
  291. top: 60%;
  292. }
  293. }
  294. }
  295. .right {
  296. // border: 1px solid #2b65e0;
  297. width: 20%;
  298. > .right1 {
  299. // border: 1px solid #8bdd77;
  300. height: 33.33%;
  301. }
  302. > .right2 {
  303. // border: 1px solid #ddad77;
  304. height: 33.33%;
  305. }
  306. > .right3 {
  307. // border: 1px solid #8bdd77;
  308. height: 33.33%;
  309. }
  310. }
  311. }
  312. }
  313. </style>