diff --git a/api/promotion/bargain.js b/api/promotion/bargain.js
index aadf1ffe..f4eb977d 100644
--- a/api/promotion/bargain.js
+++ b/api/promotion/bargain.js
@@ -43,3 +43,26 @@ export function getBargainRecordDetail(id, activityId) {
noAuth: true // TODO 芋艿:后续要做调整
});
}
+
+// 创建砍价记录(参与拼团活动)
+export function createBargainRecord(activityId) {
+ return request.post("app-api/promotion/bargain-record/create", {
+ activityId
+ });
+}
+
+// 创建砍价助力(给拼团记录砍一刀)
+export function createBargainHelp(recordId) {
+ return request.post("app-api/promotion/bargain-help/create", {
+ recordId: recordId
+ });
+}
+
+// 获得砍价助力列表
+export function getBargainHelpList(recordId) {
+ return request.get("app-api/promotion/bargain-help/list", {
+ recordId: recordId
+ }, {
+ noAuth: true // TODO 芋艿:后续要做调整
+ });
+}
diff --git a/pages/activity/bargain/index.vue b/pages/activity/bargain/index.vue
index 3c927a3e..67972041 100644
--- a/pages/activity/bargain/index.vue
+++ b/pages/activity/bargain/index.vue
@@ -40,7 +40,7 @@
-
+
@@ -121,7 +121,7 @@
methods: {
/**
* 打开支付组件
- *
+ *
*/
goPay(pay_price, order_id) {
this.$set(this, 'pay_close', true);
@@ -130,7 +130,7 @@
},
/**
* 事件回调
- *
+ *
*/
onChangeFun: function(e) {
let opt = e;
@@ -140,14 +140,12 @@
},
/**
* 关闭支付组件
- *
*/
payClose: function() {
this.pay_close = false;
},
/**
* 支付成功回调
- *
*/
pay_complete: function() {
this.status = false;
@@ -158,7 +156,6 @@
},
/**
* 支付失败回调
- *
*/
pay_fail: function() {
this.pay_close = false;
@@ -277,11 +274,11 @@
color: #868686;
justify-content: left !important;
}
-
+
.bargain-record .item .picTxt .text .successTxt{
font-size:24rpx;
}
-
+
.bargain-record .item .picTxt .text .endTxt{
font-size:24rpx;
color: #999;
diff --git a/pages/activity/goods_bargain_details/index.vue b/pages/activity/goods_bargain_details/index.vue
index b091646d..312e15e5 100644
--- a/pages/activity/goods_bargain_details/index.vue
+++ b/pages/activity/goods_bargain_details/index.vue
@@ -1,7 +1,7 @@
-