|
@@ -29,14 +29,15 @@
|
|
|
</div>
|
|
|
<div class="zs-wrap">
|
|
|
<div class="device-title" @click="detail(item.eventIndex)">
|
|
|
- <img :src="require('../../assets/images/'+item.img)" alt="">
|
|
|
+ <img :src="item.img" alt="">
|
|
|
</div>
|
|
|
<div class="zc-content">
|
|
|
<div>
|
|
|
-<!-- <p>对符合以下要求的项目准许入园并给予扶持:</p>-->
|
|
|
+ <!-- <p>对符合以下要求的项目准许入园并给予扶持:</p>-->
|
|
|
<div>
|
|
|
<h3>{{ item.title }}</h3>
|
|
|
- <p>{{ item.detail }}</p>
|
|
|
+<!-- <p>{{ item.detail }}</p>-->
|
|
|
+ <p v-html="item.detail"></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- <div v-else-if="item.eventIndex==2">-->
|
|
@@ -107,41 +108,49 @@ export default {
|
|
|
getPolicyList().then((res) => {
|
|
|
this.zsList = []
|
|
|
if (res.data) {
|
|
|
- res.data.forEach(item => {
|
|
|
- console.log('ccc', item.policy)
|
|
|
- let i = {}
|
|
|
- switch (item.policyBig) {
|
|
|
- case '招商政策':
|
|
|
- i = {
|
|
|
- img: 'zs3.png',
|
|
|
- name: '招商政策',
|
|
|
- title: item.title,
|
|
|
- eventIndex: 3,
|
|
|
- detail: item.content ? this.$common.delHtmlTag(item.content) : ''
|
|
|
- }
|
|
|
- this.zsList.push(i)
|
|
|
- break
|
|
|
- case '孵化政策':
|
|
|
- i = {
|
|
|
- img: 'zs2.png',
|
|
|
- name: '孵化政策',
|
|
|
- title: item.title,
|
|
|
- eventIndex: 2,
|
|
|
- detail: item.content ? this.$common.delHtmlTag(item.content) : ''
|
|
|
- }
|
|
|
- this.zsList.push(i)
|
|
|
- break
|
|
|
- case '专项扶持政策':
|
|
|
- i = {
|
|
|
- img: 'zs1.png',
|
|
|
- name: '高企评定政策',
|
|
|
- title: item.title,
|
|
|
- eventIndex: 1,
|
|
|
- detail: item.content ? this.$common.delHtmlTag(item.content) : ''
|
|
|
- }
|
|
|
- this.zsList.push(i)
|
|
|
- break
|
|
|
- }
|
|
|
+ res.data.forEach((item, index) => {
|
|
|
+ console.log('ccc', JSON.parse(item.fileUrl))
|
|
|
+ const image = JSON.parse(item.fileUrl)[0].url
|
|
|
+ this.zsList.push({
|
|
|
+ img: image,
|
|
|
+ name: item.policyBig,
|
|
|
+ title: item.title,
|
|
|
+ eventIndex: index,
|
|
|
+ detail: item.content ? item.content : ''
|
|
|
+ })
|
|
|
+ // let i = {}
|
|
|
+ // switch (item.policyBig) {
|
|
|
+ // case '招商政策':
|
|
|
+ // i = {
|
|
|
+ // img: 'zs3.png',
|
|
|
+ // name: '招商政策',
|
|
|
+ // title: item.title,
|
|
|
+ // eventIndex: 3,
|
|
|
+ // detail: item.content ? this.$common.delHtmlTag(item.content) : ''
|
|
|
+ // }
|
|
|
+ // this.zsList.push(i)
|
|
|
+ // break
|
|
|
+ // case '孵化政策':
|
|
|
+ // i = {
|
|
|
+ // img: 'zs2.png',
|
|
|
+ // name: '孵化政策',
|
|
|
+ // title: item.title,
|
|
|
+ // eventIndex: 2,
|
|
|
+ // detail: item.content ? this.$common.delHtmlTag(item.content) : ''
|
|
|
+ // }
|
|
|
+ // this.zsList.push(i)
|
|
|
+ // break
|
|
|
+ // case '专项扶持政策':
|
|
|
+ // i = {
|
|
|
+ // img: 'zs1.png',
|
|
|
+ // name: '高企评定政策',
|
|
|
+ // title: item.title,
|
|
|
+ // eventIndex: 1,
|
|
|
+ // detail: item.content ? this.$common.delHtmlTag(item.content) : ''
|
|
|
+ // }
|
|
|
+ // this.zsList.push(i)
|
|
|
+ // break
|
|
|
+ // }
|
|
|
})
|
|
|
}
|
|
|
})
|