|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="ad">
|
|
<div class="ad">
|
|
|
- <template v-for="(item,index) in adList" :key="index">
|
|
|
|
|
- <img class="ad-img" :src="item.imagepath" v-if="item.imagepath" />
|
|
|
|
|
|
|
+ <template v-for="(item, index) in adList" :key="index">
|
|
|
|
|
+ <img class="ad-img" :src="getOpenApiUrl() + item.urlcontent.replace('./', '/')" v-if="item.urlcontent" />
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -11,6 +11,7 @@ import { defineComponent, ref } from 'vue';
|
|
|
import { queryWrClientAdSpaceConfig } from '@/services/go/wrtrade';
|
|
import { queryWrClientAdSpaceConfig } from '@/services/go/wrtrade';
|
|
|
import { QueryWrClientAdSpaceConfigRsp } from "@/services/go/wrtrade/interface";
|
|
import { QueryWrClientAdSpaceConfigRsp } from "@/services/go/wrtrade/interface";
|
|
|
import { initData } from '@/common/methods';
|
|
import { initData } from '@/common/methods';
|
|
|
|
|
+import { getOpenApiUrl } from '@/services/request/serviceURL';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
setup() {
|
|
setup() {
|
|
@@ -23,6 +24,7 @@ export default defineComponent({
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
|
|
+ getOpenApiUrl,
|
|
|
adList
|
|
adList
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|