Authored by htoooth

fix link

... ... @@ -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() {
... ...
... ... @@ -192,9 +192,9 @@ function share($el) {
shareUid: user.uid
});
if (yoho.isApp) {
if (yoSdk.env === 'app') {
yoho.invokeMethod('go.showshareaction', shareData.app);
} else {
} else if (yoSdk.env === 'h5') {
yoSdk.wxShare({
...shareData.h5,
success() {
... ... @@ -226,7 +226,7 @@ $tabpanel
let id = $(this).data('id');
let href = DETAIL_URI + '/' + id + '.html?t=1';
if (yoho && yoho.isApp) {
if (yoSdk.env === 'app') {
let link = yoho.parseUrl(href);
yoho.goH5(href, JSON.stringify({
... ...