zs il y a 6 mois
Parent
commit
b4bff2ec64

BIN
public/images/new_1.png


BIN
public/images/new_2.png


BIN
public/images/new_3.png


BIN
public/images/new_4.png


+ 11 - 3
src/views/detail/news.vue

@@ -25,10 +25,16 @@
                 <el-col :span="6" class="left">
                   <el-image class="image" v-if="item.logo && item.logo.length > 0" :src="getUrl(item.logo)" fit="fill">
                     <template v-slot:error>
-                      <el-image class="image" :src="new_4" fit="fill" />
+                      <el-image v-if="item.type == '0'" class="image" :src="new_1" fit="fill" />
+                      <el-image v-else-if="item.type == '1'" class="image" :src="new_2" fit="fill" />
+                      <el-image v-else class="image" :src="new_3" fit="fill" />
                     </template>
                   </el-image>
-                  <el-image class="image" v-else :src="new_4" fit="fill" />
+                  <div v-else>
+                    <el-image v-if="item.type == '0'" class="image" :src="new_1" fit="fill" />
+                    <el-image v-else-if="item.type == '1'" class="image" :src="new_2" fit="fill" />
+                    <el-image class="image" v-else :src="new_3" fit="fill" />
+                  </div>
                 </el-col>
                 <el-col :span="17" class="right">
                   <el-col :span="24" class="right_1 textOne">
@@ -96,7 +102,9 @@ const user = computed(() => userStore.user)
 // 路由
 const router = useRouter()
 // 图片引入
-import new_4 from '/images/new_4.png'
+import new_1 from '/images/new_1.png'
+import new_2 from '/images/new_2.png'
+import new_3 from '/images/new_3.png'
 // 加载中
 const loading = ref(false)
 // 列表

+ 12 - 4
src/views/one/page.vue

@@ -21,15 +21,21 @@
           <div class="right_right" @click="toMore(0)">查看更多</div>
         </div>
         <div class="right_2">
-          <vue3-seamless-scroll :list="list" :hover="true" :step="0.5" :wheel="true" :isWatch="true">
+          <vue3-seamless-scroll :list="list" :hover="true" :step="0.5" :limit-scroll-num="6" :wheel="true" :isWatch="true">
             <div class="list" v-for="(item, index) in list" :key="index" @click="toView(item, '0')">
               <div class="left">
                 <el-image class="image" v-if="item.logo && item.logo.length > 0" :src="getFile(item.logo)" fit="fill">
                   <template v-slot:error>
-                    <el-image class="image" :src="new_4" fit="fill" />
+                    <el-image v-if="item.type == '0'" class="image" :src="new_1" fit="fill" />
+                    <el-image v-else-if="item.type == '1'" class="image" :src="new_2" fit="fill" />
+                    <el-image v-else class="image" :src="new_2" fit="fill" />
                   </template>
                 </el-image>
-                <el-image class="image" v-else :src="new_4" fit="fill" />
+                <div v-else>
+                  <el-image v-if="item.type == '0'" class="image" :src="new_1" fit="fill" />
+                  <el-image v-else-if="item.type == '1'" class="image" :src="new_2" fit="fill" />
+                  <el-image class="image" v-else :src="new_3" fit="fill" />
+                </div>
               </div>
               <div class="right">
                 <div class="new_title textOne">
@@ -163,7 +169,9 @@ import { useNumberAnimation } from '@/utils/animation'
 // 图片引入
 import left from '/images/top-left.png'
 import right from '/images/top-right.png'
-import new_4 from '/images/new_4.png'
+import new_1 from '/images/new_1.png'
+import new_2 from '/images/new_2.png'
+import new_3 from '/images/new_3.png'
 import friend from '/images/friend.jpeg'
 import baseLogo from '/images/base.jpg'
 // 组件

+ 1 - 1
src/views/twelve/index.vue

@@ -265,7 +265,7 @@ const toMate = async (item) => {
   keyword.value = item.name
   keywordId.value = item.id
   const query = { skip: skip, limit: limit, keyword: item.name, id: item.id }
-  if (dataType.value != '0') res = await esStore.supply(query)
+  if (dataType.value == '0') res = await esStore.supply(query)
   else res = await esStore.demand(query)
   if (res.errcode == '0') {
     list.value = res.data