Commit 628e4027 by haozhenhua

hzh

parent c5700696
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -250,7 +250,7 @@ function addCSS(csspath) { ...@@ -250,7 +250,7 @@ function addCSS(csspath) {
store: store, store: store,
data: function () { data: function () {
return { return {
areaName: '地区', areaName: '北京',
areaArr:[ areaArr:[
{ {
name:'A-G', name:'A-G',
...@@ -481,6 +481,7 @@ function addCSS(csspath) { ...@@ -481,6 +481,7 @@ function addCSS(csspath) {
setTimeout(()=>{ setTimeout(()=>{
$("#footer").css("visibility", "visible"); $("#footer").css("visibility", "visible");
},3000); },3000);
localStorage.setItem("areaName", this.areaName);
}, },
methods: { methods: {
areachoice(name) { areachoice(name) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="meihua-inquire-input"> <div class="meihua-inquire-input">
<div class="lists"> <div class="lists">
<div <div
:class="activeClass == index ? \'active\' : \'acitves\'" :class="activeClass == index ? \'actived\' : \'acitves\'"
@click="getItme(index)" @click="getItme(index)"
v-for="(item,index) in checkBoxArr" v-for="(item,index) in checkBoxArr"
:key="index"> :key="index">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.policy-input-buttom{ .policy-input-buttom{
height: 61px !important; height: 61px !important;
} }
.active { .actived {
float: left; float: left;
position: relative; position: relative;
width: 77px; width: 77px;
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
} }
.active:before, .actived:before,
.active:after{ .actived:after{
position:absolute; position:absolute;
content:''; content:'';
width:10px; width:10px;
...@@ -47,7 +47,7 @@ pointer-events:none; ...@@ -47,7 +47,7 @@ pointer-events:none;
transform:rotate(45deg); transform:rotate(45deg);
} }
.active:after{ .actived:after{
bottom: -4px; bottom: -4px;
background: rgba(16,142,233,1); background: rgba(16,142,233,1);
} }
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
width: 97px; width: 97px;
height:inherit; height:inherit;
float: left; float: left;
background-color: #FAFAFA;
padding: 13px 20px; padding: 13px 20px;
box-sizing: border-box; box-sizing: border-box;
font-size:14px; font-size:14px;
...@@ -27,7 +26,7 @@ ...@@ -27,7 +26,7 @@
.policyquery-items > .items_item { .policyquery-items > .items_item {
width: calc(100% - 167px); width: calc(100% - 167px);
float: left; float: left;
padding: 5px 20px; padding: 5px 26px;
box-sizing: border-box; box-sizing: border-box;
font-size:14px; font-size:14px;
font-family:MicrosoftYaHei; font-family:MicrosoftYaHei;
...@@ -67,19 +66,21 @@ ...@@ -67,19 +66,21 @@
font-weight:500; font-weight:500;
color:rgba(72,72,72,1); color:rgba(72,72,72,1);
line-height:14px; line-height:14px;
width:81px; width:100%;
height:22px; height:22px;
line-height: 22px; line-height: 22px;
border-radius:0px 0px 15px 15px;
border:1px solid rgba(240,243,240,1);
border-top: 0px; border-top: 0px;
margin-bottom: 10px; margin-bottom: 10px;
cursor: pointer; cursor: pointer;
border: 1px solid rgba(234,237,244,1);
border-top: none;
} }
.policylist-selected { .policylist-selected {
width: 100%; width: 100%;
min-height: 40px; min-height: 40px;
overflow: hidden; overflow: hidden;
padding-left: 20px;
line-height: 40px;
} }
.policylist-selected > .leftName { .policylist-selected > .leftName {
width: 97px; width: 97px;
...@@ -87,12 +88,13 @@ ...@@ -87,12 +88,13 @@
font-size:14px; font-size:14px;
font-family:PingFangSC-Medium,PingFang SC; font-family:PingFangSC-Medium,PingFang SC;
font-weight:500; font-weight:500;
color:rgba(121,121,121,1); color: rgba(47,47,47,1);
} }
.policylist-selected > .itemsName { .policylist-selected > .itemsName {
width: calc(100% - 97px); width: calc(100% - 97px);
float: left; float: left;
overflow: hidden; overflow: hidden;
padding-top: 10px;
} }
.policylist-selected > .itemsName > .itemName { .policylist-selected > .itemsName > .itemName {
float: left; float: left;
...@@ -109,12 +111,14 @@ ...@@ -109,12 +111,14 @@
line-height: 26px; line-height: 26px;
color: #118EE9; color: #118EE9;
position: relative; position: relative;
font-size: 12px;
} }
.policylist-selected > .itemsName > .itemName > i{ .policylist-selected > .itemsName > .itemName > i{
position: absolute; position: absolute;
right: 6px; right: 1px;
top: 7px; top: 6px;
cursor: pointer; cursor: pointer;
border: 1px dotted #333;
} }
.policylist-warpper { .policylist-warpper {
width: 100%; width: 100%;
...@@ -147,7 +151,6 @@ ...@@ -147,7 +151,6 @@
.policyquery-items{ .policyquery-items{
border: none !important; border: none !important;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #F0F3F0 !important;
} }
.policyquery-items:last-child{ .policyquery-items:last-child{
border:none !important; border:none !important;
...@@ -156,13 +159,22 @@ ...@@ -156,13 +159,22 @@
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
height: 100%; height: 100%;
background-color: #fff;
} }
.policylist-header { .policylist-header {
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
border: 1px solid #F0F3F0; box-sizing: border-box;
padding: 20px; margin-top: 20px;
background: #fff;
border: 1px solid rgba(234,237,244,1);
}
.policylist-tile {
width: 100%;
overflow: hidden;
height: 40px;
background: rgba(15,142,233,0.1);
border-radius: 1px;
box-sizing: border-box; box-sizing: border-box;
} }
.header-left { .header-left {
...@@ -384,6 +396,7 @@ ...@@ -384,6 +396,7 @@
color:rgba(72,72,72,1); color:rgba(72,72,72,1);
margin-bottom: 15px; margin-bottom: 15px;
cursor: pointer; cursor: pointer;
display: flex;
} }
.policylist-conten-title a { .policylist-conten-title a {
text-decoration:none !important; text-decoration:none !important;
...@@ -396,7 +409,6 @@ ...@@ -396,7 +409,6 @@
font-family:PingFangSC-Medium,PingFangSC; font-family:PingFangSC-Medium,PingFangSC;
font-weight:500; font-weight:500;
color:rgba(255,255,255,1); color:rgba(255,255,255,1);
background-color: #597EF7;
} }
.policylist-conten-text { .policylist-conten-text {
font-size:14px; font-size:14px;
...@@ -411,9 +423,24 @@ ...@@ -411,9 +423,24 @@
font-weight:500; font-weight:500;
color:rgba(153,153,153,1); color:rgba(153,153,153,1);
} }
.policylist-conten-items > span { .policylistsitems {
margin-right: 40px; font-size:14px;
font-family:PingFangSC-Medium,PingFangSC;
font-weight:500;
color:rgba(153,153,153,1);
}
.policylist-conten-items img{
border: 1px dotted #999;
vertical-align: middle;
} }
.policylistsitems img{
border: 1px dotted #999;
vertical-align: middle;
}
.zuo{
float: right;
}
.policylist-pagination { .policylist-pagination {
text-align: right; text-align: right;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</div> </div>
</div> </div>
<div class="policylist-header"> <div class="policylist-tile" style="margin-top: 15px;">
<div class="policyquery-items"> <div class="policyquery-items">
<div class="items_item" :style="headerHeight1 ? \'height:45px\' : \'height:auto\'"> <div class="items_item" :style="headerHeight1 ? \'height:45px\' : \'height:auto\'">
<div :class="quanbu == item ? \'pitch\' : \'\'" v-for="item in quanData1" @click="quanClick1(item)">{{item}}</div> <div :class="quanbu == item ? \'pitch\' : \'\'" v-for="item in quanData1" @click="quanClick1(item)">{{item}}</div>
...@@ -25,6 +25,20 @@ ...@@ -25,6 +25,20 @@
</div> </div>
</div> </div>
<div class="policylist-header" :style="headerHeight ? \'height:190px\' : \'height:auto\'"> <div class="policylist-header" :style="headerHeight ? \'height:190px\' : \'height:auto\'">
<div class="policylist-selected" v-if="input1 || input2 || input3 || input4 || input5 || input6 || input7 || input8 || input9">
<div class="leftName">已选条件:</div>
<div class="itemsName">
<div class="itemName" v-if="input1">发布地区:{{input1}} <i class="el-icon-close" @click="inputDel(\'input1\')"></i> </div>
<div class="itemName" v-if="input2">政策级别:{{input2}} <i class="el-icon-close" @click="inputDel(\'input2\')"></i> </div>
<div class="itemName" v-if="input3">发布部门:{{input3}} <i class="el-icon-close" @click="inputDel(\'input3\')"></i> </div>
<div class="itemName" v-if="input4">扶持方式:{{input4}} <i class="el-icon-close" @click="inputDel(\'input4\')"></i> </div>
<div class="itemName" v-if="input5">企业性质:{{input5}} <i class="el-icon-close" @click="inputDel(\'input5\')"></i> </div>
<div class="itemName" v-if="input6">行业类别:{{input6}} <i class="el-icon-close" @click="inputDel(\'input6\')"></i> </div>
<div class="itemName" v-if="input7">政策类型:{{input7}} <i class="el-icon-close" @click="inputDel(\'input7\')"></i> </div>
<div class="itemName" v-if="input8">扶持领域:{{input8}} <i class="el-icon-close" @click="inputDel(\'input8\')"></i> </div>
<div class="itemName" v-if="input9">时间年限:{{input9}} <i class="el-icon-close" @click="inputDel(\'input9\')"></i> </div>
</div>
</div>
<div class="policyquery-items"> <div class="policyquery-items">
<div class="items_left">发布地区</div> <div class="items_left">发布地区</div>
<div class="items_item" :style="headerHeight1 ? \'height:45px\' : \'height:auto\'"> <div class="items_item" :style="headerHeight1 ? \'height:45px\' : \'height:auto\'">
...@@ -99,20 +113,7 @@ ...@@ -99,20 +113,7 @@
</div> </div>
</div> </div>
<div class="policylist-headerbut" @click="headerHeight = !headerHeight"><span v-if="headerHeight">更多</span><span v-else>收起</span></div> <div class="policylist-headerbut" @click="headerHeight = !headerHeight"><span v-if="headerHeight">更多</span><span v-else>收起</span></div>
<div class="policylist-selected" v-if="input1 || input2 || input3 || input4 || input5 || input6 || input7 || input8 || input9">
<div class="leftName">筛选条件:</div>
<div class="itemsName">
<div class="itemName" v-if="input1">{{input1}} <i class="el-icon-close" @click="inputDel(\'input1\')"></i> </div>
<div class="itemName" v-if="input2">{{input2}} <i class="el-icon-close" @click="inputDel(\'input2\')"></i> </div>
<div class="itemName" v-if="input3">{{input3}} <i class="el-icon-close" @click="inputDel(\'input3\')"></i> </div>
<div class="itemName" v-if="input4">{{input4}} <i class="el-icon-close" @click="inputDel(\'input4\')"></i> </div>
<div class="itemName" v-if="input5">{{input5}} <i class="el-icon-close" @click="inputDel(\'input5\')"></i> </div>
<div class="itemName" v-if="input6">{{input6}} <i class="el-icon-close" @click="inputDel(\'input6\')"></i> </div>
<div class="itemName" v-if="input7">{{input7}} <i class="el-icon-close" @click="inputDel(\'input7\')"></i> </div>
<div class="itemName" v-if="input8">{{input8}} <i class="el-icon-close" @click="inputDel(\'input8\')"></i> </div>
<div class="itemName" v-if="input9">{{input9}} <i class="el-icon-close" @click="inputDel(\'input9\')"></i> </div>
</div>
</div>
<div class="policylist-content"> <div class="policylist-content">
<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;">
...@@ -123,9 +124,16 @@ ...@@ -123,9 +124,16 @@
</div> </div>
</div> </div>
<div v-else class="policylist-content-list" v-for="(i,k) in recommendationsArr"> <div v-else class="policylist-content-list" v-for="(i,k) in recommendationsArr">
<div class="policylist-conten-title" @click="articleDetails(i)">{{i.name}} </div> <div class="policylist-conten-title" @click="articleDetails(i)">
<div class="policylist-conten-text"><span style="dispaly:line-block;padding: 0 10px;color:#fff;" :style="color16()">{{i.label}}</span></div> <div style="margin-left: -10px;" v-if="i.app_status==0"> <span style="dispaly:line-block;color:#fff;background-color: #B2B2B2;">申报已结束</span></div>
<div class="policylist-conten-items"><span>来源:{{i.source}}</span><span>日期:{{i.date}}</span><span> <p style="float:right"><i class="el-icon-view"></i> {{i.count}}</span></p></div> <div style="margin-left: -10px;" v-if="i.app_status==1"> <span style="dispaly:line-block;color:#fff;background-color: #FFA940">开放申报中</span></div>
<div style="margin-left: -10px;" v-if="i.app_status==2"> <span style="dispaly:line-block;color:#fff;background-color: #597EF7">即将申报</span></div>
<div style="margin-left: 15px;"> {{i.name}} </div>
</div>
<div>
<div class="policylist-conten-items"><span><img src="/imgs/tuandui.png" alt="">&nbsp;{{i.source}}</span><span> <p style="float:right"><img src="/imgs/riqi.png" alt="">&nbsp;申报日期:{{i.begindate}}/{{i.enddate}}</span></p></div>
<div class="policylistsitems"><span><img src="/imgs/zehngfu.png" alt="">&nbsp;{{i.policygrade}}|{{i.label}}</span><span style="display: block;"> <p class="zuo"><img src="/imgs/yan.png" alt="">&nbsp;浏览量:{{i.count}}</span></p></div>
</div>
</div> </div>
</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,
input1:'', areaName:'',
input2:'', input1:'',
input3:'', input2:'',
input4:'', input3:'',
input5:'', input4:'',
input6:'', input5:'',
input7:'', input6:'',
input8:'', input7:'',
input9:'', input8:'',
quanbu:'全部(1369)', input9:'',
quanData1:[ quanbu:'全部(1369)',
'全部(1369)', quanData1:[
'申报通知(386)', '全部(1369)',
'立项公示(134)', '申报通知(386)',
'管理办法(103)', '立项公示(134)',
'政策图解(1)', '管理办法(103)',
'政务信息(13)', '政策图解(1)',
'新闻资讯(69)', '政务信息(13)',
], '新闻资讯(69)',
tableData1: [ ],
'不限', tableData1: [
'北京', '北京',
'天津', '天津',
'上海', '上海',
'重庆', '重庆',
'河北', '河北',
'河南', '河南',
'云南', '云南',
'辽宁', '辽宁',
'黑龙江', '黑龙江',
'湖南', '湖南',
'安徽', '安徽',
'山东', '山东',
'江苏', '江苏',
'浙江', '浙江',
'江西', '江西',
'湖北', '湖北',
'新疆维吾尔族自治区', '新疆维吾尔族自治区',
'广西壮族自治区', '广西壮族自治区',
'甘肃', '甘肃',
'山西', '山西',
'陕西', '陕西',
'内蒙古自治区', '内蒙古自治区',
'吉林', '吉林',
'福建', '福建',
'贵州', '贵州',
'广东', '广东',
'青海', '青海',
'西藏自治区', '西藏自治区',
'夏回族自治区', '夏回族自治区',
'四川' '四川'
], ],
tableData2:[ tableData2:[
'部委', '部委',
'省级', '省级',
'市级', '市级',
'区级' '区级'
], ],
tableData3:[ tableData3:[
'发改部门', '发改部门',
'教育部门', '教育部门',
'科学技术部门', '科学技术部门',
'工业和信息化部门', '工业和信息化部门',
'人社部门', '人社部门',
'生态环境部门', '生态环境部门',
'交通运输部门', '交通运输部门',
'农业农村部门', '农业农村部门',
'商务部门', '商务部门',
'文化和旅游部门', '文化和旅游部门',
'知识产权部门', '知识产权部门',
'财政部门', '财政部门',
'税务部门', '税务部门',
'国防科技部门', '国防科技部门',
'开发区/高新区/自贸区', '开发区/高新区/自贸区',
'市场监督部门', '市场监督部门',
'其他部门' '其他部门'
], ],
tableData4:[ tableData4:[
'资质荣誉', '资质荣誉',
'事前补助', '事前补助',
'研发费补助', '研发费补助',
'奖励', '奖励',
'贷款信息', '贷款信息',
'担保补助', '担保补助',
'投资补贴', '投资补贴',
'税收优惠', '税收优惠',
'创业补贴', '创业补贴',
'人才补贴' '人才补贴'
], ],
tableData5:[ tableData5:[
'事业单位', '事业单位',
'企业单位', '企业单位',
'社会组织' '社会组织'
], ],
tableData6:[ tableData6:[
'工业', '工业',
'建筑业', '建筑业',
'金融业', '金融业',
'农、林、牧、渔业', '农、林、牧、渔业',
'软件、信息传输和信息技术服务业', '软件、信息传输和信息技术服务业',
'住宿和餐饮业', '住宿和餐饮业',
'批发和零售业', '批发和零售业',
'现代服务业', '现代服务业',
'租赁和商业服务业', '租赁和商业服务业',
'交通运输、仓储和邮政业', '交通运输、仓储和邮政业',
'教育和卫生业', '教育和卫生业',
'文化、体育和娱乐业', '文化、体育和娱乐业',
'房地产和物业管理业', '房地产和物业管理业',
'水利、环境和公共设施管理业', '水利、环境和公共设施管理业',
'公共管理、社会保障、社会和国际组织', '公共管理、社会保障、社会和国际组织',
'电力、热力、燃气及水生产和供应业', '电力、热力、燃气及水生产和供应业',
'其他' '其他'
], ],
tableData7:[ tableData7:[
'普惠(创新券/社保补贴/创业补贴等)', '普惠(创新券/社保补贴/创业补贴等)',
'科技创新', '科技创新',
'人才类', '人才类',
'资质认定', '资质认定',
'商贸业/电子商务/交通/现代物流', '商贸业/电子商务/交通/现代物流',
'税收优惠', '税收优惠',
'技术改造', '技术改造',
'智能制造', '智能制造',
'现代服务业', '现代服务业',
'工程中心/技术中心/实验室/研发机构', '工程中心/技术中心/实验室/研发机构',
'金融补贴', '金融补贴',
'首台/首套', '首台/首套',
'绿色建筑', '绿色建筑',
'创客空间/孵化器/产业园/科技园', '创客空间/孵化器/产业园/科技园',
'生物医药', '生物医药',
'航空航天', '航空航天',
'奖项评选', '奖项评选',
'知识产权/知识产权金融', '知识产权/知识产权金融',
'专精特新/瞪羚/小巨人/独角兽', '专精特新/瞪羚/小巨人/独角兽',
'公共/示范平台', '公共/示范平台',
'龙头/标杆/骨干/示范企业', '龙头/标杆/骨干/示范企业',
'租金/展会/制定标准补贴', '租金/展会/制定标准补贴',
'产品认定', '产品认定',
'其他' '其他'
], ],
tableData8:[ tableData8:[
'基础与应用基础研究', '基础与应用基础研究',
'社会民生', '社会民生',
'现代服务业', '现代服务业',
'高新技术领域', '高新技术领域',
'新一代信息技术产业', '新一代信息技术产业',
'战略性新兴产业', '战略性新兴产业',
'未来产业', '未来产业',
'创业补贴', '创业补贴',
'人才补贴' '人才补贴'
], ],
tableData9:[ tableData9:[
'2019', '2019',
'2018', '2018',
'2017', '2017',
'2016', '2016',
'2015', '2015',
'2014', '2014',
'2013' '2013'
], ],
colorList:[{ colorList:[{
bgColor:"#EDEEFA", bgColor:"#EDEEFA",
fontColor:"#5B65D3" fontColor:"#5B65D3"
},{ },{
bgColor:"#FDF2EC", bgColor:"#FDF2EC",
fontColor:"#FC835A" fontColor:"#FC835A"
},{ },{
bgColor:"#FFEBF5", bgColor:"#FFEBF5",
fontColor:"#FF75B3" fontColor:"#FF75B3"
},{ },{
bgColor:"#E1EDFB", bgColor:"#E1EDFB",
fontColor:"#3CACFF" fontColor:"#3CACFF"
},{ },{
bgColor:"#E0F4E8", bgColor:"#E0F4E8",
fontColor:"#54D02F" fontColor:"#54D02F"
},{ },{
bgColor:"#E8F7F9", bgColor:"#E8F7F9",
fontColor:"#30BBCE" fontColor:"#30BBCE"
}] }]
}
},
methods: {
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);
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)';
}
},
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":10,
"address": this.input1,
"zc_level": this.input2,
"zc_department": this.input3,
"zc_mode": this.input4,
"company_type": this.input5,
"industry_type": this.input6,
"policy_type": this.input7,
"support_field": this.input8,
"year": this.input9
}).then( d => {
console.log(d,'---------------------------------');
var data = d.data.data;
this.recommendationsArr = data;
this.total = d.data.total;
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(`操作失败,请刷新页面后重新操作`);
});
} }
}, },
mounted: function() {
/*for (let i = 0; i < this.portrayalArr.length; i++) { methods: {
this.portrayalArr[i].col = this.rgb(); rgba() {
};*/ var color = this.colorList[Math.floor(Math.random()*this.colorList.length)];
this.zcPost(); 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.zccompanyPost();
this.zcPost()
/* this.recommendationsArr = this.recommendationsArr1*/
}, },
vname: "gsb-policyquery" LookCompany(i) {
} this.companyObj = i;
/*this.recommendationsArr = this.recommendationsArr2*/
\ No newline at end of file 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)';
}
},
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":10,
"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;
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(`操作失败,请刷新页面后重新操作`);
});
}
},
mounted: function() {
/*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"
}
...@@ -4019,12 +4019,14 @@ ...@@ -4019,12 +4019,14 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
...@@ -4039,17 +4041,20 @@ ...@@ -4039,17 +4041,20 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
...@@ -4166,7 +4171,8 @@ ...@@ -4166,7 +4171,8 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
...@@ -4178,6 +4184,7 @@ ...@@ -4178,6 +4184,7 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
...@@ -4192,6 +4199,7 @@ ...@@ -4192,6 +4199,7 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
...@@ -4199,12 +4207,14 @@ ...@@ -4199,12 +4207,14 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.3.5", "version": "2.3.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
...@@ -4223,6 +4233,7 @@ ...@@ -4223,6 +4233,7 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
...@@ -4303,7 +4314,8 @@ ...@@ -4303,7 +4314,8 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
...@@ -4315,6 +4327,7 @@ ...@@ -4315,6 +4327,7 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
...@@ -4436,6 +4449,7 @@ ...@@ -4436,6 +4449,7 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
......
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