Blame view

src/views/BannerDetail.vue 491 Bytes
c0087cf1   夏洋涛   feat:创建项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<template>
	<div class="bannerDetail" v-html="content"></div>
</template>

<script>
	export default{
		data(){
			return {
				content:''
			}
		},
		created() {
			var id = this.$route.query.id;
			this.GetOneBanner(id);
		},
		methods:{
			GetOneBanner(id){
				var that = this;
				this.http.GetOneBanner({
					id: id,
				}).then(function(res){
					if(res.status == 1){
						that.content = res.data.content;
					}
				})
			},
		}
	}
</script>

<style lang="stylus" scoped>
</style>