You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1020 B

2 months ago
<template>
<view class="" style="font-size: 0;position: relative;">
<BackButton />
2 months ago
<image v-if="agentInfo" @click="toWebView" class="bannerImg" mode="aspectFill" :src="showImg(agentInfo.posterUrl)"> </image>
2 months ago
</view>
</template>
<script>
import BackButton from "@/components/BackButton.vue";
export default{
components: {
BackButton,
},
data(){
return{
2 months ago
img:'',
agentId:'',
agentInfo:null
2 months ago
}
},
2 months ago
onLoad(e) {
this.agentId = e.id
this.getInfo()
2 months ago
},
methods:{
2 months ago
getInfo(){
this.Post(
{
},
"/framework/agent/"+this.agentId,
"DES"
).then((res) => {
if (res.code == 200) {
this.agentInfo = res.data
} else {
uni.showToast({
title: res.msg,
icon: "none",
});
}
});
},
2 months ago
toWebView() {
uni.navigateTo({
2 months ago
url: "/pages/agent/index?id="+this.agentId
2 months ago
});
},
}
}
</script>
<style lang="scss" scoped>
.bannerImg{
width: 100vw;
2 months ago
height: 100vh;
2 months ago
}
</style>