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

@ -58,7 +58,7 @@
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
this.iswx = 0 this.iswx = 0
// #endif // #endif
// #ifndef MP-WEIXIN // #ifndef MP-WEIXIN
// //
this.iswx = 1 this.iswx = 1
@ -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,
@ -124,7 +150,7 @@
} else { } else {
window.location.href = urlPath window.location.href = urlPath
} }
}, },
} }
} }
@ -202,13 +228,13 @@
color: #251B1D; color: #251B1D;
border-radius: 6px; border-radius: 6px;
overflow: hidden; overflow: hidden;
.file_box_right { .file_box_right {
background: #F4F5F7; background: #F4F5F7;
padding-left: 20px; padding-left: 20px;
float: left; float: left;
width: calc(100% - 30rpx); width: calc(100% - 30rpx);
.file_box_name { .file_box_name {
line-height: 48rpx; line-height: 48rpx;
font-size: 28rpx; font-size: 28rpx;

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() {