{{countPrice}}元解锁单集视频
@@ -369,6 +369,7 @@
getRedEnvelopeTips: '',
scale: 1,
paddingBottom: '0',
+ isShowMoneyPay: true,
};
},
computed: {
@@ -492,6 +493,13 @@
console.log('this bottom padding = ' + this.paddingBottom);
+ httpsRequest.getT("app/common/type/919", {}).then(res => {
+ if (res.code == 0) {
+ const sysInfo = uni.getSystemInfoSync();
+ let isIos = sysInfo.platform == 'ios'
+ this.isShowMoneyPay = !(res.data.value == '1' && isIos)
+ }
+ });
},
onLoad(e) {
let that = this
@@ -711,7 +719,10 @@
// #endif
// APP支付宝支付
httpsRequest.getT("/app/wuyou/payOrder/" + this.ordersId + '?payType=' + paytype, {}).then(ret => {
- plus.runtime.openURL(ret.data.h5Url)
+ // plus.runtime.openURL(ret.data.h5Url)
+ uni.navigateTo({
+ url: '/pages/pays/pays?ordersId=' + this.ordersId + '&url=' + ret.data.h5Url
+ });
// this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
});
} else if (this.openWay == 3) {
@@ -1051,7 +1062,7 @@
// const index = this.meunList.findIndex(menu => menu.courseDetailsId === item.courseDetailsId);
// this.videoList = [this.meunList[index]]
this.current = index
- if ( this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type ) {
+ if (this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type) {
this.getDataList(this.courseId, this.courseDetailsId, true, 'select')
return;
}
@@ -1399,8 +1410,8 @@
} else { //不能播放则需要购买
this.openPay()
}
- if ( t == 'select') {
- this.selectPlay(this.videoList[this.current],this.current,true)
+ if (t == 'select') {
+ this.selectPlay(this.videoList[this.current], this.current, true)
}
this.$forceUpdate();
//插入历史记录
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 701b09e..f8fd2fc 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -185,8 +185,8 @@
-
+
@@ -209,6 +209,7 @@
import recommendVideo from '../../components/recommendVideo/recommendVideo.vue'
import activityComp from '../../components/activityComp/activityComp.vue'
import dragButton from "@/components/drag-button/drag-button.vue";
+ import httpsRequest from '../../common/httpRequest.js'
export default {
components: {
videoList,
@@ -260,6 +261,7 @@
isWeixin: false,
isIos: true,
scrollTop: 0,
+ isShowMoneyPay: true,
};
},
onShareAppMessage(res) {
@@ -279,7 +281,6 @@
}
},
onPageScroll(e) {
- console.log(e);
this.scrollTop = e.scrollTop
},
onLoad(options) {
@@ -293,6 +294,7 @@
// #endif
+ console.log(options, '22222222222222222')
if (uni.getStorageSync('qdCode')) {
this.qdCode = uni.getStorageSync('qdCode')
}
@@ -435,6 +437,14 @@
this.shodrag = false
this.videoInfo = []
}
+
+ httpsRequest.getT("app/common/type/919", {}).then(res => {
+ if (res.code == 0) {
+ const sysInfo = uni.getSystemInfoSync();
+ let isIos = sysInfo.platform == 'ios'
+ this.isShowMoneyPay = !(res.data.value == '1' && isIos)
+ }
+ });
},
onReachBottom() {
if (this.page < this.pages) {
diff --git a/pages/me/index.vue b/pages/me/index.vue
index f30158d..d074982 100644
--- a/pages/me/index.vue
+++ b/pages/me/index.vue
@@ -53,7 +53,7 @@
我的积分
-->
-
+
{{userInfo.amount || '0.00'}}
@@ -146,7 +146,7 @@
转盘抽奖
-->
-
@@ -184,7 +184,7 @@
观看历史
-
@@ -257,6 +257,7 @@