...
|
...
|
@@ -4,7 +4,6 @@ let Swiper = require('yoho-swiper'); |
|
|
let timeCountDownTpl = require('hbs/activity/yoluck/time-countdown.hbs');
|
|
|
let luckAlertTpl = require('hbs/activity/yoluck/luck-alert.hbs');
|
|
|
let formatCountDown = require('./yoluck/formatCountDown');
|
|
|
let yoho = require('js/yoho-app');
|
|
|
let YolukcApi = require('./yoluck/api');
|
|
|
let api = new YolukcApi();
|
|
|
let tip = require('js/plugin/tip');
|
...
|
...
|
@@ -47,9 +46,9 @@ function share() { |
|
|
actPrizeId: id
|
|
|
});
|
|
|
|
|
|
if (yoho.isApp) {
|
|
|
yoho.invokeMethod('go.showshareaction', shareData.app);
|
|
|
} else {
|
|
|
if (yoSdk.env === 'app') {
|
|
|
yoSdk.invokeMethod('go.showshareaction', shareData.app);
|
|
|
} else if (yoSdk.env === 'h5') {
|
|
|
yoSdk.wxShare({
|
|
|
...shareData.h5,
|
|
|
success() {
|
...
|
...
|
|