<template> <view> <image :src="imgs" mode="widthFix" class="width90 mart15"></image> </view> </template> <script> import { promotionalPosters } from '../../../Utils/Api.js'; export default { data() { return { imgs: '' } }, onLoad() { this.promotionalPosters(); }, methods: { promotionalPosters() { promotionalPosters().then(res => { if (res.return_code == '000000') { this.imgs = res.return_data; } }) } } } </script> <style lang="scss"> </style>