Переглянути джерело

fix(水查查津南):修改预警类型显示

zouwenying 4 роки тому
батько
коміт
45818f7e04

+ 5 - 5
shuichacha-for-TJ/pages/waterabnormal/settings/settings.js

@@ -1,11 +1,11 @@
 // pages/waterabnormal/settings/settings.js
 const app = getApp();
 const warningTypes = [{
-  value: 1,
-  label: '较上日用水量激增30%'
-}, {
-  value: 2,
-  label: '连续无用水量超过7天'
+  value: 3,
+  label:'单日用水量少于0.01吨'
+},{
+  value:4,
+  label:'单日用水量超过2吨'
 }];
 
 Page({

+ 1 - 1
shuichacha-for-TJ/pages/waterabnormal/settings/settings.wxml

@@ -14,7 +14,7 @@
 		<view class="rule-title">已设定规则({{rules.length}})</view>
 		<view class="rule-item" wx:for="{{rules}}" wx:key="index">
 			<view class="center">
-				<view class="name">{{item.warningType==1?"较上日用水量激增30%":"连续无用水量超过7天"}}</view>
+				<view class="name">{{item.warningType==3?"单日用水量少于0.01吨":"单日用水量超过2吨"}}</view>
 			</view>
 			<view class="right">
 				<image src="/static/img/icon_remove.png" data-index="{{item.id}}" bindtap="remove"></image>

+ 1 - 1
shuichacha-for-TJ/utils/http.js

@@ -2,7 +2,7 @@
 // const $perfix = 'http://localhost:8090';
 
 // 测试环境
-const $perfix = 'http://192.168.0.113:8111';
+const $perfix = 'http://114.135.61.188:58082';
 
 // 演示环境
 // const $perfix = 'https://water.zoniot.com';