gree_leran/pages/news/news.vue

25 lines
429 B
Vue

<script setup>
import {reactive} from "vue"
import newsCard from '@/components/newsCard.vue';
const newsList = reactive([{
title:"测试",
image:'/static/stu.png',
detile:"这是一个测试",
time:"2024-6-1"
}])
</script>
<template>
<view style="margin-top: 20rpx;">
<news-card :info="i" v-for="i in newsList"></news-card>
</view>
</template>
<style lang="scss">
page{
background-color: #F7F8FA;
}
</style>