|
@@ -17,12 +17,12 @@
|
|
<button class="menu-item" open-type="share">
|
|
<button class="menu-item" open-type="share">
|
|
<i class="iconfont icon-zhuanfa"></i>
|
|
<i class="iconfont icon-zhuanfa"></i>
|
|
</button>
|
|
</button>
|
|
- <button class="menu-item">
|
|
|
|
|
|
+ <!-- <button class="menu-item">
|
|
<i class="iconfont icon-pengyouquan"></i>
|
|
<i class="iconfont icon-pengyouquan"></i>
|
|
- </button>
|
|
|
|
- <button class="menu-item">
|
|
|
|
|
|
+ </button> -->
|
|
|
|
+ <!-- <button class="menu-item">
|
|
<i class="iconfont icon-xiaoxi"></i>
|
|
<i class="iconfont icon-xiaoxi"></i>
|
|
- </button>
|
|
|
|
|
|
+ </button> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<u-popup v-model="buyShow"
|
|
<u-popup v-model="buyShow"
|
|
@@ -102,7 +102,7 @@
|
|
const id = ref()
|
|
const id = ref()
|
|
const title = ref()
|
|
const title = ref()
|
|
const hasPermission = ref(false);
|
|
const hasPermission = ref(false);
|
|
- const imgurl = '/static/images/avator-img/1.png'
|
|
|
|
|
|
+ const imgurl = ref(null)
|
|
const report = ref({
|
|
const report = ref({
|
|
id: '01',
|
|
id: '01',
|
|
title: '2025年2月从化区二手住宅市场交易简报',
|
|
title: '2025年2月从化区二手住宅市场交易简报',
|
|
@@ -172,6 +172,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function changeFavi() {
|
|
function changeFavi() {
|
|
|
|
+ console.log(report.value.hasFavi)
|
|
if (report.value.hasFavi) {
|
|
if (report.value.hasFavi) {
|
|
cancelReportFavi(id.value).then(res => {
|
|
cancelReportFavi(id.value).then(res => {
|
|
if (res?.code == 0) {
|
|
if (res?.code == 0) {
|
|
@@ -188,6 +189,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function changeApplaud() {
|
|
function changeApplaud() {
|
|
|
|
+ console.log(report.value.hasApplaud)
|
|
if (report.value.hasApplaud) {
|
|
if (report.value.hasApplaud) {
|
|
cancelReportApplaud(id.value).then(res => {
|
|
cancelReportApplaud(id.value).then(res => {
|
|
if (res?.code == 0) {
|
|
if (res?.code == 0) {
|
|
@@ -274,6 +276,7 @@
|
|
}else{
|
|
}else{
|
|
report.value.content = ''
|
|
report.value.content = ''
|
|
}
|
|
}
|
|
|
|
+ imgurl.value = report.value.cover
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -300,19 +303,21 @@
|
|
|
|
|
|
|
|
|
|
onShareAppMessage((res) => {
|
|
onShareAppMessage((res) => {
|
|
- if (res.from === 'button') {
|
|
|
|
- console.log('来自按钮分享');
|
|
|
|
- }
|
|
|
|
|
|
+ // if (res.from === 'button') {
|
|
|
|
+ // console.log('来自按钮分享');
|
|
|
|
+ // }
|
|
|
|
+ // console.log(imgurl.value)
|
|
return {
|
|
return {
|
|
- title: '研究报告',
|
|
|
|
|
|
+ title: title.value,
|
|
path: `/pages/reportDetail/reportDetail?id=${id.value}&title=${title.value}`,
|
|
path: `/pages/reportDetail/reportDetail?id=${id.value}&title=${title.value}`,
|
|
imageUrl: imgurl.value
|
|
imageUrl: imgurl.value
|
|
};
|
|
};
|
|
})
|
|
})
|
|
|
|
|
|
onShareTimeline(() => {
|
|
onShareTimeline(() => {
|
|
|
|
+ // console.log(imgurl.value)
|
|
return {
|
|
return {
|
|
- title: '朋友圈标题-研究报告',
|
|
|
|
|
|
+ title: title.value,
|
|
query: `id=${id.value}&title=${title.value}`,
|
|
query: `id=${id.value}&title=${title.value}`,
|
|
imageUrl: imgurl.value
|
|
imageUrl: imgurl.value
|
|
};
|
|
};
|