|
@@ -162,8 +162,11 @@ function toggleActiveImg(index) {
|
|
|
const getSampleFiles = (geoHash) => {
|
|
|
// photoList.value = [];
|
|
|
VE_API.mini_farm.getSampleFiles({ geoHashSample: geoHash }).then(({data}) => {
|
|
|
- // photoBaseData.value[0].value = data.meta_info.type_id;
|
|
|
- photoBaseData.value[1].value = data.meta_info.crown + "平方米";
|
|
|
+ photoBaseData.value[0].value = data.meta_info.type_id;
|
|
|
+ if(data.meta_info.crown){
|
|
|
+ data.meta_info.crown = Math.sqrt(data.meta_info.crown * 1.2).toFixed(2);
|
|
|
+ }
|
|
|
+ photoBaseData.value[1].value = data.meta_info.crown + "平方米(蓬径6米)";
|
|
|
photoBaseData.value[2].value = data.meta_info.branch_num ;
|
|
|
|
|
|
photoBaseData.value[3].value = data.meta_info.age + "年"
|
|
@@ -175,6 +178,9 @@ const getSampleFiles = (geoHash) => {
|
|
|
photoList.value[2].statement = data.meta_info.nutrition_info.statement
|
|
|
photoList.value[3].key = data.meta_info.prescription_info.key
|
|
|
photoList.value[3].statement = data.meta_info.prescription_info.statement
|
|
|
+ if(data.production_info.production){
|
|
|
+ data.production_info.production = (data.production_info.production * 1.3).toFixed(1)
|
|
|
+ }
|
|
|
outputBox.value[0].value = data.production_info.production + "斤"
|
|
|
outputBox.value[1].value = data.production_info.quality.toFixed(0) + "%"
|
|
|
outputBox.value[2].value = data.production_info.cihua_ratio.toFixed(0) + "%"
|
|
@@ -257,7 +263,7 @@ function toggleQualityAcitve() {
|
|
|
color: #ffd489;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
-
|
|
|
+
|
|
|
.tag {
|
|
|
border: 1px solid #FFD489;
|
|
|
border-radius: 4px;
|