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.
99 lines
3.7 KiB
99 lines
3.7 KiB
<template> |
|
<view class="content" style="width: 700rpx;margin: 0rpx auto;"> |
|
|
|
<view class="" style="margin-top: 20rpx;"> |
|
<rich-text :nodes="content"></rich-text> |
|
</view> |
|
|
|
|
|
</view> |
|
</template> |
|
|
|
<script> |
|
// import uParse from '../../components/gaoyia-parse/parse.vue' |
|
export default { |
|
data() { |
|
return { |
|
content: "", |
|
editorCtx: "" |
|
} |
|
}, |
|
methods: { |
|
|
|
|
|
}, |
|
async onLoad(options) { |
|
|
|
if (options.current == 0) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=涪城区") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 1) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=游仙区") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
|
|
if (options.current == 2) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=安州区") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 3) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=江油市") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 4) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=三台县") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 5) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=梓潼县") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 6) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=盐亭县") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 7) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=北川羌族自治县") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 8) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=平武县") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 9) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=高新区") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 10) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=经开区") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 11) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=仙海区") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
if (options.current == 12) { |
|
let home = await this.$api.homepageInformation.postRegionalGeneralization("?name=科技城新区直管区") |
|
console.log(home.data.content); |
|
this.content = home.data.content.replace(/<img/g, '<img style="width: 350px;"') |
|
} |
|
} |
|
} |
|
</script> |
|
|
|
<style lang="scss"> |
|
@import "./Regionalgeneralization.scss" |
|
</style>
|
|
|