|
|
@@ -16,7 +16,7 @@
|
|
|
<div class="price">¥{$storeInfo.price|floatval}</div>
|
|
|
<div class="oldprice">原价:¥{$storeInfo.ot_price|floatval}</div>
|
|
|
<div class="info-amount flex"><span class="current">商品编号:{$storeInfo.id}</span> <span class="">库存:{$storeInfo.stock}{$storeInfo.unit_name}</span>
|
|
|
- <span class="fr">销量:{$storeInfo.ficti}{$storeInfo.unit_name}</span></div>
|
|
|
+ <span class="fr">销量:{$storeInfo.ficti+$storeInfo.sales}{$storeInfo.unit_name}</span></div>
|
|
|
{gt name="storeInfo['give_integral']" value="0"}
|
|
|
<div class="integral">积分:{$storeInfo.give_integral|floatval} <span>赠送</span></div>
|
|
|
{/gt}
|
|
|
@@ -115,6 +115,8 @@
|
|
|
this.cardShow = true;
|
|
|
}, goCart: function (values, cartNum) {
|
|
|
var checkedAttr = this.productValue[values.sort().join(',')], that = this;
|
|
|
+// console.log(values);
|
|
|
+// console.log(checkedAttr);
|
|
|
storeApi.setCart({
|
|
|
cartNum: cartNum,
|
|
|
uniqueId: checkedAttr === undefined ? 0 : checkedAttr.unique,
|
|
|
@@ -135,7 +137,11 @@
|
|
|
});
|
|
|
this.cardClose();
|
|
|
}, changeAttr: function (values) {
|
|
|
+ console.log(values);
|
|
|
+ //console.log(values.sort());
|
|
|
+ //console.log(values.sort().join(','));
|
|
|
var checkedAttr = this.productValue[values.sort().join(',')];
|
|
|
+ //console.log(values);console.log(checkedAttr);
|
|
|
if (!checkedAttr) {
|
|
|
this.setProductCardInfo({stock: 0});
|
|
|
} else {
|
|
|
@@ -225,7 +231,7 @@
|
|
|
desc: $product.store_info || $product.store_name,
|
|
|
// imgUrl: location.origin + $product.image,
|
|
|
imgUrl: $product.image,
|
|
|
- link: $urlShare || "{:url('store/detail',array('id'=>$store['id'],'spuid'=>$userInfo['uid']))}"
|
|
|
+ link: $urlShare || "{:url('store/detail',array('id'=>$storeInfo['id'],'spuid'=>$userInfo['uid']))}"
|
|
|
});
|
|
|
});
|
|
|
this.$nextTick(function () {
|