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'] 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() { onReady() {
// this.load = false // this.load = false
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN

View File

@ -218,6 +218,31 @@
}) })
this.getList() 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: { methods: {
getList() { getList() {
this.http.request('/activity/details/' + this.id , {}, "GET").then(res => { this.http.request('/activity/details/' + this.id , {}, "GET").then(res => {

View File

@ -71,6 +71,32 @@
}) })
this.getList() 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: { methods: {
getList() { getList() {
let _this = this let _this = this
@ -81,7 +107,7 @@
} }
if (res.data.files) { if (res.data.files) {
let fileArr = res.data.files.split(',') let fileArr = res.data.files.split(',')
fileArr.forEach(function(item,index) { fileArr.forEach(function(item, index) {
let gs = item.substr(item.lastIndexOf(".") + 1) let gs = item.substr(item.lastIndexOf(".") + 1)
_this.list2.push({ _this.list2.push({
name: res.data.title + index + '.' + gs, name: res.data.title + index + '.' + gs,

View File

@ -79,6 +79,31 @@
withShareTicket: true, withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline'] 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: { methods: {
onBindplay() { onBindplay() {