diff --git a/pages/activity/bargain/index.vue b/pages/activity/bargain/index.vue
index 923cb7c7..c285399f 100644
--- a/pages/activity/bargain/index.vue
+++ b/pages/activity/bargain/index.vue
@@ -11,11 +11,11 @@
{{ item.activityName }}
+ :second-text="' 秒 '" :datatime="item.endTime / 1000" v-if="item.status === 1">
砍价成功
活动已结束
- 已砍至¥{{ fen2yuan(item.payPrice) }}
+ 已砍至¥{{ fen2yuan(item.bargainPrice) }}
diff --git a/pages/activity/goods_bargain/index.vue b/pages/activity/goods_bargain/index.vue
index 00393844..e44b60f9 100644
--- a/pages/activity/goods_bargain/index.vue
+++ b/pages/activity/goods_bargain/index.vue
@@ -46,7 +46,7 @@
已售罄
- 最低: ¥{{ fen2yuan(item.bargainPrice) }}
+ 最低: ¥{{ fen2yuan(item.bargainMinPrice) }}
参与砍价
已售罄
@@ -130,8 +130,8 @@
*/
getBargainHeader: function() {
BargainApi.getBargainRecordSummary().then(res => {
- this.bargainTotal = res.data.userCount;
- this.bargainSuccessList = res.data.successRecords;
+ this.bargainTotal = res.data.successUserCount;
+ this.bargainSuccessList = res.data.successList;
}).catch(err => {
return this.$util.Tips({
title: err
diff --git a/pages/activity/goods_seckill_details/index.vue b/pages/activity/goods_seckill_details/index.vue
index 74fde159..c9327f2e 100644
--- a/pages/activity/goods_seckill_details/index.vue
+++ b/pages/activity/goods_seckill_details/index.vue
@@ -373,17 +373,19 @@
SeckillApi.getSeckillActivity(this.id).then(res => {
this.activity = res.data;
// 计算活动状态
- const now = new Date().getTime();
- if (this.activity.status !== 0) {
- if (this.activity.startTime > now) {
- this.status = 1;
- } else if (now <= this.activity.endTime) {
- this.status = 2;
+ if (this.activity) {
+ const now = new Date().getTime();
+ if (this.activity.status === 1) {
+ this.status = 0;
} else {
- this.status = 3;
+ if (this.activity.startTime > now) {
+ this.status = 1;
+ } else if (now <= this.activity.endTime) {
+ this.status = 2;
+ } else {
+ this.status = 3;
+ }
}
- } else {
- this.status = 0;
}
// 获得商品详情
diff --git a/pages/index/components/c_bargain.vue b/pages/index/components/c_bargain.vue
index 3b72b981..b233d5d6 100644
--- a/pages/index/components/c_bargain.vue
+++ b/pages/index/components/c_bargain.vue
@@ -16,7 +16,9 @@
{{ item.name }}
- ¥{{ fen2yuan(item.bargainPrice) }}
+
+ ¥{{ fen2yuan(item.bargainMinPrice) }}
+
参与砍价
diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue
index f8a49665..9f3204d0 100644
--- a/pages/users/order_confirm/index.vue
+++ b/pages/users/order_confirm/index.vue
@@ -113,6 +113,10 @@
商品总价:
¥{{ fen2yuan(orderInfoVo.price.totalPrice || 0 ) }}
+
+ 订单优惠:
+ -¥{{ fen2yuan(orderInfoVo.price.discountPrice) }}
+
优惠券抵扣:
-¥{{ fen2yuan(orderInfoVo.price.couponPrice) }}
@@ -169,7 +173,6 @@
import { toLogin } from '@/libs/login.js';
import { mapGetters } from "vuex";
import * as Util from '@/utils/util.js';
- import {getTradeConfig} from "../../../api/trade/config";
export default {
components: {
couponListWindow,
@@ -187,9 +190,9 @@
},
mark: '', // 备注信息
- bargain: false, // 是否是砍价
+ bargainRecordId: false, // 是否是砍价
combination: false, // 是否是拼团
- secKill: false, // 是否是秒杀
+ seckillActivityId: false, // 是否是秒杀
// ========== 积分 ==========
pointStatus: false, //是否使用积分
@@ -250,6 +253,8 @@
count: options.count | 1
}]
}
+ this.seckillActivityId = options.seckillActivityId;
+ this.bargainRecordId = options.bargainRecordId;
this.getloadPreOrder();
// 处理 address 地址
@@ -363,6 +368,8 @@
receiverMobile: this.deliveryType === 2 ? this.contactsTel : undefined,
couponId: this.couponId > 0 ? this.couponId : undefined,
pointStatus: this.pointStatus,
+ seckillActivityId: this.seckillActivityId,
+ bargainRecordId: this.bargainRecordId,
// TODO 芋艿:秒杀等等
}
},