直播平台开发,操作成功后自动返回首页
直播平台开发,操作成功后自动返回首页实现的相关代码
<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>
以上就是 直播平台开发,操作成功后自动返回首页实现的相关代码,更多内容欢迎关注之后的文章
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现