bugfix
This commit is contained in:
parent
79d1f8ab35
commit
b927c6d1ac
@ -24,8 +24,9 @@
|
||||
|
||||
<!-- </div>-->
|
||||
<div @click="open2"
|
||||
|
||||
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"
|
||||
style="font-weight: 550;font-size: 22px;"></span>
|
||||
</el-tooltip>
|
||||
@ -213,6 +214,7 @@ import {contantAPI, applyAPI} from "../../api/floatingWindow/index";
|
||||
import axios from "axios";
|
||||
import {mapState} from "vuex";
|
||||
import {getCustomerOfSaleUserId} from "@/api/customer/vedio";
|
||||
import { getHomePath } from "@/views/setting/tools";
|
||||
|
||||
export default {
|
||||
// 组件的逻辑代码
|
||||
@ -285,6 +287,8 @@ export default {
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
// 让模板中可以直接调用 getHomePath()
|
||||
getHomePath,
|
||||
openTip() {
|
||||
this.$notify({
|
||||
title: '提示',
|
||||
|
||||
@ -285,11 +285,11 @@ export default Vue.extend({
|
||||
<span class="publish-goods" @click="sendInfo('2')">发布需求</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/collect.png" alt="">收藏商品</li>
|
||||
<li><img src="./img/like.png" alt="">关注需求</li>
|
||||
</ul>
|
||||
</ul> -->
|
||||
</aside>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<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="">
|
||||
<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;">
|
||||
@ -33,7 +33,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 热搜关键词 -->
|
||||
<div class="hot-search">
|
||||
<div v-if="false" class="hot-search">
|
||||
|
||||
<a v-for="keyword in hotSearchKeywords" :key="keyword" href="#" class="hot-keyword"
|
||||
@click="handleHotKeywordClick(keyword)">
|
||||
@ -44,6 +44,7 @@
|
||||
</div>
|
||||
<!-- position: absolute;right: -150px;top: 0px; -->
|
||||
<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;">
|
||||
<img style="width: 24px;height: 24px;" src="../mainPage/img/robot.svg" alt="">
|
||||
NC AI</span>
|
||||
@ -561,7 +562,7 @@ export default {
|
||||
.search-section {
|
||||
flex: 1;
|
||||
min-width: 850px;
|
||||
padding-bottom: 10px;
|
||||
// padding-bottom: 10px;
|
||||
.search-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export function getHomePath() {
|
||||
// let homePath= "/homePage/index"
|
||||
let homePath= "/ncmatchHome/index"
|
||||
let homePath= ""
|
||||
|
||||
// 业主机构信息
|
||||
let url_link = window.location.href || '';
|
||||
@ -18,11 +18,14 @@ export function getHomePath() {
|
||||
!url_link.includes('/domain/')) {
|
||||
|
||||
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'
|
||||
} 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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user