diff --git a/src/components/detail/breadcrumb.vue b/src/components/detail/breadcrumb.vue
index fa8eebd..51ff3ea 100644
--- a/src/components/detail/breadcrumb.vue
+++ b/src/components/detail/breadcrumb.vue
@@ -24,11 +24,12 @@
-
+
转发
+
@@ -39,6 +40,7 @@
import { ArrowRight } from '@element-plus/icons-vue'
import { reactive, onMounted, ref, defineProps,watchEffect } from 'vue'
import store from '@/store'
+import transmitBtn from '@/components/public/transmitBtn.vue'
const props=defineProps({
data: {
@@ -52,6 +54,7 @@ const props=defineProps({
}
})
let data=reactive({})
+
let operation=props.operation
//导航数据
diff --git a/src/components/public/transmitBtn.vue b/src/components/public/transmitBtn.vue
new file mode 100644
index 0000000..b502978
--- /dev/null
+++ b/src/components/public/transmitBtn.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
转发网页版
+
+
{{ props['title'] }}
+
{{ url }}
+
+
复制链接
+
+
+
转发小程序版
+
![]()
+

手机查看该Offer
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/utils/util.js b/src/utils/util.js
index 3e1bf4e..29c16a5 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -28,6 +28,8 @@ function copyToClipboard(text) {
});
}
+
+
module.exports = {
setSeoTitle,
redirectToExternalWebsite,
diff --git a/src/views/apartmentDetail.vue b/src/views/apartmentDetail.vue
index e60e0d7..0d3a3f4 100644
--- a/src/views/apartmentDetail.vue
+++ b/src/views/apartmentDetail.vue
@@ -4,7 +4,7 @@
@@ -150,9 +152,8 @@
{{ info.location || '位置' }}
-
-
+
@@ -336,8 +337,9 @@ import { useStore } from 'vuex';
import pageTopBar from '../components/pageTopBar/pageTopBar.vue';
import footerpage from '@/components/footer/footer.vue'
import viewMap from '@/components/public/viewMap.vue'
+import transmitBtn from '@/components/public/transmitBtn.vue'
-import { copyToClipboard } from '@/utils/util.js'
+import { transmit } from '@/utils/util.js'
const uniqid = "aWqSz58aKKvn"
// uniqid=aWqSz58aKKvn
const { proxy } = getCurrentInstance()
@@ -481,10 +483,12 @@ const dualBrandData = () => {
// 点击转发
const handleTransmit = () => {
- let url = location.href
- copyToClipboard(`${info.value['title']} - ${url}`).then(() => {
- ElMessage.success("复制成功!!!")
- })
+
+ // let url = location.href
+ // transmit(`${info.value['title']} - ${url}`)
+ // copyToClipboard(`${info.value['title']} - ${url}`).then(() => {
+ // ElMessage.success("复制成功!!!")
+ // })
}
let contactReservationState = ref(false) // 联系预订客服的弹窗状态
@@ -525,11 +529,12 @@ const handleMediaBtn = (type, index) => {
element.scrollTo(scrollOptions);
nextTick(() => {
- console.log(element.scrollLeft + 460, element.scrollWidth);
- if (element.scrollLeft == 0) mediaBtnstate.value[index] = 0
- else if (element.scrollLeft + 460 == element.scrollWidth) mediaBtnstate.value[index] = 1
- else mediaBtnstate.value[index] = 2
+ setTimeout(() => {
+ if (element.scrollLeft == 0) mediaBtnstate.value[index] = 0
+ else if (element.scrollLeft + 460 == element.scrollWidth) mediaBtnstate.value[index] = 1
+ else mediaBtnstate.value[index] = 2
+ }, 150);
})
}
@@ -810,6 +815,7 @@ const handleMediaBtn = (type, index) => {
border: 1px solid rgba(235, 235, 235, 1);
color: #333333;
margin-right: 10px;
+ position: relative;
.transmit-icon {
width: 20px;
@@ -939,7 +945,9 @@ const handleMediaBtn = (type, index) => {
height: 80px;
width: 30px;
cursor: pointer;
- .rotate180{
+ user-select: none;
+
+ .rotate180 {
transform: rotate(180deg);
}
@@ -1121,7 +1129,7 @@ const handleMediaBtn = (type, index) => {
.company-img {
width: 420px;
height: 254px;
- margin: 0 auto;
+ margin: 10px auto 0;
}
}
diff --git a/src/views/detail.vue b/src/views/detail.vue
index 0bbd7e8..1da5ea5 100644
--- a/src/views/detail.vue
+++ b/src/views/detail.vue
@@ -464,7 +464,8 @@