...
|
...
|
@@ -3,6 +3,7 @@ require('scss/magazine/detail.page.scss'); |
|
|
let $ = require('yoho-jquery');
|
|
|
let get = require('lodash/get');
|
|
|
let Swiper = require('yoho-swiper');
|
|
|
let dialog = require('js/plugin/dialog');
|
|
|
|
|
|
new Swiper('.swiper-container', {
|
|
|
observer: true,
|
...
|
...
|
@@ -16,7 +17,6 @@ new Swiper('.swiper-container', { |
|
|
pagination: '.swiper-pagination',
|
|
|
});
|
|
|
|
|
|
|
|
|
function DragableElm(elm) {
|
|
|
if (!elm || !elm.length || elm._dragable) {
|
|
|
return;
|
...
|
...
|
@@ -96,3 +96,15 @@ function DragableElm(elm) { |
|
|
}
|
|
|
|
|
|
new DragableElm($('.magazine-detail-container'));
|
|
|
|
|
|
$('.to-download').on('click', function() {
|
|
|
dialog.showDialog({
|
|
|
dialogText: '请下载有货APP阅读电子刊',
|
|
|
hasFooter: {
|
|
|
leftBtnText: '取消',
|
|
|
rightBtnText: '确定'
|
|
|
}
|
|
|
}, function() {
|
|
|
window.location.href = '//union.yoho.cn/union/app-downloads.html?union_type=100000000000349';
|
|
|
});
|
|
|
}); |
...
|
...
|
|