Refine mini bind entry flow
This commit is contained in:
@@ -313,7 +313,7 @@ export default function Device() {
|
||||
|
||||
<View className='guest-action-card'>
|
||||
<Text className='guest-action-title'>准备绑定或管理设备</Text>
|
||||
<Text className='guest-action-desc'>登录后可创建孩子资料、绑定设备并开启完整功能。</Text>
|
||||
<Text className='guest-action-desc'>登录后可绑定设备,并在绑定流程中创建或选择孩子资料。</Text>
|
||||
<View className='guest-primary-btn' onClick={() => goLoginWithRedirect('/pages/device/index')}>
|
||||
<Text className='guest-primary-btn-text'>登录后继续</Text>
|
||||
</View>
|
||||
@@ -334,10 +334,10 @@ export default function Device() {
|
||||
<View className='empty-robot'>
|
||||
<Image className='robot-img' src={require('../../assets/tab-icons/robot.png')} mode='aspectFit' />
|
||||
</View>
|
||||
<Text className='empty-title'>先添加一个儿童资料</Text>
|
||||
<Text className='empty-subtitle'>添加后才能为孩子绑定专属设备并查看聊天和定位信息</Text>
|
||||
<View className='empty-btn' onClick={() => Taro.switchTab({ url: '/pages/sleep/index' })}>
|
||||
<Text className='empty-btn-text'>去添加孩子</Text>
|
||||
<Text className='empty-title'>先绑定一台伴伴设备</Text>
|
||||
<Text className='empty-subtitle'>绑定时可以选择已有孩子,或直接新建孩子昵称</Text>
|
||||
<View className='empty-btn' onClick={() => Taro.navigateTo({ url: '/pages/bind/index' })}>
|
||||
<Text className='empty-btn-text'>添加设备</Text>
|
||||
</View>
|
||||
</View>
|
||||
{systemBanner}
|
||||
|
||||
@@ -908,11 +908,6 @@ export default function Sleep() {
|
||||
return
|
||||
}
|
||||
|
||||
if (item.name === '新增孩子') {
|
||||
handleOpenModal('add')
|
||||
return
|
||||
}
|
||||
|
||||
if (item.name === '删除孩子') {
|
||||
setShowDeleteChildModal(true)
|
||||
return
|
||||
@@ -1075,13 +1070,6 @@ export default function Sleep() {
|
||||
value: currentChildName,
|
||||
arrow: true,
|
||||
},
|
||||
{
|
||||
icon: require('../../assets/tab-icons/orange-robot.png'),
|
||||
iconBgClass: 'orange',
|
||||
name: '新增孩子',
|
||||
value: '',
|
||||
arrow: true,
|
||||
},
|
||||
{
|
||||
icon: require('../../assets/tab-icons/orange-robot.png'),
|
||||
iconBgClass: 'orange',
|
||||
|
||||
Reference in New Issue
Block a user