|
@@ -4,11 +4,11 @@ import {
|
|
|
module.exports = Behavior({
|
|
|
data: {},
|
|
|
methods: {
|
|
|
- // #if MP
|
|
|
onShareAppMessage({
|
|
|
from,
|
|
|
target
|
|
|
}) {
|
|
|
+ // #if MP
|
|
|
if (from == 'button') {
|
|
|
let video = target.dataset.info
|
|
|
const promise = new Promise(resolve => {
|
|
@@ -29,12 +29,7 @@ module.exports = Behavior({
|
|
|
imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/375-300-1.jpg'
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
- // #elif ANDROID
|
|
|
- onShareAppMessage({
|
|
|
- from,
|
|
|
- target
|
|
|
- }) {
|
|
|
+ // #elif ANDROID
|
|
|
if (from == 'button') {
|
|
|
let video = target.dataset.info
|
|
|
const promise = new Promise(resolve => {
|
|
@@ -54,11 +49,9 @@ module.exports = Behavior({
|
|
|
scene: 0,
|
|
|
promise
|
|
|
}
|
|
|
- } else {
|
|
|
- console.log('暂不处理');
|
|
|
}
|
|
|
+ // #endif
|
|
|
},
|
|
|
- // #endif
|
|
|
creatShare(video) {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
let isActivity = await isActivityWork(video.userRead.id)
|