Browse Source

活动&项目分享

dev
396316021 1 year ago
parent
commit
d49ff9e0b8
  1. 22
      pages/Activity/index.vue
  2. 20
      pages/Project/index.vue

22
pages/Activity/index.vue

@ -9,7 +9,7 @@
></u-navbar>
<view class="body-background"></view>
<view class="wallpaper-container border-box">
<view class="top-image">
<view class="top-image" v-if="detail.banner">
<u-image radius="20" :src="detail.banner" width="100%" height="240" mode="aspectFill"></u-image>
</view>
<view class="time-container" v-if="detail.status === 0 || detail.status === 1">
@ -282,6 +282,26 @@ import {joinList} from "@/api/other";
import NxrPop from "@/components/NxrPop/index.vue";
export default {
onShareAppMessage() {
let result = {
title:this.detail.title,
path:'/pages/Activity/index?id=' + this.id,
};
if(this.detail.banner){
result.imageUrl = this.detail.banner;
}
return result;
},
onShareTimeline() {
let result = {
title:this.detail.title,
path:'/pages/Activity/index?id=' + this.id,
};
if(this.detail.banner){
result.imageUrl = this.detail.banner;
}
return result;
},
components: {NxrPop, follow},
computed: {
api() {

20
pages/Project/index.vue

@ -266,6 +266,26 @@ import follow from "@/components/Follow/index.vue";
import NxrPop from "@/components/NxrPop/index.vue";
export default {
onShareAppMessage() {
let result = {
title:this.detail.title,
path:'/pages/Project/index?id=' + this.id,
};
if(this.detail.banner){
result.imageUrl = this.detail.banner;
}
return result;
},
onShareTimeline() {
let result = {
title:this.detail.title,
path:'/pages/Project/index?id=' + this.id,
};
if(this.detail.banner){
result.imageUrl = this.detail.banner;
}
return result;
},
components: {NxrPop, follow},
computed: {
api() {

Loading…
Cancel
Save