青蛙卖大米小程序2024-11-24
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

71 lines
1.3 KiB

<template>
<view class="page">
<navbar title="新闻中心" leftClick @leftClick="$utils.navigateBack" />
<view class="card" @click="$utils.navigateTo('/pages_order/home/newsDetail?id=' + item.id)"
v-for="(item, index) in list" :key="item.id">
<view class="card-img">
<image :src="item.image" mode="aspectFill"></image>
</view>
<view>
{{ item.title }}
</view>
<view class="text">
文本内容文本内容文本内容文本内容文本内容文本内容文本内容
</view>
</view>
</view>
</template>
<script>
import mixinsList from '@/mixins/list.js'
export default {
mixins: [mixinsList],
data() {
return {
mixinsListApi: 'getRiceNewsList',
}
},
computed: {},
methods: {}
}
</script>
<style scoped lang="scss">
.page {
height: 100Vh;
background-color: #F3F3F3;
.card {
margin: 20rpx;
background-color: #fff;
border-bottom-left-radius: 16rpx;
border-bottom-right-radius: 16rpx;
.card-img {
height: 250rpx;
width: 100%;
image {
width: 100%;
height: 100%;
}
}
view:nth-child(2) {
font-size: 32rpx;
color: #474747;
padding: 20rpx;
font-weight: 500;
}
.text {
font-size: 24rpx;
color: #A2A2A2;
padding: 0rpx 20rpx 40rpx;
}
}
}
</style>