当前位置:网站首页>十三、数据回显
十三、数据回显
2022-08-02 22:51:00 【Ming-Afresh】
数据回显比form表单更加常见,毕竟项目都是动态数据,回显的越多越高级也越有价值
比如数据可视化的回显动态参数就给人很高大上的感觉
但如果只是单个数据需要回显也可以 比如弹窗只弹出一项用户名的信息进行确认
<template>
<view class="content">
<view class="top_cont">
<button @click="toRegister" class="input_btn">录入抗原检测结果</button>
</view>
<view>
<view class="history">
<view style="margin-top: 20rpx;">
<view style="display: flex; align-items: center;">
<view style="width: 15rpx;height: 40rpx;background: #93D7DB;border-radius: 8rpx;"></view>
<view style="margin-left: 16rpx; font-size: 30rpx;">抗原检测结果录入历史</view>
</view>
</view>
<view v-for="item in antList" :key='item.data'>
<view class="title titleMax">抗原试剂编码:{
{
item.reagentId }}</view>
<view class="title title1">
检测人员:{
{
item.name }} ({
{
item.idCode }})
</view>
<view class="title title1">
检测时间:{
{
item.testingTime }}
</view>
<view class="title title1">
检测结果:
<text class="callout" v-if="item.status==1">阴性</text>
<text class="callout" v-if="item.status==2">阳性</text>
<text class="callout" v-if="item.status==3">无效结果</text>
</view>
<view class="title title1">
录入时间:{
{
item.nucleicTime }}
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
reagentId: '',
idCode: '',
name: '',
testingTime: '',
status: '',
userInfo: {
},
antList:[],
Flag: true
}
},
onLoad:function() {
uni.request({
url: 'Where You Going, Baby?',
method: 'POST',
data: {
addName: uni.getStorageSync('username'),
// 缓存传参
},
header: {
'content-type': 'application/json'
},
success: res => {
this.antList= res.data
},
});
},
onShow:function() {
uni.request({
url: 'Where You Going, Baby?',
method: 'POST',
data: {
addName: uni.getStorageSync('username'),
// 缓存传参
},
header: {
'content-type': 'application/json'
},
success: res => {
console.log(res);
this.antList= res.data
},
});
},
methods: {
// 更新个人录入信息
toRegister(){
uni.navigateTo({
url:`../index/index`
});
},
}
}
</script>
<style>
.top_cont{
flex: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 300rpx;
width: 100%;
border-bottom: 15rpx solid #F7F7F7;
}
.input_btn{
width: 400rpx;
height: 100rpx;
background: #6CCACF;
border-radius: 100rpx;
color: white;
line-height: 100rpx;
border: 1rpx #DBDBDB solid;
}
.history{
overflow: auto;
height: 1000rpx;
width: 86%;
margin-left: 50rpx;
font-size: 28rpx;
border-bottom: gray 1px solid;
}
.txt_dot{
width: 15rpx;
height: 45rpx;
border-radius: 15rpx;
background: #6CCACF;
float: left;
margin-right: 20rpx;
}
.txt_words{
font-size: 30rpx;
}
.title{
color: gray;
margin: 20rpx 0;
}
.titleMax{
font-size: 32rpx;
font-weight: 600;
color: #000000;
}
.callout{
font-size: 30rpx;
color: #6CCACF;
}
</style>
边栏推荐
- Based on two levels of decomposition and the length of the memory network multi-step combined forecasting model of short-term wind speed
- 程序员如何优雅地解决线上问题?
- Kubernetes 进阶训练营 网络
- airflow db init 报错
- Controller层代码这么写,简洁又优雅!
- Speech Synthesis Model Cheat Sheet (1)
- 【UE5 骨骼动画】全形体IK导致Two Bone IK只能斜着移动,不能平移
- resubmit 渐进式防重复提交框架简介
- 我们来浅谈代码语言的魅力
- 2022杭电多校第一场(K/L/B/C)
猜你喜欢

聚乙二醇衍生物4-Arm PEG-DSPE,四臂-聚乙二醇-磷脂

Mock工具之Moco使用教程

数字化转型巨浪拍岸,成长型企业如何“渡河”?

Cholesterol-PEG-Amine,CLS-PEG-NH2,胆固醇-聚乙二醇-氨基脂两亲性脂质衍生物
思源笔记 本地存储无使用第三方同步盘,突然打不开文件。

Jmeter secondary development to realize rsa encryption

最近公共祖先(LCA)学习笔记 | P3379 【模板】最近公共祖先(LCA)题解

在软件测试行业近20年的我,再来和大家谈谈今日的软件测试

用大白话解释“什么是ERP?” 看完这篇就全明白了

mPEG-Cholesterol,mPEG-CLS,甲氧基-聚乙二醇-胆固醇可用于脂质体制备
随机推荐
Token、Redis实现单点登录
HCIP(16)
2022杭电多校第一场(K/L/B/C)
js基础知识整理之 —— 变量和数据类型
MySQL最大建议行数2000w, 靠谱吗?
mysql 错误:The driver has not received any packets from the server.
Numpy数组中d[True]=1的含义
js基础知识整理之 —— 全局作用域
CAS:1445723-73-8,DSPE-PEG-NHS,磷脂-聚乙二醇-活性酯两亲性脂质PEG共轭物
雷克萨斯lm的安全性如何?
WAF WebShell Trojan free to kill
centos7安装mysql5.7步骤(图解版)
TCP三次握手与四次挥手
Strict feedback nonlinear systems based on event trigger preset since the immunity of finite time tracking control
Rebound shell principle and implementation
1 - vector R language self-study
Jmeter二次开发实现rsa加密
js基础知识整理之 —— 闭包
MYSQL查看表结构
Towards a General Purpose CNN for Long Range Dependencies in ND