Authored by 郭成尧

chose-panel-show

... ... @@ -5,7 +5,7 @@
</div>
</div>
<div class="lable-info-box"><a href="{{href}}">{{tagName}}</a></div>
<div class="lable-btn">
<div class="lable-btn add-to-cart" data-skn="{{product_skn}}">
<span class="iconfont">&#xe62c;</span>
<span class="iconfont plus">&#xe624;</span>
</div>
... ...
... ... @@ -8,7 +8,7 @@
<span class="sale-price">&yen;{{sales_price}}</span>
</p>
<p>
<span class="check-detail">
<span class="check-detail add-to-cart" data-skn="{{product_skn}}">
<span class="iconfont">&#xe62c;</span>
<span class="iconfont plus">&#xe624;</span>
</span>
... ...
/*
* @Author: Targaryen
* @Date: 2017-05-08 09:43:20
* @Last Modified by: Targaryen
* @Last Modified time: 2017-05-08 10:41:36
*/
const $ = require('yoho-jquery');
const chosePanel = require('common/chose-panel-new');
let $addToCart = $('.add-to-cart');
$addToCart.on('click', function(e) {
let $this = $(e.currentTarget);
$.post(location.protocol + '//m.yohobuy.com/product/detail/info',
{
productSkn: $this.data('skn')
}, function(data) {
chosePanel.show({data});
});
});
... ...
... ... @@ -28,6 +28,7 @@ let time = 0;
require('common');
require('plugin/wx-share')();
require('./detail-dynamic');
require('./detail/guang-cart');
let CollactionBlock = require('./collocation-block');
... ...
... ... @@ -2,6 +2,7 @@
@import "common/good";
@import "common/loading";
@import "common/suspend-home";
@import "cart/chose-panel";
@import "detail";
@import "tvls";
@import "channel/side-nav";
... ...