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
60 lines
1020 B
|
|
<template>
|
|
<view class="" style="font-size: 0;position: relative;">
|
|
<BackButton />
|
|
<image v-if="agentInfo" @click="toWebView" class="bannerImg" mode="aspectFill" :src="showImg(agentInfo.posterUrl)"> </image>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import BackButton from "@/components/BackButton.vue";
|
|
export default{
|
|
components: {
|
|
BackButton,
|
|
},
|
|
data(){
|
|
return{
|
|
img:'',
|
|
agentId:'',
|
|
agentInfo:null
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
this.agentId = e.id
|
|
this.getInfo()
|
|
},
|
|
methods:{
|
|
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",
|
|
});
|
|
}
|
|
});
|
|
},
|
|
toWebView() {
|
|
uni.navigateTo({
|
|
url: "/pages/agent/index?id="+this.agentId
|
|
});
|
|
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.bannerImg{
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
</style>
|