productIntroduction.vue 960 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view class="container container-introduction">
  3. <scroll-view scroll-y>
  4. <image v-for="(item, index) in imgList" :style="{ height: item.Height + 'rpx' }" :key="index" :src="item.Img" :lazy-load="true"></image>
  5. </scroll-view>
  6. <Loading />
  7. </view>
  8. </template>
  9. <script>
  10. import { Research } from "@/config/api.js";
  11. export default {
  12. data() {
  13. return {
  14. imgList: [],
  15. };
  16. },
  17. methods: {
  18. // 获取图片
  19. async getImageList() {
  20. const res = await Research.researchIntroduce();
  21. if (res.Ret === 200) {
  22. this.imgList = res.Data.List;
  23. }
  24. },
  25. },
  26. onLoad() {
  27. this.getImageList();
  28. },
  29. onShareAppMessage() {
  30. return {
  31. title: "买方研选产品介绍",
  32. path: "/pages-purchaser/productIntroduction/productIntroduction",
  33. };
  34. },
  35. };
  36. </script>
  37. <style lang="scss" scoped>
  38. .container-introduction {
  39. image {
  40. width: 100%;
  41. padding: 0;
  42. margin: 0;
  43. }
  44. }
  45. </style>