From 4aed2a78e0a91ce544b36d5d43e5c9e91dba9e15 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 21 Jun 2023 23:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A0=8D=E4=BB=B7=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E3=80=91=201.=20=E5=9F=BA=E6=9C=AC=E5=AF=B9=E6=8E=A5=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/promotion/bargain.js | 23 + pages/activity/bargain/index.vue | 13 +- .../activity/goods_bargain_details/index.vue | 661 +++++++++--------- .../goods_combination_details/index.vue | 2 +- 4 files changed, 347 insertions(+), 352 deletions(-) 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 @@