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.
51 lines
689 B
51 lines
689 B
2 months ago
|
<template>
|
||
|
<view class="bg">
|
||
|
<image v-if="headImg" :src="showImg(headImg)" class="topImg" mode="widthFix"></image>
|
||
|
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
headImg: '',
|
||
|
}
|
||
|
},
|
||
|
onLoad(option) {
|
||
|
|
||
|
},
|
||
|
onReady() {
|
||
|
this.getHeadImg(2392)
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
getHeadImg (id) {
|
||
|
this.Post({id},'/api/multimedia/detail').then(res => {
|
||
|
this.headImg = res.data.head_img
|
||
|
uni.setNavigationBarTitle({
|
||
|
title:res.data.title
|
||
|
})
|
||
|
});
|
||
|
},
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
},
|
||
|
onPageScroll(res) {
|
||
|
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.bg {
|
||
|
width: 750rpx;
|
||
|
min-height: 100vh;
|
||
|
}
|
||
|
|
||
|
.topImg {
|
||
|
width: 100%;
|
||
|
}
|
||
|
</style>
|