小修改
This commit is contained in:
@@ -40,7 +40,7 @@ const props = defineProps({
|
|||||||
item: Object,
|
item: Object,
|
||||||
});
|
});
|
||||||
|
|
||||||
const goapArtmentDetails = () => redirectToExternalWebsite(`${location.origin}/apartmentDetail?uniqid=${props['item'].uniqid}`)
|
const goapArtmentDetails = () => redirectToExternalWebsite(`/apartmentDetail?uniqid=${props['item'].uniqid}`)
|
||||||
|
|
||||||
// router.push(`/apartmentDetail?uniqid=${props['item'].uniqid}`)
|
// router.push(`/apartmentDetail?uniqid=${props['item'].uniqid}`)
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,7 @@
|
|||||||
import { ref, watch, defineProps, reactive, defineEmits, onMounted, getCurrentInstance } from "vue";
|
import { ref, watch, defineProps, reactive, defineEmits, onMounted, getCurrentInstance } from "vue";
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||||
|
import { redirectToExternalWebsite } from '@/utils/util.js'
|
||||||
import store from '../../store/index';
|
import store from '../../store/index';
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
@@ -191,7 +191,8 @@ const cancelCollection = token => emit('cancelCollection', { token, index: props
|
|||||||
|
|
||||||
// 点击跳转详情页
|
// 点击跳转详情页
|
||||||
const goDetail = status => {
|
const goDetail = status => {
|
||||||
if (status == 1) router.push(`/detail?id=${data.uniqid}`)
|
console.log("location.origin",location.origin);
|
||||||
|
if (status == 1) redirectToExternalWebsite(`/detail?id=${data.uniqid}`)
|
||||||
else ElMessage("该房源信息已出租或已失效")
|
else ElMessage("该房源信息已出租或已失效")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,13 +44,16 @@ const popperOptions = ref({
|
|||||||
{
|
{
|
||||||
name: 'offset',
|
name: 'offset',
|
||||||
options: {
|
options: {
|
||||||
offset: [38, 0] // 设置左偏移为20px,右偏移为0px
|
// offset: [38, 0] // 设置左偏移为20px,右偏移为0px
|
||||||
|
offset: [142, 10] // 设置左偏移为20px,右偏移为0px
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
if (props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 14
|
if (props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 14
|
||||||
|
if (props['type'] == 'housing') popperOptions.value['modifiers'][0]['options']['offset'][0] = 38
|
||||||
|
// console.log("newValue", props['type']);
|
||||||
|
|
||||||
|
|
||||||
watch(() => props.concatType, (newValue, oldValue) => {
|
watch(() => props.concatType, (newValue, oldValue) => {
|
||||||
@@ -67,7 +70,13 @@ let url = location.href
|
|||||||
|
|
||||||
const copy = () => {
|
const copy = () => {
|
||||||
copyToClipboard(`${props['title']} - ${url}`).then(() => {
|
copyToClipboard(`${props['title']} - ${url}`).then(() => {
|
||||||
ElMessage.success("复制成功!!!")
|
ElMessage({
|
||||||
|
message: '复制成功',
|
||||||
|
center: true,
|
||||||
|
offset: 320,
|
||||||
|
duration: 1000,
|
||||||
|
customClass: 'message-info'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -189,4 +198,19 @@ const copy = () => {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
<style lang="less">
|
||||||
|
.message-info {
|
||||||
|
background: #000000;
|
||||||
|
border-color: #000000;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
.el-message__content {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-icon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -131,7 +131,6 @@ const router = createRouter({
|
|||||||
|
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
console.log("开始");
|
|
||||||
//进度条开始
|
//进度条开始
|
||||||
NProgress.start();
|
NProgress.start();
|
||||||
//随机增加进度
|
//随机增加进度
|
||||||
@@ -145,7 +144,5 @@ router.beforeEach((to, from, next) => {
|
|||||||
|
|
||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
NProgress.done(true);
|
NProgress.done(true);
|
||||||
console.log("NProgress",NProgress);
|
|
||||||
console.log("结束");
|
|
||||||
})
|
})
|
||||||
export default router
|
export default router
|
||||||
|
|||||||
@@ -1958,7 +1958,7 @@ export default {
|
|||||||
.media-item {
|
.media-item {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
// cursor: pointer;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
&:not(:nth-last-child(-n+5)) {
|
&:not(:nth-last-child(-n+5)) {
|
||||||
@@ -2032,6 +2032,7 @@ export default {
|
|||||||
border: 1px solid rgba(215, 215, 215, 1);
|
border: 1px solid rgba(215, 215, 215, 1);
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-play-icon {
|
.media-play-icon {
|
||||||
|
|||||||
Reference in New Issue
Block a user