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 //记录订单价格