bannerThree.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view class="banner-wrap banner-four">
  3. <view class="title-wrap">
  4. <view class="title">气象适宜指数</view>
  5. <!-- <el-viewider class="divider" /> -->
  6. <view class="sub-title">温光水全年记录,好风好雨好荔枝</view>
  7. </view>
  8. <view class="weather-item">
  9. <view class="info">
  10. <view class="charts-box">
  11. <qiun-data-charts type="arcbar" :opts="opts" :chartData="chartData" />
  12. </view>
  13. <view class="text">
  14. 该果园抗逆管理预案优秀,气象适宜指数超过88%的果园,有效保障糖分与风味物质含量,以精准农事护航品质。
  15. </view>
  16. </view>
  17. <view class="chart" @click="handleChart">
  18. <image src="https://birdseye-img.sysuimars.com/youwei-uniapp/home/pie.png" alt="" />
  19. </view>
  20. </view>
  21. <!-- <view class="btn" @click="handleShow">查看评分详情</view> -->
  22. </view>
  23. </template>
  24. <script setup>
  25. const opts = {
  26. color: ["#FF8400", "#FFAF37"],
  27. padding: undefined,
  28. title: {
  29. name: "91分",
  30. fontSize: 20,
  31. color: "#FF8400"
  32. },
  33. subtitle: {
  34. name: "综合评分",
  35. fontSize: 12,
  36. color: "#999999"
  37. },
  38. extra: {
  39. arcbar: {
  40. type: "default",
  41. width: 8,
  42. backgroundColor: "#FFF3E6",
  43. startAngle: 0.75,
  44. endAngle: 0.25,
  45. gap: 2,
  46. linearType: "custom",
  47. customColor: ["#FF8400", "#FFAF37"]
  48. }
  49. }
  50. }
  51. const chartData = {
  52. series: [{
  53. name: "综合评分",
  54. data: 0.91,
  55. }]
  56. }
  57. function handleChart() {}
  58. </script>
  59. <style lang="scss" scoped>
  60. .charts-box {
  61. width: 108px;
  62. height: 100px;
  63. }
  64. .banner-wrap {
  65. width: 100%;
  66. height: 100%;
  67. background-size: 100% 100%;
  68. background-repeat: no-repeat;
  69. background-position: center center;
  70. .title {
  71. font-size: 36px;
  72. letter-spacing: 4px;
  73. font-family: "jiangxizhuokai";
  74. }
  75. &.banner-four {
  76. background-image: url("https://birdseye-img.sysuimars.com/youwei-uniapp/home/report-banner-4.png");
  77. padding: 60px 14px;
  78. box-sizing: border-box;
  79. .divider {
  80. width: 36px;
  81. margin: 12px 0;
  82. }
  83. .sub-title {
  84. letter-spacing: 3px;
  85. }
  86. .btn {
  87. font-size: 11px;
  88. padding: 7px 12px;
  89. border-radius: 20px;
  90. background: rgba(255, 255, 255, 0.2);
  91. text-align: center;
  92. margin-top: 24px;
  93. width: 90px;
  94. box-sizing: border-box;
  95. margin: 24px auto;
  96. }
  97. }
  98. .weather-item {
  99. margin-top: 12px;
  100. background: rgba(255, 255, 255, 0.9);
  101. padding: 12px 10px;
  102. border-radius: 12px;
  103. .info {
  104. width: 100%;
  105. display: flex;
  106. align-items: center;
  107. justify-content: space-between;
  108. .percentage-value {
  109. color: #ff8400;
  110. font-size: 20px;
  111. font-family: "jiangxizhuokai";
  112. margin-bottom: 5px;
  113. }
  114. .percentage-label {
  115. font-size: 12px;
  116. color: #999999;
  117. }
  118. .text {
  119. margin-left: 2px;
  120. font-size: 12px;
  121. line-height: 19px;
  122. color: #333;
  123. }
  124. }
  125. .chart {
  126. width: 100%;
  127. text-align: center;
  128. img {
  129. width: 100%;
  130. height: 282px;
  131. }
  132. }
  133. &.styleName2 {
  134. margin-top: 0;
  135. background: transparent;
  136. padding: 0;
  137. border-radius: 0;
  138. .info {
  139. flex-direction: column;
  140. .text {
  141. margin: 0;
  142. text-indent: 4rem;
  143. }
  144. }
  145. }
  146. }
  147. }
  148. </style>