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({ ...@@ -1408,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") {
......
...@@ -179,7 +179,7 @@ ...@@ -179,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>
......
...@@ -495,7 +495,14 @@ ...@@ -495,7 +495,14 @@
}).catch(function (e) { }).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`); console.log(`操作失败,请刷新页面后重新操作`);
}); });
} },
payClick(){
console.log(1231231231232);
this.$root.pushx({
title: "政策订阅",
name: "/subscription"
});
}
}, },
mounted: function() { mounted: function() {
$("#footer").show(); $("#footer").show();
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,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>
......
...@@ -493,6 +493,13 @@ ...@@ -493,6 +493,13 @@
}).catch(function (e) { }).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`); console.log(`操作失败,请刷新页面后重新操作`);
}); });
},
payClick(){
console.log(1231231231232);
this.$root.pushx({
title: "政策订阅",
name: "/subscription"
});
} }
}, },
mounted: function() { mounted: function() {
......
...@@ -174,7 +174,7 @@ ...@@ -174,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>
......
...@@ -494,6 +494,13 @@ ...@@ -494,6 +494,13 @@
}).catch(function (e) { }).catch(function (e) {
console.log(`操作失败,请刷新页面后重新操作`); console.log(`操作失败,请刷新页面后重新操作`);
}); });
},
payClick(){
console.log(1231231231232);
this.$root.pushx({
title: "政策订阅",
name: "/subscription"
});
} }
}, },
mounted: function() { mounted: function() {
...@@ -504,8 +511,8 @@ ...@@ -504,8 +511,8 @@
this.areaName = localStorage.getItem("areaName"); this.areaName = localStorage.getItem("areaName");
this.zcPost(); this.zcPost();
this.zccompanyPost(); this.zccompanyPost();
console.log(this.$route.query.name,'======================'); console.log(this.$route.query.name, '======================');
if(this.$route.query.name!=""){ if (this.$route.query.name != "") {
this.quanbu = this.$route.query.name; this.quanbu = this.$route.query.name;
} }
}, },
......
...@@ -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,29 +331,30 @@ ...@@ -331,29 +331,30 @@
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() { 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 "companyname": this.zctext
}).then( d => { }).then(d => {
console.log(d,'================================='); console.log(d, '=================================');
var data = d.data.data; var data = d.data.data;
this.portrayalArr = data this.portrayalArr = data
}) })
...@@ -364,7 +365,7 @@ ...@@ -364,7 +365,7 @@
after(i) { after(i) {
this.rKey = i+1; this.rKey = i+1;
},*/ },*/
next () { next() {
this.detailPageType = true; this.detailPageType = true;
this.zccompanyPost(); this.zccompanyPost();
this.zcPost() this.zcPost()
...@@ -381,37 +382,37 @@ ...@@ -381,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
...@@ -419,7 +420,7 @@ ...@@ -419,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,
...@@ -440,13 +441,29 @@ ...@@ -440,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() {
...@@ -482,15 +499,22 @@ ...@@ -482,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: '政策报告已发送至您的邮箱' "mails": value
}); }).then(d => {
console.log(d);
this.$message({
type: 'success',
message: '政策报告已发送至您的邮箱'
});
})
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '取消输入' message: '取消输入'
}); });
}); });
} }
}, },
...@@ -501,7 +525,7 @@ ...@@ -501,7 +525,7 @@
};*/ };*/
this.areaName = localStorage.getItem("areaName"); this.areaName = localStorage.getItem("areaName");
this.zcPost(); this.zcPost();
this.zccompanyPost(); /*this.zccompanyPost();*/
/*this.qiyeHuaXiang();*/ /*this.qiyeHuaXiang();*/
}, },
vname: "gsb-policyquery" 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