|
@@ -1,22 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
<view class="home-warp" v-if="nextTip == 'one'">
|
|
<view class="home-warp" v-if="nextTip == 'one'">
|
|
- <view class="header">
|
|
|
|
- <view class="item">
|
|
|
|
- <image src="../../static/activePod.png" alt=""> </image>
|
|
|
|
- <text>1</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="line"></view>
|
|
|
|
- <view class="item"
|
|
|
|
- ><image src="../../static/inactivePod.png" alt=""></image>
|
|
|
|
- <text>2</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="line"></view>
|
|
|
|
- <view class="item"
|
|
|
|
- ><image src="../../static/inactivePod.png" alt=""></image>
|
|
|
|
- <text>3</text>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
<view class="bodyContent">
|
|
<view class="bodyContent">
|
|
<view
|
|
<view
|
|
class="deviceInfo"
|
|
class="deviceInfo"
|
|
@@ -105,28 +89,6 @@
|
|
</view>
|
|
</view>
|
|
<view class="home-warpTwo" v-if="nextTip == 'two'">
|
|
<view class="home-warpTwo" v-if="nextTip == 'two'">
|
|
<view class="header_two">
|
|
<view class="header_two">
|
|
- <view class="header">
|
|
|
|
- <view class="item">
|
|
|
|
- <image src="../../static/activePod.png" alt=""> </image>
|
|
|
|
- <text>1</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="line"></view>
|
|
|
|
- <view class="item"
|
|
|
|
- ><image src="../../static/activePod.png" alt=""></image>
|
|
|
|
- <text>2</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="line"></view>
|
|
|
|
- <view class="item"
|
|
|
|
- ><image
|
|
|
|
- src="../../static/inactivePod.png"
|
|
|
|
- alt=""
|
|
|
|
- ></image>
|
|
|
|
- <text>3</text>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <!-- <view class="airCantInfo" v-if="environmentJudge">
|
|
|
|
- <text>暂未配置环境数据...</text>
|
|
|
|
- </view> -->
|
|
|
|
<view class="airbody">
|
|
<view class="airbody">
|
|
<view class="airTitle">参数配置</view>
|
|
<view class="airTitle">参数配置</view>
|
|
<view class="wifItem" style="margin-top: 30rpx">
|
|
<view class="wifItem" style="margin-top: 30rpx">
|
|
@@ -200,13 +162,18 @@
|
|
angleArray[northAngleIndex]
|
|
angleArray[northAngleIndex]
|
|
}}</view>
|
|
}}</view>
|
|
</picker>
|
|
</picker>
|
|
|
|
+ <!-- <image
|
|
|
|
+ src="../../static/rightArrow.png"
|
|
|
|
+ alt=""
|
|
|
|
+ @click="showPicker"
|
|
|
|
+ ></image> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="wifItem" style="margin-top: 30rpx">
|
|
|
|
|
|
+ <!-- <view class="wifItem" style="margin-top: 30rpx">
|
|
<text>坐摔检测</text>
|
|
<text>坐摔检测</text>
|
|
<view class="inputBox">
|
|
<view class="inputBox">
|
|
<switch
|
|
<switch
|
|
- :checked="enabled == 1"
|
|
|
|
|
|
+ :checked="fallSettingEnabled == 1"
|
|
@change="onChange"
|
|
@change="onChange"
|
|
:active-value="1"
|
|
:active-value="1"
|
|
:inactive-value="0"
|
|
:inactive-value="0"
|
|
@@ -217,7 +184,7 @@
|
|
/>
|
|
/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <template v-if="enabled == 1">
|
|
|
|
|
|
+ <template v-if="fallSettingEnabled == 1">
|
|
<view class="wifItem" style="margin-top: 30rpx">
|
|
<view class="wifItem" style="margin-top: 30rpx">
|
|
<text>坐摔最低高度(m)</text>
|
|
<text>坐摔最低高度(m)</text>
|
|
<view class="inputBox">
|
|
<view class="inputBox">
|
|
@@ -258,7 +225,7 @@
|
|
/>
|
|
/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </template>
|
|
|
|
|
|
+ </template> -->
|
|
|
|
|
|
<!-- <view class="wifItem" style="margin-top: 30rpx">
|
|
<!-- <view class="wifItem" style="margin-top: 30rpx">
|
|
<text>安装方式</text>
|
|
<text>安装方式</text>
|
|
@@ -293,7 +260,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="bottomTwo">
|
|
<view class="bottomTwo">
|
|
<view class="previousTip" @click="goPrevious">上一步</view>
|
|
<view class="previousTip" @click="goPrevious">上一步</view>
|
|
- <view class="nextTip" @click="bindDevice">下一步</view>
|
|
|
|
|
|
+ <view class="nextTip" @click="bindDevice">完成</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -333,15 +300,17 @@ export default {
|
|
yyEnd: "",
|
|
yyEnd: "",
|
|
zzStart: "",
|
|
zzStart: "",
|
|
zzEnd: "",
|
|
zzEnd: "",
|
|
- // statusLight: 1,
|
|
|
|
- showDeviceInfo: false,
|
|
|
|
- devInfo: "",
|
|
|
|
// 坐摔参数
|
|
// 坐摔参数
|
|
- enabled: 0,
|
|
|
|
|
|
+ fallSettingEnabled: 0,
|
|
lowZMax: 0.5,
|
|
lowZMax: 0.5,
|
|
humanPredThreshold: 0.78,
|
|
humanPredThreshold: 0.78,
|
|
minEventsForDetection: 3,
|
|
minEventsForDetection: 3,
|
|
minHumanEventsForDetection: 2,
|
|
minHumanEventsForDetection: 2,
|
|
|
|
+ lowHighSnrRatio: false,
|
|
|
|
+ lowMidSnrRatio: false,
|
|
|
|
+ // statusLight: 1,
|
|
|
|
+ showDeviceInfo: false,
|
|
|
|
+ devInfo: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -392,9 +361,6 @@ export default {
|
|
this.mountPlain = "Ceiling";
|
|
this.mountPlain = "Ceiling";
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onChange({ detail }) {
|
|
|
|
- this.enabled = detail.value == true ? 1 : 0;
|
|
|
|
- },
|
|
|
|
goNextTip() {
|
|
goNextTip() {
|
|
if (!this.devName.length > 10) {
|
|
if (!this.devName.length > 10) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
@@ -487,9 +453,15 @@ export default {
|
|
yyEnd: parseInt(this.yyEnd),
|
|
yyEnd: parseInt(this.yyEnd),
|
|
zzStart: parseInt(this.zzStart),
|
|
zzStart: parseInt(this.zzStart),
|
|
zzEnd: parseInt(this.zzEnd),
|
|
zzEnd: parseInt(this.zzEnd),
|
|
|
|
+ // fallSettingEnabled: this.fallSettingEnabled,
|
|
|
|
+ // lowZMax: this.lowZMax,
|
|
|
|
+ // humanPredThreshold: this.humanPredThreshold,
|
|
|
|
+ // minEventsForDetection: this.minEventsForDetection,
|
|
|
|
+ // minHumanEventsForDetection: this.minHumanEventsForDetection,
|
|
|
|
+ // lowHighSnrRatio: false,
|
|
|
|
+ // lowMidSnrRatio: false,
|
|
// statusLight: this.statusLight,
|
|
// statusLight: this.statusLight,
|
|
};
|
|
};
|
|
-
|
|
|
|
if (this.editFlag) {
|
|
if (this.editFlag) {
|
|
this.$http
|
|
this.$http
|
|
.post("wap/device/updateDevice", deviceBandingParams, {
|
|
.post("wap/device/updateDevice", deviceBandingParams, {
|
|
@@ -500,18 +472,17 @@ export default {
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: "绑定成功",
|
|
|
|
|
|
+ title: "设置成功",
|
|
icon: "success",
|
|
icon: "success",
|
|
duration: 1500,
|
|
duration: 1500,
|
|
});
|
|
});
|
|
uni.setStorageSync("devId", res.data.data.devId);
|
|
uni.setStorageSync("devId", res.data.data.devId);
|
|
- uni.reLaunch({
|
|
|
|
- url:
|
|
|
|
- "/pagesA/roomSetting/roomSetting?devId=" +
|
|
|
|
- res.data.data.devId +
|
|
|
|
- "&clientId=" +
|
|
|
|
- res.data.data.clientId,
|
|
|
|
- });
|
|
|
|
|
|
+
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 1,
|
|
|
|
+ });
|
|
|
|
+ }, 1500);
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.data.message,
|
|
title: res.data.message,
|
|
@@ -521,38 +492,6 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
- // else {
|
|
|
|
- // this.$http
|
|
|
|
- // .post("wap/device/deviceBinding", deviceBandingParams, {
|
|
|
|
- // header: {
|
|
|
|
- // "Content-Type": "application/json;charset=UTF-8",
|
|
|
|
- // },
|
|
|
|
- // })
|
|
|
|
- // .then((res) => {
|
|
|
|
- // if (res.data.code == 200) {
|
|
|
|
- // uni.showToast({
|
|
|
|
- // title: "绑定成功",
|
|
|
|
- // icon: "success",
|
|
|
|
- // duration: 1500,
|
|
|
|
- // });
|
|
|
|
- // uni.setStorageSync("devId", res.data.data.devId);
|
|
|
|
- // uni.reLaunch({
|
|
|
|
- // url:
|
|
|
|
- // "/pagesA/roomSetting/roomSetting?devId=" +
|
|
|
|
- // res.data.data.devId +
|
|
|
|
- // "&clientId=" +
|
|
|
|
- // res.data.data.clientId,
|
|
|
|
- // });
|
|
|
|
- // } else {
|
|
|
|
- // uni.showToast({
|
|
|
|
- // title: res.data.message,
|
|
|
|
- // icon: "none",
|
|
|
|
- // duration: 1500,
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
refreshWifi() {
|
|
refreshWifi() {
|
|
const that = this;
|
|
const that = this;
|
|
@@ -673,6 +612,15 @@ export default {
|
|
this.yyEnd = devInfo.yyEnd;
|
|
this.yyEnd = devInfo.yyEnd;
|
|
this.zzStart = devInfo.zzStart;
|
|
this.zzStart = devInfo.zzStart;
|
|
this.zzEnd = devInfo.zzEnd;
|
|
this.zzEnd = devInfo.zzEnd;
|
|
|
|
+
|
|
|
|
+ // this.fallSettingEnabled = devInfo.fallSettingEnabled;
|
|
|
|
+ // this.lowZMax = devInfo.lowZMax;
|
|
|
|
+ // this.humanPredThreshold = devInfo.humanPredThreshold;
|
|
|
|
+ // this.minEventsForDetection = devInfo.minEventsForDetection;
|
|
|
|
+ // this.minHumanEventsForDetection =
|
|
|
|
+ // devInfo.minHumanEventsForDetection;
|
|
|
|
+ // this.lowHighSnrRatio = devInfo.lowHighSnrRatio;
|
|
|
|
+ // this.lowMidSnrRatio = devInfo.lowMidSnrRatio;
|
|
// this.statusLight = devInfo.statusLight;
|
|
// this.statusLight = devInfo.statusLight;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -697,49 +645,17 @@ export default {
|
|
.home-warp {
|
|
.home-warp {
|
|
position: relative;
|
|
position: relative;
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
|
+ padding-top: 30rpx;
|
|
background: linear-gradient(180deg, #faede2 0%, #f4f4f4 100%);
|
|
background: linear-gradient(180deg, #faede2 0%, #f4f4f4 100%);
|
|
- .header {
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- padding: 0rpx 120rpx;
|
|
|
|
- padding-top: 30rpx;
|
|
|
|
- .item {
|
|
|
|
- position: relative;
|
|
|
|
- text-align: center;
|
|
|
|
- width: 90rpx;
|
|
|
|
- height: 90rpx;
|
|
|
|
- image {
|
|
|
|
- width: 85rpx;
|
|
|
|
- height: 90rpx;
|
|
|
|
- }
|
|
|
|
- text {
|
|
|
|
- position: absolute;
|
|
|
|
- top: 50%;
|
|
|
|
- left: 50%;
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
- font-weight: 700;
|
|
|
|
- color: #ffffff;
|
|
|
|
- font-size: 38rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .line {
|
|
|
|
- width: 56rpx;
|
|
|
|
- height: 4rpx;
|
|
|
|
- background-color: #e4c5b9;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
.bodyContent {
|
|
.bodyContent {
|
|
width: 700rpx;
|
|
width: 700rpx;
|
|
height: 600rpx;
|
|
height: 600rpx;
|
|
position: relative;
|
|
position: relative;
|
|
- margin: 20rpx auto 0 auto;
|
|
|
|
|
|
+ margin: 0 auto;
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
border-radius: 38rpx;
|
|
border-radius: 38rpx;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- padding: 0 30rpx;
|
|
|
|
.deviceInfo {
|
|
.deviceInfo {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
@@ -903,61 +819,15 @@ export default {
|
|
height: 100vh;
|
|
height: 100vh;
|
|
background: #f4f4f4;
|
|
background: #f4f4f4;
|
|
.header_two {
|
|
.header_two {
|
|
|
|
+ padding-top: 30rpx;
|
|
width: 750rpx;
|
|
width: 750rpx;
|
|
height: 560rpx;
|
|
height: 560rpx;
|
|
border-bottom-left-radius: 35rpx;
|
|
border-bottom-left-radius: 35rpx;
|
|
border-bottom-right-radius: 35rpx;
|
|
border-bottom-right-radius: 35rpx;
|
|
background: linear-gradient(180deg, #faede2 0%, #ffffff 100%);
|
|
background: linear-gradient(180deg, #faede2 0%, #ffffff 100%);
|
|
- .header {
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- padding: 0rpx 120rpx;
|
|
|
|
- padding-top: 30rpx;
|
|
|
|
- .item {
|
|
|
|
- position: relative;
|
|
|
|
- text-align: center;
|
|
|
|
- width: 90rpx;
|
|
|
|
- height: 90rpx;
|
|
|
|
- image {
|
|
|
|
- width: 85rpx;
|
|
|
|
- height: 90rpx;
|
|
|
|
- }
|
|
|
|
- text {
|
|
|
|
- position: absolute;
|
|
|
|
- top: 50%;
|
|
|
|
- left: 50%;
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
- font-weight: 700;
|
|
|
|
- color: #ffffff;
|
|
|
|
- font-size: 38rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .line {
|
|
|
|
- width: 56rpx;
|
|
|
|
- height: 4rpx;
|
|
|
|
- background-color: #e4c5b9;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- // .airCantInfo {
|
|
|
|
- // margin: 40rpx auto 0 auto;
|
|
|
|
- // opacity: 20%;
|
|
|
|
- // width: 300rpx;
|
|
|
|
- // height: 300rpx;
|
|
|
|
- // border: 18rpx solid;
|
|
|
|
- // border-color: #333333;
|
|
|
|
- // display: flex;
|
|
|
|
- // align-items: center;
|
|
|
|
- // justify-content: center;
|
|
|
|
- // text {
|
|
|
|
- // color: #999999;
|
|
|
|
- // font-size: 38rpx;
|
|
|
|
- // text-align: center;
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+
|
|
.airbody {
|
|
.airbody {
|
|
- margin: 110rpx auto 0 auto;
|
|
|
|
|
|
+ margin: 0 auto;
|
|
width: 700rpx;
|
|
width: 700rpx;
|
|
max-height: 1000rpx;
|
|
max-height: 1000rpx;
|
|
background: #ffffff;
|
|
background: #ffffff;
|