提升判断919权限代码
This commit is contained in:
@@ -157,7 +157,7 @@
|
||||
<view v-if="danbu === '是' &&isWxIosPay&&isShowMoneyPay" class="pay-content-itemczg"
|
||||
@click="payVideo(2)">
|
||||
<text class="pay-content-items">
|
||||
{{countPrice}}元解锁单集视频
|
||||
{{isShowMoneyPay}}{{countPrice}}元解锁单集视频
|
||||
</text>
|
||||
</view>
|
||||
<!-- <view class="pay-content-itemczg" @click="goNav('/pages/me/vip/index')" v-if="isVips == '是'">
|
||||
@@ -367,6 +367,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')
|
||||
}
|
||||
});
|
||||
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
|
||||
let that = this
|
||||
uni.$on('back', (data) => {
|
||||
@@ -468,13 +475,7 @@
|
||||
|
||||
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) {
|
||||
//在苹果系统微信小程序是否开启支付
|
||||
|
||||
Reference in New Issue
Block a user