解锁视频修改更新
This commit is contained in:
@@ -144,23 +144,23 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="pay-content">
|
||||
<view class="pay-content-item" @click="payVideo(1)" v-if="zhengbu === '是'">
|
||||
<!-- <view class="pay-content-item" @click="payVideo(1)" v-if="zhengbu === '是'">
|
||||
<image class="pay-content-item-icon" src="../../static/images/me/rmIcon.png" mode=""></image>
|
||||
<text class="pay-content-items">
|
||||
{{zongPrice}}金币解锁整部视频
|
||||
</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="pay-content-item" @click="payVideo(2)" v-if="danbu === '是'">
|
||||
<text class="pay-content-items">
|
||||
{{countPrice}}金币解锁单集视频
|
||||
{{countPrice}}元解锁单集视频
|
||||
</text>
|
||||
</view>
|
||||
<view class="pay-content-item" @click="goNav('/pages/me/vip/index')" v-if="isVips == '是'">
|
||||
<!-- <view class="pay-content-item" @click="goNav('/pages/me/vip/index')" v-if="isVips == '是'">
|
||||
<image class="pay-content-item-icon" src="../../static/images/me/rmIcon.png" mode=""></image>
|
||||
<text class="pay-content-items">
|
||||
开通会员
|
||||
</text>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -188,7 +188,7 @@
|
||||
src="../../static/images/me/closeIconss.png" mode=""></image>
|
||||
</view>
|
||||
<!-- 余额 -->
|
||||
<view class="popuppay-money">
|
||||
<!-- <view class="popuppay-money">
|
||||
<view class="popuppay-money-l">
|
||||
<text class="popuppay-money-l-ye">
|
||||
账号余额:
|
||||
@@ -208,9 +208,9 @@
|
||||
{{payPrice}}金币
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 充值类型列表 -->
|
||||
<scroll-view scroll-y="true" class="payLists">
|
||||
<!-- <scroll-view scroll-y="true" class="payLists">
|
||||
<view class="popuppay-payList">
|
||||
<view class="payList-item" @click="wallCurr = index" :class="wallCurr == index?'activePrice':''"
|
||||
v-for="(item,index) in wallet" :key="index">
|
||||
@@ -237,7 +237,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</scroll-view> -->
|
||||
<!-- 支付类型 -->
|
||||
<view class="payType">
|
||||
<view class="payType-item" @tap='selectWay(item)' v-for="(item,index) in openLists" :key="index">
|
||||
@@ -395,25 +395,28 @@
|
||||
this.moneyTips = uni.getStorageSync('moneyTips')
|
||||
// #ifdef APP-PLUS
|
||||
if (plus.os.name.toLowerCase() === 'android') {
|
||||
this.openLists = [{
|
||||
image: '/static/images/pay/weixin.png',
|
||||
text: '微信',
|
||||
id: 2
|
||||
}, {
|
||||
image: '/static/images/pay/zhifubao.png',
|
||||
text: '支付宝',
|
||||
id: 1
|
||||
}];
|
||||
this.openWay = 2;
|
||||
this.openLists = [
|
||||
// {
|
||||
// image: '/static/images/pay/weixin.png',
|
||||
// text: '微信',
|
||||
// id: 2
|
||||
// },
|
||||
{
|
||||
image: '/static/images/pay/zhifubao.png',
|
||||
text: '支付宝',
|
||||
id: 1
|
||||
},
|
||||
];
|
||||
this.openWay = 1;
|
||||
let syPaySel = uni.getStorageSync('syPaySel')
|
||||
if (syPaySel === '是') {
|
||||
let openListsItem = {
|
||||
image: '/static/images/pay/shouyi.png',
|
||||
text: '收益余额',
|
||||
id: 4
|
||||
};
|
||||
this.openLists.push(openListsItem)
|
||||
}
|
||||
// if (syPaySel === '是') {
|
||||
// let openListsItem = {
|
||||
// image: '/static/images/pay/shouyi.png',
|
||||
// text: '收益余额',
|
||||
// id: 4
|
||||
// };
|
||||
// this.openLists.push(openListsItem)
|
||||
// }
|
||||
} else {
|
||||
let checkIosPay = uni.getStorageSync('checkIosPay');
|
||||
if (checkIosPay === '是') {
|
||||
@@ -424,29 +427,38 @@
|
||||
}];
|
||||
this.openWay = 3;
|
||||
} else {
|
||||
this.openLists = [{
|
||||
image: '/static/images/pay/weixin.png',
|
||||
text: '微信',
|
||||
id: 2
|
||||
}, {
|
||||
image: '/static/images/pay/zhifubao.png',
|
||||
text: '支付宝',
|
||||
id: 1
|
||||
}];
|
||||
this.openWay = 2;
|
||||
this.openLists = [
|
||||
// {
|
||||
// image: '/static/images/pay/weixin.png',
|
||||
// text: '微信',
|
||||
// id: 2
|
||||
// },
|
||||
{
|
||||
image: '/static/images/pay/zhifubao.png',
|
||||
text: '支付宝',
|
||||
id: 1
|
||||
},
|
||||
];
|
||||
this.openWay = 1;
|
||||
let syPaySel = uni.getStorageSync('syPaySel')
|
||||
if (syPaySel === '是') {
|
||||
let openListsItem = {
|
||||
image: '/static/images/pay/shouyi.png',
|
||||
text: '收益余额',
|
||||
id: 4
|
||||
};
|
||||
this.openLists.push(openListsItem)
|
||||
}
|
||||
// if (syPaySel === '是') {
|
||||
// let openListsItem = {
|
||||
// image: '/static/images/pay/shouyi.png',
|
||||
// text: '收益余额',
|
||||
// id: 4
|
||||
// };
|
||||
// this.openLists.push(openListsItem)
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
// #endif
|
||||
this.$nextTick(()=>{
|
||||
this.closePopusPay()
|
||||
})
|
||||
if(this.courseId){
|
||||
this.getDataList(this.courseId, this.courseDetailsId);
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
//是开启整部购买
|
||||
@@ -474,7 +486,6 @@
|
||||
if (e.courseDetailsId && e.courseDetailsId != 'null') {
|
||||
this.courseDetailsId = e.courseDetailsId
|
||||
}
|
||||
this.getDataList(this.courseId, this.courseDetailsId);
|
||||
this.getMyLoveStatus()
|
||||
this.getMoneyList()
|
||||
this.getMyMoney()
|
||||
@@ -633,15 +644,12 @@
|
||||
payClassifyId: this.wallet[this.wallCurr].payClassifyId,
|
||||
}).then(ret => {
|
||||
this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
|
||||
});
|
||||
})
|
||||
} else if (this.openWay == 1) {
|
||||
// APP支付宝支付
|
||||
httpsRequest.postT("/app/aliPay/payMoney", {
|
||||
classify: 1,
|
||||
payClassifyId: this.wallet[this.wallCurr].payClassifyId,
|
||||
}).then(ret => {
|
||||
console.log(ret)
|
||||
this.isCheckPay(ret.code, 'alipay', ret.data);
|
||||
httpsRequest.getT("/app/wuyou/payOrder/"+this.ordersId, {}).then(ret => {
|
||||
plus.runtime.openURL(ret.data.h5Url)
|
||||
// this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
|
||||
});
|
||||
} else if (this.openWay == 3) {
|
||||
let userId = uni.getStorageSync('userId');
|
||||
@@ -865,7 +873,11 @@
|
||||
if (res.code == 0) {
|
||||
this.ordersId = res.data.orders.ordersId //记录订单id
|
||||
this.payMoney = res.data.orders.payMoney //记录订单价格
|
||||
this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney)
|
||||
|
||||
this.closePay() //关闭购买选择弹窗
|
||||
this.payPrice = res.data.orders.payMoney //需要支付的价格
|
||||
this.openPopusPay() //显示充值弹窗
|
||||
// this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
|
||||
Reference in New Issue
Block a user