This commit is contained in:
parent
41b8071b30
commit
3104b5bc40
|
@ -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
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue