fix: 修正邮箱确认验证码最大长度错误,添加锁前添加引导页面
This commit is contained in:
parent
f53c4fad8d
commit
00e1f78920
@ -3,7 +3,7 @@
|
||||
"appid" : "__UNI__933D519",
|
||||
"description" : "",
|
||||
"versionName" : "1.1.0",
|
||||
"versionCode" : "25",
|
||||
"versionCode" : "26",
|
||||
"transformPx" : false,
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
|
||||
@ -134,6 +134,13 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/addLockGuid/addLockGuid",
|
||||
"style": {
|
||||
"navigationBarTitleText": "添加锁",
|
||||
"disableScroll": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
|
||||
79
pages/addLockGuid/addLockGuid.vue
Normal file
79
pages/addLockGuid/addLockGuid.vue
Normal file
@ -0,0 +1,79 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="title">摸亮触摸屏</view>
|
||||
<image src="/static/images/icon_lock_touch_screen.png" mode="aspectFill" class="icon"></image>
|
||||
<view class="tips">摸亮触摸屏,锁进入可添加状态,点击下一步</view>
|
||||
<view @click="toSearchDevice" class="button">下一步</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapActions, mapState } from 'pinia'
|
||||
import { useBluetoothStore } from '@/stores/bluetooth'
|
||||
import { useBasicStore } from '@/stores/basic'
|
||||
|
||||
export default {
|
||||
data () {
|
||||
return {}
|
||||
},
|
||||
computed: {
|
||||
...mapState(useBluetoothStore, ['bluetoothStatus', 'isInitBluetooth']),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(useBluetoothStore, ['getBluetoothStatus', 'initAndListenBluetooth', 'checkSetting']),
|
||||
...mapActions(useBasicStore, ['routeJump']),
|
||||
async toSearchDevice() {
|
||||
if(this.bluetoothStatus !== 0) {
|
||||
this.getBluetoothStatus()
|
||||
return
|
||||
}
|
||||
let result = true
|
||||
if(!this.isInitBluetooth) {
|
||||
result = await this.initAndListenBluetooth()
|
||||
}
|
||||
if(result) {
|
||||
this.routeJump({
|
||||
name: 'searchDevice'
|
||||
})
|
||||
} else {
|
||||
this.checkSetting()
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.title {
|
||||
text-align: center;
|
||||
margin-top: 200rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
margin: 150rpx 225rpx;
|
||||
}
|
||||
|
||||
.tips {
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
margin-bottom: 100rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 600rpx;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
background-color: #63b8af;
|
||||
color: #fff;
|
||||
border-radius: 50rpx;
|
||||
margin: 0 auto;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
</style>
|
||||
@ -405,21 +405,9 @@
|
||||
this.focus = false
|
||||
},
|
||||
async toSearchDevice() {
|
||||
if(this.bluetoothStatus !== 0) {
|
||||
this.getBluetoothStatus()
|
||||
return
|
||||
}
|
||||
let result = true
|
||||
if(!this.isInitBluetooth) {
|
||||
result = await this.initAndListenBluetooth()
|
||||
}
|
||||
if(result) {
|
||||
this.routeJump({
|
||||
name: 'searchDevice'
|
||||
name: 'addLockGuid'
|
||||
})
|
||||
} else {
|
||||
this.checkSetting()
|
||||
}
|
||||
},
|
||||
async toLockDeatil(lock) {
|
||||
if(!(this.bluetoothStatus === 0 || this.bluetoothStatus === -1)) {
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<view>
|
||||
<view class="tips">为了你的账号安全,修改账号前请先使用验证码验证</view>
|
||||
<view class="view-top">
|
||||
<input type="number" class="input" :value="verificationCode" maxlength="20" placeholder="请输入验证码"
|
||||
<input type="number" class="input" :value="verificationCode" maxlength="6" placeholder="请输入验证码"
|
||||
placeholder-class="input-placeholder" @input="updateInput"></input>
|
||||
<view class="button-verify" @click="getEmailCode">{{text}}</view>
|
||||
</view>
|
||||
|
||||
BIN
static/images/icon_lock_touch_screen.png
Executable file
BIN
static/images/icon_lock_touch_screen.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 KiB |
@ -106,6 +106,11 @@ const pages = [
|
||||
name: 'notificationDetail',
|
||||
path: '/pages/notificationDetail/notificationDetail',
|
||||
tabBar: false
|
||||
},
|
||||
{
|
||||
name: 'addLockGuid',
|
||||
path: '/pages/addLockGuid/addLockGuid',
|
||||
tabBar: false
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user