直播平台开发,操作成功后自动返回首页

直播平台开发,操作成功后自动返回首页实现的相关代码

复制代码
<template>
<view class="view_contain">
<view class="view_iconText">
<icon type="success" size="100" color="#39b54a" />
<text class="text_title">操作成功</text>
<text class="text_content">恭喜您操作成功!请点击返回首页。</text>
</view>
<button class="button_gotohome" @tap="goto_Home">返回首页</button>
<view class="bottom">
<text style="color: #007AFF;"> 莉华电子科技公司所有</text>
<text style="color: #999999;">@ The copyright belongs to lihua</text>
</view>
</view>
</template>

<script>
export default {
data() {
return {

}
},
methods: {
goto_Home() {
uni.switchTab({
url: '/pages/index/index'
});
}
}
}
</script>

<style>
page {
width: 100%;
height: 100%;
}

.view_contain {
width: 100%;
height: 100%;
margin-top: 50upx;
}

.view_iconText {
display: flex;
flex-direction: column;
width: 100%;
height: 30%;
align-items: center;
justify-content: center;
}
.text_title{
margin-top: 50upx;
font-size: 40upx;
font-weight: 600;
}
.button_gotohome{
width: 50%;
background: linear-gradient(to right, #74bba7, #28b53d);
border-radius: 50upx;
color: #ffffff;
box-shadow: 0 0 30rpx rgba(0, 0, 0, 0.35);
margin-top: 100upx;
}
.text_content{
margin-top: 20upx;
color: #557ead;
font-size: 25upx;
}
.bottom{
width: 100%;
display: flex;
flex-direction: column;
position: fixed;
bottom: 20upx;
align-items: center;
justify-content: center;
}

</style>
复制代码

 

以上就是 直播平台开发,操作成功后自动返回首页实现的相关代码,更多内容欢迎关注之后的文章

posted @   云豹科技-苏凌霄  阅读(42)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示