效果展示:
1.建立项目包
2.创建文件
3.代码部分:
4.显示部分:
Index.hml
Index.css
.container {
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.title{
width: 100%;
text-align: center;
margin-bottom: 20px;
}
.boxs{
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 100%;
}
.text {
font-size: 20px;
color: #333;
opacity: 0.9;
margin-bottom: 10px;
margin-left: 20px;
}
Index.js
.container {
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.title{
width: 100%;
text-align: center;
margin-bottom: 20px;
}
.boxs{
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 100%;
}
.text {
font-size: 20px;
color: #333;
opacity: 0.9;
margin-bottom: 10px;
margin-left: 20px;
}
输入记录部分:
Tuoter.hml
输入记录
Touter.css
.container {
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.title {
font-size: 30px;
text-align: center;
width: 200px;
height: 100px;
}
.box{
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 200px;
width: 100%;
}
Touter.js
import router from '@system.router';
export default {
data:{
time:"",
address:"",
personal:"",
},
getChange(e){
let idName = e.target.id
if (idName === "1") {
this.time = e.value
}else if (idName === "2") {
this.address = e.value
}else if (idName === "3") {
this.personal = e.value
}
},
btnClick(){
router.push({
uri:"pages/index/index",
params:{
time:this.time,
address:this.address,
personal:this.personal,
}
})
}
}
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。
举报投诉
-
鸿蒙系统
+关注
关注
183文章
2609浏览量
65264 -
HarmonyOS
+关注
关注
79文章
1806浏览量
29254
发布评论请先 登录
相关推荐
无线路由LZ713RW WCDMA ROUTER
数据传输。该产品支持数据通信、语音通信及短信收发功能已经广泛应用于电力系统自动化、工业监控、交通管理、实时气象、金融证券、环境监测、煤矿、石油等行业。 系统特点 : 支持虚拟数据专用网(APN/VPDN
发表于 08-04 17:27
【OK210申请】无线数据传输模块设计
申请理由:飞凌嵌入式OK210开发板是很好的开发板,我很希望能得到这个开发板并通过它来学习更多知识项目描述:内容:(1) 针对系统的需求选择合适的无线数据传输模块。(2) 根据选择的器
发表于 07-24 10:39
无线数据传输模块的实际应用
随着无线数据传输技术的发展,无线传输模块的稳定可靠、安装简便、灵活性高等优势获得了广泛的应用,特别是在无线抄表、环境监测等方向,无线数据传输模块发挥着重要的传输
发表于 06-18 04:21
HarmonyOS开发-router路由-数据传输
: 20px; color: #333; opacity: 0.9; margin-bottom: 10px; margin-left: 20px;}Index.jsimport router from
发表于 03-31 10:48
DMA进行数据传输和CPU进行数据传输的疑问
求大佬解答,本人正在学习STM32单片机中DMA直接数据存储部分的内容
看了DMA简介后,也上手过实例代码,但是没有实际的项目经验,所以有以下疑问:
DMA外设在进行数据传输的操作,是否也是需要经过
发表于 05-25 17:18
数据传输中的成帧
什么是数据传输中的成帧
数据传输中的成帧
成帧技术是一种用来在一个比特流内分配或标记信道的技术,为电信提供选择基本的时隙结构和管理方式、错误
发表于 03-18 14:46
•3671次阅读
评论