Commit cf711d41 by haozhenhua

hzh

parent 093ab494
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1408,7 +1408,8 @@ var app = new Vue({
if (k == "declare") {
this.pushx({
title: "政策资讯",
name: "/declare"
name: "/declare",
params: { name: '申报通知' }
});
}
if (k == "policybigdata") {
......
......@@ -179,7 +179,7 @@
<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>
<div class="el_gsb_img" :style="\'background: url(\' + item.leftimg + \') center center no-repeat;\'" @click="payClick()"></div>
</el-carousel-item>
</el-carousel>
</div>
......
......@@ -495,7 +495,14 @@
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
}
},
payClick(){
console.log(1231231231232);
this.$root.pushx({
title: "政策订阅",
name: "/subscription"
});
}
},
mounted: function() {
$("#footer").show();
......
......@@ -43,7 +43,7 @@
<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>
<div class="el_gsb_img" :style="\'background: url(\' + item.leftimg + \') center center no-repeat;\'" @click="payClick()"></div>
</el-carousel-item>
</el-carousel>
</div>
......
......@@ -493,6 +493,13 @@
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
},
payClick(){
console.log(1231231231232);
this.$root.pushx({
title: "政策订阅",
name: "/subscription"
});
}
},
mounted: function() {
......
......@@ -174,7 +174,7 @@
<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>
<div class="el_gsb_img" :style="\'background: url(\' + item.leftimg + \') center center no-repeat;\'" @click="payClick()"></div>
</el-carousel-item>
</el-carousel>
</div>
......
......@@ -494,6 +494,13 @@
}).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`);
});
},
payClick(){
console.log(1231231231232);
this.$root.pushx({
title: "政策订阅",
name: "/subscription"
});
}
},
mounted: function() {
......@@ -504,8 +511,8 @@
this.areaName = localStorage.getItem("areaName");
this.zcPost();
this.zccompanyPost();
console.log(this.$route.query.name,'======================');
if(this.$route.query.name!=""){
console.log(this.$route.query.name, '======================');
if (this.$route.query.name != "") {
this.quanbu = this.$route.query.name;
}
},
......
......@@ -34,24 +34,24 @@
headerHeight7: true,
headerHeight8: true,
headerHeight9: true,
areaName:'',
input1:'',
input2:'',
input3:'',
input4:'',
input5:'',
input6:'',
input7:'',
input8:'',
input9:'',
quanbu:'',
quanData1:[
'申报通知(386)',
'立项公示(134)',
'管理办法(103)',
'政策图解(1)',
'政务信息(13)',
'新闻资讯(69)',
areaName: '',
input1: '',
input2: '',
input3: '',
input4: '',
input5: '',
input6: '',
input7: '',
input8: '',
input9: '',
quanbu: '',
quanData1: [
'申报通知(386)',
'立项公示(134)',
'管理办法(103)',
'政策图解(1)',
'政务信息(13)',
'新闻资讯(69)',
],
tableData1: [
'北京',
......@@ -85,13 +85,13 @@
'夏回族自治区',
'四川'
],
tableData2:[
tableData2: [
'部委',
'省级',
'市级',
'区级'
],
tableData3:[
tableData3: [
'发改部门',
'教育部门',
'科学技术部门',
......@@ -110,7 +110,7 @@
'市场监督部门',
'其他部门'
],
tableData4:[
tableData4: [
'资质荣誉',
'事前补助',
'研发费补助',
......@@ -122,31 +122,31 @@
'创业补贴',
'人才补贴'
],
tableData5:[
tableData5: [
'事业单位',
'企业单位',
'社会组织'
],
tableData6:[
tableData6: [
'工业',
'建筑业',
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
'金融业',
'农、林、牧、渔业',
'软件、信息传输和信息技术服务业',
'住宿和餐饮业',
'批发和零售业',
'现代服务业',
'租赁和商业服务业',
'交通运输、仓储和邮政业',
'教育和卫生业',
'文化、体育和娱乐业',
'房地产和物业管理业',
'水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业',
'其他'
],
tableData7:[
tableData7: [
'普惠(创新券/社保补贴/创业补贴等)',
'科技创新',
'人才类',
......@@ -172,18 +172,18 @@
'产品认定',
'其他'
],
tableData8:[
tableData8: [
'基础与应用基础研究',
'社会民生',
'现代服务业',
'高新技术领域',
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
'新一代信息技术产业',
'战略性新兴产业',
'未来产业',
'创业补贴',
'人才补贴'
],
tableData9:[
tableData9: [
'2019',
'2018',
'2017',
......@@ -192,41 +192,41 @@
'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"
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"
}]
}
},
created:function(){
this.tminput = this.$router.history.current.query.tminput;
if (this.tminput) {
this.zctext = decodeURIComponent(this.tminput);
/*this.indexsearch();*/
}
},
created: function() {
this.tminput = this.$router.history.current.query.tminput;
if (this.tminput) {
this.zctext = decodeURIComponent(this.tminput);
/*this.indexsearch();*/
}
},
methods: {
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}`;
},
inputDel(input) {
console.log(input);
console.log(input);
this[input] = '';
this.zcPost()
},
......@@ -234,7 +234,7 @@
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
val = ''
};
this.input1 = val;
this.zcPost()
......@@ -243,14 +243,14 @@
console.log(val);
if (val == undefined) {
console.log(123123123123);
val = ''
val = ''
};
this.quanbu = val;
},
tableDataClick2(val) {
console.log(val);
if (val == undefined) {
val = ''
val = ''
};
this.input2 = val;
this.zcPost()
......@@ -258,7 +258,7 @@
tableDataClick3(val) {
console.log(val);
if (val == undefined) {
val = ''
val = ''
};
this.input3 = val;
this.zcPost()
......@@ -266,7 +266,7 @@
tableDataClick4(val) {
console.log(val);
if (val == undefined) {
val = ''
val = ''
};
this.input4 = val;
this.zcPost()
......@@ -274,7 +274,7 @@
tableDataClick5(val) {
console.log(val);
if (val == undefined) {
val = ''
val = ''
};
this.input5 = val;
this.zcPost()
......@@ -282,7 +282,7 @@
tableDataClick6(val) {
console.log(val);
if (val == undefined) {
val = ''
val = ''
};
this.input6 = val;
this.zcPost()
......@@ -290,7 +290,7 @@
tableDataClick7(val) {
console.log(val);
if (val == undefined) {
val = ''
val = ''
};
this.input7 = val;
this.zcPost()
......@@ -298,7 +298,7 @@
tableDataClick8(val) {
console.log(val);
if (val == undefined) {
val = ''
val = ''
};
this.input8 = val;
this.zcPost()
......@@ -306,7 +306,7 @@
tableDataClick9(val) {
console.log(val);
if (val == undefined) {
val = ''
val = ''
};
this.input9 = val;
this.zcPost()
......@@ -317,7 +317,7 @@
handleCurrentChange(val) {
this.zcPost(val)
},
consulting () {
consulting() {
this.$confirm('提交后会有政策解读专家与您联系,为您进行一对一免费解答,请 确认是否提交?', '政策咨询', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -331,29 +331,30 @@
this.$message({
type: 'info',
message: '已取消提交'
});
});
});
},
articleDetails(obj) {
this.detailPageType = false;
scrollTo(0,0);
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',{
console.log(this.portrayalArr, '11111111111111');
axios.post('http://106.13.228.212:8011/gsb/api/zcdetailcount', {
"ID": obj.ID,
"count":0
}).then( d => {
console.log(d,'=================================');
"count": 0
}).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.recommendationsArr = data
})
},
qiyeHuaXiang() {
axios.post('http://106.13.228.212:8011/policy_report',{
console.log(1111111);
axios.post('http://106.13.228.212:8011/policy_report', {
"companyname": this.zctext
}).then( d => {
console.log(d,'=================================');
}).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.portrayalArr = data
})
......@@ -364,7 +365,7 @@
after(i) {
this.rKey = i+1;
},*/
next () {
next() {
this.detailPageType = true;
this.zccompanyPost();
this.zcPost()
......@@ -381,37 +382,37 @@
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;
},
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 () {
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 () {
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',{
axios.post('http://43.247.184.92:8018/gsb/api/zccompany_name', {
"company_name": this.zcoName
}).then( d => {
console.log(d,'=================================');
}).then(d => {
console.log(d, '=================================');
var data = d.data.data;
this.portrayalArr = d.data.company_keys;
this.recommendationsArr = data
......@@ -419,7 +420,7 @@
},
zcPost(size) {
/*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,
"currentpage": size || 1,
"pagesize":15,
......@@ -440,13 +441,29 @@
this.total = d.data.total;
this.tableData1 = d.data.cityname_list;
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() {
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);
var data = d.data.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() {
......@@ -482,15 +499,22 @@
inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
inputErrorMessage: '邮箱格式不正确'
}).then(({ value }) => {
this.$message({
type: 'success',
message: '政策报告已发送至您的邮箱'
});
axios.post('http://49.232.11.140:8006/policy_report', {
"name": this.zctext,
"mails": value
}).then(d => {
console.log(d);
this.$message({
type: 'success',
message: '政策报告已发送至您的邮箱'
});
})
}).catch(() => {
this.$message({
type: 'info',
message: '取消输入'
});
});
});
}
},
......@@ -501,7 +525,7 @@
};*/
this.areaName = localStorage.getItem("areaName");
this.zcPost();
this.zccompanyPost();
/*this.zccompanyPost();*/
/*this.qiyeHuaXiang();*/
},
vname: "gsb-policyquery"
......
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