36 lines
664 B
Vue
36 lines
664 B
Vue
<template>
|
|
<view>
|
|
<view class="top"></view>
|
|
<view class="content">
|
|
<image :src="urldata.banner"></image>
|
|
<view class="title">{{urldata.title}}</view>
|
|
<view class="content_list" v-html="urldata.content"></view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
urldata: {}
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.getbannerInfo(option.url)
|
|
},
|
|
methods: {
|
|
async getbannerInfo(toulr) {
|
|
this.urldata = await this.$http.index.bannerInfo({
|
|
url: toulr
|
|
})
|
|
console.log("三餐", this.urldata)
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import "../../common/less/page/bannerinfo.less";
|
|
</style>
|