This commit is contained in:
liuye
2024-06-12 14:03:51 +08:00
parent 1a773d10fc
commit d0727f8991
3 changed files with 92 additions and 7 deletions

View File

@@ -52,6 +52,13 @@
</div>
</div>
</div>
<!-- <div class="login-btn">
<img src="./img/question-icon.png" alt="">登录
</div> -->
<button class="login-btn" open-type="getPhoneNumber" @getphonenumber="handleAdminLogin">
<img src="./img/question-icon.png" alt="">登录
</button>
<AiLogin ref="login"/>
</div>
</template>
@@ -282,7 +289,14 @@ export default {
innerAudioContext.onStop(() => {
this.messageList[index].isPlay = false
})
}
},
handleAdminLogin({detail: {code: phoneCode}}) {
if (!this.token) {
this.autoLogin({loginWay: 'admin', phoneCode}).then(() => {
this.getUserInfo()
})
} else this.$u.toast("已登录,无需重新登录!")
},
},
}
</script>
@@ -438,7 +452,6 @@ page {
left: -12px;
}
}
}
.fixed-bottom {
@@ -502,5 +515,31 @@ page {
}
}
}
.login-btn {
position: fixed;
bottom: 500px;
left: 0;
width: 144px;
height: 64px;
background: #B8B8B8;
border-top-right-radius: 44px;
border-bottom-right-radius: 44px;
padding: 12px 16px;
box-sizing: border-box;
line-height: 40px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28px;
color: #FFF;
z-index: 999;
img {
width: 40px;
height: 40px;
vertical-align: bottom;
margin-right: 8px;
}
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB