ios隐藏充值
This commit is contained in:
@@ -28,10 +28,6 @@
|
||||
<text style="margin-left: 20rpx; font-size: 22rpx; color: #888" v-else
|
||||
>({{ userMes.email }})</text
|
||||
>
|
||||
|
||||
<!-- <text class="tong">累计读书5本
|
||||
<span style="margin: 0 20upx;">|</span> 今日读50分钟
|
||||
</text> -->
|
||||
</view>
|
||||
<br clear="both" />
|
||||
</view>
|
||||
@@ -58,7 +54,7 @@
|
||||
<text style="float: right; line-height: 85rpx"> > </text>
|
||||
</view>
|
||||
<view class="chong_list">
|
||||
<view v-if="iosHide">
|
||||
<view >
|
||||
<b>{{ userMes.peanutCoin }}</b>
|
||||
天医币
|
||||
</view>
|
||||
@@ -67,7 +63,7 @@
|
||||
优惠券
|
||||
</view> -->
|
||||
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')">充 值</b> -->
|
||||
<b class="chong_btn" v-if="iosHide" @click="onPageJump('./reCharge')"
|
||||
<b class="chong_btn" v-if="platform == 'android'" @click="onPageJump('./reCharge')"
|
||||
>充 值</b
|
||||
>
|
||||
</view>
|
||||
@@ -171,7 +167,7 @@ export default {
|
||||
// #ifdef APP-PLUS
|
||||
this.getOS();
|
||||
this.platform = uni.getSystemInfoSync().platform;
|
||||
// console.log('操纵系统',this.platform)
|
||||
console.log('操纵系统',this.platform)
|
||||
// #endif
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -120,10 +120,10 @@
|
||||
productid: '',
|
||||
isAndroid: true, // 是否为安卓环境
|
||||
|
||||
payType: 2,
|
||||
// #ifdef APP-IOS
|
||||
payType: 3,
|
||||
// #endif
|
||||
payType: null,
|
||||
// // #ifdef APP-IOS
|
||||
// payType: 3,
|
||||
// // #endif
|
||||
paylist: [{
|
||||
title: '支付宝',
|
||||
id: 2,
|
||||
@@ -143,6 +143,7 @@
|
||||
transaction: { // 成功回调
|
||||
|
||||
},
|
||||
oprateOs:'',
|
||||
};
|
||||
},
|
||||
//第一次加载
|
||||
@@ -150,6 +151,7 @@
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
this.chargeOrderSn = e.orderSn
|
||||
this.oprateOs = uni.getSystemInfoSync().platform
|
||||
// console.log(e.orderSn,'orderSn')
|
||||
},
|
||||
//页面显示
|
||||
@@ -401,9 +403,11 @@
|
||||
getDevName() {
|
||||
// 获取使用环境
|
||||
if (uni.getSystemInfoSync().platform === 'android') {
|
||||
this.isAndroid = true
|
||||
this.isAndroid = true
|
||||
this.payType = 1
|
||||
// console.log('运行Android上')
|
||||
} else {
|
||||
this.payType = 4
|
||||
this.isAndroid = false
|
||||
// console.log('运行iOS上')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user