|
@@ -275,14 +275,11 @@ define(['$', 'template', 'order', 'native', 'helper', 'user', 'api', 'config', '
|
|
/* 如果没有on状态,加上on。 */
|
|
/* 如果没有on状态,加上on。 */
|
|
$(this).addClass('on');
|
|
$(this).addClass('on');
|
|
/* 删掉其他选择框的on状态 */
|
|
/* 删掉其他选择框的on状态 */
|
|
- // $(this).parent().siblings().find('.btn').removeClass('on');
|
|
|
|
|
|
+ $(this).parent().siblings().find('.btn').removeClass('on');
|
|
/* 填写order */
|
|
/* 填写order */
|
|
order.appendID = $(this).attr('data-extra-type');
|
|
order.appendID = $(this).attr('data-extra-type');
|
|
order.price = $(this).attr('data-extra-price');
|
|
order.price = $(this).attr('data-extra-price');
|
|
order.cost = order.price * order.productCount;
|
|
order.cost = order.price * order.productCount;
|
|
- console.log(order.appendID );
|
|
|
|
- console.log(order.price );
|
|
|
|
- console.log(order.cost );
|
|
|
|
// 重置代金券
|
|
// 重置代金券
|
|
$('.coupon-selected-name', $view).html('选择优惠券');
|
|
$('.coupon-selected-name', $view).html('选择优惠券');
|
|
order.couponValue = 0;
|
|
order.couponValue = 0;
|