diff --git a/components/LockInput/LockInput.vue b/components/LockInput/LockInput.vue
index 056de2d..7ecf326 100644
--- a/components/LockInput/LockInput.vue
+++ b/components/LockInput/LockInput.vue
@@ -3,7 +3,7 @@
{{ title }}
+ maxlength="50" @input="changeInput">
diff --git a/pages/home/home.vue b/pages/home/home.vue
index ff29734..74df04d 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -34,10 +34,15 @@
{{lock.lockAlias}}
- 已过期
- 余{{lock.days}}天
- 未生效
- 已冻结
+
+ 已过期
+ 余{{lock.days}}天
+ 未生效
+ 已冻结
+ 远程开锁
+
+
diff --git a/pages/keyDetail/keyDetail.vue b/pages/keyDetail/keyDetail.vue
index b5c4035..2da44aa 100644
--- a/pages/keyDetail/keyDetail.vue
+++ b/pages/keyDetail/keyDetail.vue
@@ -1,7 +1,7 @@
- 名称
+ 名称
{{ currentKeyInfo.keyName }}
diff --git a/pages/keyList/keyList.vue b/pages/keyList/keyList.vue
index 5faa250..11a07a5 100644
--- a/pages/keyList/keyList.vue
+++ b/pages/keyList/keyList.vue
@@ -191,6 +191,13 @@ export default {
},
async resetKey() {
const that = this
+ if(that.keyList.length === 0) {
+ uni.showToast({
+ title: '暂无钥匙,无需重置',
+ icon: 'none'
+ })
+ return
+ }
uni.showModal({
title: '提示',
content: '确定要重置钥匙,该锁的所有钥匙都将被删除',
diff --git a/pages/lockDetail/lockDetail.vue b/pages/lockDetail/lockDetail.vue
index 110e7d3..83b91d2 100644
--- a/pages/lockDetail/lockDetail.vue
+++ b/pages/lockDetail/lockDetail.vue
@@ -1,5 +1,6 @@
+ 钥匙将在{{ currentLockInfo.days }}天后失效
{{ currentLockInfo.lockAlias }}
@@ -187,6 +188,16 @@ export default {