DescItem.vue 864 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!-- Details.vue -->
  2. <template>
  3. <view class="div show-iframe">
  4. <view class="div list-empty" v-if="!detailInfo.pgoods_body">
  5. <view class="p">本商品暂无详情</view>
  6. </view>
  7. <rich-text class="div mb-body" v-else :nodes='detailInfo.pgoods_body'></rich-text>
  8. </view>
  9. </template>
  10. <script>
  11. import { mapState } from 'vuex'
  12. export default {
  13. data () {
  14. return {}
  15. },
  16. computed: mapState({
  17. detailInfo: state => state.pointsgoods.detailInfo
  18. }),
  19. methods: {}
  20. }
  21. </script>
  22. <style lang="scss">
  23. .show-iframe {
  24. height: 100%;
  25. }
  26. .list-empty {
  27. position: absolute;
  28. top: 50%;
  29. left: 50%;
  30. transform: translate(-50%, -50%);
  31. text-align: center;
  32. .img {
  33. width: 2.75rem;
  34. }
  35. .p {
  36. color: #7c7f88;
  37. font-size:$subFontSize;
  38. padding: 0;
  39. margin: 0;
  40. font-weight: normal;
  41. }
  42. }
  43. .mb-body {font-size:$subFontSize;
  44. .img{max-width:100%}
  45. }
  46. </style>