Commit d15089a9 by haozhenhua

hzh

parent cf711d41
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div style="width:100%;margin: 0 auto;"> <div style="width:100%;margin: 0 auto;">
<div style="z-index:1;position:relative;background-color:#31373b"> <div style="z-index:1;position:relative;background-color:#31373b">
<img style="width:100%;height:auto" :src="loginUrl" /> <img style="width:100%;height:auto" :src="loginUrl" />
<div class="login-title"> <div class="login-title" v-if="companyinfo.company.siteTheme == \'policy\'">
<span class="tong">政企通</span> <span class="tong">政企通</span>
<span class="shujuzi">政策大数据服务平台</span> <span class="shujuzi">政策大数据服务平台</span>
</div> </div>
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<div class="policylist-tile"  style="margin-top: 15px;"> <div class="policylist-tile"  style="margin-top: 15px;">
<div class="policyquery-items"> <div class="policyquery-items">
<div class="items_item" :style="headerHeight1 ? \'height:45px\' : \'height:auto\'"> <div class="items_item" :style="headerHeight1 ? \'height:45px\' : \'height:auto\'">
<div :class="quanbu == item.title ? \'pitch\' : \'\'" v-for="(item,index) in quanData1" @click="quanClick1(item)"> <div :class="quanbu == item.title ? \'pitch\' : \'\'" v-for="(item,index) in quanData1"
@click="quanClick1(item)">
{{item.title}}</div> {{item.title}}</div>
</div> </div>
...@@ -15,7 +16,8 @@ ...@@ -15,7 +16,8 @@
<div class="policylist-content" style="background: rgba(255,255,255,1); <div class="policylist-content" style="background: rgba(255,255,255,1);
border-radius: 2px; border-radius: 2px;
border: 1px solid rgba(225,225,225,1);width: 77%;"> border: 1px solid rgba(225,225,225,1);width: 77%;">
<div class="brandfind-main-equal-form-box-null" v-if="recommendationsArr.length==0" style="height:500px;"> <div class="brandfind-main-equal-form-box-null" v-if="recommendationsArr.length==0"
style="height:500px;">
<!-- 没数据 --> <!-- 没数据 -->
<div class="shuju"> <div class="shuju">
<img src="/imgs/toubu.png" alt=""> <img src="/imgs/toubu.png" alt="">
...@@ -27,12 +29,14 @@ ...@@ -27,12 +29,14 @@
<div class="shenbao2"> {{i.name}} </div> <div class="shenbao2"> {{i.name}} </div>
</div> </div>
<div> <div>
<div class="policylist-conten-items"><span>{{i.source}}</span> <div class="policylist-conten-items"  style="overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 80%;"><span>{{i.first_section}}</span>
</div> </div>
<div class="policylistsitems"><span> <div class="policylistsitems"><span>
<p style="float: right; <p style="float: right;
margin-top: -20px;"><img src="/imgs/riqi.png" margin-top: -20px;"><img src="/imgs/riqi.png" alt="">&nbsp;申报日期:{{i.begindate}}
alt="">&nbsp;申报日期:{{i.begindate}}
</span></p> </span></p>
</div> </div>
</div> </div>
...@@ -43,7 +47,9 @@ ...@@ -43,7 +47,9 @@
<div class="shuju2" style="margin-left: 19px;"> <div class="shuju2" style="margin-left: 19px;">
<el-carousel :interval="5000" arrow="never" height="200px"> <el-carousel :interval="5000" arrow="never" height="200px">
<el-carousel-item v-for="item in loopplays" style="height:100%;cursor: pointer;"> <el-carousel-item v-for="item in loopplays" style="height:100%;cursor: pointer;">
<div class="el_gsb_img" :style="\'background: url(\' + item.leftimg + \') center center no-repeat;\'" @click="payClick()"></div> <div class="el_gsb_img"
:style="\'background: url(\' + item.leftimg + \') center center no-repeat;\'"
@click="payClick()"></div>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
</div> </div>
...@@ -80,7 +86,7 @@ ...@@ -80,7 +86,7 @@
<div class="essay-title"> <div class="essay-title">
<div class="essay-title-name">{{recommendationsObj.name}}</div> <div class="essay-title-name">{{recommendationsObj.name}}</div>
<div class="essay-title-list"> <div class="essay-title-list">
<span>发布部门:{{recommendationsObj.source}}</span><span>阅读量:{{recommendationsObj.count}}</span><span>申报日期:{{recommendationsObj.begindate}}</span> <span>阅读量:{{count}}</span><span>申报日期:{{recommendationsObj.begindate}}</span>
</div> </div>
</div> </div>
<div class="essay-content" v-html="recommendationsObj.policytext"></div> <div class="essay-content" v-html="recommendationsObj.policytext"></div>
...@@ -99,4 +105,4 @@ ...@@ -99,4 +105,4 @@
<img src="/imgs/gsb.png" alt=""> 扫一扫,关注iBOSS微信服务号,随时随地了解行业政策最新资讯 <img src="/imgs/gsb.png" alt=""> 扫一扫,关注iBOSS微信服务号,随时随地了解行业政策最新资讯
</div> --> </div> -->
</div> </div>
</div> </div>
\ No newline at end of file \ No newline at end of file
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
show2: false, show2: false,
policyArr: [], policyArr: [],
recommendationsArr: [], recommendationsArr: [],
count: '',
policyOptions: [{ policyOptions: [{
value: '北京东方飞扬软件股份有限公司', value: '北京东方飞扬软件股份有限公司',
label: '北京东方飞扬软件股份有限公司' label: '北京东方飞扬软件股份有限公司'
...@@ -33,27 +34,28 @@ ...@@ -33,27 +34,28 @@
headerHeight7: true, headerHeight7: true,
headerHeight8: true, headerHeight8: true,
headerHeight9: true, headerHeight9: true,
areaName:'', areaName: '',
input1:'', input1: '',
input2:'', input2: '',
input3:'', input3: '',
input4:'', input4: '',
input5:'', input5: '',
input6:'', input6: '',
input7:'', input7: '',
input8:'', input8: '',
input9:'', input9: '',
quanbu:'', quanbu: '',
imgurls:[ imgurls: [
{ {
'path':'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png' 'path': 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
}, },
{ {
'path':'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png' 'path': 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
} }
], ],
loopplays: [ loopplays: [
{ leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png' {
leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
}, },
{ {
leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png' leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
...@@ -120,13 +122,13 @@ ...@@ -120,13 +122,13 @@
'夏回族自治区', '夏回族自治区',
'四川' '四川'
], ],
tableData2:[ tableData2: [
'部委', '部委',
'省级', '省级',
'市级', '市级',
'区级' '区级'
], ],
tableData3:[ tableData3: [
'发改部门', '发改部门',
'教育部门', '教育部门',
'科学技术部门', '科学技术部门',
...@@ -145,7 +147,7 @@ ...@@ -145,7 +147,7 @@
'市场监督部门', '市场监督部门',
'其他部门' '其他部门'
], ],
tableData4:[ tableData4: [
'资质荣誉', '资质荣誉',
'事前补助', '事前补助',
'研发费补助', '研发费补助',
...@@ -157,12 +159,12 @@ ...@@ -157,12 +159,12 @@
'创业补贴', '创业补贴',
'人才补贴' '人才补贴'
], ],
tableData5:[ tableData5: [
'事业单位', '事业单位',
'企业单位', '企业单位',
'社会组织' '社会组织'
], ],
tableData6:[ tableData6: [
'工业', '工业',
'建筑业', '建筑业',
'金融业', '金融业',
...@@ -181,7 +183,7 @@ ...@@ -181,7 +183,7 @@
'电力、热力、燃气及水生产和供应业', '电力、热力、燃气及水生产和供应业',
'其他' '其他'
], ],
tableData7:[ tableData7: [
'普惠(创新券/社保补贴/创业补贴等)', '普惠(创新券/社保补贴/创业补贴等)',
'科技创新', '科技创新',
'人才类', '人才类',
...@@ -207,7 +209,7 @@ ...@@ -207,7 +209,7 @@
'产品认定', '产品认定',
'其他' '其他'
], ],
tableData8:[ tableData8: [
'基础与应用基础研究', '基础与应用基础研究',
'社会民生', '社会民生',
'现代服务业', '现代服务业',
...@@ -218,7 +220,7 @@ ...@@ -218,7 +220,7 @@
'创业补贴', '创业补贴',
'人才补贴' '人才补贴'
], ],
tableData9:[ tableData9: [
'2019', '2019',
'2018', '2018',
'2017', '2017',
...@@ -227,31 +229,31 @@ ...@@ -227,31 +229,31 @@
'2014', '2014',
'2013' '2013'
], ],
colorList:[{ colorList: [{
bgColor:"#EDEEFA", bgColor: "#EDEEFA",
fontColor:"#5B65D3" fontColor: "#5B65D3"
},{ }, {
bgColor:"#FDF2EC", bgColor: "#FDF2EC",
fontColor:"#FC835A" fontColor: "#FC835A"
},{ }, {
bgColor:"#FFEBF5", bgColor: "#FFEBF5",
fontColor:"#FF75B3" fontColor: "#FF75B3"
},{ }, {
bgColor:"#E1EDFB", bgColor: "#E1EDFB",
fontColor:"#3CACFF" fontColor: "#3CACFF"
},{ }, {
bgColor:"#E0F4E8", bgColor: "#E0F4E8",
fontColor:"#54D02F" fontColor: "#54D02F"
},{ }, {
bgColor:"#E8F7F9", bgColor: "#E8F7F9",
fontColor:"#30BBCE" fontColor: "#30BBCE"
}] }]
} }
}, },
methods: { methods: {
rgba() { rgba() {
var color = this.colorList[Math.floor(Math.random()*this.colorList.length)]; var color = this.colorList[Math.floor(Math.random() * this.colorList.length)];
return `color:${color.fontColor};background-color:${color.bgColor}`; return `color:${color.fontColor};background-color:${color.bgColor}`;
}, },
inputDel(input) { inputDel(input) {
...@@ -346,7 +348,7 @@ ...@@ -346,7 +348,7 @@
handleCurrentChange(val) { handleCurrentChange(val) {
this.zcPost(val) this.zcPost(val)
}, },
consulting () { consulting() {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', { this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -364,18 +366,19 @@ ...@@ -364,18 +366,19 @@
}); });
}, },
articleDetails(obj) { articleDetails(obj) {
console.log(obj, '==========111');
this.detailPageType = false; this.detailPageType = false;
scrollTo(0,0); scrollTo(0, 0);
this.recommendationsObj = obj; this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list; this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr,'11111111111111'); console.log(this.portrayalArr, '11111111111111');
axios.post('http://43.247.184.92:8018/gsb/api/zcdetailcount',{ axios.post('http://106.13.228.212:8012/gsb/api/zcdetailcount', {
"ID": obj.ID, "ID": obj.ID,
"count":0 "count": 0
}).then( d => { }).then(d => {
console.log(d,'================================='); console.log(d, '=================================');
var data = d.data.data; var data = d.data.result_count;
this.recommendationsArr = data this.count = data
}) })
}, },
/*before(i) { /*before(i) {
...@@ -384,7 +387,7 @@ ...@@ -384,7 +387,7 @@
after(i) { after(i) {
this.rKey = i+1; this.rKey = i+1;
},*/ },*/
next () { next() {
this.detailPageType = true; this.detailPageType = true;
this.zccompanyPost(); this.zccompanyPost();
this.zcPost() this.zcPost()
...@@ -401,44 +404,44 @@ ...@@ -401,44 +404,44 @@
this.zccompanyNamePost() this.zccompanyNamePost()
}, },
color16(){ color16(){
var r = Math.floor(Math.random()*256); var r = Math.floor(Math.random() * 256);
var g = Math.floor(Math.random()*256); var g = Math.floor(Math.random() * 256);
var b = Math.floor(Math.random()*256); var b = Math.floor(Math.random() * 256);
var color = 'background-color:' + '#'+r.toString(16)+g.toString(16)+b.toString(16); var color = 'background-color:' + '#' + r.toString(16) + g.toString(16) + b.toString(16);
return color; return color;
}, },
rgb(){ rgb(){
var r = Math.floor(Math.random()*256); var r = Math.floor(Math.random() * 256);
var g = Math.floor(Math.random()*256); var g = Math.floor(Math.random() * 256);
var b = Math.floor(Math.random()*256); var b = Math.floor(Math.random() * 256);
var rgb = 'color:' + 'rgba('+r+','+g+','+b+', 1)' + ';' + 'background-color:' + 'rgba('+r+','+g+','+b+', 0.3)'; var rgb = 'color:' + 'rgba(' + r + ',' + g + ',' + b + ', 1)' + ';' + 'background-color:' + 'rgba(' + r + ',' + g + ',' + b + ', 0.3)';
return rgb; return rgb;
}, },
leftswiperList () { leftswiperList() {
console.log(this.$refs.swiperList.offsetWidth); console.log(this.$refs.swiperList.offsetWidth);
if (this.transformNumber < 0) { if (this.transformNumber < 0) {
this.transformNumber = this.transformNumber + 360; this.transformNumber = this.transformNumber + 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)'; this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
} }
}, },
rightswiperList () { rightswiperList() {
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) { if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) {
this.transformNumber = this.transformNumber - 360; this.transformNumber = this.transformNumber - 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)'; this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
} }
}, },
zccompanyNamePost() { zccompanyNamePost() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name',{ axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name', {
"company_name": this.zcoName "company_name": this.zcoName
}).then( d => { }).then(d => {
console.log(d,'================================='); console.log(d, '=================================');
var data = d.data.data; var data = d.data.data;
this.portrayalArr = d.data.company_keys; this.portrayalArr = d.data.company_keys;
this.recommendationsArr = data this.recommendationsArr = data
}) })
}, },
zcPost(size) { zcPost(size) {
/*http://43.247.184.92:8018/gsb/api/zc*/ /*http://43.247.184.92:8018/gsb/api/zc
axios.post('http://43.247.184.92:8019/gsb/api/zc',{ axios.post('http://43.247.184.92:8019/gsb/api/zc',{
"zctext": this.zctext, "zctext": this.zctext,
"currentpage": size || 1, "currentpage": size || 1,
...@@ -460,10 +463,25 @@ ...@@ -460,10 +463,25 @@
this.total = d.data.total; this.total = d.data.total;
this.tableData1 = d.data.cityname_list; this.tableData1 = d.data.cityname_list;
console.log(this.recommendationsArr,12312312321); console.log(this.recommendationsArr,12312312321);
})*/
axios.post('http://106.13.228.212:8012/gsb/api/zc', {
"zctext": this.zctext,
"currentpage": size || 1,
"pagesize": 15,
"model": '管理办法',
"hot_word": this.input2,
"address": this.areaName
}).then(d => {
console.log(d, '---------------------------------');
var data = d.data.data;
this.recommendationsArr = data;
this.total = d.data.total;
this.tableData1 = d.data.cityname_list;
console.log(this.recommendationsArr, 12312312321);
}) })
}, },
zccompanyPost() { zccompanyPost() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany',{}).then( d => { axios.post('http://43.247.184.92:8018/gsb/api/zccompany', {}).then(d => {
console.log(d); console.log(d);
var data = d.data.data; var data = d.data.data;
this.portrayalArr = data this.portrayalArr = data
...@@ -510,11 +528,10 @@ ...@@ -510,11 +528,10 @@
this.areaName = localStorage.getItem("areaName"); this.areaName = localStorage.getItem("areaName");
this.zcPost(); this.zcPost();
this.zccompanyPost(); this.zccompanyPost();
console.log(this.$route.query.name,'======================'); console.log(this.$route.query.name, '======================');
if(this.$route.query.name!=""){ if (this.$route.query.name != "") {
this.quanbu = this.$route.query.name; this.quanbu = this.$route.query.name;
} }
}, },
vname: "gsb-policyquery" vname: "gsb-policyquery"
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div style="width:100%;margin: 0 auto;"> <div style="width:100%;margin: 0 auto;">
<div style="z-index:1;position:relative;background-color:#31373b"> <div style="z-index:1;position:relative;background-color:#31373b">
<img style="width:100%;height:auto" :src="loginUrl" /> <img style="width:100%;height:auto" :src="loginUrl" />
<div class="login-title"> <div class="login-title" v-if="companyinfo.company.siteTheme == \'policy\'">
<span class="tong">政企通</span> <span class="tong">政企通</span>
<span class="shujuzi">政策大数据服务平台</span> <span class="shujuzi">政策大数据服务平台</span>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment