This commit is contained in:
lnn19986213 2024-04-18 14:15:42 +08:00
parent 41b8071b30
commit 3104b5bc40
4 changed files with 106 additions and 5 deletions

View File

@ -159,6 +159,31 @@
menus: ['shareAppMessage', 'shareTimeline']
})
},
/**
* 开启分享功能
* @param {Object} res
*/
onShareAppMessage(res) {
// if (res.from === 'button') { //
// console.log(res.target)
// }
return {
title: this.detailData.name,
path: "/pagesB/ArtWorks/artWorkDetail?id=" + this.id,
}
},
/**
* 开启 分享到朋友圈
* @param {Object} res
*/
onShareTimeline(res) {
return {
title: this.detailData.name,
path: "/pagesB/ArtWorks/artWorkDetail?id=" + this.id,
desc: this.detailData.name,
imageUrl: this.list[0],
}
},
onReady() {
// this.load = false
// #ifdef MP-WEIXIN

View File

@ -218,6 +218,31 @@
})
this.getList()
},
/**
* 开启分享功能
* @param {Object} res
*/
onShareAppMessage(res) {
// if (res.from === 'button') { //
// console.log(res.target)
// }
return {
title: this.serveList.title,
path: "/pagesC/ActivitiesDetail/ActivitiesDetail?id=" + this.id,
}
},
/**
* 开启 分享到朋友圈
* @param {Object} res
*/
onShareTimeline(res) {
return {
title: this.serveList.title,
path: "/pagesC/ActivitiesDetail/ActivitiesDetail?id=" + this.id,
desc: this.serveList.activityText,
imageUrl: this.img[0],
}
},
methods: {
getList() {
this.http.request('/activity/details/' + this.id , {}, "GET").then(res => {

View File

@ -58,7 +58,7 @@
// #ifdef MP-WEIXIN
this.iswx = 0
// #endif
// #ifndef MP-WEIXIN
//
this.iswx = 1
@ -71,6 +71,32 @@
})
this.getList()
},
/**
* 开启分享功能
* @param {Object} res
*/
onShareAppMessage(res) {
// if (res.from === 'button') { //
// console.log(res.target)
// }
return {
title: this.serveList.title,
path: "/pagesC/activity/activityDetail?id=" + this.id,
}
},
/**
* 开启 分享到朋友圈
* @param {Object} res
*/
onShareTimeline(res) {
return {
title: this.serveList.title,
path: "/pagesC/activity/activityDetail?id=" + this.id,
desc: this.serveList.title,
imageUrl: this.serveList.imgCover,
}
},
methods: {
getList() {
let _this = this
@ -81,7 +107,7 @@
}
if (res.data.files) {
let fileArr = res.data.files.split(',')
fileArr.forEach(function(item,index) {
fileArr.forEach(function(item, index) {
let gs = item.substr(item.lastIndexOf(".") + 1)
_this.list2.push({
name: res.data.title + index + '.' + gs,
@ -124,7 +150,7 @@
} else {
window.location.href = urlPath
}
},
}
}
@ -202,13 +228,13 @@
color: #251B1D;
border-radius: 6px;
overflow: hidden;
.file_box_right {
background: #F4F5F7;
padding-left: 20px;
float: left;
width: calc(100% - 30rpx);
.file_box_name {
line-height: 48rpx;
font-size: 28rpx;

View File

@ -79,6 +79,31 @@
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
},
/**
* 开启分享功能
* @param {Object} res
*/
onShareAppMessage(res) {
// if (res.from === 'button') { //
// console.log(res.target)
// }
return {
title: this.name,
path: "/pagesD/xskz/details?id=" + this.id,
}
},
/**
* 开启 分享到朋友圈
* @param {Object} res
*/
onShareTimeline(res) {
return {
title: this.name,
path: "/pagesD/xskz/details?id=" + this.id,
desc: this.name,
imageUrl: this.cover,
}
},
methods: {
onBindplay() {