Ver Fonte

修改样式

zs há 11 meses atrás
pai
commit
8f7e14f53b

+ 32 - 4
src/styles/variables.scss

@@ -21,11 +21,39 @@ $global-font-size-26: 26px;
   font-size: 16px; /* 设置表体字体大小 */
 }
 
+.el-form-item__label {
+  font-size: 18px !important; /* 设置标签字体大小 */
+}
+
 .el-input__inner {
-  font-size: 18px; /* 调整为你想要的字体大小 */
+  font-size: 16px !important; /* 设置输入框字体大小 */
 }
 
-/* 如果你还想修改标签的字体大小,可以添加以下样式 */
-.el-form-item__label {
-  font-size: 16px; /* 调整为你想要的字体大小 */
+/* custom-element-plus.css */
+.el-tabs__item {
+  font-size: 18px !important; /* 设置标签页的字体大小 */
+}
+
+.el-tabs__item-text {
+  font-size: 18px !important; /* 确保标签页文本也有相同的字体大小 */
+}
+
+/* custom-antd.css */
+.ant-tabs-tab {
+  font-size: 18px; /* 或者你想要的任何字体大小 */
+}
+
+/* 如果需要增大标签页标题的字体大小 */
+.ant-tabs-tab-btn {
+  font-size: 18px; /* 保持与上面一致或按需调整 */
+}
+
+/* custom-element-ui.css */
+.el-radio__label {
+  font-size: 16px !important; /* 设置你想要的字体大小 */
+}
+
+/* 如果你还想调整单选按钮本身的字体大小(通常是内部的 span),你也可以添加如下规则 */
+.el-radio__original {
+  font-size: 16px !important; /* 确保内部元素也有相应的字体大小 */
 }

+ 1 - 1
src/views/achievement/detail.vue

@@ -63,7 +63,7 @@
             <el-row :span="24" class="thr_2">
               <el-col :span="18" class="left">
                 <el-col :span="24" class="name">
-                  {{ userInfo.name || '' }}
+                  {{ userInfo.name || '暂无' }}
                 </el-col>
                 <el-col :span="24" class="other">
                   <span>联系人</span>

+ 18 - 18
src/views/chat/index.vue

@@ -30,7 +30,7 @@
                   :key="index"
                   @click="toView(item)"
                 >
-                  <div class="line" v-if="item._id == id"></div>
+                  <div class="line" v-if="item.id == id"></div>
                   <el-col :span="4" class="left">
                     <a-badge :dot="item.is_read == '0'">
                       <a-avatar :size="60" style="background-color: #409eff">
@@ -80,7 +80,7 @@
 import moment from 'moment'
 import Chat from './parts/chat.vue'
 import { SearchOutlined } from '@ant-design/icons-vue'
-import { sendWebsocket, closeWebsocket } from '@/utils/websocket'
+// import { sendWebsocket, closeWebsocket } from '@/utils/websocket'
 // 接口
 import { ChatStore } from '@/store/api/platform/chat'
 import { UsersStore } from '@/store/api/user/user'
@@ -117,31 +117,31 @@ const textarea = ref('')
 onMounted(async () => {
   loading.value = true
   await search()
-  sendWebsocket('ws://localhost:9700', wsMessage, wsError, succeed)
+  // sendWebsocket('ws://localhost:9700', wsMessage, wsError, succeed)
   loading.value = false
 })
 
-onBeforeUnmount(() => {
-  closeWebsocket()
-})
+// onBeforeUnmount(() => {
+//   closeWebsocket()
+// })
 
 // ws连接成功,后台返回的ws数据,组件要拿数据渲染页面等操作
 const wsMessage = async (data) => {
   const dataJson = data
-  if (dataJson && dataJson._id) {
+  if (dataJson && dataJson.id) {
     if (
-      (dataJson.sender_id == user.value.id && dataJson.receiver_id == id.value) ||
-      (dataJson.sender_id == id.value && dataJson.receiver_id == user.value.id)
+      (dataJson.senderid == user.value.id && dataJson.receiverid == id.value) ||
+      (dataJson.senderid == id.value && dataJson.receiverid == user.value.id)
     ) {
       await searchList()
       list.value.push(dataJson)
     }
   }
 }
-// ws连接失败,组件要执行的代码
-const wsError = async () => {
-  sendWebsocket('ws://localhost:9700', wsMessage, wsError, succeed)
-}
+// // ws连接失败,组件要执行的代码
+// const wsError = async () => {
+//   sendWebsocket('ws://localhost:9700', wsMessage, wsError, succeed)
+// }
 // ws连接成功,组件要执行的代码
 const succeed = async () => {
   console.log('ws连接成功')
@@ -162,9 +162,9 @@ const searchList = async () => {
 }
 
 const toView = async (item) => {
-  id.value = item._id
+  id.value = item.id
   info.value = item
-  await chatstore.read({ sender_id: user.value.id, receiver_id: id.value })
+  await chatstore.read({ senderid: user.value.id, receiverid: id.value })
   await searchList()
   await searchChat({ skip, limit })
 }
@@ -172,7 +172,7 @@ const searchChat = async (query = { skip: 0, limit }) => {
   const data = {
     skip: query.skip,
     limit: query.limit,
-    user: info.value._id,
+    user: info.value.id,
     ...searchForm.value
   }
   const res = await chatstore.query(data)
@@ -181,8 +181,8 @@ const searchChat = async (query = { skip: 0, limit }) => {
 }
 const toSend = async () => {
   const data = {
-    sender_id: user.value.id,
-    receiver_id: id.value,
+    senderid: user.value.id,
+    receiverid: id.value,
     type: '0',
     content: textarea.value,
     send_time: moment().format('YYYY-MM-DD HH:mm:ss')

+ 7 - 5
src/views/company/detail.vue

@@ -33,14 +33,14 @@
                         @click="toCollection(0)"
                         v-if="info.is_collection"
                       >
-                        <el-icon :size="16"><StarFilled /></el-icon>
+                        <el-icon :size="20"><StarFilled /></el-icon>
                         <span>已收藏</span>
                       </el-col>
-                      <el-col :span="5" class="file" @click="toCollection(1)" v-else>
-                        <el-icon :size="16"><Star /></el-icon>
+                      <el-col :span="6" class="file" @click="toCollection(1)" v-else>
+                        <el-icon :size="20"><Star /></el-icon>
                         <span>收藏</span>
                       </el-col>
-                      <el-col :span="8" class="file">
+                      <el-col :span="9" class="file">
                         <a-button type="primary" @click="toChat">
                           <template #icon>
                             <MessageOutlined />
@@ -75,7 +75,9 @@
                   <el-col :span="8" class="info">
                     注册资本:{{ info.register || '暂无' }}万元
                   </el-col>
-                  <el-col :span="8" class="info">成立日期:{{ info.create_time || '暂无' }}</el-col>
+                  <el-col :span="8" class="info"
+                    >成立日期:{{ moment(info.create_time).format('YYYY-MM-DD') }}</el-col
+                  >
                   <el-col :span="8" class="info">地址:{{ info.address || '暂无' }}</el-col>
                 </el-col>
               </el-col>

+ 3 - 2
src/views/company/index.vue

@@ -150,7 +150,7 @@
               <el-col :span="20" class="right" v-else>
                 <a-button
                   class="title"
-                  v-for="(item, index) in IndustryList.slice(0, 6)"
+                  v-for="(item, index) in IndustryList.slice(0, 5)"
                   :key="index"
                   type="link"
                   size="samll"
@@ -219,7 +219,7 @@
                     法定代表人:<span>{{ item.representative || '暂无' }}</span>
                   </el-col>
                   <el-col :span="6" class="info">
-                    成立日期:{{ item.create_time || '暂无' }}
+                    成立日期:{{ moment(item.create_time).format('YYYY-MM-DD') }}
                   </el-col>
                   <el-col :span="8" class="info">
                     统一社会信用代码:{{ item.code || '暂无' }}
@@ -253,6 +253,7 @@
 </template>
 
 <script setup>
+import moment from 'moment'
 // API 引用
 import { getCity } from '@/utils/city'
 const $checkRes = inject('$checkRes')

+ 7 - 6
src/views/help/index.vue

@@ -30,19 +30,19 @@
                     <el-icon color="#2374ff">
                       <Message />
                     </el-icon>
-                    <span>联系我们</span> {{ configInfo.footInfo.Company }}
+                    <span>联系我们</span> {{ footInfo.Company }}
                   </el-col>
                   <el-col :span="24" class="other">
                     <el-icon color="#2374ff">
                       <Location />
                     </el-icon>
-                    <span>联系地址</span> {{ configInfo.footInfo.Address }}
+                    <span>联系地址</span> {{ footInfo.Address }}
                   </el-col>
                   <el-col :span="24" class="other">
                     <el-icon color="#2374ff">
                       <Iphone />
                     </el-icon>
-                    <span>联系电话</span> {{ configInfo.footInfo.Phone }}
+                    <span>联系电话</span> {{ footInfo.Phone }}
                   </el-col>
                 </el-col>
               </el-row>
@@ -56,6 +56,7 @@
 </template>
 
 <script setup>
+import { footInfo } from '@/layout/site'
 const $checkRes = inject('$checkRes')
 // 接口
 import { DesignStore } from '@/store/api/platform/design'
@@ -101,9 +102,9 @@ const search = async () => {
     select.value = route.query.type
     selectedKeys.value = [route.query.type]
   }
-  // 基础设置
-  const result = await designStore.query({})
-  if ($checkRes(result)) configInfo.value = result.data[0] || {}
+  // // 基础设置
+  // const result = await designStore.query({})
+  // if ($checkRes(result)) configInfo.value = result.data[0] || {}
 }
 const onOpenChange = (item) => {
   select.value = item.key

+ 3 - 5
src/views/home/index.vue

@@ -144,9 +144,7 @@
                       {{ item.direction || '暂无研究方向' }}
                     </el-col>
                     <el-col :span="4" class="content textOver">
-                      <el-button @click.stop="toChat(item)" type="primary" size="small">
-                        联络专家
-                      </el-button>
+                      <el-button @click.stop="toChat(item)" type="primary"> 联络专家 </el-button>
                     </el-col>
                   </el-col>
                 </vue3-seamless-scroll>
@@ -808,13 +806,13 @@ const onSearch = (data) => {
           .info {
             display: flex;
             justify-content: space-between;
-            font-size: $global-font-size-14;
+            font-size: $global-font-size-12;
             font-family:
               PingFangSC-Regular,
               PingFang SC;
             font-weight: 400;
             color: #666;
-            line-height: $global-font-size-14;
+            line-height: $global-font-size-12;
             margin-bottom: 15px;
             cursor: pointer;
           }

+ 9 - 11
src/views/index/index.vue

@@ -137,7 +137,7 @@ const toLogout = () => {
 </script>
 <style scoped lang="scss">
 .main {
-  height: 100vh;
+  min-height: 100vh;
   width: 100%;
   position: relative;
   background: url(/images/home.jpg);
@@ -167,24 +167,22 @@ const toLogout = () => {
         height: auto;
         width: 335px;
       }
-      .left_1 {
-        margin: 0 0 0 5px;
-
+      .content {
         .title {
           margin: 0 0 5px 0;
-          font-size: 23px;
+          font-size: $global-font-size-25;
           font-weight: bold;
         }
 
         .English {
-          font-size: 12px;
+          font-size: $global-font-size-12;
           color: #fff;
         }
       }
     }
 
     .right {
-      font-size: 16px;
+      font-size: $global-font-size-18;
       letter-spacing: 0;
       color: #fff;
       font-weight: 500;
@@ -227,7 +225,7 @@ const toLogout = () => {
       position: absolute;
       left: 38%;
       text {
-        font-size: 22px;
+        font-size: $global-font-size-22;
         color: #ffffff;
         text-align: center;
       }
@@ -244,12 +242,12 @@ const toLogout = () => {
         margin-left: 14px;
         text-align: center;
         .title {
-          font-size: 20px;
+          font-size: $global-font-size-20;
           font-weight: 600;
           margin: 0 0 10px 0;
         }
         .English {
-          font-size: 14px;
+          font-size: $global-font-size-14;
           font-weight: 400;
         }
       }
@@ -260,7 +258,7 @@ const toLogout = () => {
     margin: 100px 0 10px 0;
     width: 100%;
     text-align: center;
-    font-size: 12px;
+    font-size: $global-font-size-14;
     color: #fff;
   }
 }

+ 2 - 2
src/views/login/index.vue

@@ -25,7 +25,7 @@
                 ref="ruleFormRef"
                 :model="form"
                 :rules="rules"
-                label-width="60px"
+                label-width="70px"
                 class="form"
                 label-position="left"
               >
@@ -74,7 +74,7 @@
                 ref="ruleFormRef"
                 :model="form"
                 :rules="rules"
-                label-width="60px"
+                label-width="70px"
                 class="form"
                 label-position="left"
               >

+ 1 - 1
src/views/main/elevenHatch/index.vue

@@ -45,7 +45,7 @@
             </el-col>
             <el-col :span="12">
               <div class="center_1">
-                <div class="boxall" style="height: 160px">
+                <div class="boxall" style="height: 170px">
                   <div class="clearfix navboxall" style="height: 100%">
                     <div class="pulll_left num">
                       <div class="numbt">总体情况<span>(单位:家)</span></div>

+ 1 - 1
src/views/main/elevenHatch/path/echarts4.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <div ref="echarts4" class="echarts4" style="height: 250px; width: 100%"></div>
+    <div ref="echarts4" class="echarts4" style="height: 242px; width: 100%"></div>
   </div>
 </template>
 <style scoped></style>

+ 1 - 1
src/views/main/elevenHatch/path/echarts5.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <div ref="echarts5" class="echarts5" style="height: 100px; width: 100%"></div>
+    <div ref="echarts5" class="echarts5" style="height: 110px; width: 100%"></div>
   </div>
 </template>
 <style scoped></style>

+ 1 - 1
src/views/main/elevenHatch/path/echarts6.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <div ref="echarts6" class="echarts6" style="height: 100px; width: 100%"></div>
+    <div ref="echarts6" class="echarts6" style="height: 110px; width: 100%"></div>
   </div>
 </template>
 <style scoped></style>

+ 1 - 1
src/views/main/elevenHatch/path/echarts7.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <div ref="echarts7" class="echarts7" style="height: 100px; width: 100%"></div>
+    <div ref="echarts7" class="echarts7" style="height: 110px; width: 100%"></div>
   </div>
 </template>
 <style scoped></style>

+ 1 - 1
src/views/main/one.vue

@@ -162,7 +162,7 @@
                 class="list_1"
                 v-for="(tag, indexx) in item.list"
                 :key="indexx"
-                @click="toLink(item)"
+                @click="toLink(tag)"
               >
                 {{ tag.name }}
               </div>

+ 4 - 3
src/views/main/twelveHatch/index.vue

@@ -245,6 +245,7 @@ onBeforeUnmount(() => {
     right: 0;
     line-height: 4rem;
     top: 0;
+    font-size: $global-font-size-18;
     color: #fff;
   }
 
@@ -316,7 +317,7 @@ onBeforeUnmount(() => {
   .tit {
     padding: 10px 10px 10px 25px;
     border-bottom: 1px solid rgba(7, 118, 181, 0.7);
-    font-size: $global-font-size-18;
+    font-size: $global-font-size-20;
     font-weight: 500;
     position: relative;
   }
@@ -386,8 +387,8 @@ onBeforeUnmount(() => {
     margin: 20px 0 0 0;
   }
   .yq {
-    width: 80px;
-    height: 80px;
+    width: 100px;
+    height: 100px;
     margin: 0 auto 5px auto;
     position: relative;
     display: flex;

+ 2 - 2
src/views/main/twelveHatch/path/echarts4.vue

@@ -15,8 +15,8 @@ function drawEcharts4() {
   var option4 = {
     legend: {
       orient: 'vertical',
-      itemWidth: 10,
-      itemHeight: 10,
+      itemWidth: 15,
+      itemHeight: 15,
       textStyle: {
         color: 'rgba(255,255,255,.5)'
       },

+ 1 - 1
src/views/main/twelveHatch/path/map.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <div ref="chinaMap" class="chinaMap" style="height: 822px; width: 100%"></div>
+    <div ref="chinaMap" class="chinaMap" style="height: 831px; width: 100%"></div>
   </div>
 </template>
 <style scoped>

+ 2 - 2
src/views/project/index.vue

@@ -524,9 +524,9 @@ const sizeChange = (limits) => {
       }
 
       .two_1 {
-        font-size: $global-font-size-14;
+        font-size: $global-font-size-16;
         text-align: justify;
-        line-height: $global-font-size-14;
+        line-height: $global-font-size-16;
         font-weight: 400;
         letter-spacing: 0;
         color: #8f97a3;

+ 1 - 1
src/views/register/parts/userCode.vue

@@ -4,7 +4,7 @@
       ref="ruleFormRef"
       :model="form"
       :rules="rules"
-      label-width="80px"
+      label-width="100px"
       class="form"
       label-position="left"
     >