Commit f9bc5529 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 84672834
......@@ -179,9 +179,8 @@
onShareAppMessage() {
let result = {
title: this.bookData.title,
imageUrl: this.bookData.cover,
type: config.env == 'Prod' ? 0 : config.env == 'Dev' ? 1 : 2,
path: `/page-subs/sub_A/book-content/book-content?bookId=${this.bookData.id}`
imageUrl: this.bookData.cover,
path: '/pages/loading?shareId='
}
return result;
},
......
module.exports = {
onLoad() {
// 设置默认的转发参数
uni.$u.mpShare = {
title: '', // 默认为小程序名称
path: '', // 默认为当前页面路径
imageUrl: '' // 默认为当前页面的截图
}
},
onShareAppMessage() {
return uni.$u.mpShare
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment