m-emoji-img.vue 782 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="flex_r m-image">
  3. <!-- #ifdef H5 || MP -->
  4. <image class="img" :src="value.payload.url" mode="aspectFill"></image>
  5. <!-- #endif -->
  6. <!-- #ifdef APP -->
  7. <cacheImage :src="value.payload.url" :ext="value.payload.ext" mstyle="{width: 250rpx;height: 250rpx;}"></cacheImage>
  8. <!-- #endif -->
  9. </view>
  10. </template>
  11. <script>
  12. import cacheImage from '../cache-image/cache-image.vue';
  13. export default {
  14. components: {
  15. cacheImage
  16. },
  17. props: {
  18. isMy: {
  19. type: [Boolean, Number],
  20. default: false
  21. },
  22. value: {
  23. type: Object,
  24. default: {}
  25. }
  26. },
  27. data() {
  28. return {};
  29. },
  30. computed: {},
  31. methods: {}
  32. };
  33. </script>
  34. <style scoped lang="scss">
  35. .m-image {
  36. border-radius: 2rpx;
  37. overflow: hidden;
  38. .img {
  39. width: 250rpx;
  40. height: 250rpx;
  41. }
  42. }
  43. </style>