ios隐藏充值
This commit is contained in:
@@ -5,8 +5,8 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
// baseUrl = "http://localhost:7001/";
|
// baseUrl = "http://localhost:7001/";
|
||||||
// socketUrl = "ws://localhost:6001/";
|
// socketUrl = "ws://localhost:6001/";
|
||||||
// baseUrl = "https://twin-ui.com/demo/";
|
// baseUrl = "https://twin-ui.com/demo/";
|
||||||
baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
||||||
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||||
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
||||||
// baseUrl = "http://59.110.212.44:9200/pb/";
|
// baseUrl = "http://59.110.212.44:9200/pb/";
|
||||||
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
"src" : "图片路径"
|
"src" : "图片路径"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versionName" : "1.2.52",
|
"versionName" : "1.2.51",
|
||||||
"versionCode" : 1252,
|
"versionCode" : 1251,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
"ignoreVersion" : true
|
"ignoreVersion" : true
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 支付列表 -->
|
<!-- 支付列表 -->
|
||||||
<view class="zhif_fangsh" v-if="isAndorid">
|
<view class="zhif_fangsh" >
|
||||||
<view class="zhif_radio">
|
<view class="zhif_radio">
|
||||||
<u-radio-group v-model="payType">
|
<u-radio-group v-model="payType">
|
||||||
<view style="width: 100%;">
|
<view style="width: 100%;">
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
{{item.title}}
|
{{item.title}}
|
||||||
<span v-if="item.id == 4"
|
<span v-if="item.id == 4"
|
||||||
style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}天医币可用</span>
|
style="color: #bbb; margin-left: 10px;">{{userMes.peanutCoin}}天医币可用</span>
|
||||||
<span @click.stop="buPoint" style="color: #bf0c0c; margin-left: 10px;" v-if="item.id == 4"
|
<span @click.stop="buPoint" style="color: #bf0c0c; margin-left: 10px;" v-if="item.id == 4 && oprateOs != 'ios'"
|
||||||
class="chongBtn">去充值</span>
|
class="chongBtn">去充值</span>
|
||||||
<u-radio :key="index" activeColor="#fe6e09" :name='item.id'
|
<u-radio :key="index" activeColor="#fe6e09" :name='item.id'
|
||||||
style="float: right;margin-top: 5rpx;"></u-radio>
|
style="float: right;margin-top: 5rpx;"></u-radio>
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- ios支付列表 -->
|
<!-- ios支付列表 -->
|
||||||
<view class="zhif_fangsh" v-else>
|
<!-- <view class="zhif_fangsh" v-else>
|
||||||
<view class="zhif_radio">
|
<view class="zhif_radio">
|
||||||
<u-radio-group v-model="payType">
|
<u-radio-group v-model="payType">
|
||||||
<view style="width: 100%;">
|
<view style="width: 100%;">
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-radio-group>
|
</u-radio-group>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<view class="commodityPrice" v-if="payType != 4">
|
<view class="commodityPrice" v-if="payType != 4">
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
isSend: '0',
|
isSend: '0',
|
||||||
farePrice: 0,
|
farePrice: 0,
|
||||||
realPrice: 0,
|
realPrice: 0,
|
||||||
payType:null,
|
payType:1,
|
||||||
nowClick: true,
|
nowClick: true,
|
||||||
paylist: [{
|
paylist: [{
|
||||||
title: '支付宝',
|
title: '支付宝',
|
||||||
@@ -284,6 +284,7 @@
|
|||||||
img: '../../static/icon/oder_chong.png'
|
img: '../../static/icon/oder_chong.png'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
oprateOs : ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
@@ -322,16 +323,9 @@
|
|||||||
methods: {
|
methods: {
|
||||||
// 获得操作系统
|
// 获得操作系统
|
||||||
getOS() {
|
getOS() {
|
||||||
let oprateOs = ''
|
// let oprateOs = ''
|
||||||
oprateOs = uni.getSystemInfoSync().platform
|
this.oprateOs = uni.getSystemInfoSync().platform
|
||||||
// console.log(oprateOs)
|
// console.log(oprateOs)
|
||||||
if (oprateOs == 'android') {
|
|
||||||
this.isAndorid = true
|
|
||||||
this.payType = 1
|
|
||||||
} else {
|
|
||||||
this.isAndorid = false
|
|
||||||
this.payType = 4
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// 充值天医币
|
// 充值天医币
|
||||||
buPoint() {
|
buPoint() {
|
||||||
@@ -585,6 +579,7 @@
|
|||||||
goBuyJie() {
|
goBuyJie() {
|
||||||
if (this.addressList.length == 0) {
|
if (this.addressList.length == 0) {
|
||||||
this.dizhiShow = true // 如果没有地址信息
|
this.dizhiShow = true // 如果没有地址信息
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if (!this.nowClick) {
|
if (!this.nowClick) {
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -28,10 +28,6 @@
|
|||||||
<text style="margin-left: 20rpx; font-size: 22rpx; color: #888" v-else
|
<text style="margin-left: 20rpx; font-size: 22rpx; color: #888" v-else
|
||||||
>({{ userMes.email }})</text
|
>({{ userMes.email }})</text
|
||||||
>
|
>
|
||||||
|
|
||||||
<!-- <text class="tong">累计读书5本
|
|
||||||
<span style="margin: 0 20upx;">|</span> 今日读50分钟
|
|
||||||
</text> -->
|
|
||||||
</view>
|
</view>
|
||||||
<br clear="both" />
|
<br clear="both" />
|
||||||
</view>
|
</view>
|
||||||
@@ -58,7 +54,7 @@
|
|||||||
<text style="float: right; line-height: 85rpx"> > </text>
|
<text style="float: right; line-height: 85rpx"> > </text>
|
||||||
</view>
|
</view>
|
||||||
<view class="chong_list">
|
<view class="chong_list">
|
||||||
<view v-if="iosHide">
|
<view >
|
||||||
<b>{{ userMes.peanutCoin }}</b>
|
<b>{{ userMes.peanutCoin }}</b>
|
||||||
天医币
|
天医币
|
||||||
</view>
|
</view>
|
||||||
@@ -67,7 +63,7 @@
|
|||||||
优惠券
|
优惠券
|
||||||
</view> -->
|
</view> -->
|
||||||
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')">充 值</b> -->
|
<!-- <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
|
>充 值</b
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
@@ -171,7 +167,7 @@ export default {
|
|||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
this.getOS();
|
this.getOS();
|
||||||
this.platform = uni.getSystemInfoSync().platform;
|
this.platform = uni.getSystemInfoSync().platform;
|
||||||
// console.log('操纵系统',this.platform)
|
console.log('操纵系统',this.platform)
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -120,10 +120,10 @@
|
|||||||
productid: '',
|
productid: '',
|
||||||
isAndroid: true, // 是否为安卓环境
|
isAndroid: true, // 是否为安卓环境
|
||||||
|
|
||||||
payType: 2,
|
payType: null,
|
||||||
// #ifdef APP-IOS
|
// // #ifdef APP-IOS
|
||||||
payType: 3,
|
// payType: 3,
|
||||||
// #endif
|
// // #endif
|
||||||
paylist: [{
|
paylist: [{
|
||||||
title: '支付宝',
|
title: '支付宝',
|
||||||
id: 2,
|
id: 2,
|
||||||
@@ -143,6 +143,7 @@
|
|||||||
transaction: { // 成功回调
|
transaction: { // 成功回调
|
||||||
|
|
||||||
},
|
},
|
||||||
|
oprateOs:'',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
//第一次加载
|
//第一次加载
|
||||||
@@ -150,6 +151,7 @@
|
|||||||
// 隐藏原生的tabbar
|
// 隐藏原生的tabbar
|
||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
this.chargeOrderSn = e.orderSn
|
this.chargeOrderSn = e.orderSn
|
||||||
|
this.oprateOs = uni.getSystemInfoSync().platform
|
||||||
// console.log(e.orderSn,'orderSn')
|
// console.log(e.orderSn,'orderSn')
|
||||||
},
|
},
|
||||||
//页面显示
|
//页面显示
|
||||||
@@ -401,9 +403,11 @@
|
|||||||
getDevName() {
|
getDevName() {
|
||||||
// 获取使用环境
|
// 获取使用环境
|
||||||
if (uni.getSystemInfoSync().platform === 'android') {
|
if (uni.getSystemInfoSync().platform === 'android') {
|
||||||
this.isAndroid = true
|
this.isAndroid = true
|
||||||
|
this.payType = 1
|
||||||
// console.log('运行Android上')
|
// console.log('运行Android上')
|
||||||
} else {
|
} else {
|
||||||
|
this.payType = 4
|
||||||
this.isAndroid = false
|
this.isAndroid = false
|
||||||
// console.log('运行iOS上')
|
// console.log('运行iOS上')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user