Commit 83ad9cf9 authored by 吴冠's avatar 吴冠

更新功能

parent 3af00e40
!function(t){var c,e,l,a,i,n,o='<svg><symbol id="icon-weixin" viewBox="0 0 1024 1024"><path d="M648.76385 387.55778c9.614985 0 19.127639 0.706081 28.563546 1.757017-25.665543-119.509884-153.434531-208.30421-299.276131-208.30421-163.049516 0-296.611441 111.138216-296.611441 252.264421 0 81.462337 44.436048 148.356886 118.690216 200.24158l-29.66667 89.228207 103.690594-51.997258c37.103036 7.344269 66.871013 14.895245 103.898325 14.895245 9.30697 0 18.537192-0.459464 27.689642-1.178849-5.794983-19.831674-9.152451-40.602743-9.152451-62.153571-0.001023-129.58638 111.279433-234.752582 252.17437-234.752582z m-159.484318-80.422658c22.333658 0 37.128619 14.69263 37.128619 37.012986 0 22.231327-14.794961 37.128619-37.128619 37.128618-22.231327 0-44.537356-14.897292-44.537355-37.128618 0-22.319331 22.307052-37.012985 44.537355-37.012986z m-207.587895 74.141604c-22.228257 0-44.664246-14.897292-44.664246-37.128618 0-22.320355 22.435988-37.012985 44.664246-37.012986 22.230304 0 37.026288 14.69263 37.026288 37.012986 0 22.231327-14.794961 37.128619-37.026288 37.128618z" fill="#F7D11E" ></path><path d="M170.461323 738.889497c-3.805676 0-7.568373-1.340531-10.564613-3.936659a16.147772 16.147772 0 0 1-4.761444-17.302061l25.922393-77.976956c-75.800383-56.343239-115.76663-127.492696-115.76663-206.398813 0-148.005892 140.30142-268.413216 312.757166-268.413216 151.496389 0 286.130739 93.717452 314.491671 218.451314a16.037255 16.037255 0 0 1 1.146103 6.002714c0 8.919137-7.221472 16.145725-16.145725 16.145725h-0.209778a15.738449 15.738449 0 0 1-1.786693-0.100284c-10.006911-1.11438-18.763342-1.655709-26.773783-1.655709-130.146129 0-236.031714 98.064456-236.031715 218.603786 0 18.937305 2.859118 38.325887 8.493442 57.630559a16.123212 16.123212 0 0 1-2.207272 13.696953 16.126282 16.126282 0 0 1-12.014638 6.92676c-10.490935 0.824785-19.961634 1.224898-28.959565 1.224897-32.755008 0-60.506049-5.697769-89.886193-11.726065-3.847631-0.787946-7.747451-1.592264-11.731182-2.396583l-98.726536 49.510623a16.163121 16.163121 0 0 1-7.245008 1.713015z m207.586872-541.735232c-154.649196 0-280.465716 105.922425-280.465716 236.121766 0 72.252581 37.611619 135.171586 111.793132 187.005114a16.153912 16.153912 0 0 1 6.075369 18.327414l-17.365506 52.222386 68.820412-34.515095a16.084327 16.084327 0 0 1 10.375301-1.408069 2868.182988 2868.182988 0 0 1 17.37574 3.521196c31.272237 6.417153 57.415664 11.789511 90.695628 10.973936-3.258207-15.768125-4.9088-31.540344-4.9088-47.092551 0-138.345881 120.370485-250.895237 268.324188-250.895237 2.270716 0 4.583388 0.036839 6.948249 0.110517-33.878598-100.784404-148.856259-174.371376-277.667997-174.371377zM489.283626 397.424498c-29.1806 0-60.685127-20.366863-60.685128-53.27332 0-32.838919 31.503505-53.163827 60.685128-53.163827 31.367405 0 53.273321 21.858844 53.27332 53.163827 0.001023 31.366382-21.905916 53.273321-53.27332 53.27332z m0-74.144674c-13.707187 0-28.392654 8.388041-28.392654 20.871354 0 12.550851 14.685467 20.98187 28.392654 20.98187 13.328563 0 20.98187-7.647167 20.98187-20.98187 0-13.46057-7.452739-20.871353-20.98187-20.871354zM281.696754 397.424498c-29.244045 0-60.810994-20.366863-60.810995-53.27332 0-32.838919 31.56695-53.163827 60.810995-53.163827 31.30396 0 53.168943 21.858844 53.168943 53.163827 0 31.366382-21.864984 53.273321-53.168943 53.27332z m0-74.144674c-13.770632 0-28.51852 8.388041-28.518521 20.871354 0 12.366655 15.032368 20.98187 28.518521 20.98187 13.266142 0 20.87647-7.647167 20.876469-20.98187 0-13.266142-7.610328-20.871353-20.876469-20.871354z" fill="#885F44" ></path><path d="M942.566316 631.498628c0-118.587885-118.66668-215.252459-251.945149-215.252459-141.126204 0-252.277724 96.664573-252.277724 215.252459 0 118.792547 111.151519 215.252459 252.277724 215.252459 29.537733 0 59.33027-7.448646 88.997963-14.885012l81.356936 44.551682-22.307052-74.126255c59.538001-44.666292 103.897302-103.897302 103.897302-170.792874z m-333.74006-37.115316c-14.769378 0-29.66667-14.69263-29.66667-29.679973 0-14.779611 14.897292-29.6636 29.66667-29.6636 22.435988 0 37.128619 14.885012 37.128619 29.6636 0 14.987343-14.69263 29.679973-37.128619 29.679973z m163.15287 0c-14.667048 0-29.462009-14.69263-29.462009-29.679973 0-14.779611 14.794961-29.6636 29.462009-29.6636 22.230304 0 37.125549 14.885012 37.125549 29.6636 0 14.987343-14.895245 29.679973-37.125549 29.679973z" fill="#F7D11E" ></path><path d="M860.981183 892.561435c-2.659573 0-5.329379-0.651846-7.757685-1.98112l-75.810616-41.516556c-28.223808 7.043417-57.310264 13.833053-86.795808 13.833053-148.005892 0-268.418332-103.804181-268.418333-231.396137 0-127.597073 120.41244-231.401254 268.418333-231.401254 145.325853 0 268.092921 105.969497 268.092921 231.401254 0 62.292742-35.897581 124.727723-101.375876 176.777169l19.110244 63.4808a16.130376 16.130376 0 0 1-5.297656 17.197684 16.096607 16.096607 0 0 1-10.165524 3.605107z m-81.361029-76.841085c2.691295 0 5.361101 0.672312 7.757684 1.98112l46.777373 25.617448-10.95347-36.370349a16.147772 16.147772 0 0 1 5.771447-17.570168c62.839187-47.140647 97.444333-103.20964 97.444333-157.876703 0-107.930151-107.987457-199.10878-235.800447-199.10878-130.199341 0-236.126882 89.318258-236.126882 199.10878 0 109.785405 105.927541 199.103664 236.126882 199.103664 27.635407 0 56.837496-7.321756 85.071537-14.400989a16.390295 16.390295 0 0 1 3.931543-0.484023z m-7.642051-205.190289c-23.87271 0-45.610804-21.843494-45.610804-45.825699 0-23.546276 22.168905-45.810349 45.610804-45.810348 29.380144 0 53.273321 20.551058 53.273321 45.810348 0 25.270547-23.893176 45.825698-53.273321 45.825699z m0-59.344597c-5.728468 0-13.31833 7.705496-13.31833 13.517875 0 5.944386 7.462972 13.534248 13.31833 13.534248 13.507642 0 20.98187-8.004301 20.98187-13.534248-0.001023-5.522784-7.474228-13.517875-20.98187-13.517875z m-163.153894 59.344597c-23.977088 0-45.810349-21.843494-45.810348-45.825699 0-23.546276 22.264073-45.810349 45.810348-45.810348 32.902364 0 53.273321 23.777543 53.273321 45.810348 0 22.526039-19.929912 45.825698-53.273321 45.825699z m0-59.344597c-5.813403 0-13.517875 7.705496-13.517875 13.517875 0 5.944386 7.578606 13.534248 13.517875 13.534248 13.68672 0 20.98187-7.857968 20.98187-13.534248-0.001023-5.522784-7.474228-13.517875-20.98187-13.517875z" fill="#885F44" ></path></symbol><symbol id="icon-xiaochengxu_tubiao" viewBox="0 0 1024 1024"><path d="M532.5 191.5l17.3 61.9c66.9-22 143.4-6.4 196.7 46.9 49.3 49.3 62.4 127 47.2 190.1 15.8 6.2 41 13.9 60.5 21.9 22.2-87.2 6.9-189.8-61.5-258.2-70.5-70.4-171.4-90.5-260.2-62.6z" fill="#95CD5C" ></path><path d="M519.5 244.9c12.5 12.5 32.9 12.5 45.4 0s12.5-32.9 0-45.4-32.9-12.5-45.4 0-12.5 32.9 0 45.4zM686.6 482.9c12.5 12.5 32.9 12.5 45.4 0s12.5-32.9 0-45.4-32.9-12.5-45.4 0c-12.6 12.5-12.6 32.9 0 45.4zM567.1 363.4c12.5 12.5 32.9 12.5 45.4 0s12.5-32.9 0-45.4-32.9-12.5-45.4 0-12.5 32.8 0 45.4zM800.4 525.8c12.5 12.5 32.9 12.5 45.4 0s12.5-32.9 0-45.4-32.9-12.5-45.4 0c-12.5 12.6-12.5 32.9 0 45.4z" fill="#95CD5C" ></path><path d="M583.4 309l10.8 63.4c22-2.9 45.1 4.2 61.9 21 16.6 16.6 23.6 39.1 21.2 60.8l50.2 13.6c0.3-0.4 0.7-0.9 1.1-1.3 3.5-3.5 8.5-4.8 12.6-3.6 5.1-41-8.1-83.8-39.5-115.2C670 316 624.8 303.4 583.4 309z" fill="#95CD5C" ></path><path d="M850.9 772.5c1.4-2.5 2.5-5.3 3.2-8.2 3.8-13.3 5.8-27.4 5.8-42 0-85.4-69.2-154.7-154.7-154.7-72.5 0-133.3 49.9-150.1 117.2-95.6-42.7-169.8-125.3-200.9-227.1 66.4-17.4 115.5-77.7 115.5-149.6v-1.4c0-84.9-68.9-153.7-153.7-153.7-21.4 0-41.8 4.4-60.4 12.3-55.9 23.4-95.2 78.5-95.2 142.9 0 2.2 0.1 4.4 0.2 6.6-0.1 3.8-0.2 7.5-0.2 11.3 0 304.2 246.7 550 550.9 550 2.3 0 4.6-0.2 6.8-0.2 2.7-0.1 5.3-0.5 7.8-1.3 58.3-7.6 106.3-48 125-102.1z" fill="#95CD5C" ></path></symbol><symbol id="icon-iconx-" viewBox="0 0 1024 1024"><path d="M692.83 330.67H112.1a142.3 142.3 0 0 0-0.94 16.28v330.11c0 78 63.46 141.47 141.47 141.47h518.74c3.09 0 6.16-0.11 9.21-0.31V417.73c-0.01-48.97-38.39-87.06-87.75-87.06z" fill="#BBF2FF" ></path><path d="M771.37 158.32H252.63C148.45 158.32 64 242.77 64 346.95v330.1c0 104.18 84.45 188.63 188.63 188.63h518.74c104.17 0 188.63-84.45 188.63-188.63v-330.1c0-104.18-84.46-188.63-188.63-188.63z m0 47.16A140.82 140.82 0 0 1 861.55 238L605.13 494.46c-55.16 55.16-144.92 55.16-200.08 0L155.22 244.62a140.8 140.8 0 0 1 97.41-39.14z m141.47 471.57c0 78-63.47 141.47-141.47 141.47H252.63c-78 0-141.47-63.47-141.47-141.47v-330.1a140.46 140.46 0 0 1 19-70.56l241.55 251.42c73.66 73.67 193.1 73.67 266.76 0l253.36-254.67a140.36 140.36 0 0 1 21 73.81z" fill="#2087E7" ></path></symbol><symbol id="icon-QQ" viewBox="0 0 1024 1024"><path d="M511.09761 957.257c-80.159 0-153.737-25.019-201.11-62.386-24.057 6.702-54.831 17.489-74.252 30.864-16.617 11.439-14.546 23.106-11.55 27.816 13.15 20.689 225.583 13.211 286.912 6.767v-3.061z" fill="#FAAD08" ></path><path d="M496.65061 957.257c80.157 0 153.737-25.019 201.11-62.386 24.057 6.702 54.83 17.489 74.253 30.864 16.616 11.439 14.543 23.106 11.55 27.816-13.15 20.689-225.584 13.211-286.914 6.767v-3.061z" fill="#FAAD08" ></path><path d="M497.12861 474.524c131.934-0.876 237.669-25.783 273.497-35.34 8.541-2.28 13.11-6.364 13.11-6.364 0.03-1.172 0.542-20.952 0.542-31.155C784.27761 229.833 701.12561 57.173 496.64061 57.162 292.15661 57.173 209.00061 229.832 209.00061 401.665c0 10.203 0.516 29.983 0.547 31.155 0 0 3.717 3.821 10.529 5.67 33.078 8.98 140.803 35.139 276.08 36.034h0.972z" fill="#000000" ></path><path d="M860.28261 619.782c-8.12-26.086-19.204-56.506-30.427-85.72 0 0-6.456-0.795-9.718 0.148-100.71 29.205-222.773 47.818-315.792 46.695h-0.962C410.88561 582.017 289.65061 563.617 189.27961 534.698 185.44461 533.595 177.87261 534.063 177.87261 534.063 166.64961 563.276 155.56661 593.696 147.44761 619.782 108.72961 744.168 121.27261 795.644 130.82461 796.798c20.496 2.474 79.78-93.637 79.78-93.637 0 97.66 88.324 247.617 290.576 248.996a718.01 718.01 0 0 1 5.367 0C708.80161 950.778 797.12261 800.822 797.12261 703.162c0 0 59.284 96.111 79.783 93.637 9.55-1.154 22.093-52.63-16.623-177.017" fill="#000000" ></path><path d="M434.38261 316.917c-27.9 1.24-51.745-30.106-53.24-69.956-1.518-39.877 19.858-73.207 47.764-74.454 27.875-1.224 51.703 30.109 53.218 69.974 1.527 39.877-19.853 73.2-47.742 74.436m206.67-69.956c-1.494 39.85-25.34 71.194-53.24 69.956-27.888-1.238-49.269-34.559-47.742-74.435 1.513-39.868 25.341-71.201 53.216-69.974 27.909 1.247 49.285 34.576 47.767 74.453" fill="#FFFFFF" ></path><path d="M683.94261 368.627c-7.323-17.609-81.062-37.227-172.353-37.227h-0.98c-91.29 0-165.031 19.618-172.352 37.227a6.244 6.244 0 0 0-0.535 2.505c0 1.269 0.393 2.414 1.006 3.386 6.168 9.765 88.054 58.018 171.882 58.018h0.98c83.827 0 165.71-48.25 171.881-58.016a6.352 6.352 0 0 0 1.002-3.395c0-0.897-0.2-1.736-0.531-2.498" fill="#FAAD08" ></path><path d="M467.63161 256.377c1.26 15.886-7.377 30-19.266 31.542-11.907 1.544-22.569-10.083-23.836-25.978-1.243-15.895 7.381-30.008 19.25-31.538 11.927-1.549 22.607 10.088 23.852 25.974m73.097 7.935c2.533-4.118 19.827-25.77 55.62-17.886 9.401 2.07 13.75 5.116 14.668 6.316 1.355 1.77 1.726 4.29 0.352 7.684-2.722 6.725-8.338 6.542-11.454 5.226-2.01-0.85-26.94-15.889-49.905 6.553-1.579 1.545-4.405 2.074-7.085 0.242-2.678-1.834-3.786-5.553-2.196-8.135" fill="#000000" ></path><path d="M504.33261 584.495h-0.967c-63.568 0.752-140.646-7.504-215.286-21.92-6.391 36.262-10.25 81.838-6.936 136.196 8.37 137.384 91.62 223.736 220.118 224.996H506.48461c128.498-1.26 211.748-87.612 220.12-224.996 3.314-54.362-0.547-99.938-6.94-136.203-74.654 14.423-151.745 22.684-215.332 21.927" fill="#FFFFFF" ></path><path d="M323.27461 577.016v137.468s64.957 12.705 130.031 3.91V591.59c-41.225-2.262-85.688-7.304-130.031-14.574" fill="#EB1C26" ></path><path d="M788.09761 432.536s-121.98 40.387-283.743 41.539h-0.962c-161.497-1.147-283.328-41.401-283.744-41.539l-40.854 106.952c102.186 32.31 228.837 53.135 324.598 51.926l0.96-0.002c95.768 1.216 222.4-19.61 324.6-51.924l-40.855-106.952z" fill="#EB1C26" ></path></symbol></svg>',d=(d=document.getElementsByTagName("script"))[d.length-1].getAttribute("data-injectcss");if(d&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}function h(){i||(i=!0,l())}c=function(){var t,c,e,l;(l=document.createElement("div")).innerHTML=o,o=null,(e=l.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",t=e,(c=document.body).firstChild?(l=t,(e=c.firstChild).parentNode.insertBefore(l,e)):c.appendChild(t))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(e=function(){document.removeEventListener("DOMContentLoaded",e,!1),c()},document.addEventListener("DOMContentLoaded",e,!1)):document.attachEvent&&(l=c,a=t.document,i=!1,(n=function(){try{a.documentElement.doScroll("left")}catch(t){return void setTimeout(n,50)}h()})(),a.onreadystatechange=function(){"complete"==a.readyState&&(a.onreadystatechange=null,h())})}(window);
\ No newline at end of file
...@@ -105,6 +105,8 @@ import {getSecond} from '@/common/list.js' ...@@ -105,6 +105,8 @@ import {getSecond} from '@/common/list.js'
left:1000px; left:1000px;
cursor:pointer; cursor:pointer;
font-size: 10px; font-size: 10px;
color:blue;
background: none;
} }
.header-line { .header-line {
......
...@@ -26,11 +26,12 @@ ...@@ -26,11 +26,12 @@
methods:{ methods:{
toSearch(){ toSearch(){
sessionStorage.setItem("content",this.input) sessionStorage.setItem("content",this.input)
sessionStorage.setItem("contentStatus",1)
if(window.location.pathname !=="/notice/all"){ if(window.location.pathname !=="/notice/all"){
this.$router.push('/notice/all') this.$router.push('/notice/all')
this.input = null this.input = null
}else{ }else{
/* location.reload() */ location.reload()
console.log("请在下面进行查询") console.log("请在下面进行查询")
this.input = null this.input = null
} }
...@@ -51,7 +52,7 @@ ...@@ -51,7 +52,7 @@
.images{ .images{
width:100px; width:100px;
height:20px; height:20px;
margin-left:20px; margin-left:0px;
margin-top:-20px margin-top:-20px
} }
.images>img{ .images>img{
...@@ -72,7 +73,7 @@ ...@@ -72,7 +73,7 @@
} }
.head-input-title{ .head-input-title{
margin-top: 0px; margin-top: 0px;
margin-left: -580px; margin-left: -610px;
font-size:.28rem; font-size:.28rem;
color:rgba(0,0,0,1); color:rgba(0,0,0,1);
font-weight: bold; font-weight: bold;
......
...@@ -47,9 +47,34 @@ import inDex from '@/pages/index.vue' ...@@ -47,9 +47,34 @@ import inDex from '@/pages/index.vue'
}, },
mounted(){ mounted(){
console.log("1") console.log("1")
/* if(window.location.pathname =="/notice/all"){ let path = this.$route.path;
this.nav = "4" /* if(path=="/"){
} */ this.nav = "0";
}else if(path.indexOf("/message")==0){
this.nav = "5";
}else if(path.indexOf("/notice")==0){
this.nav = "4";
} */
switch (path) {
case '/':
this.nav = "0";
break;
case '/notice/inquiry':
this.nav = "1";
break;
case "/notice/bid":
this.nav = "2";
break;
case "/notice/biding":
this.nav = "3";
break;
case "/notice/all":
this.nav = "4";
break;
case "/message/news":
this.nav = "5";
break;
}
}, },
methods: { methods: {
change(index, path) { change(index, path) {
......
<template> <template>
<div class="home"> <div class="home">
<Head></Head> <Head></Head>
<Homeinput></Homeinput> <Homeinput></Homeinput>
<Nav></Nav> <Nav></Nav>
<nuxt ></nuxt> <nuxt></nuxt>
<Footer></Footer> <Footer></Footer>
<div class="imagesList" >
<img src="../assets/images/phone.png" alt="电话">
<img src="../assets/images/QQ.png" alt="QQ">
<img src="../assets/images/email.png" alt="邮箱">
<img src="../assets/images/weixin.png" alt="微信" class="weixin" @mouseover="enter" @mouseout="leave">
<div>
<img src="../assets/images/qrcode.png" alt="二维码" class="qrcode" v-if="isshowqrcode">
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
import Head from '~/components/header' import Head from "~/components/header";
import Nav from '~/components/nav' import Nav from "~/components/nav";
import Footer from '~/components/footer' import Footer from "~/components/footer";
import Homeinput from '~/components/homeinput' import Homeinput from "~/components/homeinput";
export default { export default {
name: "homePage", name: "homePage",
data () { data() {
return { return {
isshowqrcode:false
} };
}, },
components: { components: {
Head, Head,
Nav, Nav,
Footer Footer,
}, },
} methods:{
enter(){
this.isshowqrcode = true
},
leave(){
this.isshowqrcode = false
}
}
};
</script> </script>
<style scoped> <style scoped>
.home{
width : 100%; .home {
min-width: 810px; width: 100%;
height: 100%; min-width: 810px;
min-height: 600px; height: 100%;
min-height: 600px;
}
.imagesList{
position: fixed;
/* flex-direction: column; */
width:30px;
right:10px;
top:35%;
}
.imagesList>img{
margin-top:5px;
margin-bottom: 5px;
width:30px;
}
.qrcode{
width:100px;
height:100px;
position: absolute;
right:40px;
top:58px;
} }
</style> </style>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</div> </div>
<div class="login" @mouseover="changeOver" > <div class="login" @mouseover="changeOver" >
<div class="author" > <div class="author" >
<img src="~/assets/css/7.png" v-show="!showDefault"> <img src="~/assets/css/7.png">
</div> </div>
<div class="login-title">{{userName}}</div> <div class="login-title">{{userName}}</div>
<div class="login-button" @click="loginuser" v-show="showDefault">用户登录</div> <div class="login-button" @click="loginuser" v-show="showDefault">用户登录</div>
...@@ -90,9 +90,6 @@ import {getSecond,getListSite,getListSite1,getListSite2} from '@/common/list.js' ...@@ -90,9 +90,6 @@ import {getSecond,getListSite,getListSite1,getListSite2} from '@/common/list.js'
this.getListSite() this.getListSite()
this.getListSite1() this.getListSite1()
this.getListSite2() this.getListSite2()
/* if(window.location.pathname =="/notice/all"){
this.nav = "4"
} */
}, },
methods:{ methods:{
latformDynamics(){ latformDynamics(){
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
</div> </div>
<ul v-if="isshow"> <ul >
<li v-for="item in priceList" :key="item.id"> <li v-for="item in priceList" :key="item.id">
<nuxt-link :to='`/notice/${item.noticeType}details?id=${item.noticeId}`'> <nuxt-link :to='`/notice/${item.noticeType}details?id=${item.noticeId}`'>
<div class="time">{{getTimer(item.createTime)}}</div> <div class="time">{{getTimer(item.createTime)}}</div>
...@@ -46,12 +46,12 @@ ...@@ -46,12 +46,12 @@
</div> </div>
</nuxt-link> </nuxt-link>
</li> </li>
<div class="pagination flex-center" >
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="getData.currentPage" :page-size ="getData.size" :page-sizes="[10, 20, 30, 40]"
layout="total, sizes,prev, pager, next, jumper" :total="total">
</el-pagination >
</div>
</ul> </ul>
<div class="pagination flex-center">
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="getData.currentPage" :page-size ="getData.size" :page-sizes="[10, 20, 30, 40]"
layout="total, sizes,prev, pager, next, jumper" :total="total">
</el-pagination >
</div>
</div> </div>
</template> </template>
...@@ -76,7 +76,6 @@ import {getAllList,getNoticeType} from '@/common/list.js' ...@@ -76,7 +76,6 @@ import {getAllList,getNoticeType} from '@/common/list.js'
}, },
data() { data() {
return { return {
isshow:true,
allList:[], allList:[],
total:0, total:0,
getData:{ getData:{
...@@ -143,10 +142,17 @@ import {getAllList,getNoticeType} from '@/common/list.js' ...@@ -143,10 +142,17 @@ import {getAllList,getNoticeType} from '@/common/list.js'
async getAllList(params){ async getAllList(params){
const {data,total} = await getAllList(params) const {data,total} = await getAllList(params)
this.priceList = data this.priceList = data
if(total ===null||0){
this.isshow = false
}
this.total = total this.total = total
let contentStatus = sessionStorage.getItem("contentStatus")
if(contentStatus =='1'){
if(this.total!==0){
this.$message.success("查询成功!")
}else{
this.$message.error("请输入正确的公告名称!")
this.getAllList(this.getData)
}
sessionStorage.removeItem("contentStatus")
}
}, },
async getNoticeType(){ async getNoticeType(){
const {data} = await getNoticeType() const {data} = await getNoticeType()
......
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