diff --git a/pages/activity/groupon/list.vue b/pages/activity/groupon/list.vue
index d84fba9..4cbfe77 100644
--- a/pages/activity/groupon/list.vue
+++ b/pages/activity/groupon/list.vue
@@ -1,255 +1,227 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ }"
+ @tap="loadMore"
+ />
+
+
+
\ No newline at end of file
diff --git a/pages/activity/seckill/list.vue b/pages/activity/seckill/list.vue
index 49fe147..81edf7c 100644
--- a/pages/activity/seckill/list.vue
+++ b/pages/activity/seckill/list.vue
@@ -264,7 +264,7 @@
// 时间段轮播图
.header {
- width: 710rpx;
+ width: 100%;
height: 330rpx;
margin: 0 auto 0 auto;
border-radius: 14rpx;
diff --git a/pages/goods/groupon.vue b/pages/goods/groupon.vue
index d384eb2..93a7441 100644
--- a/pages/goods/groupon.vue
+++ b/pages/goods/groupon.vue
@@ -90,7 +90,7 @@
-
@@ -115,7 +115,7 @@
state.activity.status === 0 && state.goodsInfo.stock !== 0
? 'check-btn-box'
: 'disabled-btn-box'
- " :disabled="state.goodsInfo.stock === 0 || state.activity.status !== 0">
+ " :disabled="state.goodsInfo.stock === 0 || state.activity.status !== 0 || state.activity.remainingPurchases == 0"">
{{
fen2yuan(state.activity.price || state.goodsInfo.price)
}}
@@ -263,6 +263,7 @@
data: activity
} = await CombinationApi.getCombinationActivity(state.grouponId);
state.activity = activity;
+ // console.log(activity,"activity")
// 加载商品信息
const {
data: spu
diff --git a/pages/goods/seckill.vue b/pages/goods/seckill.vue
index e9ca676..be78f9d 100644
--- a/pages/goods/seckill.vue
+++ b/pages/goods/seckill.vue
@@ -68,7 +68,7 @@
-
@@ -102,14 +102,16 @@
timeStatusEnum === TimeStatusEnum.STARTED && state.goodsInfo.stock != 0
? 'check-btn-box'
: 'disabled-btn-box'
- " :disabled="state.goodsInfo.stock === 0 || timeStatusEnum !== TimeStatusEnum.STARTED">
+ " :disabled="state.goodsInfo.stock === 0 || timeStatusEnum !== TimeStatusEnum.STARTED || activity.remainingPurchases == 0">
{{ fen2yuan(state.goodsInfo.price) }}
已售罄
+
立即秒杀
{{ timeStatusEnum }}
+
@@ -223,6 +225,7 @@
data
} = await SeckillApi.getSeckillActivity(id);
activity.value = data;
+ // console.log(activity.value,"activity.value")
timeStatusEnum.value = getTimeStatusEnum(activity.startTime, activity.endTime);
// 查询商品
diff --git a/pages/index/user.vue b/pages/index/user.vue
index 98b0bf4..1cabb8d 100644
--- a/pages/index/user.vue
+++ b/pages/index/user.vue
@@ -2,21 +2,11 @@
-
-
-
+
-
+
-
-
- 立即开通
-
-
@@ -51,40 +41,13 @@
onPageScroll(() => {});
-
\ No newline at end of file
diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue
index 1203b9b..5fd634d 100644
--- a/pages/order/confirm.vue
+++ b/pages/order/confirm.vue
@@ -51,7 +51,7 @@
class="score-img"
/>
- {{ state.orderInfo.usePoint }}
+ {{ state.orderInfo.usedPoint }}
@@ -69,7 +69,7 @@
{{
state.pointStatus || state.orderPayload.pointActivityId
- ? state.orderInfo.totalPoint - state.orderInfo.usePoint
+ ? state.orderInfo.totalPoint - state.orderInfo.usedPoint
: state.orderInfo.totalPoint || 0
}}
diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue
index 8dc2545..85a3af3 100644
--- a/sheep/components/s-block-item/s-block-item.vue
+++ b/sheep/components/s-block-item/s-block-item.vue
@@ -1,7 +1,7 @@
-
+
@@ -41,8 +41,8 @@
-
-
+
+
@@ -68,11 +68,20 @@
-
+
+ 立即开通
+
+
-
+
@@ -124,7 +133,30 @@
:deep(.uni-border-bottom){
height:0;
}
-
+ .new-huiy{
+ width:100%;
+ height:100px;
+ .new-button{
+ background:white;
+ padding:4px 8px;
+ text-align:center;
+ position: absolute;
+ border-radius: 20px;
+ right: 29px;
+ top: 37px;
+ font-size:14px;
+ color: rgba(148, 109, 45, 1);
+ z-index: 33;
+ }
+ .seckill1{
+ position: absolute;
+ top: -71px;
+ z-index: 22;
+ /* left: 50%; */
+ /* transform: translateX(-50%); */
+ width: 94%;
+ }
+ }
.floxt {
diff --git a/sheep/components/s-goods-column/s-goods-column.vue b/sheep/components/s-goods-column/s-goods-column.vue
index 00e6e2e..4e37112 100644
--- a/sheep/components/s-goods-column/s-goods-column.vue
+++ b/sheep/components/s-goods-column/s-goods-column.vue
@@ -1,960 +1,909 @@
-
-
-
-
-
-
-
-
-
- {{ data.title || data.name }}
-
-
-
- {{ discountText }}
-
- {{ item }}
-
-
-
-
-
-
-
- {{ data.point }}
- {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
-
-
-
- {{ priceUnit }}
- {{ fen2yuan(data.promotionPrice) }}
-
- {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ data.title || data.name }}
+
+
+
+ {{ discountText }}
+
+ {{ item }}
+
+
+
+
+
+
+
+ {{ data.point }}
+ {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
+
+
+
+ {{ priceUnit }}
+ {{ fen2yuan(data.promotionPrice) }}
+
+ {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
- {{ data.title || data.name }}
-
-
-
- {{ discountText }}
-
- {{ item }}
-
-
-
-
-
-
-
- {{ data.point }}
- {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
-
-
-
- {{ priceUnit }}
- {{ fen2yuan(data.promotionPrice) }}
-
- {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
-
-
-
-
-
+
+
+ {{ data.title || data.name }}
+
+
+
+ {{ discountText }}
+
+ {{ item }}
+
+
+
+
+
+
+
+ {{ data.point }}
+ {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
+
+
+
+ 抢
+ {{ priceUnit }}
+ {{ fen2yuan(data.promotionPrice) }}
+
+ {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
+
+
+
+ 参与拼团
+
+
-
-
-
-
-
-
-
-
- {{ data.title || data.name }}
-
-
- {{ data.subtitle || data.introduction }}
-
-
-
-
- {{ item.title }}
-
-
-
-
-
- {{ discountText }}
-
- {{ item }}
-
-
-
-
-
-
-
-
- {{ data.point }}
- {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
-
-
-
- {{ priceUnit }}
- {{ fen2yuan(data.promotionPrice) }}
-
- {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
-
-
-
-
+
+
+
+
+
+
+ {{ data.title || data.name }}
+
+
+ {{ data.subtitle || data.introduction }}
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+ {{ discountText }}
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+ {{ data.point }}
+ {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
+
+
+
+ {{ priceUnit }}
+ {{ fen2yuan(data.promotionPrice) }}
+
+ {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
+
+
+
+
- {{ priceUnit }}
- {{ fen2yuan(data.marketPrice) }}
-
-
+ " class="goods-origin-price ss-m-t-16 font-OPPOSANS ss-flex" :style="[{ color: originPriceColor }]">
+ {{ priceUnit }}
+ {{ fen2yuan(data.marketPrice) }}
+
+
-
- {{ salesAndStock }}
-
-
+
+ {{ salesAndStock }}
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
- 拼团
-
-
-
-
-
- {{ data.title || data.name }}
-
-
- {{ data.subtitle || data.introduction }}
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
- {{ discountText }}
-
- {{ item }}
-
-
-
-
-
-
-
-
- {{ data.point }}
- {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
-
-
-
- {{ priceUnit }}
- {{ fen2yuan(data.promotionPrice) }}
-
- {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
-
-
-
-
+
+
+
+
+
+ 拼团
+
+
+
+
+
+ {{ data.title || data.name }}
+
+
+ {{ data.subtitle || data.introduction }}
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+ {{ discountText }}
+
+ {{ item }}
+
+
+
+
+
+
+
+
+ {{ data.point }}
+ {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
+
+
+
+ {{ priceUnit }}
+ {{ fen2yuan(data.promotionPrice) }}
+
+ {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
+
+
+
+
- {{ priceUnit }}
- {{ fen2yuan(data.marketPrice) }}
-
-
-
- {{ salesAndStock }}
-
-
-
+ " class="goods-origin-price ss-m-t-16 font-OPPOSANS ss-flex" :style="[{ color: originPriceColor }]">
+ {{ priceUnit }}
+ {{ fen2yuan(data.marketPrice) }}
+
+
+
+ {{ salesAndStock }}
+
+
+
-
- 去购买
-
-
+
+ 去购买
+
+
-
-
-
-
-
-
-
-
-
- {{ data.title || data.name }}
-
-
- {{ data.subtitle || data.introduction }}
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
- {{ discountText }}
-
- {{ item }}
-
-
-
-
-
-
-
-
- {{ data.point }}
- {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
-
-
-
- {{ priceUnit }}
- {{ fen2yuan(data.promotionPrice) }}
-
- {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
-
-
-
-
+
+
+
+
+
+
+
+ {{ data.title || data.name }}
+
+
+ {{ data.subtitle || data.introduction }}
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+ {{ discountText }}
+
+ {{ item }}
+
+
+
+
+
+
+
+
+ {{ data.point }}
+ {{ !data.pointPrice || data.pointPrice === 0 ? '' : `+${priceUnit}${fen2yuan(data.pointPrice)}` }}
+
+
+
+ {{ priceUnit }}
+ {{ fen2yuan(data.promotionPrice) }}
+
+ {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
+
+
+
+
- {{ priceUnit }}
- {{ fen2yuan(data.marketPrice) }}
-
-
-
- {{ salesAndStock }}
-
-
-
+ " class="goods-origin-price ss-m-t-16 font-OPPOSANS ss-flex" :style="[{ color: originPriceColor }]">
+ {{ priceUnit }}
+ {{ fen2yuan(data.marketPrice) }}
+
+
+
+ {{ salesAndStock }}
+
+
+
-
- 去购买
-
-
-
+
+ 去购买
+
+
+
+ .card2 {
+ width: fit-content;
+ height: fit-content;
+ padding: 2rpx 10rpx;
+ background-color: rgb(255, 242, 241);
+ color: #ff2621;
+ font-size: 24rpx;
+ margin: 5rpx 0 5rpx 5rpx;
+ }
+
+ .iconBox {
+ width: 100%;
+ height: fit-content;
+ margin-top: 10rpx;
+ display: flex;
+ justify-content: flex-start;
+ flex-wrap: wrap;
+ }
+
+ .sss {
+ margin-top: 10px;
+ padding: 3px;
+ font-size: 13px;
+ background: #e93422;
+ text-align: center;
+ color: white;
+ border-radius: 0px 0px 5px 5px;
+ }
+ .fff{
+ padding: 3px;
+ font-size: 13px;
+ background: #e93422;
+ text-align: center;
+ color: white;
+ border-radius: 5px;
+ width: 20px;
+ margin-right:5px;
+ }
+ .new-ii{
+ display:flex;
+ align-items: baseline;
+ }
+
\ No newline at end of file
diff --git a/sheep/components/s-groupon-block/s-groupon-block.vue b/sheep/components/s-groupon-block/s-groupon-block.vue
index 6561d3b..495fad3 100644
--- a/sheep/components/s-groupon-block/s-groupon-block.vue
+++ b/sheep/components/s-groupon-block/s-groupon-block.vue
@@ -72,7 +72,7 @@
padding: data.space + 'rpx',
},
]">
-
- 购买数量
import { computed, reactive, watch } from 'vue';
import sheep from '@/sheep';
+ import { isEmpty, min } from 'lodash-es';
import { convertProductPropertyList, fen2yuan } from '@/sheep/hooks/useGoods';
const headerBg = sheep.$url.css('/static/img/shop/goods/groupon-btn-long.png');
@@ -118,6 +119,10 @@
type: [Number, String],
default: 0,
},
+ activity:{
+ type: Array,
+ default: 0,
+ }
});
const state = reactive({
selectedSku: {}, // 选中的 SKU
@@ -133,6 +138,7 @@
for (let price of skuPrices) {
price.value_id_array = price.properties.map((item) => item.valueId);
}
+ console.log(props.activity,"skuPrices")
return skuPrices;
});
@@ -152,8 +158,8 @@
if (e === 0) return;
if (state.selectedSku.count === e) return;
state.selectedSku.count = e;
+ console.log(state.selectedSku)
}
-
// 点击购买
function onBuy() {
if (!state.selectedSku.id || state.selectedSku.id <= 0) {
@@ -166,7 +172,6 @@
}
emits('buy', state.selectedSku);
}
-
// 改变禁用状态:计算每个 property 属性值的按钮,是否禁用
function changeDisabled(isChecked = false, propertyId = 0, valueId = 0) {
let newSkus = []; // 所有可以选择的 sku 数组
diff --git a/sheep/components/s-select-seckill-sku/s-select-seckill-sku.vue b/sheep/components/s-select-seckill-sku/s-select-seckill-sku.vue
index 1233cbf..05b85c2 100644
--- a/sheep/components/s-select-seckill-sku/s-select-seckill-sku.vue
+++ b/sheep/components/s-select-seckill-sku/s-select-seckill-sku.vue
@@ -75,7 +75,7 @@
购买数量
props.modelValue),
selectedSku: {},
currentPropertyArray: [],
});
+ // console.log(props.activity,"activity");
const getShowPriceText = computed(() => {
let priceText = `¥${fen2yuan(state.goodsInfo.price)}`;
if (!isEmpty(state.selectedSku)) {
diff --git a/sheep/components/s-user-card/s-user-card.vue b/sheep/components/s-user-card/s-user-card.vue
index 20626cc..ea21211 100644
--- a/sheep/components/s-user-card/s-user-card.vue
+++ b/sheep/components/s-user-card/s-user-card.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/sheep/ui/su-navbar/su-navbar.vue b/sheep/ui/su-navbar/su-navbar.vue
index 741b4dc..09c183c 100644
--- a/sheep/ui/su-navbar/su-navbar.vue
+++ b/sheep/ui/su-navbar/su-navbar.vue
@@ -42,7 +42,7 @@
-->