freshDetail.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="listBox" @click="onClick">
  3. <view class="list">
  4. <view class="flex listItem">
  5. <view class="flex titleBox">
  6. <text class="title">当前选中:</text>
  7. <text v-for="(item,index) in specSelected" class="margin-l-10">
  8. <text v-if="index>0">,</text>
  9. <text>
  10. {{item}}
  11. </text>
  12. </text>
  13. </view>
  14. <view class="right flex">
  15. <text></text>
  16. <image class="img" src="../../../static/icon/next1.png" mode="widthFix"></image>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. specSelected: {
  26. type: Array,
  27. default: function() {
  28. return []
  29. }
  30. },
  31. },
  32. data() {
  33. return {
  34. };
  35. },
  36. methods: {
  37. onClick() {
  38. this.$emit('click')
  39. }
  40. },
  41. };
  42. </script>
  43. <style lang="scss">
  44. .listBox {
  45. background-color: #FFFFFF;
  46. overflow: hidden;
  47. }
  48. .list {
  49. .listItem {
  50. padding: 30rpx 40rpx;
  51. padding-top: 0;
  52. border-bottom: 1px solid $page-color-light;
  53. }
  54. .listIconImg {
  55. width: 36rpx;
  56. }
  57. .right {
  58. color: $font-color-light;
  59. font-size: $font-base;
  60. flex-grow: 1;
  61. .img {
  62. width: 26rpx;
  63. }
  64. }
  65. .titleBox {
  66. color: $font-color-light;
  67. font-size: $font-base;
  68. }
  69. }
  70. </style>