index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <!-- 产品参数 -->
  3. <base-drawer mode="bottom" :visible="specsInfo.show" background-color="transparent" mask maskClosable @close="closeSpecs">
  4. <view class="w-full bg--w111-fff rd-t-40rpx py-32">
  5. <view class="text-center fs-32 text--w111-333 fw-500 mb-34">参数</view>
  6. <scroll-view scroll-y="true" class="h-400">
  7. <view class="px-32 scroll-content">
  8. <view class="item flex break_word" v-for="(item,index) in specsInfo.specs" :key="index">
  9. <view class="w-160 text--w111-999 mr-12">{{item.name}}</view>
  10. <view class="flex-1">{{item.value}}</view>
  11. </view>
  12. </view>
  13. </scroll-view>
  14. <view class="mx-20 pb-safe">
  15. <view class="mt-52 h-72 flex-center rd-36px bg-color fs-26 text--w111-fff" @click="closeSpecs">确定</view>
  16. </view>
  17. </view>
  18. </base-drawer>
  19. </template>
  20. <script>
  21. import baseDrawer from '@/components/tui-drawer/tui-drawer.vue';
  22. export default {
  23. props: {
  24. specsInfo: {
  25. type: Object,
  26. default: () => {}
  27. },
  28. },
  29. components: {
  30. baseDrawer
  31. },
  32. methods: {
  33. closeSpecs() {
  34. this.$emit('myevent');
  35. }
  36. }
  37. }
  38. </script>
  39. <style scoped lang="scss">
  40. .item ~ .item{
  41. margin-top: 40rpx;
  42. }
  43. </style>