Commit 7493fe44 by 刘泽奇

123

parents 5d0717b8 d15089a9
...@@ -497,7 +497,8 @@ ...@@ -497,7 +497,8 @@
<div id="app" v-loading="loading" class="app-main" style="visibility: hidden" @mouseover="hidePanel($event)"> <div id="app" v-loading="loading" class="app-main" style="visibility: hidden" @mouseover="hidePanel($event)">
<div id="app-header"> <div id="app-header">
<div :class="isfront ? 'header-main' : 'header-main-houtai'"> <div :class="isfront ? 'header-main' : 'header-main-houtai'">
<div class="header-main-title" @click="backhome">一站式智能化服务平台</div> <div class="header-main-title" @click="backhome(companyinfo.company.siteTheme)" v-if="companyinfo.company.siteTheme == 'policyShop' || companyinfo.company.siteTheme == 'policy'"> <span style="font-size: 18px;">政企通</span> 丨 政策大数据服务平台</div>
<div class="header-main-title" @click="backhome" v-else>一站式智能化服务平台</div>
<div class="header-main-title1" style="margin-left:11px;" <div class="header-main-title1" style="margin-left:11px;"
v-if="companyinfo.company.siteTheme == 'policy'"> v-if="companyinfo.company.siteTheme == 'policy'">
<el-popover placement="bottom-start" width="511" trigger="hover"> <el-popover placement="bottom-start" width="511" trigger="hover">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -555,8 +555,9 @@ var app = new Vue({ ...@@ -555,8 +555,9 @@ var app = new Vue({
if (item == "declare") { if (item == "declare") {
this.stageType = false; this.stageType = false;
this.pushx({ this.pushx({
title: "政策资讯", title: "申报通知",
name: "/declare" name: "/declare",
params: { name: '申报通知' }
}); });
return false; return false;
} }
...@@ -564,7 +565,8 @@ var app = new Vue({ ...@@ -564,7 +565,8 @@ var app = new Vue({
this.stageType = false; this.stageType = false;
this.pushx({ this.pushx({
title: "立项公示", title: "立项公示",
name: "/projectpublicity" name: "/projectpublicity",
params: { name: '立项公示' }
}); });
return false; return false;
} }
...@@ -572,7 +574,8 @@ var app = new Vue({ ...@@ -572,7 +574,8 @@ var app = new Vue({
this.stageType = false; this.stageType = false;
this.pushx({ this.pushx({
title: "管理办法", title: "管理办法",
name: "/managementmeasures" name: "/managementmeasures",
params: { name: '管理办法' }
}); });
return false; return false;
} }
...@@ -1042,8 +1045,10 @@ var app = new Vue({ ...@@ -1042,8 +1045,10 @@ var app = new Vue({
} }
}, },
backhome() { backhome(name) {
if (name == 'policyShop') {
return window.open( location.protocol+ "?paramtheme=policy#/");
}
this.pushx({ this.pushx({
title: "首页", title: "首页",
name: "/" name: "/"
...@@ -1403,7 +1408,8 @@ var app = new Vue({ ...@@ -1403,7 +1408,8 @@ var app = new Vue({
if (k == "declare") { if (k == "declare") {
this.pushx({ this.pushx({
title: "政策资讯", title: "政策资讯",
name: "/declare" name: "/declare",
params: { name: '申报通知' }
}); });
} }
if (k == "policybigdata") { if (k == "policybigdata") {
......
...@@ -3,9 +3,8 @@ ...@@ -3,9 +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 ? \'\':\'pitch\'" @click="quanClick1()">申报通知({{total}})</div> <div :class="quanbu == item.title ? \'pitch\' : \'\'" v-for="item in quanData1" @click="quanClick1(item)">
<div :class="quanbu == item ? \'pitch\' : \'\'" v-for="item in quanData1" @click="quanClick1(item)"> {{item.title}}</div>
{{item}}</div>
</div> </div>
</div> </div>
...@@ -180,7 +179,7 @@ ...@@ -180,7 +179,7 @@
<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;\'"></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>
......
{ {
template: '${tmpl}', template: '${tmpl}',
data: function() { data: function() {
return { return {
total: 0, total: 0,
state2: '', state2: '',
show2: false, show2: false,
policyArr: [], policyArr: [],
recommendationsArr: [], recommendationsArr: [],
policyOptions: [{ policyOptions: [{
value: '北京东方飞扬软件股份有限公司', value: '北京东方飞扬软件股份有限公司',
label: '北京东方飞扬软件股份有限公司' label: '北京东方飞扬软件股份有限公司'
}], }],
policyValue: '', policyValue: '',
transformNumber: 0, transformNumber: 0,
portrayalArr: [], portrayalArr: [],
zctext: '', zctext: '',
detailPageType: true, detailPageType: true,
recommendationsObj: {}, recommendationsObj: {},
recommendationsObjBefore: {}, recommendationsObjBefore: {},
recommendationsObjAfter: {}, recommendationsObjAfter: {},
companyObj: {}, companyObj: {},
rKey: null, rKey: null,
zcoName: '', zcoName: '',
activeNames: ['1'], activeNames: ['1'],
headerHeight: true, headerHeight: true,
headerHeight1: true, headerHeight1: true,
headerHeight2: true, headerHeight2: true,
headerHeight3: true, headerHeight3: true,
headerHeight4: true, headerHeight4: true,
headerHeight5: true, headerHeight5: true,
headerHeight6: true, headerHeight6: true,
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'
}
],
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'
}
],
quanData1:[
'立项公示(134)',
'管理办法(103)',
'政策图解(1)',
'政务信息(13)',
'新闻资讯(69)',
],
tableData1: [
'北京',
'天津',
'上海',
'重庆',
'河北',
'河南',
'云南',
'辽宁',
'黑龙江',
'湖南',
'安徽',
'山东',
'江苏',
'浙江',
'江西',
'湖北',
'新疆维吾尔族自治区',
'广西壮族自治区',
'甘肃',
'山西',
'陕西',
'内蒙古自治区',
'吉林',
'福建',
'贵州',
'广东',
'青海',
'西藏自治区',
'夏回族自治区',
'四川'
],
tableData2:[
'部委',
'省级',
'市级',
'区级'
],
tableData3:[
'发改部门',
'教育部门',
'科学技术部门',
'工业和信息化部门',
'人社部门',
'生态环境部门',
'交通运输部门',
'农业农村部门',
'商务部门',
'文化和旅游部门',
'知识产权部门',
'财政部门',
'税务部门',
'国防科技部门',
'开发区/高新区/自贸区',
'市场监督部门',
'其他部门'
],
tableData4:[
'资质荣誉',
'事前补助',
'研发费补助',
'奖励',
'贷款信息',
'担保补助',
'投资补贴',
'税收优惠',
'创业补贴',
'人才补贴'
],
tableData5:[
'事业单位',
'企业单位',
'社会组织'
],
tableData6:[
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7:[
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
'资质认定',
'商贸业/电子商务/交通/现代物流',
'税收优惠',
'技术改造',
'智能制造',
'现代服务业',
'工程中心/技术中心/实验室/研发机构',
'金融补贴',
'首台/首套',
'绿色建筑',
'创客空间/孵化器/产业园/科技园',
'生物医药',
'航空航天',
'奖项评选',
'知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台',
'龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴',
'产品认定',
'其他'
],
tableData8:[
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9:[
'2019',
'2018',
'2017',
'2016',
'2015',
'2014',
'2013'
],
colorList:[{
bgColor:"#EDEEFA",
fontColor:"#5B65D3"
},{
bgColor:"#FDF2EC",
fontColor:"#FC835A"
},{
bgColor:"#FFEBF5",
fontColor:"#FF75B3"
},{
bgColor:"#E1EDFB",
fontColor:"#3CACFF"
},{
bgColor:"#E0F4E8",
fontColor:"#54D02F"
},{
bgColor:"#E8F7F9",
fontColor:"#30BBCE"
}]
}
}, },
{
methods: { 'path': 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
rgba() { }
var color = this.colorList[Math.floor(Math.random()*this.colorList.length)]; ],
return `color:${color.fontColor};background-color:${color.bgColor}`; loopplays: [
}, {
inputDel(input) { leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
console.log(input);
this[input] = '';
this.zcPost()
},
tableDataClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.input1 = val;
this.zcPost()
},
quanClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.quanbu = val;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input2 = val;
this.zcPost()
},
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input3 = val;
this.zcPost()
},
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input4 = val;
this.zcPost()
},
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input5 = val;
this.zcPost()
},
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input6 = val;
this.zcPost()
},
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input7 = val;
this.zcPost()
},
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input8 = val;
this.zcPost()
},
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input9 = val;
this.zcPost()
},
search() {
this.zcPost()
},
handleCurrentChange(val) {
this.zcPost(val)
},
consulting () {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: ''
}).then(() => {
this.$message({
type: 'success',
message: '提交成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消提交'
});
});
},
articleDetails(obj) {
this.detailPageType = false;
scrollTo(0,0);
this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr,'11111111111111');
axios.post('http://43.247.184.92:8018/gsb/api/zcdetailcount',{
"ID": obj.ID,
"count":0
}).then( d => {
console.log(d,'=================================');
var data = d.data.data;
this.recommendationsArr = data
})
},
/*before(i) {
this.rKey = i-1;
},
after(i) {
this.rKey = i+1;
},*/
next () {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
},
LookHome() {
this.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
},
LookCompany(i) {
this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
this.zcoName = i.name;
this.zccompanyNamePost()
}, },
color16(){ {
var r = Math.floor(Math.random()*256); leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
var g = 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); quanData1: [
return color; {
}, title: '申报通知',
rgb(){ count: '111'
var r = Math.floor(Math.random()*256);
var g = 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)';
return rgb;
},
leftswiperList () {
console.log(this.$refs.swiperList.offsetWidth);
if (this.transformNumber < 0) {
this.transformNumber = this.transformNumber + 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
}, },
rightswiperList () { {
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) { title: '立项公示',
this.transformNumber = this.transformNumber - 360; count: '3054'
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
}, },
zccompanyNamePost() { {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name',{ title: '管理办法',
"company_name": this.zcoName count: '100'
}).then( d => {
console.log(d,'=================================');
var data = d.data.data;
this.portrayalArr = d.data.company_keys;
this.recommendationsArr = data
})
}, },
zcPost(size) { {
/*http://43.247.184.92:8018/gsb/api/zc*/ title: '政策图解',
axios.post('http://43.247.184.92:8019/gsb/api/zc',{ count: '200'
"zctext": this.zctext,
"currentpage": size || 1,
"pagesize":15,
"cityname": this.input1,
"policygrade": this.input2,
"policydepartment": this.input3,
"policytype": this.input4,
"qiye": this.input5,
"classification": this.input6,
"policydomain": this.input7,
"fieldtext": this.input8,
"year": this.input9,
"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() { {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany',{}).then( d => { title: '政务信息',
console.log(d); count: '300'
var data = d.data.data;
this.portrayalArr = data
})
}, },
getCompanyListPost() { {
/*function getLocalTime(nS) { title: '新闻资讯',
let date = new Date(nS); count: '400'
let year = date.getFullYear();
let month = date.getMonth()+1;
let day = date.getDate();
month = month < 10 ? "0"+month:month;
day = day < 10 ? "0"+day:day;
date = year+'-'+month+'-'+day;
return date;
};*/
var that = this;
this.$root.postReq("/web/tmquery/toolCtl/getCompanyList", {}).then(function (d) {
console.log(d, "//////////////////////////");
var data = d.data;
that.policyArr = [];
for (let i = 0; i < data.length; i++) {
data[i]['logo'] = data[i].name.substr(0, 4);
that.policyArr.push(data[i]);
};
console.log(that.policyArr)
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
} }
}, ],
mounted: function() { tableData1: [
$("#footer").show(); '北京',
/*for (let i = 0; i < this.portrayalArr.length; i++) { '天津',
this.portrayalArr[i].col = this.rgb(); '上海',
};*/ '重庆',
this.areaName = localStorage.getItem("areaName"); '河北',
this.zcPost(); '河南',
this.zccompanyPost(); '云南',
}, '辽宁',
vname: "gsb-policyquery" '黑龙江',
'湖南',
'安徽',
'山东',
'江苏',
'浙江',
'江西',
'湖北',
'新疆维吾尔族自治区',
'广西壮族自治区',
'甘肃',
'山西',
'陕西',
'内蒙古自治区',
'吉林',
'福建',
'贵州',
'广东',
'青海',
'西藏自治区',
'夏回族自治区',
'四川'
],
tableData2: [
'部委',
'省级',
'市级',
'区级'
],
tableData3: [
'发改部门',
'教育部门',
'科学技术部门',
'工业和信息化部门',
'人社部门',
'生态环境部门',
'交通运输部门',
'农业农村部门',
'商务部门',
'文化和旅游部门',
'知识产权部门',
'财政部门',
'税务部门',
'国防科技部门',
'开发区/高新区/自贸区',
'市场监督部门',
'其他部门'
],
tableData4: [
'资质荣誉',
'事前补助',
'研发费补助',
'奖励',
'贷款信息',
'担保补助',
'投资补贴',
'税收优惠',
'创业补贴',
'人才补贴'
],
tableData5: [
'事业单位',
'企业单位',
'社会组织'
],
tableData6: [
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7: [
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
'资质认定',
'商贸业/电子商务/交通/现代物流',
'税收优惠',
'技术改造',
'智能制造',
'现代服务业',
'工程中心/技术中心/实验室/研发机构',
'金融补贴',
'首台/首套',
'绿色建筑',
'创客空间/孵化器/产业园/科技园',
'生物医药',
'航空航天',
'奖项评选',
'知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台',
'龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴',
'产品认定',
'其他'
],
tableData8: [
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9: [
'2019',
'2018',
'2017',
'2016',
'2015',
'2014',
'2013'
],
colorList: [{
bgColor: "#EDEEFA",
fontColor: "#5B65D3"
}, {
bgColor: "#FDF2EC",
fontColor: "#FC835A"
}, {
bgColor: "#FFEBF5",
fontColor: "#FF75B3"
}, {
bgColor: "#E1EDFB",
fontColor: "#3CACFF"
}, {
bgColor: "#E0F4E8",
fontColor: "#54D02F"
}, {
bgColor: "#E8F7F9",
fontColor: "#30BBCE"
}]
}
},
methods: {
rgba() {
var color = this.colorList[Math.floor(Math.random() * this.colorList.length)];
return `color:${color.fontColor};background-color:${color.bgColor}`;
},
inputDel(input) {
console.log(input);
this[input] = '';
this.zcPost()
},
tableDataClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.input1 = val;
this.zcPost()
},
quanClick1(val) {
console.log(val.title);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.quanbu = val.title;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input2 = val;
this.zcPost()
},
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input3 = val;
this.zcPost()
},
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input4 = val;
this.zcPost()
},
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input5 = val;
this.zcPost()
},
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input6 = val;
this.zcPost()
},
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input7 = val;
this.zcPost()
},
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input8 = val;
this.zcPost()
},
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input9 = val;
this.zcPost()
},
search() {
this.zcPost()
},
handleCurrentChange(val) {
this.zcPost(val)
},
consulting() {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: ''
}).then(() => {
this.$message({
type: 'success',
message: '提交成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消提交'
});
});
},
articleDetails(obj) {
this.detailPageType = false;
scrollTo(0, 0);
this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr, '11111111111111');
axios.post('http://43.247.184.92:8018/gsb/api/zcdetailcount', {
"ID": obj.ID,
"count": 0
}).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.recommendationsArr = data
})
},
/*before(i) {
this.rKey = i-1;
},
after(i) {
this.rKey = i+1;
},*/
next() {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
},
LookHome() {
this.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
},
LookCompany(i) {
this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
this.zcoName = i.name;
this.zccompanyNamePost()
},
color16(){
var r = Math.floor(Math.random() * 256);
var g = 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);
return color;
},
rgb(){
var r = Math.floor(Math.random() * 256);
var g = 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)';
return rgb;
},
leftswiperList() {
console.log(this.$refs.swiperList.offsetWidth);
if (this.transformNumber < 0) {
this.transformNumber = this.transformNumber + 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
},
rightswiperList() {
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) {
this.transformNumber = this.transformNumber - 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
} }
},
\ No newline at end of file zccompanyNamePost() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name', {
"company_name": this.zcoName
}).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.portrayalArr = d.data.company_keys;
this.recommendationsArr = data
})
},
zcPost(size) {
/*http://43.247.184.92:8018/gsb/api/zc*/
axios.post('http://43.247.184.92:8019/gsb/api/zc', {
"zctext": this.zctext,
"currentpage": size || 1,
"pagesize": 15,
"cityname": this.input1,
"policygrade": this.input2,
"policydepartment": this.input3,
"policytype": this.input4,
"qiye": this.input5,
"classification": this.input6,
"policydomain": this.input7,
"fieldtext": this.input8,
"year": this.input9,
"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() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany', {}).then(d => {
console.log(d);
var data = d.data.data;
this.portrayalArr = data
})
},
getCompanyListPost() {
/*function getLocalTime(nS) {
let date = new Date(nS);
let year = date.getFullYear();
let month = date.getMonth()+1;
let day = date.getDate();
month = month < 10 ? "0"+month:month;
day = day < 10 ? "0"+day:day;
date = year+'-'+month+'-'+day;
return date;
};*/
var that = this;
this.$root.postReq("/web/tmquery/toolCtl/getCompanyList", {}).then(function (d) {
console.log(d, "//////////////////////////");
var data = d.data;
that.policyArr = [];
for (let i = 0; i < data.length; i++) {
data[i]['logo'] = data[i].name.substr(0, 4);
that.policyArr.push(data[i]);
};
console.log(that.policyArr)
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
},
payClick(){
console.log(1231231231232);
this.$root.pushx({
title: "政策订阅",
name: "/subscription"
});
}
},
mounted: function() {
$("#footer").show();
/*for (let i = 0; i < this.portrayalArr.length; i++) {
this.portrayalArr[i].col = this.rgb();
};*/
this.areaName = localStorage.getItem("areaName");
this.zcPost();
this.zccompanyPost();
console.log(this.$route.query.name, '======================');
if (this.$route.query.name != "") {
this.quanbu = this.$route.query.name;
}
},
vname: "gsb-policyquery"
}
...@@ -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>
......
<div class="policylist-warpper"> <div class="policylist-warpper">
<div class="policylist" v-if="detailPageType"> <div class="policylist" v-if="detailPageType">
<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 ? \'\':\'pitch\'" @click="quanClick1()">管理办法({{total}})</div> <div :class="quanbu == item.title ? \'pitch\' : \'\'" v-for="(item,index) in quanData1"
<div :class="quanbu == item ? \'pitch\' : \'\'" v-for="item in quanData1" @click="quanClick1(item)"> @click="quanClick1(item)">
{{item.title}}({{item.count}})</div> {{item.title}}</div>
</div>
</div> </div>
</div> </div>
</div>
<div style="display: flex;
<div style="display: flex;
margin-top: 30px;"> margin-top: 30px;">
<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"> <!-- 没数据 -->
<img src="/imgs/toubu.png" alt=""> <div class="shuju">
<!-- <div class="shuju">暂无数据</div> --> <img src="/imgs/toubu.png" alt="">
</div> <!-- <div class="shuju">暂无数据</div> -->
</div> </div>
<div v-else class="policylist-content-list" v-for="(i,k) in recommendationsArr">
<div class="policylist-conten-title" @click="articleDetails(i)">
<div class="shenbao2"> {{i.name}} </div>
</div> </div>
<div> <div v-else class="policylist-content-list" v-for="(i,k) in recommendationsArr">
<div class="policylist-conten-items"><span>{{i.source}}</span> <div class="policylist-conten-title" @click="articleDetails(i)">
<div class="shenbao2"> {{i.name}} </div>
</div> </div>
<div class="policylistsitems"><span> <div>
<p style="float: right; <div class="policylist-conten-items"  style="overflow: hidden;
margin-top: -20px;"><img src="/imgs/riqi.png" text-overflow: ellipsis;
alt="">&nbsp;申报日期:{{i.begindate}} white-space: nowrap;
</span></p> width: 80%;"><span>{{i.first_section}}</span>
</div>
<div class="policylistsitems"><span>
<p style="float: right;
margin-top: -20px;"><img src="/imgs/riqi.png" alt="">&nbsp;申报日期:{{i.begindate}}
</span></p>
</div>
</div> </div>
</div> </div>
</div>
</div>
<div class="policylist-content">
<div class="shuju2" style="margin-left: 19px;">
<el-carousel :interval="5000" arrow="never" height="200px">
<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;\'"></div>
</el-carousel-item>
</el-carousel>
</div>
<br>
<div class="shuju3">
<img src="/imgs/declare_dakuang.png" alt="">
<!-- <div class="shuju">暂无数据</div> -->
</div> </div>
<div class="policylist-content">
<div class="shuju2" style="margin-left: 19px;">
<el-carousel :interval="5000" arrow="never" height="200px">
<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>
</el-carousel-item>
</el-carousel>
</div>
<br>
<div class="shuju3">
<img src="/imgs/declare_dakuang.png" alt="">
<!-- <div class="shuju">暂无数据</div> -->
</div>
</div>
</div>
<div class="policylist-pagination" v-show="recommendationsArr.length">
<el-pagination background layout="prev, pager, next" @current-change="handleCurrentChange" :total="total">
</el-pagination>
</div> </div>
<div v-else></div>
</div> </div>
<div class="policylist-pagination" v-show="recommendationsArr.length">
<div class="policylist" v-if="!detailPageType"> <el-pagination background layout="prev, pager, next" @current-change="handleCurrentChange" :total="total">
<div class="policylist-header1" style="border:none;"> </el-pagination>
<div class="header-left">当前位置:<span @click="next">区域政策 > </span><span style="color: #108EE9;">政策详情</span> </div>
</div> <div v-else></div>
</div>
<div class="policylist" v-if="!detailPageType">
<div class="policylist-header1" style="border:none;">
<div class="header-left">当前位置:<span @click="next">区域政策 > </span><span style="color: #108EE9;">政策详情</span>
</div> </div>
<div style="width: 100%;height: 25px;"></div> </div>
<div class="policylist-portrayal"> <div style="width: 100%;height: 25px;"></div>
<div class="portrayal-left">政策画像</div> <div class="policylist-portrayal">
<div class="portrayal-right"> <div class="portrayal-left">政策画像</div>
<div class="portrayal-right-list" v-for="(item,key) in portrayalArr" :key="key" :style="rgba()">{{item}} <div class="portrayal-right">
</div> <div class="portrayal-right-list" v-for="(item,key) in portrayalArr" :key="key" :style="rgba()">{{item}}
</div> </div>
</div> </div>
<div class="henxian"></div> </div>
<div class="policylist-essay"> <div class="henxian"></div>
<div class="essay-title"> <div class="policylist-essay">
<div class="essay-title-name">{{recommendationsObj.name}}</div> <div class="essay-title">
<div class="essay-title-list"> <div class="essay-title-name">{{recommendationsObj.name}}</div>
<span>发布部门:{{recommendationsObj.source}}</span><span>阅读量:{{recommendationsObj.count}}</span><span>申报日期:{{recommendationsObj.begindate}}</span> <div class="essay-title-list">
</div> <span>阅读量:{{count}}</span><span>申报日期:{{recommendationsObj.begindate}}</span>
</div> </div>
<div class="essay-content" v-html="recommendationsObj.policytext"></div>
</div> </div>
<!-- <div class="policylist-buttons"> --> <div class="essay-content" v-html="recommendationsObj.policytext"></div>
<!-- <div style="border:1px solid rgba(88,184,72,1);color: #2AA515"><img src="/imgs/wx.png" alt="">分享到微信</div> </div>
<!-- <div class="policylist-buttons"> -->
<!-- <div style="border:1px solid rgba(88,184,72,1);color: #2AA515"><img src="/imgs/wx.png" alt="">分享到微信</div>
<div style="border:1px solid rgba(228,109,108,1);color: #E46D6C"><img src="/imgs/wb.png" alt="">分享到微博</div> <div style="border:1px solid rgba(228,109,108,1);color: #E46D6C"><img src="/imgs/wb.png" alt="">分享到微博</div>
<div style="border:1px solid rgba(255,189,29,1);color: #FFBD1D"><img src="/imgs/sc.png" alt="">收藏</div> --> <div style="border:1px solid rgba(255,189,29,1);color: #FFBD1D"><img src="/imgs/sc.png" alt="">收藏</div> -->
<!-- <div style="border:1px solid rgba(78,140,238,1);color:#4E8CEE" @click="consulting"><img src="/imgs/zx.png" alt="">政策咨询</div> --> <!-- <div style="border:1px solid rgba(78,140,238,1);color:#4E8CEE" @click="consulting"><img src="/imgs/zx.png" alt="">政策咨询</div> -->
<!-- </div> --> <!-- </div> -->
<!-- <div class="policylist-navigation"> <!-- <div class="policylist-navigation">
<div @click="before(rKey)" v-if="recommendationsObjBefore">上一篇:{{recommendationsObjBefore.name}}</div> <div @click="before(rKey)" v-if="recommendationsObjBefore">上一篇:{{recommendationsObjBefore.name}}</div>
<div @click="after(rKey)" v-if="recommendationsObjAfter">下一篇:{{recommendationsObjAfter.name}}</div> <div @click="after(rKey)" v-if="recommendationsObjAfter">下一篇:{{recommendationsObjAfter.name}}</div>
</div> --> </div> -->
<!-- <div class="policylist-qr"> <!-- <div class="policylist-qr">
<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
{ {
template: '${tmpl}', template: '${tmpl}',
data: function() { data: function() {
return { return {
total: 0, total: 0,
state2: '', state2: '',
show2: false, show2: false,
policyArr: [], policyArr: [],
recommendationsArr: [], recommendationsArr: [],
policyOptions: [{ count: '',
value: '北京东方飞扬软件股份有限公司', policyOptions: [{
label: '北京东方飞扬软件股份有限公司' value: '北京东方飞扬软件股份有限公司',
}], label: '北京东方飞扬软件股份有限公司'
policyValue: '', }],
transformNumber: 0, policyValue: '',
portrayalArr: [], transformNumber: 0,
zctext: '', portrayalArr: [],
detailPageType: true, zctext: '',
recommendationsObj: {}, detailPageType: true,
recommendationsObjBefore: {}, recommendationsObj: {},
recommendationsObjAfter: {}, recommendationsObjBefore: {},
companyObj: {}, recommendationsObjAfter: {},
rKey: null, companyObj: {},
zcoName: '', rKey: null,
activeNames: ['1'], zcoName: '',
headerHeight: true, activeNames: ['1'],
headerHeight1: true, headerHeight: true,
headerHeight2: true, headerHeight1: true,
headerHeight3: true, headerHeight2: true,
headerHeight4: true, headerHeight3: true,
headerHeight5: true, headerHeight4: true,
headerHeight6: true, headerHeight5: true,
headerHeight7: true, headerHeight6: true,
headerHeight8: true, headerHeight7: true,
headerHeight9: true, headerHeight8: true,
areaName:'', headerHeight9: true,
input1:'', areaName: '',
input2:'', input1: '',
input3:'', input2: '',
input4:'', input3: '',
input5:'', input4: '',
input6:'', input5: '',
input7:'', input6: '',
input8:'', input7: '',
input9:'', input8: '',
quanbu:'', input9: '',
imgurls:[ quanbu: '',
{ 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'
}
],
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'
}
],
quanData1:[
{ {
title:'申报通知', 'path': 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
count:'3054' }
],
loopplays: [
{
leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
}, },
{ {
title:'立项公示', leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
count:'100' }
],
quanData1: [
{
title: '申报通知',
count: '111'
}, },
{ {
title:'政策图解', title: '立项公示',
count:'200' count: '3054'
}, },
{ {
title:'政务信息', title: '管理办法',
count:'300' count: '100'
}, },
{ {
title:'新闻资讯(69)', title: '政策图解',
count:'400' count: '200'
}
],
tableData1: [
'北京',
'天津',
'上海',
'重庆',
'河北',
'河南',
'云南',
'辽宁',
'黑龙江',
'湖南',
'安徽',
'山东',
'江苏',
'浙江',
'江西',
'湖北',
'新疆维吾尔族自治区',
'广西壮族自治区',
'甘肃',
'山西',
'陕西',
'内蒙古自治区',
'吉林',
'福建',
'贵州',
'广东',
'青海',
'西藏自治区',
'夏回族自治区',
'四川'
],
tableData2:[
'部委',
'省级',
'市级',
'区级'
],
tableData3:[
'发改部门',
'教育部门',
'科学技术部门',
'工业和信息化部门',
'人社部门',
'生态环境部门',
'交通运输部门',
'农业农村部门',
'商务部门',
'文化和旅游部门',
'知识产权部门',
'财政部门',
'税务部门',
'国防科技部门',
'开发区/高新区/自贸区',
'市场监督部门',
'其他部门'
],
tableData4:[
'资质荣誉',
'事前补助',
'研发费补助',
'奖励',
'贷款信息',
'担保补助',
'投资补贴',
'税收优惠',
'创业补贴',
'人才补贴'
],
tableData5:[
'事业单位',
'企业单位',
'社会组织'
],
tableData6:[
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7:[
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
'资质认定',
'商贸业/电子商务/交通/现代物流',
'税收优惠',
'技术改造',
'智能制造',
'现代服务业',
'工程中心/技术中心/实验室/研发机构',
'金融补贴',
'首台/首套',
'绿色建筑',
'创客空间/孵化器/产业园/科技园',
'生物医药',
'航空航天',
'奖项评选',
'知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台',
'龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴',
'产品认定',
'其他'
],
tableData8:[
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9:[
'2019',
'2018',
'2017',
'2016',
'2015',
'2014',
'2013'
],
colorList:[{
bgColor:"#EDEEFA",
fontColor:"#5B65D3"
},{
bgColor:"#FDF2EC",
fontColor:"#FC835A"
},{
bgColor:"#FFEBF5",
fontColor:"#FF75B3"
},{
bgColor:"#E1EDFB",
fontColor:"#3CACFF"
},{
bgColor:"#E0F4E8",
fontColor:"#54D02F"
},{
bgColor:"#E8F7F9",
fontColor:"#30BBCE"
}]
}
},
methods: {
rgba() {
var color = this.colorList[Math.floor(Math.random()*this.colorList.length)];
return `color:${color.fontColor};background-color:${color.bgColor}`;
},
inputDel(input) {
console.log(input);
this[input] = '';
this.zcPost()
},
tableDataClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.input1 = val;
this.zcPost()
},
quanClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.quanbu = val;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input2 = val;
this.zcPost()
},
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input3 = val;
this.zcPost()
},
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input4 = val;
this.zcPost()
},
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input5 = val;
this.zcPost()
},
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input6 = val;
this.zcPost()
},
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input7 = val;
this.zcPost()
},
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input8 = val;
this.zcPost()
},
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input9 = val;
this.zcPost()
},
search() {
this.zcPost()
},
handleCurrentChange(val) {
this.zcPost(val)
},
consulting () {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: ''
}).then(() => {
this.$message({
type: 'success',
message: '提交成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消提交'
});
});
},
articleDetails(obj) {
this.detailPageType = false;
scrollTo(0,0);
this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr,'11111111111111');
axios.post('http://43.247.184.92:8018/gsb/api/zcdetailcount',{
"ID": obj.ID,
"count":0
}).then( d => {
console.log(d,'=================================');
var data = d.data.data;
this.recommendationsArr = data
})
},
/*before(i) {
this.rKey = i-1;
},
after(i) {
this.rKey = i+1;
},*/
next () {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
},
LookHome() {
this.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
},
LookCompany(i) {
this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
this.zcoName = i.name;
this.zccompanyNamePost()
},
color16(){
var r = Math.floor(Math.random()*256);
var g = 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);
return color;
}, },
rgb(){ {
var r = Math.floor(Math.random()*256); title: '政务信息',
var g = Math.floor(Math.random()*256); count: '300'
var b = Math.floor(Math.random()*256);
var rgb = 'color:' + 'rgba('+r+','+g+','+b+', 1)' + ';' + 'background-color:' + 'rgba('+r+','+g+','+b+', 0.3)';
return rgb;
}, },
leftswiperList () { {
console.log(this.$refs.swiperList.offsetWidth); title: '新闻资讯',
if (this.transformNumber < 0) { count: '400'
this.transformNumber = this.transformNumber + 360; }
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)'; ],
} tableData1: [
}, '北京',
rightswiperList () { '天津',
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) { '上海',
this.transformNumber = this.transformNumber - 360; '重庆',
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)'; '河北',
} '河南',
}, '云南',
zccompanyNamePost() { '辽宁',
axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name',{ '黑龙江',
"company_name": this.zcoName '湖南',
}).then( d => { '安徽',
console.log(d,'================================='); '山东',
var data = d.data.data; '江苏',
this.portrayalArr = d.data.company_keys; '浙江',
this.recommendationsArr = data '江西',
}) '湖北',
}, '新疆维吾尔族自治区',
zcPost(size) { '广西壮族自治区',
/*http://43.247.184.92:8018/gsb/api/zc*/ '甘肃',
axios.post('http://43.247.184.92:8019/gsb/api/zc',{ '山西',
"zctext": this.zctext, '陕西',
"currentpage": size || 1, '内蒙古自治区',
"pagesize":15, '吉林',
"cityname": this.input1, '福建',
"policygrade": this.input2, '贵州',
"policydepartment": this.input3, '广东',
"policytype": this.input4, '青海',
"qiye": this.input5, '西藏自治区',
"classification": this.input6, '夏回族自治区',
"policydomain": this.input7, '四川'
"fieldtext": this.input8, ],
"year": this.input9, tableData2: [
"address":this.areaName '部委',
}).then( d => { '省级',
console.log(d,'---------------------------------'); '市级',
var data = d.data.data; '区级'
this.recommendationsArr = data; ],
this.total = d.data.total; tableData3: [
this.tableData1 = d.data.cityname_list; '发改部门',
console.log(this.recommendationsArr,12312312321); '教育部门',
}) '科学技术部门',
}, '工业和信息化部门',
zccompanyPost() { '人社部门',
axios.post('http://43.247.184.92:8018/gsb/api/zccompany',{}).then( d => { '生态环境部门',
console.log(d); '交通运输部门',
var data = d.data.data; '农业农村部门',
this.portrayalArr = data '商务部门',
}) '文化和旅游部门',
}, '知识产权部门',
getCompanyListPost() { '财政部门',
/*function getLocalTime(nS) { '税务部门',
let date = new Date(nS); '国防科技部门',
let year = date.getFullYear(); '开发区/高新区/自贸区',
let month = date.getMonth()+1; '市场监督部门',
let day = date.getDate(); '其他部门'
month = month < 10 ? "0"+month:month; ],
day = day < 10 ? "0"+day:day; tableData4: [
date = year+'-'+month+'-'+day; '资质荣誉',
return date; '事前补助',
};*/ '研发费补助',
var that = this; '奖励',
this.$root.postReq("/web/tmquery/toolCtl/getCompanyList", {}).then(function (d) { '贷款信息',
console.log(d, "//////////////////////////"); '担保补助',
var data = d.data; '投资补贴',
that.policyArr = []; '税收优惠',
for (let i = 0; i < data.length; i++) { '创业补贴',
data[i]['logo'] = data[i].name.substr(0, 4); '人才补贴'
that.policyArr.push(data[i]); ],
}; tableData5: [
console.log(that.policyArr) '事业单位',
}).catch(function (e) { '企业单位',
console.log(`操作失败,请刷新页面后重新操作`); '社会组织'
],
tableData6: [
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7: [
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
'资质认定',
'商贸业/电子商务/交通/现代物流',
'税收优惠',
'技术改造',
'智能制造',
'现代服务业',
'工程中心/技术中心/实验室/研发机构',
'金融补贴',
'首台/首套',
'绿色建筑',
'创客空间/孵化器/产业园/科技园',
'生物医药',
'航空航天',
'奖项评选',
'知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台',
'龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴',
'产品认定',
'其他'
],
tableData8: [
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9: [
'2019',
'2018',
'2017',
'2016',
'2015',
'2014',
'2013'
],
colorList: [{
bgColor: "#EDEEFA",
fontColor: "#5B65D3"
}, {
bgColor: "#FDF2EC",
fontColor: "#FC835A"
}, {
bgColor: "#FFEBF5",
fontColor: "#FF75B3"
}, {
bgColor: "#E1EDFB",
fontColor: "#3CACFF"
}, {
bgColor: "#E0F4E8",
fontColor: "#54D02F"
}, {
bgColor: "#E8F7F9",
fontColor: "#30BBCE"
}]
}
},
methods: {
rgba() {
var color = this.colorList[Math.floor(Math.random() * this.colorList.length)];
return `color:${color.fontColor};background-color:${color.bgColor}`;
},
inputDel(input) {
console.log(input);
this[input] = '';
this.zcPost()
},
tableDataClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.input1 = val;
this.zcPost()
},
quanClick1(val) {
console.log(val.title);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.quanbu = val.title;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input2 = val;
this.zcPost()
},
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input3 = val;
this.zcPost()
},
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input4 = val;
this.zcPost()
},
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input5 = val;
this.zcPost()
},
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input6 = val;
this.zcPost()
},
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input7 = val;
this.zcPost()
},
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input8 = val;
this.zcPost()
},
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input9 = val;
this.zcPost()
},
search() {
this.zcPost()
},
handleCurrentChange(val) {
this.zcPost(val)
},
consulting() {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: ''
}).then(() => {
this.$message({
type: 'success',
message: '提交成功!'
}); });
}).catch(() => {
this.$message({
type: 'info',
message: '已取消提交'
});
});
},
articleDetails(obj) {
console.log(obj, '==========111');
this.detailPageType = false;
scrollTo(0, 0);
this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr, '11111111111111');
axios.post('http://106.13.228.212:8012/gsb/api/zcdetailcount', {
"ID": obj.ID,
"count": 0
}).then(d => {
console.log(d, '=================================');
var data = d.data.result_count;
this.count = data
})
},
/*before(i) {
this.rKey = i-1;
},
after(i) {
this.rKey = i+1;
},*/
next() {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
},
LookHome() {
this.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
},
LookCompany(i) {
this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
this.zcoName = i.name;
this.zccompanyNamePost()
},
color16(){
var r = Math.floor(Math.random() * 256);
var g = 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);
return color;
},
rgb(){
var r = Math.floor(Math.random() * 256);
var g = 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)';
return rgb;
},
leftswiperList() {
console.log(this.$refs.swiperList.offsetWidth);
if (this.transformNumber < 0) {
this.transformNumber = this.transformNumber + 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
},
rightswiperList() {
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) {
this.transformNumber = this.transformNumber - 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
} }
}, },
mounted: function() { zccompanyNamePost() {
$("#footer").show(); axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name', {
/*for (let i = 0; i < this.portrayalArr.length; i++) { "company_name": this.zcoName
this.portrayalArr[i].col = this.rgb(); }).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.portrayalArr = d.data.company_keys;
this.recommendationsArr = data
})
},
zcPost(size) {
/*http://43.247.184.92:8018/gsb/api/zc
axios.post('http://43.247.184.92:8019/gsb/api/zc',{
"zctext": this.zctext,
"currentpage": size || 1,
"pagesize":15,
"cityname": this.input1,
"policygrade": this.input2,
"policydepartment": this.input3,
"policytype": this.input4,
"qiye": this.input5,
"classification": this.input6,
"policydomain": this.input7,
"fieldtext": this.input8,
"year": this.input9,
"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);
})*/
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() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany', {}).then(d => {
console.log(d);
var data = d.data.data;
this.portrayalArr = data
})
},
getCompanyListPost() {
/*function getLocalTime(nS) {
let date = new Date(nS);
let year = date.getFullYear();
let month = date.getMonth()+1;
let day = date.getDate();
month = month < 10 ? "0"+month:month;
day = day < 10 ? "0"+day:day;
date = year+'-'+month+'-'+day;
return date;
};*/ };*/
this.areaName = localStorage.getItem("areaName"); var that = this;
this.zcPost(); this.$root.postReq("/web/tmquery/toolCtl/getCompanyList", {}).then(function (d) {
this.zccompanyPost(); console.log(d, "//////////////////////////");
var data = d.data;
that.policyArr = [];
for (let i = 0; i < data.length; i++) {
data[i]['logo'] = data[i].name.substr(0, 4);
that.policyArr.push(data[i]);
};
console.log(that.policyArr)
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
}, },
vname: "gsb-policyquery" payClick(){
} console.log(1231231231232);
this.$root.pushx({
\ No newline at end of file title: "政策订阅",
name: "/subscription"
});
}
},
mounted: function() {
$("#footer").show();
/*for (let i = 0; i < this.portrayalArr.length; i++) {
this.portrayalArr[i].col = this.rgb();
};*/
this.areaName = localStorage.getItem("areaName");
this.zcPost();
this.zccompanyPost();
console.log(this.$route.query.name, '======================');
if (this.$route.query.name != "") {
this.quanbu = this.$route.query.name;
}
},
vname: "gsb-policyquery"
}
...@@ -3,9 +3,8 @@ ...@@ -3,9 +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 ? \'\':\'pitch\'" @click="quanClick1()">立项公示({{total}})</div> <div :class="quanbu == item.title ? \'pitch\' : \'\'" v-for="item in quanData1" @click="quanClick1(item)">
<div :class="quanbu == item ? \'pitch\' : \'\'" v-for="item in quanData1" @click="quanClick1(item)"> {{item.title}}</div>
{{item.title}}({{item.count}})</div>
</div> </div>
</div> </div>
...@@ -175,7 +174,7 @@ ...@@ -175,7 +174,7 @@
<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;\'"></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>
......
{ {
template: '${tmpl}', template: '${tmpl}',
data: function() { data: function() {
return { return {
total: 0, total: 0,
state2: '', state2: '',
show2: false, show2: false,
policyArr: [], policyArr: [],
recommendationsArr: [], recommendationsArr: [],
policyOptions: [{ policyOptions: [{
value: '北京东方飞扬软件股份有限公司', value: '北京东方飞扬软件股份有限公司',
label: '北京东方飞扬软件股份有限公司' label: '北京东方飞扬软件股份有限公司'
}], }],
policyValue: '', policyValue: '',
transformNumber: 0, transformNumber: 0,
portrayalArr: [], portrayalArr: [],
zctext: '', zctext: '',
detailPageType: true, detailPageType: true,
recommendationsObj: {}, recommendationsObj: {},
recommendationsObjBefore: {}, recommendationsObjBefore: {},
recommendationsObjAfter: {}, recommendationsObjAfter: {},
companyObj: {}, companyObj: {},
rKey: null, rKey: null,
zcoName: '', zcoName: '',
activeNames: ['1'], activeNames: ['1'],
headerHeight: true, headerHeight: true,
headerHeight1: true, headerHeight1: true,
headerHeight2: true, headerHeight2: true,
headerHeight3: true, headerHeight3: true,
headerHeight4: true, headerHeight4: true,
headerHeight5: true, headerHeight5: true,
headerHeight6: true, headerHeight6: true,
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'
}
],
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'
}
],
quanData1:[
{ {
title:'申报通知', 'path': 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
count:'3054' }
],
loopplays: [
{
leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
}, },
{ {
title:'管理办法', leftimg: 'https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_44810157502884567420192920045674declare_tuisong.png'
count:'100' }
],
quanData1: [
{
title: '申报通知',
count: '111'
}, },
{ {
title:'政策图解', title: '立项公示',
count:'200' count: '3054'
}, },
{ {
title:'政务信息', title: '管理办法',
count:'300' count: '100'
}, },
{ {
title:'新闻资讯(69)', title: '政策图解',
count:'400' count: '200'
}
],
tableData1: [
'北京',
'天津',
'上海',
'重庆',
'河北',
'河南',
'云南',
'辽宁',
'黑龙江',
'湖南',
'安徽',
'山东',
'江苏',
'浙江',
'江西',
'湖北',
'新疆维吾尔族自治区',
'广西壮族自治区',
'甘肃',
'山西',
'陕西',
'内蒙古自治区',
'吉林',
'福建',
'贵州',
'广东',
'青海',
'西藏自治区',
'夏回族自治区',
'四川'
],
tableData2:[
'部委',
'省级',
'市级',
'区级'
],
tableData3:[
'发改部门',
'教育部门',
'科学技术部门',
'工业和信息化部门',
'人社部门',
'生态环境部门',
'交通运输部门',
'农业农村部门',
'商务部门',
'文化和旅游部门',
'知识产权部门',
'财政部门',
'税务部门',
'国防科技部门',
'开发区/高新区/自贸区',
'市场监督部门',
'其他部门'
],
tableData4:[
'资质荣誉',
'事前补助',
'研发费补助',
'奖励',
'贷款信息',
'担保补助',
'投资补贴',
'税收优惠',
'创业补贴',
'人才补贴'
],
tableData5:[
'事业单位',
'企业单位',
'社会组织'
],
tableData6:[
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7:[
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
'资质认定',
'商贸业/电子商务/交通/现代物流',
'税收优惠',
'技术改造',
'智能制造',
'现代服务业',
'工程中心/技术中心/实验室/研发机构',
'金融补贴',
'首台/首套',
'绿色建筑',
'创客空间/孵化器/产业园/科技园',
'生物医药',
'航空航天',
'奖项评选',
'知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台',
'龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴',
'产品认定',
'其他'
],
tableData8:[
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9:[
'2019',
'2018',
'2017',
'2016',
'2015',
'2014',
'2013'
],
colorList:[{
bgColor:"#EDEEFA",
fontColor:"#5B65D3"
},{
bgColor:"#FDF2EC",
fontColor:"#FC835A"
},{
bgColor:"#FFEBF5",
fontColor:"#FF75B3"
},{
bgColor:"#E1EDFB",
fontColor:"#3CACFF"
},{
bgColor:"#E0F4E8",
fontColor:"#54D02F"
},{
bgColor:"#E8F7F9",
fontColor:"#30BBCE"
}]
}
},
methods: {
rgba() {
var color = this.colorList[Math.floor(Math.random()*this.colorList.length)];
return `color:${color.fontColor};background-color:${color.bgColor}`;
},
inputDel(input) {
console.log(input);
this[input] = '';
this.zcPost()
},
tableDataClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.input1 = val;
this.zcPost()
},
quanClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.quanbu = val;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input2 = val;
this.zcPost()
},
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input3 = val;
this.zcPost()
},
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input4 = val;
this.zcPost()
},
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input5 = val;
this.zcPost()
},
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input6 = val;
this.zcPost()
},
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input7 = val;
this.zcPost()
},
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input8 = val;
this.zcPost()
},
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input9 = val;
this.zcPost()
},
search() {
this.zcPost()
},
handleCurrentChange(val) {
this.zcPost(val)
},
consulting () {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: ''
}).then(() => {
this.$message({
type: 'success',
message: '提交成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消提交'
});
});
},
articleDetails(obj) {
this.detailPageType = false;
scrollTo(0,0);
this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr,'11111111111111');
axios.post('http://43.247.184.92:8018/gsb/api/zcdetailcount',{
"ID": obj.ID,
"count":0
}).then( d => {
console.log(d,'=================================');
var data = d.data.data;
this.recommendationsArr = data
})
},
/*before(i) {
this.rKey = i-1;
},
after(i) {
this.rKey = i+1;
},*/
next () {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
},
LookHome() {
this.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
},
LookCompany(i) {
this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
this.zcoName = i.name;
this.zccompanyNamePost()
},
color16(){
var r = Math.floor(Math.random()*256);
var g = 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);
return color;
}, },
rgb(){ {
var r = Math.floor(Math.random()*256); title: '政务信息',
var g = Math.floor(Math.random()*256); count: '300'
var b = Math.floor(Math.random()*256);
var rgb = 'color:' + 'rgba('+r+','+g+','+b+', 1)' + ';' + 'background-color:' + 'rgba('+r+','+g+','+b+', 0.3)';
return rgb;
}, },
leftswiperList () { {
console.log(this.$refs.swiperList.offsetWidth); title: '新闻资讯',
if (this.transformNumber < 0) { count: '400'
this.transformNumber = this.transformNumber + 360; }
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)'; ],
} tableData1: [
}, '北京',
rightswiperList () { '天津',
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) { '上海',
this.transformNumber = this.transformNumber - 360; '重庆',
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)'; '河北',
} '河南',
}, '云南',
zccompanyNamePost() { '辽宁',
axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name',{ '黑龙江',
"company_name": this.zcoName '湖南',
}).then( d => { '安徽',
console.log(d,'================================='); '山东',
var data = d.data.data; '江苏',
this.portrayalArr = d.data.company_keys; '浙江',
this.recommendationsArr = data '江西',
}) '湖北',
}, '新疆维吾尔族自治区',
zcPost(size) { '广西壮族自治区',
/*http://43.247.184.92:8018/gsb/api/zc*/ '甘肃',
axios.post('http://43.247.184.92:8019/gsb/api/zc',{ '山西',
"zctext": this.zctext, '陕西',
"currentpage": size || 1, '内蒙古自治区',
"pagesize":15, '吉林',
"cityname": this.input1, '福建',
"policygrade": this.input2, '贵州',
"policydepartment": this.input3, '广东',
"policytype": this.input4, '青海',
"qiye": this.input5, '西藏自治区',
"classification": this.input6, '夏回族自治区',
"policydomain": this.input7, '四川'
"fieldtext": this.input8, ],
"year": this.input9, tableData2: [
"address":this.areaName '部委',
}).then( d => { '省级',
console.log(d,'---------------------------------'); '市级',
var data = d.data.data; '区级'
this.recommendationsArr = data; ],
this.total = d.data.total; tableData3: [
this.tableData1 = d.data.cityname_list; '发改部门',
console.log(this.recommendationsArr,12312312321); '教育部门',
}) '科学技术部门',
}, '工业和信息化部门',
zccompanyPost() { '人社部门',
axios.post('http://43.247.184.92:8018/gsb/api/zccompany',{}).then( d => { '生态环境部门',
console.log(d); '交通运输部门',
var data = d.data.data; '农业农村部门',
this.portrayalArr = data '商务部门',
}) '文化和旅游部门',
}, '知识产权部门',
getCompanyListPost() { '财政部门',
/*function getLocalTime(nS) { '税务部门',
let date = new Date(nS); '国防科技部门',
let year = date.getFullYear(); '开发区/高新区/自贸区',
let month = date.getMonth()+1; '市场监督部门',
let day = date.getDate(); '其他部门'
month = month < 10 ? "0"+month:month; ],
day = day < 10 ? "0"+day:day; tableData4: [
date = year+'-'+month+'-'+day; '资质荣誉',
return date; '事前补助',
};*/ '研发费补助',
var that = this; '奖励',
this.$root.postReq("/web/tmquery/toolCtl/getCompanyList", {}).then(function (d) { '贷款信息',
console.log(d, "//////////////////////////"); '担保补助',
var data = d.data; '投资补贴',
that.policyArr = []; '税收优惠',
for (let i = 0; i < data.length; i++) { '创业补贴',
data[i]['logo'] = data[i].name.substr(0, 4); '人才补贴'
that.policyArr.push(data[i]); ],
}; tableData5: [
console.log(that.policyArr) '事业单位',
}).catch(function (e) { '企业单位',
console.log(`操作失败,请刷新页面后重新操作`); '社会组织'
],
tableData6: [
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7: [
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
'资质认定',
'商贸业/电子商务/交通/现代物流',
'税收优惠',
'技术改造',
'智能制造',
'现代服务业',
'工程中心/技术中心/实验室/研发机构',
'金融补贴',
'首台/首套',
'绿色建筑',
'创客空间/孵化器/产业园/科技园',
'生物医药',
'航空航天',
'奖项评选',
'知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台',
'龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴',
'产品认定',
'其他'
],
tableData8: [
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9: [
'2019',
'2018',
'2017',
'2016',
'2015',
'2014',
'2013'
],
colorList: [{
bgColor: "#EDEEFA",
fontColor: "#5B65D3"
}, {
bgColor: "#FDF2EC",
fontColor: "#FC835A"
}, {
bgColor: "#FFEBF5",
fontColor: "#FF75B3"
}, {
bgColor: "#E1EDFB",
fontColor: "#3CACFF"
}, {
bgColor: "#E0F4E8",
fontColor: "#54D02F"
}, {
bgColor: "#E8F7F9",
fontColor: "#30BBCE"
}]
}
},
methods: {
rgba() {
var color = this.colorList[Math.floor(Math.random() * this.colorList.length)];
return `color:${color.fontColor};background-color:${color.bgColor}`;
},
inputDel(input) {
console.log(input);
this[input] = '';
this.zcPost()
},
tableDataClick1(val) {
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.input1 = val;
this.zcPost()
},
quanClick1(val) {
console.log(val.title);
if (val == undefined) {
console.log(123123123123);
val = ''
};
this.quanbu = val.title;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input2 = val;
this.zcPost()
},
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input3 = val;
this.zcPost()
},
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input4 = val;
this.zcPost()
},
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input5 = val;
this.zcPost()
},
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input6 = val;
this.zcPost()
},
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input7 = val;
this.zcPost()
},
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input8 = val;
this.zcPost()
},
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
};
this.input9 = val;
this.zcPost()
},
search() {
this.zcPost()
},
handleCurrentChange(val) {
this.zcPost(val)
},
consulting() {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: ''
}).then(() => {
this.$message({
type: 'success',
message: '提交成功!'
}); });
}).catch(() => {
this.$message({
type: 'info',
message: '已取消提交'
});
});
},
articleDetails(obj) {
this.detailPageType = false;
scrollTo(0, 0);
this.recommendationsObj = obj;
this.portrayalArr = obj.hx_list;
console.log(this.portrayalArr, '11111111111111');
axios.post('http://43.247.184.92:8018/gsb/api/zcdetailcount', {
"ID": obj.ID,
"count": 0
}).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.recommendationsArr = data
})
},
/*before(i) {
this.rKey = i-1;
},
after(i) {
this.rKey = i+1;
},*/
next() {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
},
LookHome() {
this.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
},
LookCompany(i) {
this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
this.zcoName = i.name;
this.zccompanyNamePost()
},
color16(){
var r = Math.floor(Math.random() * 256);
var g = 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);
return color;
},
rgb(){
var r = Math.floor(Math.random() * 256);
var g = 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)';
return rgb;
},
leftswiperList() {
console.log(this.$refs.swiperList.offsetWidth);
if (this.transformNumber < 0) {
this.transformNumber = this.transformNumber + 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
}
},
rightswiperList() {
if ((this.$refs.swiperList.offsetWidth - Math.abs(this.transformNumber)) > this.$refs.swiperMain.offsetWidth) {
this.transformNumber = this.transformNumber - 360;
this.$refs.swiperList.style.transform = 'translateX(' + this.transformNumber + 'px) scale(1)';
} }
}, },
mounted: function() { zccompanyNamePost() {
$("#footer").show(); axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name', {
/*for (let i = 0; i < this.portrayalArr.length; i++) { "company_name": this.zcoName
this.portrayalArr[i].col = this.rgb(); }).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.portrayalArr = d.data.company_keys;
this.recommendationsArr = data
})
},
zcPost(size) {
/*http://43.247.184.92:8018/gsb/api/zc*/
axios.post('http://43.247.184.92:8019/gsb/api/zc', {
"zctext": this.zctext,
"currentpage": size || 1,
"pagesize": 15,
"cityname": this.input1,
"policygrade": this.input2,
"policydepartment": this.input3,
"policytype": this.input4,
"qiye": this.input5,
"classification": this.input6,
"policydomain": this.input7,
"fieldtext": this.input8,
"year": this.input9,
"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() {
axios.post('http://43.247.184.92:8018/gsb/api/zccompany', {}).then(d => {
console.log(d);
var data = d.data.data;
this.portrayalArr = data
})
},
getCompanyListPost() {
/*function getLocalTime(nS) {
let date = new Date(nS);
let year = date.getFullYear();
let month = date.getMonth()+1;
let day = date.getDate();
month = month < 10 ? "0"+month:month;
day = day < 10 ? "0"+day:day;
date = year+'-'+month+'-'+day;
return date;
};*/ };*/
this.areaName = localStorage.getItem("areaName"); var that = this;
this.zcPost(); this.$root.postReq("/web/tmquery/toolCtl/getCompanyList", {}).then(function (d) {
this.zccompanyPost(); console.log(d, "//////////////////////////");
var data = d.data;
that.policyArr = [];
for (let i = 0; i < data.length; i++) {
data[i]['logo'] = data[i].name.substr(0, 4);
that.policyArr.push(data[i]);
};
console.log(that.policyArr)
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
}, },
vname: "gsb-policyquery" payClick(){
} console.log(1231231231232);
this.$root.pushx({
\ No newline at end of file title: "政策订阅",
name: "/subscription"
});
}
},
mounted: function() {
$("#footer").show();
/*for (let i = 0; i < this.portrayalArr.length; i++) {
this.portrayalArr[i].col = this.rgb();
};*/
this.areaName = localStorage.getItem("areaName");
this.zcPost();
this.zccompanyPost();
console.log(this.$route.query.name, '======================');
if (this.$route.query.name != "") {
this.quanbu = this.$route.query.name;
}
},
vname: "gsb-policyquery"
}
...@@ -34,24 +34,24 @@ ...@@ -34,24 +34,24 @@
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: '',
quanData1:[ quanData1: [
'申报通知(386)', '申报通知(386)',
'立项公示(134)', '立项公示(134)',
'管理办法(103)', '管理办法(103)',
'政策图解(1)', '政策图解(1)',
'政务信息(13)', '政务信息(13)',
'新闻资讯(69)', '新闻资讯(69)',
], ],
tableData1: [ tableData1: [
'北京', '北京',
...@@ -85,13 +85,13 @@ ...@@ -85,13 +85,13 @@
'夏回族自治区', '夏回族自治区',
'四川' '四川'
], ],
tableData2:[ tableData2: [
'部委', '部委',
'省级', '省级',
'市级', '市级',
'区级' '区级'
], ],
tableData3:[ tableData3: [
'发改部门', '发改部门',
'教育部门', '教育部门',
'科学技术部门', '科学技术部门',
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
'市场监督部门', '市场监督部门',
'其他部门' '其他部门'
], ],
tableData4:[ tableData4: [
'资质荣誉', '资质荣誉',
'事前补助', '事前补助',
'研发费补助', '研发费补助',
...@@ -122,31 +122,31 @@ ...@@ -122,31 +122,31 @@
'创业补贴', '创业补贴',
'人才补贴' '人才补贴'
], ],
tableData5:[ tableData5: [
'事业单位', '事业单位',
'企业单位', '企业单位',
'社会组织' '社会组织'
], ],
tableData6:[ tableData6: [
'工业', '工业',
'建筑业', '建筑业',
'金融业', '金融业',
'农、林、牧、渔业', '农、林、牧、渔业',
'软件、信息传输和信息技术服务业', '软件、信息传输和信息技术服务业',
'住宿和餐饮业', '住宿和餐饮业',
'批发和零售业', '批发和零售业',
'现代服务业', '现代服务业',
'租赁和商业服务业', '租赁和商业服务业',
'交通运输、仓储和邮政业', '交通运输、仓储和邮政业',
'教育和卫生业', '教育和卫生业',
'文化、体育和娱乐业', '文化、体育和娱乐业',
'房地产和物业管理业', '房地产和物业管理业',
'水利、环境和公共设施管理业', '水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织', '公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业', '电力、热力、燃气及水生产和供应业',
'其他' '其他'
], ],
tableData7:[ tableData7: [
'普惠(创新券/社保补贴/创业补贴等)', '普惠(创新券/社保补贴/创业补贴等)',
'科技创新', '科技创新',
'人才类', '人才类',
...@@ -172,18 +172,18 @@ ...@@ -172,18 +172,18 @@
'产品认定', '产品认定',
'其他' '其他'
], ],
tableData8:[ tableData8: [
'基础与应用基础研究', '基础与应用基础研究',
'社会民生', '社会民生',
'现代服务业', '现代服务业',
'高新技术领域', '高新技术领域',
'新一代信息技术产业', '新一代信息技术产业',
'战略性新兴产业', '战略性新兴产业',
'未来产业', '未来产业',
'创业补贴', '创业补贴',
'人才补贴' '人才补贴'
], ],
tableData9:[ tableData9: [
'2019', '2019',
'2018', '2018',
'2017', '2017',
...@@ -192,41 +192,41 @@ ...@@ -192,41 +192,41 @@
'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"
}] }]
} }
}, },
created:function(){ created: function() {
this.tminput = this.$router.history.current.query.tminput; this.tminput = this.$router.history.current.query.tminput;
if (this.tminput) { if (this.tminput) {
this.zctext = decodeURIComponent(this.tminput); this.zctext = decodeURIComponent(this.tminput);
/*this.indexsearch();*/ /*this.indexsearch();*/
} }
}, },
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) {
console.log(input); console.log(input);
this[input] = ''; this[input] = '';
this.zcPost() this.zcPost()
}, },
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
console.log(123123123123); console.log(123123123123);
val = '' val = ''
}; };
this.input1 = val; this.input1 = val;
this.zcPost() this.zcPost()
...@@ -243,14 +243,14 @@ ...@@ -243,14 +243,14 @@
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
console.log(123123123123); console.log(123123123123);
val = '' val = ''
}; };
this.quanbu = val; this.quanbu = val;
}, },
tableDataClick2(val) { tableDataClick2(val) {
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
val = '' val = ''
}; };
this.input2 = val; this.input2 = val;
this.zcPost() this.zcPost()
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
tableDataClick3(val) { tableDataClick3(val) {
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
val = '' val = ''
}; };
this.input3 = val; this.input3 = val;
this.zcPost() this.zcPost()
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
tableDataClick4(val) { tableDataClick4(val) {
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
val = '' val = ''
}; };
this.input4 = val; this.input4 = val;
this.zcPost() this.zcPost()
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
tableDataClick5(val) { tableDataClick5(val) {
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
val = '' val = ''
}; };
this.input5 = val; this.input5 = val;
this.zcPost() this.zcPost()
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
tableDataClick6(val) { tableDataClick6(val) {
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
val = '' val = ''
}; };
this.input6 = val; this.input6 = val;
this.zcPost() this.zcPost()
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
tableDataClick7(val) { tableDataClick7(val) {
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
val = '' val = ''
}; };
this.input7 = val; this.input7 = val;
this.zcPost() this.zcPost()
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
tableDataClick8(val) { tableDataClick8(val) {
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
val = '' val = ''
}; };
this.input8 = val; this.input8 = val;
this.zcPost() this.zcPost()
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
tableDataClick9(val) { tableDataClick9(val) {
console.log(val); console.log(val);
if (val == undefined) { if (val == undefined) {
val = '' val = ''
}; };
this.input9 = val; this.input9 = val;
this.zcPost() this.zcPost()
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
handleCurrentChange(val) { handleCurrentChange(val) {
this.zcPost(val) this.zcPost(val)
}, },
consulting () { consulting() {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', { this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -331,31 +331,41 @@ ...@@ -331,31 +331,41 @@
this.$message({ this.$message({
type: 'info', type: 'info',
message: '已取消提交' message: '已取消提交'
}); });
}); });
}, },
articleDetails(obj) { articleDetails(obj) {
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:8011/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.data;
this.recommendationsArr = data this.recommendationsArr = data
}) })
}, },
qiyeHuaXiang() {
console.log(1111111);
axios.post('http://106.13.228.212:8011/policy_report', {
"companyname": this.zctext
}).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.portrayalArr = data
})
},
/*before(i) { /*before(i) {
this.rKey = i-1; this.rKey = i-1;
}, },
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()
...@@ -372,37 +382,37 @@ ...@@ -372,37 +382,37 @@
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
...@@ -410,7 +420,7 @@ ...@@ -410,7 +420,7 @@
}, },
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,
"pagesize":15, "pagesize":15,
...@@ -431,13 +441,29 @@ ...@@ -431,13 +441,29 @@
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:8011/policy_report', {
"companyname": this.zctext
}).then(d => {
console.log(d);
var data = d.data.data;
this.recommendationsArr = data;
this.total = d.data.total;
this.portrayalArr = d.data.huaxiang;
}) })
}, },
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
})*/
axios.post('http://106.13.228.212:8011/policy_report', {
"companyname": this.zctext
}).then(d => {
console.log(d);
var data = d.data.huaxiang;
this.portrayalArr = data
}) })
}, },
getCompanyListPost() { getCompanyListPost() {
...@@ -473,15 +499,22 @@ ...@@ -473,15 +499,22 @@
inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/, inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
inputErrorMessage: '邮箱格式不正确' inputErrorMessage: '邮箱格式不正确'
}).then(({ value }) => { }).then(({ value }) => {
this.$message({ axios.post('http://49.232.11.140:8006/policy_report', {
type: 'success', "name": this.zctext,
message: '你的邮箱是: ' + value "mails": value
}); }).then(d => {
console.log(d);
this.$message({
type: 'success',
message: '政策报告已发送至您的邮箱'
});
})
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
} }
}, },
...@@ -492,7 +525,8 @@ ...@@ -492,7 +525,8 @@
};*/ };*/
this.areaName = localStorage.getItem("areaName"); this.areaName = localStorage.getItem("areaName");
this.zcPost(); this.zcPost();
this.zccompanyPost(); /*this.zccompanyPost();*/
/*this.qiyeHuaXiang();*/
}, },
vname: "gsb-policyquery" vname: "gsb-policyquery"
} }
...@@ -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>
......
<div class="snbscription"> <div class="snbscription" @click="payClick()">
<img src="/imgs/server.png" alt=""> <img src="/imgs/server.png" alt="">
<button class="btn1" @click="payClick()">马上订阅</button>
<button class="btn2" @click="payClick()">马上订阅</button>
</div> </div>
\ No newline at end of file
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