detail.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="wrapper">
  3. <view class="font4 bold color-1 paddingX14 paddingB14">商品详情</view>
  4. <image style="width: 100%; height: 2276rpx" :src="ossurl.home.bottomIntro" />
  5. <image-fit v-for="(item, index) in pics" :key="index" :src="item"/>
  6. </view>
  7. </template>
  8. <script>
  9. import imageFit from '@/components/image-fit'
  10. import ossurl from '@/utils/ossurl'
  11. export default {
  12. components: { imageFit },
  13. props: {
  14. data: Object
  15. },
  16. data() {
  17. return {
  18. ossurl,
  19. pics: []
  20. }
  21. },
  22. mounted() {
  23. this.pics = this.data.pic.split(',')
  24. }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. .wrapper {
  29. margin-top: 20rpx;
  30. background: #fff;
  31. border-radius: 20rpx;
  32. padding: 36rpx 0;
  33. .image {
  34. // padding: 26rpx;
  35. width: 100%;
  36. height: 540rpx;
  37. }
  38. .topIntro {
  39. width: 100%;
  40. height: 580rpx;
  41. position: relative;
  42. .code {
  43. width: 260rpx;
  44. height: 336rpx;
  45. position: absolute;
  46. top: 117rpx;
  47. right: 32rpx;
  48. .img {
  49. width: 260rpx;
  50. height: 260rpx;
  51. }
  52. }
  53. }
  54. }
  55. </style>
  56. </style>