mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-19 10:00:13 +09:00
fix: 修复文章分享功能
This commit is contained in:
parent
26ce84b950
commit
58f1e7f131
@ -232,7 +232,9 @@ import commentModal from '@/components/comment-modal/comment-modal.vue';
|
|||||||
|
|
||||||
import rCanvas from '@/components/r-canvas/r-canvas.vue';
|
import rCanvas from '@/components/r-canvas/r-canvas.vue';
|
||||||
import barrage from '@/components/barrage/barrage.vue';
|
import barrage from '@/components/barrage/barrage.vue';
|
||||||
import {getAppConfigs} from '@/config/index.js'
|
import {
|
||||||
|
getAppConfigs
|
||||||
|
} from '@/config/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -344,6 +346,24 @@ export default {
|
|||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
this.fnGetData();
|
this.fnGetData();
|
||||||
},
|
},
|
||||||
|
onShareAppMessage() {
|
||||||
|
const cover = this.result.spec.cover ? this.calcUrl(this.result.spec.cover) : ""
|
||||||
|
return {
|
||||||
|
path: '/pagesA/article-detail/article-detail?name=' + this.result.metadata.name,
|
||||||
|
title: this.result.spec.title,
|
||||||
|
imageUrl: cover
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShareTimeline() {
|
||||||
|
const cover = this.result.spec.cover ? this.calcUrl(this.result.spec.cover) : ""
|
||||||
|
return {
|
||||||
|
title: this.result.spec.title,
|
||||||
|
query: {
|
||||||
|
name: this.result.metadata.name
|
||||||
|
},
|
||||||
|
imageUrl: cover
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fnGetData() {
|
fnGetData() {
|
||||||
this.loading = 'loading';
|
this.loading = 'loading';
|
||||||
@ -997,8 +1017,7 @@ export default {
|
|||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
|
|
||||||
&-name {
|
&-name {}
|
||||||
}
|
|
||||||
|
|
||||||
&-time {
|
&-time {
|
||||||
margin-left: 36rpx;
|
margin-left: 36rpx;
|
||||||
|
Loading…
Reference in New Issue
Block a user