...
|
...
|
@@ -12,7 +12,7 @@ const shopTmpl = require('hbs/activity/feature/shop-group.hbs'); |
|
|
const seckillTabTpl = require('hbs/activity/feature/seckill-tab.hbs');
|
|
|
const seckillProductTpl = require('hbs/activity/feature/seckill-product.hbs');
|
|
|
const yo_sdk = require('./feature/yo-sdk');
|
|
|
const { XianyuJSBridge } = require('./xianyu');
|
|
|
let XianyuJSBridge = null;
|
|
|
|
|
|
require('scss/feature.scss');
|
|
|
|
...
|
...
|
@@ -1223,9 +1223,37 @@ function miniProgramHandleInit() { |
|
|
}
|
|
|
}
|
|
|
|
|
|
// 1、判断闲鱼环境,加载相关jssdk资源(layout.hbs 已做)
|
|
|
// 2、打开闲鱼导航栏右侧···按钮,并配置分享参数
|
|
|
// 3、绑定相关触发函数
|
|
|
// /* eslint-disable */
|
|
|
function setXianyuShareInfo() {
|
|
|
// var VConsole = require('vconsole');
|
|
|
// var vConsole = new VConsole();
|
|
|
// const webShareData = {
|
|
|
// title: $('#shareTitle').val(),
|
|
|
// desc: $('#shareImg').val(),
|
|
|
// imgUrl: $('#shareDesc').val(),
|
|
|
// link: $('#shareLink').val()
|
|
|
// };
|
|
|
// const parames = {
|
|
|
// shareType: 'activity', // 类型,默认activity
|
|
|
// image: webShareData.imgUrl,
|
|
|
// url: `${webShareData.link}?isNeedRefresh=false`, // 分享链接
|
|
|
// link: `${webShareData.link}?isNeedRefresh=false`, // 和url保持
|
|
|
// title: `淘口令#${webShareData.title}`, // 分享标题
|
|
|
// text: '' // 分享描述
|
|
|
// };
|
|
|
|
|
|
// XianyuJSBridge.hideLoadingBox().setNavRightItem(parames);
|
|
|
XianyuJSBridge.hideLoadingBox();
|
|
|
}
|
|
|
|
|
|
function xianyuAppHandleInit() {
|
|
|
if (/AliApp/i.test(navigator.userAgent)) {
|
|
|
require('./xianyu');
|
|
|
XianyuJSBridge = require('./xianyu/js-bridge');
|
|
|
setXianyuShareInfo();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1602,29 +1630,3 @@ $(function() { |
|
|
couponSendFinished();
|
|
|
}
|
|
|
}); |
|
|
|
|
|
// 1、判断闲鱼环境,加载相关jssdk资源(layout.hbs 已做)
|
|
|
// 2、打开闲鱼导航栏右侧···按钮,并配置分享参数
|
|
|
// 3、绑定相关触发函数
|
|
|
// /* eslint-disable */
|
|
|
$(function() {
|
|
|
// var VConsole = require('vconsole');
|
|
|
// var vConsole = new VConsole();
|
|
|
// const webShareData = {
|
|
|
// title: $('#shareTitle').val(),
|
|
|
// desc: $('#shareImg').val(),
|
|
|
// imgUrl: $('#shareDesc').val(),
|
|
|
// link: $('#shareLink').val()
|
|
|
// };
|
|
|
// const parames = {
|
|
|
// shareType: 'activity', // 类型,默认activity
|
|
|
// image: webShareData.imgUrl,
|
|
|
// url: `${webShareData.link}?isNeedRefresh=false`, // 分享链接
|
|
|
// link: `${webShareData.link}?isNeedRefresh=false`, // 和url保持
|
|
|
// title: `淘口令#${webShareData.title}`, // 分享标题
|
|
|
// text: '' // 分享描述
|
|
|
// };
|
|
|
|
|
|
// XianyuJSBridge.hideLoadingBox().setNavRightItem(parames);
|
|
|
XianyuJSBridge.hideLoadingBox();
|
|
|
}); |
...
|
...
|
|