工作笔记【四】

对于这种,样式一样,但是图片和字体颜色不一样,动态渲染。

代码:

<template>
	<view class="page">
		<view class="rows" v-for="item in data">
			<view class="v0">
				<view class="icon">
					<image :src="item.image" class="xyj-icon"></image>
				</view>
				<view class="title">
					<view class="item">{{item.item}}</view>
					<view class="time">{{item.time}}</view>
				</view>
				<view class="status" :style="{ color: item.color }">{{item.status}}</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	const data = [
		{ id:1 , image:"../../static/icon/xyj-icon.png", item:'TS57421J7Y8Z', time:'2044 - 08 - 30 20:11',status:'已报修',color: '#FD9352'},
		{ id:2, image:"../../static/icon/xyj-icon.png", item:'TS57421J7Y8Z', time:'2044 - 08 - 30 20:11',status:'处理中', color: '#738AED' },
		{ id:3 , image:"../../static/icon/cfj-icon.png", item:'TS57421J7Y8Z', time:'2044 - 08 - 30 20:11',status:'处理中', color: '#738AED'},
		{ id:4, image:"../../static/icon/xyj-icon.png", item:'TS57421J7Y8Z', time:'2044 - 08 - 30 20:11',status:'已解决', color: '#00C0D3 '},
		{ id:5 , image:"../../static/icon/cfj-icon.png", item:'TS57421J7Y8Z', time:'2044 - 08 - 30 20:11',status:'已解决', color: '#00C0D3 ' }
	];
</script>

看得懂,会写了,下班!

相关推荐
暴怒香菜统治世界4 分钟前
c语言--结构体
c语言·开发语言·数据结构·笔记·算法
TuringSnowy2 小时前
SQL_having_pandas_filter
数据库·笔记·sql·mysql·pandas
lsnm3 小时前
<刷题笔记> 力扣105/106题 使用中序+前(后)序构造二叉树
c++·笔记·b树·算法·leetcode
alien爱吃蛋挞4 小时前
MySQL之基础篇
数据库·笔记·mysql
晚睡早起₍˄·͈༝·͈˄*₎◞ ̑̑4 小时前
苍穹外卖学习笔记(十三)
java·笔记·学习·mybatis
爱学的小涛4 小时前
【MySQL】常见的SQL优化方式(一)
数据库·笔记·后端·sql·mysql
zenpluck5 小时前
GS-SLAM论文阅读笔记--TAMBRIDGE
论文阅读·笔记
Pandaconda6 小时前
【计算机网络 - 基础问题】每日 3 题(二十二)
开发语言·经验分享·笔记·后端·计算机网络·面试·职场和发展
Plan-C-7 小时前
SpringBoot学习笔记(1)
笔记·学习·微服务