|
|
@ -54,6 +54,7 @@ |
|
|
|
<view class='money p-color skeleton-rect' style="min-width: 70rpx;"> |
|
|
|
<view class='money p-color skeleton-rect' style="min-width: 70rpx;"> |
|
|
|
¥ |
|
|
|
¥ |
|
|
|
<text class='num'>{{storeInfo.price}}</text> |
|
|
|
<text class='num'>{{storeInfo.price}}</text> |
|
|
|
|
|
|
|
<text class='num' v-if="point!=0">+积分{{point}}</text> |
|
|
|
<view v-if="svipData && svipData.show_svip_price && svipData.show_svip" style="display: inline-block;"> |
|
|
|
<view v-if="svipData && svipData.show_svip_price && svipData.show_svip" style="display: inline-block;"> |
|
|
|
<text class="vip-money">¥{{storeInfo.svip_price}}</text> |
|
|
|
<text class="vip-money">¥{{storeInfo.svip_price}}</text> |
|
|
|
<image class="vip-image" :src="`${domain}/static/images/svip.png`"></image> |
|
|
|
<image class="vip-image" :src="`${domain}/static/images/svip.png`"></image> |
|
|
@ -583,6 +584,7 @@ |
|
|
|
max_count: 0, |
|
|
|
max_count: 0, |
|
|
|
min_count: 0, |
|
|
|
min_count: 0, |
|
|
|
pay_limit: 1, |
|
|
|
pay_limit: 1, |
|
|
|
|
|
|
|
is_burst:null, |
|
|
|
svipData: {}, |
|
|
|
svipData: {}, |
|
|
|
svipPrice: false, |
|
|
|
svipPrice: false, |
|
|
|
specsInfo: { |
|
|
|
specsInfo: { |
|
|
@ -623,6 +625,7 @@ |
|
|
|
url: '/pages/user/index' |
|
|
|
url: '/pages/user/index' |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
|
|
|
|
point:0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
computed:{ |
|
|
@ -1024,6 +1027,7 @@ |
|
|
|
this.$set(this.attr.productSelect, "svip_price", productSelect.svip_price); |
|
|
|
this.$set(this.attr.productSelect, "svip_price", productSelect.svip_price); |
|
|
|
this.$set(this.attr.productSelect, "stock", productSelect.stock); |
|
|
|
this.$set(this.attr.productSelect, "stock", productSelect.stock); |
|
|
|
this.$set(this.attr.productSelect, "unique", productSelect.unique); |
|
|
|
this.$set(this.attr.productSelect, "unique", productSelect.unique); |
|
|
|
|
|
|
|
this.$set(this, "point", productSelect.point); |
|
|
|
this.$set(this, "uniqueValue", productSelect.unique); |
|
|
|
this.$set(this, "uniqueValue", productSelect.unique); |
|
|
|
if (productSelect.stock == 0) { |
|
|
|
if (productSelect.stock == 0) { |
|
|
|
this.$set(this.attr.productSelect, "cart_num", 0); |
|
|
|
this.$set(this.attr.productSelect, "cart_num", 0); |
|
|
@ -1040,6 +1044,7 @@ |
|
|
|
this.$set(this.attr.productSelect, "stock", 0); |
|
|
|
this.$set(this.attr.productSelect, "stock", 0); |
|
|
|
this.$set(this.attr.productSelect, "unique", ""); |
|
|
|
this.$set(this.attr.productSelect, "unique", ""); |
|
|
|
this.$set(this.attr.productSelect, "cart_num", 0); |
|
|
|
this.$set(this.attr.productSelect, "cart_num", 0); |
|
|
|
|
|
|
|
this.$set(this, "point", productSelect.point); |
|
|
|
this.$set(this, "attrValue", res); |
|
|
|
this.$set(this, "attrValue", res); |
|
|
|
this.$set(this, "attrTxt", "选择"); |
|
|
|
this.$set(this, "attrTxt", "选择"); |
|
|
|
} |
|
|
|
} |
|
|
@ -1096,6 +1101,7 @@ |
|
|
|
that.$set(that, 'activity', res.data.activity ? res.data.activity : []); |
|
|
|
that.$set(that, 'activity', res.data.activity ? res.data.activity : []); |
|
|
|
that.$set(that, 'max_count', res.data.once_max_count); |
|
|
|
that.$set(that, 'max_count', res.data.once_max_count); |
|
|
|
that.$set(that, 'pay_limit', res.data.pay_limit); |
|
|
|
that.$set(that, 'pay_limit', res.data.pay_limit); |
|
|
|
|
|
|
|
that.$set(that, 'is_burst', res.data.is_burst); |
|
|
|
that.$set(that, 'min_count', res.data.once_min_count); |
|
|
|
that.$set(that, 'min_count', res.data.once_min_count); |
|
|
|
that.$set(that, 'svipData', res.data.show_svip_info || null); |
|
|
|
that.$set(that, 'svipData', res.data.show_svip_info || null); |
|
|
|
that.$set(that, 'svipPrice', res.data.show_svip_info && res.data.show_svip_info.show_svip_price || false); |
|
|
|
that.$set(that, 'svipPrice', res.data.show_svip_info && res.data.show_svip_info.show_svip_price || false); |
|
|
@ -1208,6 +1214,7 @@ |
|
|
|
this.$set(this.attr.productSelect, "stock", productSelect.stock); |
|
|
|
this.$set(this.attr.productSelect, "stock", productSelect.stock); |
|
|
|
this.$set(this.attr.productSelect, "unique", productSelect.unique); |
|
|
|
this.$set(this.attr.productSelect, "unique", productSelect.unique); |
|
|
|
this.$set(this, "uniqueValue", productSelect.unique); |
|
|
|
this.$set(this, "uniqueValue", productSelect.unique); |
|
|
|
|
|
|
|
this.$set(this, "point", productSelect.point); |
|
|
|
this.$set(this, "attrValue", value.join(",")); |
|
|
|
this.$set(this, "attrValue", value.join(",")); |
|
|
|
this.$set(this, "attrTxt", "选择"); |
|
|
|
this.$set(this, "attrTxt", "选择"); |
|
|
|
if (productSelect.stock == 0) { |
|
|
|
if (productSelect.stock == 0) { |
|
|
@ -1226,6 +1233,7 @@ |
|
|
|
this.$set(this.attr.productSelect, "svip_price", this.storeInfo.svip_price); |
|
|
|
this.$set(this.attr.productSelect, "svip_price", this.storeInfo.svip_price); |
|
|
|
this.$set(this.attr.productSelect, "stock", 0); |
|
|
|
this.$set(this.attr.productSelect, "stock", 0); |
|
|
|
this.$set(this.attr.productSelect, "unique", ""); |
|
|
|
this.$set(this.attr.productSelect, "unique", ""); |
|
|
|
|
|
|
|
this.$set(this, "point", this.storeInfo.point); |
|
|
|
this.$set(this, "uniqueValue", ""); |
|
|
|
this.$set(this, "uniqueValue", ""); |
|
|
|
this.$set(this.attr.productSelect, "cart_num", 0); |
|
|
|
this.$set(this.attr.productSelect, "cart_num", 0); |
|
|
|
this.$set(this, "attrValue", ""); |
|
|
|
this.$set(this, "attrValue", ""); |
|
|
@ -1241,6 +1249,7 @@ |
|
|
|
this.$set(this.attr.productSelect, "svip_price", this.storeInfo.svip_price); |
|
|
|
this.$set(this.attr.productSelect, "svip_price", this.storeInfo.svip_price); |
|
|
|
this.$set(this.attr.productSelect, "stock", this.storeInfo.stock); |
|
|
|
this.$set(this.attr.productSelect, "stock", this.storeInfo.stock); |
|
|
|
this.$set(this.attr.productSelect, "unique", this.storeInfo.unique || ""); |
|
|
|
this.$set(this.attr.productSelect, "unique", this.storeInfo.unique || ""); |
|
|
|
|
|
|
|
this.$set(this, "point", this.storeInfo.point||0); |
|
|
|
this.$set(this, "uniqueValue", this.storeInfo.unique || ""); |
|
|
|
this.$set(this, "uniqueValue", this.storeInfo.unique || ""); |
|
|
|
this.$set(this.attr.productSelect, "cart_num", 1); |
|
|
|
this.$set(this.attr.productSelect, "cart_num", 1); |
|
|
|
this.$set(this, "attrValue", ""); |
|
|
|
this.$set(this, "attrValue", ""); |
|
|
@ -1252,6 +1261,7 @@ |
|
|
|
this.$set(this.attr.productSelect, "svip_price", productSelect.svip_price); |
|
|
|
this.$set(this.attr.productSelect, "svip_price", productSelect.svip_price); |
|
|
|
this.$set(this.attr.productSelect, "stock", productSelect.stock); |
|
|
|
this.$set(this.attr.productSelect, "stock", productSelect.stock); |
|
|
|
this.$set(this.attr.productSelect, "unique", productSelect.unique); |
|
|
|
this.$set(this.attr.productSelect, "unique", productSelect.unique); |
|
|
|
|
|
|
|
this.$set(this, "point", productSelect.point); |
|
|
|
this.$set(this, "uniqueValue", productSelect.unique); |
|
|
|
this.$set(this, "uniqueValue", productSelect.unique); |
|
|
|
this.$set(this, "attrValue", value.join(",")); |
|
|
|
this.$set(this, "attrValue", value.join(",")); |
|
|
|
this.$set(this, "attrTxt", "选择"); |
|
|
|
this.$set(this, "attrTxt", "选择"); |
|
|
@ -1433,7 +1443,7 @@ |
|
|
|
Cache.set(CART_TIME,timestamp) |
|
|
|
Cache.set(CART_TIME,timestamp) |
|
|
|
if (news) { |
|
|
|
if (news) { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/users/order_confirm/index?cartId=' + cartId |
|
|
|
url: '/pages/users/order_confirm/index?cartId=' + cartId +'&is_burst='+that.is_burst |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
that.$util.Tips({ |
|
|
|
that.$util.Tips({ |
|
|
|