bannerFour.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. <template>
  2. <view class="banner-wrap banner-five">
  3. <view class="title-wrap">
  4. <view class="title">标准农事体系</view>
  5. <view class="sub-title">看见营养好投入,见证安全高品质</view>
  6. </view>
  7. <view class="box-wrap" v-if="isFram">
  8. <view class="box-name">标准农事指数</view>
  9. <view class="circle-list">
  10. <view class="circle-item" v-for="(item, index) in boxList" :key="index">
  11. <qiun-data-charts
  12. :key=index
  13. type="arcbar"
  14. :opts="opts"
  15. :chartData="chartData"
  16. />
  17. <!-- <el-progress
  18. type="circle"
  19. :percentage="index ? baseData.yyAuthScore : baseData.stAuthScore"
  20. :stroke-width="8"
  21. :color="gradientColor"
  22. :width="85"
  23. >
  24. <template #default="{ percentage }">
  25. <view class="percentage-value">{{ percentage }}<span class="unit">分</span></view>
  26. <span class="percentage-label">{{ item.title }}</span>
  27. </template>
  28. </el-progress> -->
  29. </view>
  30. <view class="tips">注:生态认证体现生物药剂的使用情况,营养认证则反映有机肥和叶面肥等的使用情况</view>
  31. </view>
  32. <view class="box-list">
  33. <view class="box-item">
  34. <view class="box-title">
  35. <image class="title-img" src="https://birdseye-img.sysuimars.com/youwei-uniapp/home/box-icon.png" alt="" />
  36. <view class="text">
  37. <span>农事认证列表</span>
  38. <!-- <view class="more" @click="handleAll">
  39. <span>查看全部</span>
  40. <el-icon><ArrowRightBold /></el-icon>
  41. </view> -->
  42. </view>
  43. </view>
  44. <view class="tabs">
  45. <view
  46. class="tabs-item"
  47. :class="{ active: active === index }"
  48. v-for="(item, index) in baseData.periodList"
  49. :key="index"
  50. @click="handleActive(index)"
  51. >
  52. {{ item }}
  53. </view>
  54. </view>
  55. <farm-table :tableData="tableData"></farm-table>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="box-wrap" v-else>
  60. <view class="no-data">
  61. <span>您暂且没有认证<br />农事,请立即认证</span>
  62. <view class="btn">去认证</view>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script setup>
  68. import { ref, watch } from "vue";
  69. import farmTable from "./farmTable.vue";
  70. const baseData = ref([
  71. {
  72. "authId": "714567289264934912",
  73. "images": [
  74. "https://birdseye-img.sysuimars.com/birdseye-look-mini/temp/1750693336419.jpg"
  75. ],
  76. "serviceMain": "广州泽秾丰农资有限公司",
  77. "stln": "​​有机无机搭配,促养分高效​​",
  78. "targetText": "​​促进果实膨大,提升商品品质​​。",
  79. "whjc": "膨果期",
  80. "farmId": 766,
  81. "farmWorkLibId": "708734452146114560",
  82. "farmWorkLibName": "壮果营养",
  83. "periodName": "果期",
  84. "score": 20,
  85. "shortName": "有机肥",
  86. "standard": "有机肥营养",
  87. "evidenceImgs": "123.png",
  88. "prescriptionObj": [
  89. {
  90. "brand": "未知",
  91. "name": "硝酸铵钙",
  92. "pfParam": "",
  93. "typeName": "营养",
  94. "usageMode": ""
  95. },
  96. {
  97. "brand": "未知",
  98. "name": "氯化钾",
  99. "pfParam": "",
  100. "typeName": "营养",
  101. "usageMode": ""
  102. },
  103. {
  104. "brand": "未知",
  105. "name": "硝酸镁",
  106. "pfParam": "",
  107. "typeName": "营养",
  108. "usageMode": ""
  109. }
  110. ],
  111. "status": 1,
  112. "isAuth": null,
  113. "farmName": "",
  114. "condition": "",
  115. "expertName": "韦帮稳",
  116. "expertPic": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
  117. "nzName": "广州泽秾丰农资有限公司",
  118. "nfName": "飞鸟种植助手",
  119. "executeDate": "2025-05-01",
  120. "executeDate2": "2025-05-01"
  121. },
  122. {
  123. "authId": "714567288828727296",
  124. "images": [
  125. "https://birdseye-img.sysuimars.com/birdseye-look-mini/temp/1750693337787.jpg"
  126. ],
  127. "serviceMain": "广州泽秾丰农资有限公司",
  128. "stln": "​​压低虫口基数,降后期用药需求​​",
  129. "targetText": "​​精准防治害虫,减轻幼果受害​​",
  130. "whjc": "谢花期",
  131. "farmId": 766,
  132. "farmWorkLibId": "708734452141920262",
  133. "farmWorkLibName": "果期防治I",
  134. "periodName": "果期",
  135. "score": 20,
  136. "shortName": "纯天然生物药剂",
  137. "standard": "生态防治",
  138. "evidenceImgs": "123.png",
  139. "prescriptionObj": [
  140. {
  141. "brand": "诺普信稼炫",
  142. "name": "氯虫苯甲酰胺",
  143. "pfParam": "",
  144. "typeName": "病虫",
  145. "usageMode": ""
  146. },
  147. {
  148. "brand": "广东立威立犀",
  149. "name": "立威立犀",
  150. "pfParam": "",
  151. "typeName": "病虫",
  152. "usageMode": ""
  153. },
  154. {
  155. "brand": "济南中科翠剑",
  156. "name": "吡唑醚菌酯",
  157. "pfParam": "",
  158. "typeName": "病虫",
  159. "usageMode": ""
  160. }
  161. ],
  162. "status": 1,
  163. "isAuth": null,
  164. "farmName": "",
  165. "condition": "",
  166. "expertName": "韦帮稳",
  167. "expertPic": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
  168. "nzName": "广州泽秾丰农资有限公司",
  169. "nfName": "飞鸟种植助手",
  170. "executeDate": "2025-04-26",
  171. "executeDate2": "2025-04-26"
  172. },
  173. {
  174. "authId": "714567288606429184",
  175. "images": [
  176. "https://birdseye-img.sysuimars.com/birdseye-look-mini/temp/1750693209854.jpg"
  177. ],
  178. "serviceMain": "广州泽秾丰农资有限公司",
  179. "stln": "​​高效吸收配方,减养分流失​​",
  180. "targetText": "​​补充关键营养,提高坐果率​​",
  181. "whjc": "谢花期",
  182. "farmId": 766,
  183. "farmWorkLibId": "708734452141920261",
  184. "farmWorkLibName": "保果营养",
  185. "periodName": "果期",
  186. "score": 20,
  187. "shortName": "中微量元素肥",
  188. "standard": "叶面肥营养",
  189. "evidenceImgs": "123.png",
  190. "prescriptionObj": [
  191. {
  192. "brand": "广州大炎",
  193. "name": "钙镁叶面肥",
  194. "pfParam": "",
  195. "typeName": "营养",
  196. "usageMode": ""
  197. },
  198. {
  199. "brand": "广州大炎",
  200. "name": "佳果天成",
  201. "pfParam": "",
  202. "typeName": "营养",
  203. "usageMode": ""
  204. },
  205. {
  206. "brand": "四川国光",
  207. "name": "果动力",
  208. "pfParam": "",
  209. "typeName": "调节",
  210. "usageMode": ""
  211. },
  212. {
  213. "brand": "芸乐收",
  214. "name": "芸乐收",
  215. "pfParam": "",
  216. "typeName": "营养",
  217. "usageMode": ""
  218. }
  219. ],
  220. "status": 1,
  221. "isAuth": null,
  222. "farmName": "",
  223. "condition": "",
  224. "expertName": "韦帮稳",
  225. "expertPic": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
  226. "nzName": "广州泽秾丰农资有限公司",
  227. "nfName": "飞鸟种植助手",
  228. "executeDate": "2025-04-17",
  229. "executeDate2": "2025-04-17"
  230. }
  231. ])
  232. const tableData = ref([
  233. {
  234. "authId": "714567289264934912",
  235. "images": [
  236. "https://birdseye-img.sysuimars.com/birdseye-look-mini/temp/1750693336419.jpg"
  237. ],
  238. "serviceMain": "广州泽秾丰农资有限公司",
  239. "stln": "​​有机无机搭配,促养分高效​​",
  240. "targetText": "​​促进果实膨大,提升商品品质​​。",
  241. "whjc": "膨果期",
  242. "farmId": 766,
  243. "farmWorkLibId": "708734452146114560",
  244. "farmWorkLibName": "壮果营养",
  245. "periodName": "果期",
  246. "score": 20,
  247. "shortName": "有机肥",
  248. "standard": "有机肥营养",
  249. "evidenceImgs": "123.png",
  250. "prescriptionObj": [
  251. {
  252. "brand": "未知",
  253. "name": "硝酸铵钙",
  254. "pfParam": "",
  255. "typeName": "营养",
  256. "usageMode": ""
  257. },
  258. {
  259. "brand": "未知",
  260. "name": "氯化钾",
  261. "pfParam": "",
  262. "typeName": "营养",
  263. "usageMode": ""
  264. },
  265. {
  266. "brand": "未知",
  267. "name": "硝酸镁",
  268. "pfParam": "",
  269. "typeName": "营养",
  270. "usageMode": ""
  271. }
  272. ],
  273. "status": 1,
  274. "isAuth": null,
  275. "farmName": "",
  276. "condition": "",
  277. "expertName": "韦帮稳",
  278. "expertPic": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
  279. "nzName": "广州泽秾丰农资有限公司",
  280. "nfName": "飞鸟种植助手",
  281. "executeDate": "2025-05-01",
  282. "executeDate2": "2025-05-01"
  283. },
  284. {
  285. "authId": "714567288828727296",
  286. "images": [
  287. "https://birdseye-img.sysuimars.com/birdseye-look-mini/temp/1750693337787.jpg"
  288. ],
  289. "serviceMain": "广州泽秾丰农资有限公司",
  290. "stln": "​​压低虫口基数,降后期用药需求​​",
  291. "targetText": "​​精准防治害虫,减轻幼果受害​​",
  292. "whjc": "谢花期",
  293. "farmId": 766,
  294. "farmWorkLibId": "708734452141920262",
  295. "farmWorkLibName": "果期防治I",
  296. "periodName": "果期",
  297. "score": 20,
  298. "shortName": "纯天然生物药剂",
  299. "standard": "生态防治",
  300. "evidenceImgs": "123.png",
  301. "prescriptionObj": [
  302. {
  303. "brand": "诺普信稼炫",
  304. "name": "氯虫苯甲酰胺",
  305. "pfParam": "",
  306. "typeName": "病虫",
  307. "usageMode": ""
  308. },
  309. {
  310. "brand": "广东立威立犀",
  311. "name": "立威立犀",
  312. "pfParam": "",
  313. "typeName": "病虫",
  314. "usageMode": ""
  315. },
  316. {
  317. "brand": "济南中科翠剑",
  318. "name": "吡唑醚菌酯",
  319. "pfParam": "",
  320. "typeName": "病虫",
  321. "usageMode": ""
  322. }
  323. ],
  324. "status": 1,
  325. "isAuth": null,
  326. "farmName": "",
  327. "condition": "",
  328. "expertName": "韦帮稳",
  329. "expertPic": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
  330. "nzName": "广州泽秾丰农资有限公司",
  331. "nfName": "飞鸟种植助手",
  332. "executeDate": "2025-04-26",
  333. "executeDate2": "2025-04-26"
  334. },
  335. {
  336. "authId": "714567288606429184",
  337. "images": [
  338. "https://birdseye-img.sysuimars.com/birdseye-look-mini/temp/1750693209854.jpg"
  339. ],
  340. "serviceMain": "广州泽秾丰农资有限公司",
  341. "stln": "​​高效吸收配方,减养分流失​​",
  342. "targetText": "​​补充关键营养,提高坐果率​​",
  343. "whjc": "谢花期",
  344. "farmId": 766,
  345. "farmWorkLibId": "708734452141920261",
  346. "farmWorkLibName": "保果营养",
  347. "periodName": "果期",
  348. "score": 20,
  349. "shortName": "中微量元素肥",
  350. "standard": "叶面肥营养",
  351. "evidenceImgs": "123.png",
  352. "prescriptionObj": [
  353. {
  354. "brand": "广州大炎",
  355. "name": "钙镁叶面肥",
  356. "pfParam": "",
  357. "typeName": "营养",
  358. "usageMode": ""
  359. },
  360. {
  361. "brand": "广州大炎",
  362. "name": "佳果天成",
  363. "pfParam": "",
  364. "typeName": "营养",
  365. "usageMode": ""
  366. },
  367. {
  368. "brand": "四川国光",
  369. "name": "果动力",
  370. "pfParam": "",
  371. "typeName": "调节",
  372. "usageMode": ""
  373. },
  374. {
  375. "brand": "芸乐收",
  376. "name": "芸乐收",
  377. "pfParam": "",
  378. "typeName": "营养",
  379. "usageMode": ""
  380. }
  381. ],
  382. "status": 1,
  383. "isAuth": null,
  384. "farmName": "",
  385. "condition": "",
  386. "expertName": "韦帮稳",
  387. "expertPic": "https://birdseye-img.sysuimars.com/birdseye-look-vue/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250411150343.png",
  388. "nzName": "广州泽秾丰农资有限公司",
  389. "nfName": "飞鸟种植助手",
  390. "executeDate": "2025-04-17",
  391. "executeDate2": "2025-04-17"
  392. }
  393. ])
  394. const isFram = ref(true);
  395. const active = ref(0);
  396. const handleActive = (index) =>{
  397. active.value = index
  398. tableData.value = baseData.value.farmWorkAuths.filter(item =>item.periodName === baseData.value.periodList[index])
  399. // tableData.value = farmWorkAuths.value.filter(item =>item.periodName === props.baseData.periodList[index])
  400. }
  401. const gradientColor = [
  402. { color: "#FFD887", percentage: 0 },
  403. { color: "#FFAF2E", percentage: 100 },
  404. ];
  405. const boxList = ref([
  406. {
  407. value: 0,
  408. title: "生态认证",
  409. },
  410. {
  411. value: 0,
  412. title: "营养认证",
  413. },
  414. ]);
  415. const opts = {
  416. color: ["#FFD887", "#FFAF2E"],
  417. padding: [0, 0, 0, 0],
  418. title: {
  419. name: "91分",
  420. fontSize: 18,
  421. color: "#FF8400"
  422. },
  423. subtitle: {
  424. name: "生态认证",
  425. fontSize: 12,
  426. color: "#999999"
  427. },
  428. extra: {
  429. arcbar: {
  430. type: "circle",
  431. width: 8,
  432. backgroundColor: "#EDEDED",
  433. startAngle: 0.75,
  434. endAngle: 0.25,
  435. gap: 2,
  436. customColor: ["#FF8400", "#FFAF37"]
  437. }
  438. }
  439. }
  440. const chartData = {
  441. series: [
  442. {
  443. name: "生态认证",
  444. data: 0.8
  445. }
  446. ]
  447. }
  448. </script>
  449. <style lang="scss" scoped>
  450. .banner-wrap {
  451. width: 100%;
  452. height: 100%;
  453. background-size: 100% 100%;
  454. background-repeat: no-repeat;
  455. background-position: center center;
  456. .title {
  457. font-size: 36px;
  458. letter-spacing: 4px;
  459. font-family: "jiangxizhuokai";
  460. }
  461. &.banner-five {
  462. background-image: url("https://birdseye-img.sysuimars.com/youwei-uniapp/home/report-banner-5.png");
  463. padding: 60px 14px;
  464. box-sizing: border-box;
  465. .sub-title {
  466. letter-spacing: 3px;
  467. margin-top: 10px;
  468. }
  469. .box-wrap {
  470. margin-top: 12px;
  471. background: rgba(255, 255, 255, 0.94);
  472. padding: 30px 13px 13px 13px;
  473. border-radius: 12px;
  474. position: relative;
  475. .no-data {
  476. color: #999;
  477. width: 112px;
  478. text-align: center;
  479. margin: auto;
  480. .btn {
  481. background-image: linear-gradient(120deg, #ffd887, #ed9e1e);
  482. color: #ffffff;
  483. font-size: 12px;
  484. padding: 6px 33px;
  485. border-radius: 20px;
  486. margin-top: 12px;
  487. }
  488. }
  489. .box-name {
  490. position: absolute;
  491. top: 0;
  492. left: calc(50% - 173px / 2);
  493. font-size: 16px;
  494. padding: 5px 0 7px 0;
  495. text-align: center;
  496. width: 173px;
  497. color: #000;
  498. font-family: "jiangxizhuokai";
  499. background: url("https://birdseye-img.sysuimars.com/youwei-uniapp/home/box-name.png") no-repeat center center / 100% 100%;
  500. }
  501. .circle-list {
  502. display: flex;
  503. flex-wrap: wrap;
  504. justify-content: space-around;
  505. padding: 0 12px;
  506. .circle-item {
  507. width: 90px;
  508. height: 100px;
  509. }
  510. .percentage-value {
  511. color: #ff8400;
  512. font-size: 20px;
  513. font-family: "jiangxizhuokai";
  514. margin-bottom: 5px;
  515. .unit {
  516. font-size: 13px;
  517. }
  518. }
  519. .percentage-label {
  520. font-size: 12px;
  521. color: rgba(0, 0, 0, 0.4);
  522. }
  523. .tips {
  524. font-size: 11px;
  525. color: rgba(51, 51, 51, 0.5);
  526. text-align: center;
  527. margin: 10px 0;
  528. }
  529. }
  530. .box-list {
  531. .box-item {
  532. margin-top: 10px;
  533. .box-title {
  534. display: flex;
  535. align-items: center;
  536. color: #000;
  537. font-size: 15px;
  538. .title-img {
  539. width: 15px;
  540. height: 9px;
  541. margin-right: 6px;
  542. }
  543. .text {
  544. width: 100%;
  545. font-family: "jiangxizhuokai";
  546. display: flex;
  547. align-items: center;
  548. justify-content: space-between;
  549. .more {
  550. color: #bbbbbb;
  551. display: flex;
  552. align-items: center;
  553. font-size: 13px;
  554. span {
  555. margin-right: 2px;
  556. }
  557. }
  558. }
  559. }
  560. .tabs {
  561. margin-top: 10px;
  562. display: flex;
  563. justify-content: center;
  564. font-size: 13px;
  565. color: #666666;
  566. .tabs-item {
  567. padding: 3px 23px;
  568. border-radius: 20px;
  569. background: rgba(0, 0, 0, 0.09);
  570. &.active {
  571. color: #fff;
  572. background-image: linear-gradient(90deg, #ffd887, #ed9e1e);
  573. }
  574. }
  575. .tabs-item + .tabs-item {
  576. margin-left: 20px;
  577. }
  578. }
  579. }
  580. }
  581. }
  582. }
  583. }
  584. </style>