恢复h5全剧购买和10集购买代码
This commit is contained in:
@@ -198,7 +198,19 @@
|
|||||||
<view class="" style="font-size: 24rpx;color: #999;padding: 0 34rpx;margin-bottom: 20rpx;">
|
<view class="" style="font-size: 24rpx;color: #999;padding: 0 34rpx;margin-bottom: 20rpx;">
|
||||||
{{getRedEnvelopeTips}}
|
{{getRedEnvelopeTips}}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="list-item" v-if="info&&info.price" >
|
||||||
|
<view class="list-item-box flex align-center justify-center" @click="payVideo(2,'all')">
|
||||||
|
<image src="../../static/images/me/rmIcon.png" mode=""></image>
|
||||||
|
{{info.price}}元解锁全剧
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="list-item" v-if="info&&info.wholesalePrice">
|
||||||
|
<view class="list-item-box flex align-center justify-center" @click="payVideo(2,10)">
|
||||||
|
<image src="../../static/images/me/rmIcon.png" mode=""></image>
|
||||||
|
{{info.wholesalePrice}}元解锁10集视频
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="list-item" v-if="zhengbu === '是' && isWxIosPay == true">
|
<view class="list-item" v-if="zhengbu === '是' && isWxIosPay == true">
|
||||||
<view class="list-item-box flex align-center justify-center" @click="payVideo(1)">
|
<view class="list-item-box flex align-center justify-center" @click="payVideo(1)">
|
||||||
<image src="../../static/images/me/rmIcon.png" mode=""></image>
|
<image src="../../static/images/me/rmIcon.png" mode=""></image>
|
||||||
@@ -1260,7 +1272,7 @@
|
|||||||
* 1:购买整部视频
|
* 1:购买整部视频
|
||||||
* 2:购买单集视频
|
* 2:购买单集视频
|
||||||
*/
|
*/
|
||||||
payVideo(type) {
|
payVideo(type, num) {
|
||||||
if(!this.isOrder){
|
if(!this.isOrder){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1275,7 +1287,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
this.submitPay(type)
|
this.submitPay(type, num)
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/login/login"
|
url: "/pages/login/login"
|
||||||
@@ -1305,13 +1317,17 @@
|
|||||||
this.showMoney = data
|
this.showMoney = data
|
||||||
},
|
},
|
||||||
//使用金币购买
|
//使用金币购买
|
||||||
submitPay(type) {
|
submitPay(type, num) {
|
||||||
let data = {
|
let data = {
|
||||||
courseId: this.courseId
|
courseId: this.courseId
|
||||||
}
|
}
|
||||||
|
if (!num) {
|
||||||
data.courseDetailsId = this.videoList[this.current].courseDetailsId
|
console.log('进入num');
|
||||||
this.$Request.getT('/app/order/insertCourseOrders', data).then(res => {
|
//单集解锁
|
||||||
|
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) {
|
if (res.code == 0) {
|
||||||
this.ordersId = res.data.orders.ordersId //记录订单id
|
this.ordersId = res.data.orders.ordersId //记录订单id
|
||||||
this.payMoney = res.data.orders.payMoney //记录订单价格
|
this.payMoney = res.data.orders.payMoney //记录订单价格
|
||||||
|
|||||||
Reference in New Issue
Block a user