From 82ebef76b1cd6e6068184358427343b8c6fed49d Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Thu, 26 Dec 2024 16:40:15 +0800
Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8Dh5=E5=85=A8=E5=89=A7=E8=B4=AD?=
=?UTF-8?q?=E4=B9=B0=E5=92=8C10=E9=9B=86=E8=B4=AD=E4=B9=B0=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
me/detail/detail.vue | 30 +++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
diff --git a/me/detail/detail.vue b/me/detail/detail.vue
index 8692509..f8e72ce 100644
--- a/me/detail/detail.vue
+++ b/me/detail/detail.vue
@@ -198,7 +198,19 @@
{{getRedEnvelopeTips}}
-
+
+
+
+
+ {{info.price}}元解锁全剧
+
+
+
+
+
+ {{info.wholesalePrice}}元解锁10集视频
+
+
@@ -1260,7 +1272,7 @@
* 1:购买整部视频
* 2:购买单集视频
*/
- payVideo(type) {
+ payVideo(type, num) {
if(!this.isOrder){
return;
}
@@ -1275,7 +1287,7 @@
return
}
// #endif
- this.submitPay(type)
+ this.submitPay(type, num)
} else {
uni.navigateTo({
url: "/pages/login/login"
@@ -1305,13 +1317,17 @@
this.showMoney = data
},
//使用金币购买
- submitPay(type) {
+ submitPay(type, num) {
let data = {
courseId: this.courseId
}
-
- data.courseDetailsId = this.videoList[this.current].courseDetailsId
- this.$Request.getT('/app/order/insertCourseOrders', data).then(res => {
+ if (!num) {
+ console.log('进入num');
+ //单集解锁
+ data.courseDetailsId = this.videoList[this.current].courseDetailsId
+ }
+ this.$Request.getT((num && num == 10) ? '/app/order/insertCourseOrders/limit10' :
+ '/app/order/insertCourseOrders', data).then(res => {
if (res.code == 0) {
this.ordersId = res.data.orders.ordersId //记录订单id
this.payMoney = res.data.orders.payMoney //记录订单价格