Pārlūkot izejas kodu

fix: 水肥bug修改

allen 3 mēneši atpakaļ
vecāks
revīzija
aae04da5ef
3 mainītis faili ar 12 papildinājumiem un 11 dzēšanām
  1. 7 6
      pages/cb/shuifeizs/rotationflow.vue
  2. 1 1
      util/api.js
  3. 4 4
      util/neutral.js

+ 7 - 6
pages/cb/shuifeizs/rotationflow.vue

@@ -93,7 +93,7 @@
             :class="
               item.value === '1' ? 'rotationflow-content-list-item-current' : ''
             "
-            >{{ item.value == '2' ? '已灌溉' : item.lgjg + '分钟' }}</view
+            >{{ item.value == '2' ? '已灌溉' : item.ggsj + '分钟' }}</view
           >
         </view>
       </view>
@@ -165,15 +165,16 @@ export default {
         }`;
       }, 1000);
     },
-    getsfmode(mode) {
+    getsfmode(m) {
+      const mode = String(m);
       switch (mode) {
-        case '0':
-          return '定时';
         case '1':
-          return '定';
+          return '定时';
         case '2':
-          return 'EC调配';
+          return '定量';
         case '3':
+          return 'EC调配';
+        case '4':
           return '混肥比例';
         default:
           return '-';

+ 1 - 1
util/api.js

@@ -17,7 +17,7 @@ export const myRequest = (options) => {
     // BASE_URL = 'http://192.168.1.77:8002'
     // BASE_URL = 'http://218.28.198.186:10508';
   }
-  // BASE_URL = 'http://192.168.1.52:8003'
+  // BASE_URL = 'http://192.168.1.107:8000';
   // console.log(BASE_URL)
   var session_key = '';
   session_key = uni.getStorageSync('session_key');

+ 4 - 4
util/neutral.js

@@ -1,4 +1,4 @@
-export default{
-	isneutral:true//云飞智控
-	// isneutral:false//智控
-}
+export default {
+  // isneutral:true//云飞智控
+  isneutral: false, //智控
+};