发货+兼容苹果
This commit is contained in:
@@ -321,7 +321,7 @@
|
||||
},
|
||||
// 页面加载完毕
|
||||
onReady() {
|
||||
this.requestIapOrder()
|
||||
// this.requestIapOrder()
|
||||
},
|
||||
// 下拉刷新
|
||||
onPullDownRefresh() {
|
||||
@@ -329,8 +329,9 @@
|
||||
this.tjProList = []
|
||||
this.getData()
|
||||
this.getTags()
|
||||
// this.requestIapOrder()
|
||||
uni.stopPullDownRefresh()
|
||||
this.requestIapOrder()
|
||||
|
||||
},
|
||||
onReachBottom() {
|
||||
this.loadingNow = true
|
||||
@@ -476,17 +477,7 @@
|
||||
that.ComplateRequestArr = results
|
||||
console.log(that.ComplateRequestArr,'未完成订单数组')
|
||||
if(results && results.length>0){
|
||||
// for(var j = 0; j<results.length; j++){
|
||||
// if(results[j].transactionState == '1'){
|
||||
// // 已经支付,但是没有走逻辑的内购订单
|
||||
// that.iapCheck(results[j])
|
||||
// // that.iapCheck(repciptData)
|
||||
// }else{
|
||||
// // 其他状态的内购订单 直接关闭
|
||||
// that.finishTransaction(results[j])
|
||||
|
||||
// }
|
||||
// }
|
||||
|
||||
results.map((item,index)=>{
|
||||
// "0"为正在支付;"1"为支付成功;"2"为支付失败;"3"为支付已恢复。
|
||||
if(item.transactionState == '1'){
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
优惠券
|
||||
</view>
|
||||
<!-- <b class="chong_btn" @click="onPageJump('../sdkDemo/pay')">充 值</b> -->
|
||||
<b class="chong_btn" @click="onPageJump('./reCharge')">充 值</b>
|
||||
<b class="chong_btn" v-if="platform != 'ios'" @click="onPageJump('./reCharge')">充 值</b>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -132,14 +132,19 @@
|
||||
signShow: false,
|
||||
signContent: '是否要退出登录?',
|
||||
playData:{},
|
||||
isAndorid:true,
|
||||
isAndorid:true,
|
||||
platform : null, // 设备系统
|
||||
};
|
||||
},
|
||||
//第一次加载
|
||||
onLoad(e) {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
this.getOS()
|
||||
uni.hideTabBar();
|
||||
// #ifdef APP-PLUS
|
||||
this.getOS()
|
||||
this.platform = uni.getSystemInfoSync().platform
|
||||
// console.log('操纵系统',this.platform)
|
||||
// #endif
|
||||
},
|
||||
computed: {
|
||||
...mapState(['userInfo'])
|
||||
@@ -157,7 +162,7 @@
|
||||
methods: {
|
||||
// 获得操作系统
|
||||
getOS(){
|
||||
let oprateOs = ''
|
||||
let oprateOs = ''
|
||||
oprateOs = uni.getSystemInfoSync().platform
|
||||
// console.log(oprateOs)
|
||||
if(oprateOs == 'android'){
|
||||
|
||||
@@ -266,6 +266,7 @@
|
||||
// 支付成功,result 为 IAP商品交易信息对象 IAPTransaction 需将返回的支付凭证传给后端进行二次认证
|
||||
that.iapCheck(result)
|
||||
}, function(e) {
|
||||
console.log('错误回调', e)
|
||||
if(e.errCode == 2){
|
||||
// 用户未绑定支付方式,app内支付流程结束,系统弹出框引导用户绑定支付方式,此过程将跳转到系统应用 AppStore 进行绑定支付方式,绑定成功同步支付成功,用户成功付款
|
||||
plus.runtime.openURL("https://apps.apple.com/account/billing");
|
||||
|
||||
Reference in New Issue
Block a user