Authored by ccbikai

商品详情页面对接app

... ... @@ -18,9 +18,11 @@ const $ = require('yoho-jquery');
const interceptClick = require('common/intercept-click');
$(() => {
$('body').on('click', 'a[href]:not(".no-intercept")', function() {
$('body').on('click', 'a[href]', function() {
// 拦截跳转
interceptClick($(this).attr('href'));
return false;
if (!$(this).hasClass('no-intercept')) {
interceptClick($(this).attr('href'));
return false;
}
});
});
... ...
... ... @@ -61,9 +61,9 @@
methods: {
showcase: function() {
const opts = {
images: this.goods.map((item)=> {
images: this.goods.map((item) => {
return item.colorImage;
}),
}).filter(image => image),
index: this.$refs.swipe.index
};
... ...
... ... @@ -13,9 +13,10 @@
.top-nav {
position: fixed;
z-index: 10;
font-size: 40px;
font-size: 50px;
padding: 30px;
width: 100%;
top: 40px;
.left {
float: left;
... ...