珠宝小程序前端代码
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.

73 lines
1.2 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 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.icon &&
  9. item.icon.split(',')[0]" mode="aspectFill"></image>
  10. </view>
  11. <view>
  12. {{ item.title }}
  13. </view>
  14. <view class="text"
  15. v-if="item.descValue">
  16. {{ item.descValue }}
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import mixinsList from '@/mixins/list.js'
  23. export default {
  24. mixins: [mixinsList],
  25. data() {
  26. return {
  27. mixinsListApi: 'getRiceProductList',
  28. }
  29. },
  30. computed: {},
  31. methods: {}
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. .page {
  36. height: 100Vh;
  37. background-color: #F3F3F3;
  38. .card {
  39. margin: 30rpx;
  40. background-color: #fff;
  41. overflow: hidden;
  42. border-radius: 20rpx;
  43. .card-img {
  44. height: 250rpx;
  45. width: 100%;
  46. image {
  47. width: 100%;
  48. height: 100%;
  49. }
  50. }
  51. view:nth-child(2) {
  52. font-size: 32rpx;
  53. color: #474747;
  54. padding: 20rpx;
  55. font-weight: 500;
  56. }
  57. .text {
  58. font-size: 24rpx;
  59. color: #A2A2A2;
  60. padding: 0rpx 20rpx 40rpx;
  61. }
  62. }
  63. }
  64. </style>