1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view class="container container-introduction">
- <scroll-view scroll-y>
- <image v-for="(item, index) in imgList" :style="{ height: item.Height + 'rpx' }" :key="index" :src="item.Img" :lazy-load="true"></image>
- </scroll-view>
- <Loading />
- </view>
- </template>
- <script>
- import { Research } from "@/config/api.js";
- export default {
- data() {
- return {
- imgList: [],
- };
- },
- methods: {
- // 获取图片
- async getImageList() {
- const res = await Research.researchIntroduce();
- if (res.Ret === 200) {
- this.imgList = res.Data.List;
- }
- },
- },
- onLoad() {
- this.getImageList();
- },
- onShareAppMessage() {
- return {
- title: "买方研选产品介绍",
- path: "/pages-purchaser/productIntroduction/productIntroduction",
- };
- },
- };
- </script>
- <style lang="scss" scoped>
- .container-introduction {
- image {
- width: 100%;
- padding: 0;
- margin: 0;
- }
- }
- </style>
|