This commit is contained in:
木瓜一块八 2025-08-19 15:10:55 +08:00
parent 79d1f8ab35
commit b927c6d1ac
4 changed files with 18 additions and 10 deletions

View File

@ -24,8 +24,9 @@
<!-- </div>--> <!-- </div>-->
<div @click="open2" <div @click="open2"
style="position:absolute;bottom:-40px;display: flex;justify-content: center;align-items: center;cursor: pointer"> style="position:absolute;bottom:-40px;display: flex;justify-content: center;align-items: center;cursor: pointer">
<el-tooltip class="item" effect="light" content="联系销售" placement="left"> <el-tooltip v-if="getHomePath()!=='/ncmatchHome/index'" class="item" effect="light" content="联系销售" placement="left">
<span class="el-icon-video-camera" <span class="el-icon-video-camera"
style="font-weight: 550;font-size: 22px;"></span> style="font-weight: 550;font-size: 22px;"></span>
</el-tooltip> </el-tooltip>
@ -213,6 +214,7 @@ import {contantAPI, applyAPI} from "../../api/floatingWindow/index";
import axios from "axios"; import axios from "axios";
import {mapState} from "vuex"; import {mapState} from "vuex";
import {getCustomerOfSaleUserId} from "@/api/customer/vedio"; import {getCustomerOfSaleUserId} from "@/api/customer/vedio";
import { getHomePath } from "@/views/setting/tools";
export default { export default {
// //
@ -285,6 +287,8 @@ export default {
}, },
computed: {}, computed: {},
methods: { methods: {
// getHomePath()
getHomePath,
openTip() { openTip() {
this.$notify({ this.$notify({
title: '提示', title: '提示',

View File

@ -285,11 +285,11 @@ export default Vue.extend({
<span class="publish-goods" @click="sendInfo('2')">发布需求</span> <span class="publish-goods" @click="sendInfo('2')">发布需求</span>
<span class="publish-goods" @click="sendInfo('1')">发布商品</span> <span class="publish-goods" @click="sendInfo('1')">发布商品</span>
<ul class="userBtn"> <!-- <ul class="userBtn">
<li><img src="./img/eye.png" alt="">浏览记录</li> <li><img src="./img/eye.png" alt="">浏览记录</li>
<li><img src="./img/collect.png" alt="">收藏商品</li> <li><img src="./img/collect.png" alt="">收藏商品</li>
<li><img src="./img/like.png" alt="">关注需求</li> <li><img src="./img/like.png" alt="">关注需求</li>
</ul> </ul> -->
</aside> </aside>
</div> </div>
</main> </main>

View File

@ -5,7 +5,7 @@
<img @click="goHome" class="logo-clickable" style="width: 180px;height: 60px;padding-right: 20px;" <img @click="goHome" class="logo-clickable" style="width: 180px;height: 60px;padding-right: 20px;"
src="https://www.kaiyuancloud.cn/idfile?path=logo_ncmatch.png" alt=""> src="https://www.kaiyuancloud.cn/idfile?path=logo_ncmatch.png" alt="">
<div <div
style="min-width:800px;border-bottom: 1px solid #E5E5E5;display: flex;align-items: center;justify-content: space-between;"> style="min-width:800px;display: flex;align-items: center;justify-content: space-between;">
<!-- 中间搜索区域 --> <!-- 中间搜索区域 -->
<div class="search-section" style="position: relative;margin: 0 20px;"> <div class="search-section" style="position: relative;margin: 0 20px;">
@ -33,7 +33,7 @@
</div> </div>
<!-- 热搜关键词 --> <!-- 热搜关键词 -->
<div class="hot-search"> <div v-if="false" class="hot-search">
<a v-for="keyword in hotSearchKeywords" :key="keyword" href="#" class="hot-keyword" <a v-for="keyword in hotSearchKeywords" :key="keyword" href="#" class="hot-keyword"
@click="handleHotKeywordClick(keyword)"> @click="handleHotKeywordClick(keyword)">
@ -44,6 +44,7 @@
</div> </div>
<!-- position: absolute;right: -150px;top: 0px; --> <!-- position: absolute;right: -150px;top: 0px; -->
<span <span
v-if="false"
style="height: 44px;line-height: 44px;border-radius: 8px;border:1px solid #275AFF; color: #275AFF;font-size: 18px;font-weight: 500;padding: 0 20px;z-index: 10;display: flex;align-items: center;gap: 10px;"> style="height: 44px;line-height: 44px;border-radius: 8px;border:1px solid #275AFF; color: #275AFF;font-size: 18px;font-weight: 500;padding: 0 20px;z-index: 10;display: flex;align-items: center;gap: 10px;">
<img style="width: 24px;height: 24px;" src="../mainPage/img/robot.svg" alt=""> <img style="width: 24px;height: 24px;" src="../mainPage/img/robot.svg" alt="">
NC AI</span> NC AI</span>
@ -561,7 +562,7 @@ export default {
.search-section { .search-section {
flex: 1; flex: 1;
min-width: 850px; min-width: 850px;
padding-bottom: 10px; // padding-bottom: 10px;
.search-bar { .search-bar {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -1,6 +1,6 @@
export function getHomePath() { export function getHomePath() {
// let homePath= "/homePage/index" // let homePath= "/homePage/index"
let homePath= "/ncmatchHome/index" let homePath= ""
// 业主机构信息 // 业主机构信息
let url_link = window.location.href || ''; let url_link = window.location.href || '';
@ -18,11 +18,14 @@ export function getHomePath() {
!url_link.includes('/domain/')) { !url_link.includes('/domain/')) {
if (domain_url.includes('ncmatch') || domain_url.includes('9527')) { if (domain_url.includes('ncmatch') || domain_url.includes('9527')) {
homePath = '/homePath/index'
} else if (domain_url.includes('kaiyuancloud') || domain_url.includes('opencomputing') || domain_url.includes('localhost')) {
homePath = '/ncmatchHome/index' homePath = '/ncmatchHome/index'
} else if (domain_url.includes('kaiyuancloud') || domain_url.includes('opencomputing') || domain_url.includes('localhost')) {
homePath = '/homePage/index'
} }
}else{
homePath = '/homePage/index'
} }
console.log("res是",homePath) // this.$message.success("homePath是"+homePath)
console.log("homePath是",homePath)
return homePath return homePath
} }