identify-list.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view class="bg-white margin radius">
  3. <view class="cu-bar">
  4. <view class="action">
  5. <text class="text-black text-lg text-bold">免费鉴别</text>
  6. <text class="cu-tag bg-red radius sm margin-left-xs">直播</text>
  7. </view>
  8. <view class="action">
  9. <text class="text-sm">在线鉴别/专业估价</text>
  10. </view>
  11. </view>
  12. <view class="grid col-3 padding-bottom-sm zaiui-identify-box">
  13. <view class="padding-xs live-box" v-for="(item,index) in list_data" :key="index" @tap="listTap(item,index)">
  14. <view class="flex flex-wrap">
  15. <view class="basis-xs">
  16. <image class="img" :src="item.img" mode="widthFix"/>
  17. </view>
  18. <view class="basis-xl">
  19. <view class="text-black margin-left-xs">{{item.name}}</view>
  20. <view class="text-xs text-cut text-gray margin-left-xs">{{item.text}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import _tool from '@/static/zaiui/util/tools.js';
  29. export default {
  30. name: 'identify-list',
  31. props: {
  32. list_data: {
  33. type: Array,
  34. default: () => {
  35. return []
  36. }
  37. }
  38. },
  39. methods: {
  40. listTap(data,index) {
  41. this.$emit('listTap', {
  42. data,
  43. index
  44. });
  45. }
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .zaiui-identify-box {
  51. .live-box {
  52. position: relative;
  53. .flex-wrap {
  54. background-color: #FAFAFA;
  55. border-radius: 16upx 16upx;
  56. .basis-xs {
  57. flex-basis: 30%;
  58. width: 30%;
  59. .img {
  60. width: 100%;
  61. border-radius: 25%;
  62. }
  63. }
  64. .basis-xl {
  65. flex-basis: 70%;
  66. width: 70%;
  67. }
  68. }
  69. }
  70. }
  71. </style>