瀏覽代碼

首页模块字体大小、底部改富文本、页签分页

linwei 1 年之前
父節點
當前提交
2b068a7c48

+ 10 - 5
src/components/NewsCom/NewsType2.vue

@@ -12,8 +12,8 @@
             <a-menu @click="changeMenu" v-model:selectedKeys="rightCurrent" mode="horizontal" :items="rightTopItems" />
         </div>
         <!-- <div class="grayLine"></div> -->
-        <div class="newsBox">
-            <div  class="news" v-for="item in list" :key="item.id">
+        <div v-if="list.length>0" class="newsBox">
+            <div class="news" v-for="item in list" :key="item.id">
                 <div v-if="item.url!=''" class="news_one">
                     <img class="news_one_img" :src="item.fileUrl" alt="">
                 </div>
@@ -31,8 +31,11 @@
                 </div>
             </div>
         </div>
+        <div v-else style="text-align: center;margin-top: 20px;">
+            暂无数据
+        </div>
         <div v-if="total>0" class="pagination">
-            <a-pagination v-model:current="pagecurrent" :total="total"  />
+            <a-pagination v-model:current="pagecurrent" :pageSize='pageSize' :total="total"  />
         </div>
     </div>
     </div>
@@ -53,6 +56,7 @@ const rightCurrent = ref(['1']);
 
 const list = ref([])
 const pagecurrent = ref(1)
+const pageSize = ref(5)
 const total = ref(0)
 
 const props = defineProps({
@@ -92,6 +96,7 @@ const changeMenu = async (data) =>{
     console.log('点击了',rightCurrent.value[0]);
     let find = rightTopItems.value.find(v => v.id == data.item.id)
     columnIdName.value = find.name
+    pagecurrent.value = 1
     await getArticle(find)
 }
 watch(pagecurrent, async() => {
@@ -103,7 +108,7 @@ const getArticle = async (data) =>{
     //获取列表
     let  res  = await getArticleByOpen({
         "pageNum": pagecurrent.value || 1,
-        "pageSize": 5,
+        "pageSize": pageSize.value,
         "columnId": data.columnId,
         "subId": data.id,
     })
@@ -118,7 +123,7 @@ const getArticle = async (data) =>{
         })
         list.value = data
 
-        pagecurrent.value = 1
+        
         total.value = res?.data?.total
 
     }else{

+ 3 - 2
src/components/NewsCom/NewsType3.vue

@@ -22,7 +22,7 @@
                     </div>
                 </div>
                 <div v-if="total>0" class="pagination">
-                    <a-pagination v-model:current="pagecurrent" :total="total" show-quick-jumper />
+                    <a-pagination v-model:current="pagecurrent" :pageSize='pageSize' :total="total" show-quick-jumper />
                 </div>
             </div>
         </div>
@@ -45,6 +45,7 @@ const columnIdName = ref('');
 const commodityList = ref([])
 
 const pagecurrent = ref(1)
+const pageSize = ref(9)
 const total = ref(0)
 
 const props = defineProps({
@@ -96,7 +97,7 @@ const getArticle = async (data) =>{
     //获取列表
     let  res  = await getArticleByOpen({
         "pageNum": pagecurrent.value,
-        "pageSize": 9,
+        "pageSize": pageSize.value,
         "columnId": data.columnId,
         "subId": data.id,
     })

+ 3 - 2
src/components/NewsCom/NewsType4.vue

@@ -35,7 +35,7 @@
                 </div>
             </div>
             <div class="pagination">
-                <a-pagination v-model:current="pagecurrent" :total="total"  />
+                <a-pagination v-model:current="pagecurrent" :pageSize='pageSize' :total="total"  />
             </div>
         </div>
         <div>
@@ -80,6 +80,7 @@ const rightCurrent = ref(['1']);
 
 const list = ref([])
 const pagecurrent = ref(1)
+const pageSize = ref(10)
 const total = ref(0)
 
 const value2 = ref('')
@@ -112,7 +113,7 @@ watch(pagecurrent, async() => {
 const getcontentPage =async () =>{
     //1=热门回答;2=最新回答;3=带解答?暂时改成我的提问
     let data = {
-        "pageSize": 10,
+        "pageSize": pageSize.value,
         "pageNum": pagecurrent.value,
         "sortType":rightCurrent.value[0]
     }

+ 4 - 3
src/components/NewsCom/base/comment-list.vue

@@ -27,7 +27,7 @@
     </a-comment>
 
     <div class="pagination">
-        <a-pagination v-model:current="pagecurrent" :total="total"  />
+        <a-pagination v-model:current="pagecurrent" :pageSize='pageSize' :total="total"  />
     </div>
   </div>
 </template>
@@ -42,8 +42,9 @@ const route=useRoute()
 
 const check = ref(true)
 const content = ref('')
-const total = ref(0)
 const pagecurrent = ref(1)
+const pageSize = ref(10)
+const total = ref(0)
 const props = defineProps({
     CommentId: {
         type: String,
@@ -67,7 +68,7 @@ onMounted(async() => {
 const gettopicDetail = async () =>{
   //sortType 1=最热,不传=最新
   let data = {
-      "pageSize": 10,
+      "pageSize": pageSize.value,
       "pageNum": pagecurrent.value,
       "sortType":check.value ? '' : '1'
   }

+ 3 - 2
src/components/ProductServices/ProductServicesMain.vue

@@ -35,7 +35,7 @@
                     </div>
                 </div>
                 <div class="pagination">
-                    <a-pagination v-model:current="pagecurrent" :total="total" show-quick-jumper />
+                    <a-pagination v-model:current="pagecurrent" :pageSize='pageSize' :total="total" />
                 </div>
             </div>
         </div>
@@ -71,6 +71,7 @@ const rightCurrent = ref(['1']);
 const commodityList = ref([])
 
 const pagecurrent = ref(1)
+const pageSize = ref(6)
 const total = ref(0)
 const carouselList = ref([])
 
@@ -179,7 +180,7 @@ watch(pagecurrent, async() => {
 async function getProductInfo1 (data){
   //获取子目录下级列表
   let query = {
-    "pageSize": 6,
+    "pageSize": pageSize.value,
     "pageNum": pagecurrent.value
   }
   let res = await getProductList(selectedKeys.value[0],data.id,query)

+ 1 - 1
src/components/index/base/NewsType1.vue

@@ -82,7 +82,7 @@ function openDetail (e){
 }
 .title-text{
   margin: 20px 0 0 0;
-  font-size: 26px;
+  font-size: 40px;
   font-weight: bolder;
   color: #fff;
 }

+ 1 - 2
src/components/index/base/NewsType3.vue

@@ -112,7 +112,6 @@ function openDetail (e){
     height: 217px;
 }
 .newsborder{
-    border: 5px solid #ffffff;
     width: 386px;
     height: 217px;
 }
@@ -147,7 +146,7 @@ function openDetail (e){
     width: 50px;
     height: 50px;
     position: relative;
-    top: -110px;
+    top: -120px;
     z-index: 150;
     left: 43%;
     cursor: pointer;

+ 3 - 2
src/components/index/indexFooter.vue

@@ -29,10 +29,11 @@
           <mail-filled />
           {{ footInfo.email }}
         </div>
-        <div class="foot_box_item2">
+        <!-- <div class="foot_box_item2">
           备案号:
           <a href="https://beian.miit.gov.cn/#/Integrated/index" target='_blank' style="color:#fff">{{ footInfo.filingNumber }}</a>
-        </div>
+        </div> -->
+        <div v-html="footInfo.filingNumber"></div>
       </div>
 
       <div class="foot_box3">