diff --git a/me/detail/detailIOS.nvue b/me/detail/detailIOS.nvue index ae31c54..358aa95 100644 --- a/me/detail/detailIOS.nvue +++ b/me/detail/detailIOS.nvue @@ -143,10 +143,10 @@ - + @@ -371,13 +371,13 @@ if (this.videoContext) { this.videoContext.play() } - 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') - } - }); + 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') + } + }); this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否' let that = this uni.$on('back', (data) => { @@ -393,11 +393,6 @@ // #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: '支付宝', @@ -406,30 +401,10 @@ ]; 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) - // } + } else { let checkIosPay = uni.getStorageSync('checkIosPay'); - // if (checkIosPay === '是') { - // this.openLists = [{ - // image: '/static/images/pay/weixin.png', - // text: '苹果', - // id: 3 - // }]; - // this.openWay = 3; - // } else { this.openLists = [ - // { - // image: '/static/images/pay/weixin.png', - // text: '微信', - // id: 2 - // }, { image: '/static/images/pay/zhifubao.png', text: '支付宝', @@ -438,15 +413,6 @@ ]; 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) - // } - // } } // #endif @@ -457,8 +423,10 @@ this.getDataList(this.courseId, this.courseDetailsId); } + + if (uni.getStorageSync('token')) { - this.$Request.getT('/app/course/getRedEnvelopeTips').then((res) => { + httpsRequest.getT('/app/course/getRedEnvelopeTips').then((res) => { if (res.code == 0) { this.getRedEnvelopeTips = res.data; } @@ -467,19 +435,18 @@ this.getScale() - const sysInfo = uni.getSystemInfoSync() - console.log(sysInfo); - const padB = sysInfo.safeAreaInsets.bottom; - console.log('win height == ' + padB); - if (padB && padB > 0) { - this.paddingBottom = padB + 'px' - } else { - this.paddingBottom = '0' - } + // const sysInfo = uni.getSystemInfoSync() + // console.log(sysInfo); + // const padB = sysInfo.safeAreaInsets.bottom; + // console.log('win height == ' + padB); + // if (padB && padB > 0) { + // this.paddingBottom = padB + 'px' + // } else { + // this.paddingBottom = '0' + // } console.log('this bottom padding = ' + this.paddingBottom); - }, onLoad(e) { //在苹果系统微信小程序是否开启支付