添加素材1
This commit is contained in:
@ -14,17 +14,17 @@
|
||||
@keyup.enter.native="toSearch"
|
||||
></el-input
|
||||
></el-col>
|
||||
<el-col :span="8" style="text-align:right">
|
||||
<el-col :span="8" style="text-align: right">
|
||||
<span
|
||||
>服务热线:<span style="color:#ffa32c">400-0507-580</span></span
|
||||
>服务热线:<span style="color: #ffa32c">400-0507-580</span></span
|
||||
>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="my_main content p0-100" style="display:flex">
|
||||
<div class="l" style="width:75%;background-color: #fff;padding: 30px;">
|
||||
<div class="my_main content p0-100" style="display: flex">
|
||||
<div class="l" style="width: 75%; background-color: #fff; padding: 30px">
|
||||
<h2>{{ formData.title }}</h2>
|
||||
<div class="info" v-if="type != 'information'">
|
||||
<span v-if="type != 'companyNeed' && type != 'scienceResult'"
|
||||
@ -70,14 +70,19 @@
|
||||
</div>
|
||||
<div
|
||||
class="r"
|
||||
style="width:24%;margin-left:1%;background-color: #fff;padding: 20px 10px;"
|
||||
style="
|
||||
width: 24%;
|
||||
margin-left: 1%;
|
||||
background-color: #fff;
|
||||
padding: 20px 10px;
|
||||
"
|
||||
>
|
||||
<!-- 公告模块 -->
|
||||
<div class="notice">
|
||||
<div class="title">
|
||||
<div>通知公告</div>
|
||||
<router-link target="_blank" :to="{ path: '/notice' }">
|
||||
<div class="pointer" style="color:#999">
|
||||
<div class="pointer" style="color: #999">
|
||||
更多<i class="el-icon-arrow-right"></i>
|
||||
</div>
|
||||
</router-link>
|
||||
@ -93,7 +98,7 @@
|
||||
target="_blank"
|
||||
:to="{
|
||||
path: '/result',
|
||||
query: { key: 'policy', id: item.id }
|
||||
query: { key: 'policy', id: item.id },
|
||||
}"
|
||||
>
|
||||
<span>•</span>{{ item.title }}
|
||||
@ -106,15 +111,15 @@
|
||||
</div>
|
||||
|
||||
<div class="my_footer">
|
||||
<div style="height: 4px;background: #FFA32C;"></div>
|
||||
<div style="height: 4px; background: #ffa32c"></div>
|
||||
<div class="footer_one content">
|
||||
<p>
|
||||
<span>
|
||||
<i><img src="@/assets/image/icon1.png" alt=""/></i>
|
||||
<i><img src="@/assets/image/icon1.png" alt="" /></i>
|
||||
总浏览量:1020</span
|
||||
>
|
||||
<span>
|
||||
<i><img src="@/assets/image/icon1.png" alt=""/></i>
|
||||
<i><img src="@/assets/image/icon1.png" alt="" /></i>
|
||||
今日浏览:1020</span
|
||||
>
|
||||
</p>
|
||||
@ -123,7 +128,7 @@
|
||||
<div class="footer_left_one">
|
||||
<span class="footer_left_l">版权声明</span>
|
||||
<span class="footer_left_r">
|
||||
<i><img src="@/assets/image/icon3.png" alt=""/></i>
|
||||
<i><img src="@/assets/image/icon3.png" alt="" /></i>
|
||||
客服热线:(周一至周五8:30-18:00)
|
||||
</span>
|
||||
</div>
|
||||
@ -133,18 +138,18 @@
|
||||
<div class="footer_left_three">
|
||||
<span class="footer_left_l">意见反馈</span>
|
||||
<span class="footer_left_r">
|
||||
<i><img src="@/assets/image/icon2.png" alt=""/></i>
|
||||
<i><img src="@/assets/image/icon2.png" alt="" /></i>
|
||||
公司地址:安徽省合肥市蜀山区黄山市601号412-414
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_right">
|
||||
<div class="item">
|
||||
<img src="@/assets/image/scanloginqrcode.jpg" alt="" />
|
||||
<img src="@/assets/image/wx.jpg" alt="" />
|
||||
<div>嘉策公众号</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="@/assets/image/scanloginqrcode.jpg" alt="" />
|
||||
<img src="@/assets/image/qq.jpg" alt="" />
|
||||
<div>QQ群</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -169,7 +174,7 @@ import {
|
||||
getPolicyReadInfo,
|
||||
getInfo,
|
||||
getInfo2,
|
||||
getInfo3
|
||||
getInfo3,
|
||||
} from '@/api/search';
|
||||
import { getPolicyList } from '@/api/home/notice';
|
||||
import { mapGetters } from 'vuex';
|
||||
@ -177,50 +182,50 @@ import { add, cancel } from '@/api/search';
|
||||
import Editor from '@/components/Editor';
|
||||
export default {
|
||||
components: {
|
||||
Editor
|
||||
Editor,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
input: '',
|
||||
type: '',
|
||||
formData: {},
|
||||
noticeList: []
|
||||
noticeList: [],
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
formData: {
|
||||
handler: function() {
|
||||
handler: function () {
|
||||
this.$nextTick(() => {
|
||||
this.formatRichText(this.formData.downloadUrl, this.formData.id);
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
deep: true
|
||||
deep: true,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['token'])
|
||||
...mapGetters(['token']),
|
||||
},
|
||||
methods: {
|
||||
toSearch() {
|
||||
if (!this.input.length) return this.msgError('请输入搜索关键字');
|
||||
let routerJump = this.$router.resolve({
|
||||
path: '/search',
|
||||
query: { val: this.input }
|
||||
query: { val: this.input },
|
||||
});
|
||||
window.open(routerJump.href, '_blank');
|
||||
},
|
||||
addItem() {
|
||||
add({ policyId: this.formData.id }).then(res => {
|
||||
add({ policyId: this.formData.id }).then((res) => {
|
||||
this.formData.collected = 1;
|
||||
this.msgSuccess('操作成功');
|
||||
});
|
||||
},
|
||||
cancelItem() {
|
||||
cancel({ policyId: this.formData.id }).then(res => {
|
||||
cancel({ policyId: this.formData.id }).then((res) => {
|
||||
this.formData.collected = 0;
|
||||
this.msgSuccess('操作成功');
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
let { key, id } = this.$route.query;
|
||||
@ -254,7 +259,7 @@ export default {
|
||||
getPolicyList({ pageNum: 1, pageSize: 5 }).then(({ data }) => {
|
||||
this.noticeList = data.list;
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user