青蛙卖大米小程序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.

72 lines
1.2 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="新闻中心" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="card"
  5. @click="$utils.navigateTo('/pages_order/home/newsDetail?id=' + item.id)"
  6. v-for="(item, index) in list" :key="item.id">
  7. <view class="card-img">
  8. <image :src="item.image &&
  9. item.image.split(',')[0]" mode="aspectFill"></image>
  10. </view>
  11. <view>
  12. {{ item.title }}
  13. </view>
  14. <view class="text">
  15. {{ item.descValue }}
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import mixinsList from '@/mixins/list.js'
  22. export default {
  23. mixins: [mixinsList],
  24. data() {
  25. return {
  26. mixinsListApi: 'getRiceNewsList',
  27. }
  28. },
  29. computed: {},
  30. methods: {}
  31. }
  32. </script>
  33. <style scoped lang="scss">
  34. .page {
  35. height: 100Vh;
  36. background-color: #F3F3F3;
  37. .card {
  38. margin: 30rpx;
  39. background-color: #fff;
  40. overflow: hidden;
  41. border-radius: 20rpx;
  42. .card-img {
  43. height: 250rpx;
  44. width: 100%;
  45. image {
  46. width: 100%;
  47. height: 100%;
  48. }
  49. }
  50. view:nth-child(2) {
  51. font-size: 32rpx;
  52. color: #474747;
  53. padding: 20rpx;
  54. font-weight: 500;
  55. }
  56. .text {
  57. font-size: 24rpx;
  58. color: #A2A2A2;
  59. padding: 0rpx 20rpx 40rpx;
  60. }
  61. }
  62. }
  63. </style>