修改获取红包次数代码

This commit is contained in:
duan
2025-01-10 18:04:37 +08:00
parent 8ce6713532
commit e3bf3af2d3

View File

@@ -143,10 +143,10 @@
<image class="list-title-rsczg" src="../../static/images/me/closeIconss.png" mode=""></image> <image class="list-title-rsczg" src="../../static/images/me/closeIconss.png" mode=""></image>
</view> </view>
</view> </view>
<!-- <text class="" <text class="" v-if="isShowMoneyPay"
style="font-size: 24rpx;color: #999;padding: 0 34rpx;margin: 20rpx 0; auto;text-align: left;width: 100%;"> style="font-size: 24rpx;color: #999;padding: 0 34rpx;margin: 20rpx 0; auto;text-align: left;width: 100%;">
{{getRedEnvelopeTips}} {{getRedEnvelopeTips}}
</text> --> </text>
<view class="pay-content"> <view class="pay-content">
<view class="pay-content-itemczg" @click="payVideo(1)"> <view class="pay-content-itemczg" @click="payVideo(1)">
<image class="pay-content-item-iconczg" src="../../static/images/me/rmIcon.png" mode=""></image> <image class="pay-content-item-iconczg" src="../../static/images/me/rmIcon.png" mode=""></image>
@@ -371,13 +371,13 @@
if (this.videoContext) { if (this.videoContext) {
this.videoContext.play() this.videoContext.play()
} }
httpsRequest.getT("/app/common/type/919", {}).then(res => { httpsRequest.getT("/app/common/type/919", {}).then(res => {
if (res.code === 0) { if (res.code === 0) {
const sysInfo = uni.getSystemInfoSync(); const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform == 'ios' let isIos = sysInfo.platform == 'ios'
this.isShowMoneyPay = !(res.data.value == '1') this.isShowMoneyPay = !(res.data.value == '1')
} }
}); });
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否' this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
let that = this let that = this
uni.$on('back', (data) => { uni.$on('back', (data) => {
@@ -393,11 +393,6 @@
// #ifdef APP-PLUS // #ifdef APP-PLUS
if (plus.os.name.toLowerCase() === 'android') { if (plus.os.name.toLowerCase() === 'android') {
this.openLists = [ this.openLists = [
// {
// image: '/static/images/pay/weixin.png',
// text: '微信',
// id: 2
// },
{ {
image: '/static/images/pay/zhifubao.png', image: '/static/images/pay/zhifubao.png',
text: '支付宝', text: '支付宝',
@@ -406,30 +401,10 @@
]; ];
this.openWay = 1; this.openWay = 1;
let syPaySel = uni.getStorageSync('syPaySel') let syPaySel = uni.getStorageSync('syPaySel')
// if (syPaySel === '是') {
// let openListsItem = {
// image: '/static/images/pay/shouyi.png',
// text: '收益余额',
// id: 4
// };
// this.openLists.push(openListsItem)
// }
} else { } else {
let checkIosPay = uni.getStorageSync('checkIosPay'); let checkIosPay = uni.getStorageSync('checkIosPay');
// if (checkIosPay === '是') {
// this.openLists = [{
// image: '/static/images/pay/weixin.png',
// text: '苹果',
// id: 3
// }];
// this.openWay = 3;
// } else {
this.openLists = [ this.openLists = [
// {
// image: '/static/images/pay/weixin.png',
// text: '微信',
// id: 2
// },
{ {
image: '/static/images/pay/zhifubao.png', image: '/static/images/pay/zhifubao.png',
text: '支付宝', text: '支付宝',
@@ -438,15 +413,6 @@
]; ];
this.openWay = 1; this.openWay = 1;
let syPaySel = uni.getStorageSync('syPaySel') let syPaySel = uni.getStorageSync('syPaySel')
// if (syPaySel === '是') {
// let openListsItem = {
// image: '/static/images/pay/shouyi.png',
// text: '收益余额',
// id: 4
// };
// this.openLists.push(openListsItem)
// }
// }
} }
// #endif // #endif
@@ -457,8 +423,10 @@
this.getDataList(this.courseId, this.courseDetailsId); this.getDataList(this.courseId, this.courseDetailsId);
} }
if (uni.getStorageSync('token')) { if (uni.getStorageSync('token')) {
this.$Request.getT('/app/course/getRedEnvelopeTips').then((res) => { httpsRequest.getT('/app/course/getRedEnvelopeTips').then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.getRedEnvelopeTips = res.data; this.getRedEnvelopeTips = res.data;
} }
@@ -467,19 +435,18 @@
this.getScale() this.getScale()
const sysInfo = uni.getSystemInfoSync() // const sysInfo = uni.getSystemInfoSync()
console.log(sysInfo); // console.log(sysInfo);
const padB = sysInfo.safeAreaInsets.bottom; // const padB = sysInfo.safeAreaInsets.bottom;
console.log('win height == ' + padB); // console.log('win height == ' + padB);
if (padB && padB > 0) { // if (padB && padB > 0) {
this.paddingBottom = padB + 'px' // this.paddingBottom = padB + 'px'
} else { // } else {
this.paddingBottom = '0' // this.paddingBottom = '0'
} // }
console.log('this bottom padding = ' + this.paddingBottom); console.log('this bottom padding = ' + this.paddingBottom);
}, },
onLoad(e) { onLoad(e) {
//在苹果系统微信小程序是否开启支付 //在苹果系统微信小程序是否开启支付