|
@@ -4,10 +4,12 @@ import {
|
|
|
module.exports = Behavior({
|
|
|
data: {},
|
|
|
methods: {
|
|
|
+ // #if MP
|
|
|
onShareAppMessage({
|
|
|
from,
|
|
|
target
|
|
|
}) {
|
|
|
+ console.log('顶顶顶顶顶');
|
|
|
if (from == 'button') {
|
|
|
let video = target.dataset.info
|
|
|
const promise = new Promise(resolve => {
|
|
@@ -29,6 +31,26 @@ module.exports = Behavior({
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // elif ANDROID
|
|
|
+ onShareAppMessage({
|
|
|
+ from,
|
|
|
+ target
|
|
|
+ }) {
|
|
|
+ console.log('灌灌灌灌灌');
|
|
|
+ if (from == 'button') {
|
|
|
+ return {
|
|
|
+ title: "你干啥啊",
|
|
|
+ userName: 'gh_50f61361ad1d',
|
|
|
+ path: 'pages/index/index',
|
|
|
+ imagePath: '/pages/thumb.png',
|
|
|
+ webpageUrl: 'www.qq.com',
|
|
|
+ withShareTicket: true,
|
|
|
+ miniprogramType: 0,
|
|
|
+ scene: 0,
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // #endif
|
|
|
creatShare(video) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
let isActivity = await isActivityWork(video.userRead.id)
|